Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Script not helping. Please correct it? [SOLVED]

I'm making it so when you touch a certain brick, it changes the FogColor. But it wont change!!

Heres my script:

function TOUCHY()
	game.Lighting.FogColor = Color3.new(0, 175, 255) 
end

script.Parent.Touched:connct(onTouched)

1 answer

✓ Accepted answer

You forgot to change the function name in the connection. Also, Color3 values are out of 1, not 255.

function TOUCHY()
	game.Lighting.FogColor = Color3.new(0, 175/255, 1) 
	--To normalize the values, just divide them by 255. The result will be less than or equal to one.
end

script.Parent.Touched:connect(TOUCHY)

1 comment

0

Thank you so much! It worked! :D

This discussion is preserved as it was. New answers, comments, and votes are closed.