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)
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)
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Thank you so much! It worked! :D