Need help trying to get fog working

So i have been trying to create a misty white fog for my new biome.

I’ve been browsing through @BrunoSupremo 's code for his swamp but i am still struggling. I know a little lua from when i used to do stuff on roblox (they used a modified version of lua)

Anyone wanna offer any assistance?