Is there a way to make it foggy using a script? And if there is can I change how foggy it is and change the color of the fog?
The game's fog is controlled using the Lighting.
FogColor is a Color3 value.
FogStart and FogEnd are both numbers, measured in studs from the player's camera.
If this answer is helpful remember to mark it as such with the check mark so we can move along
Go into the lighting tab and click on Properties. You can enable fog and change its color, start and end distances from there.