Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Script not helping. Please correct it? [SOLVED] [closed]

Asked by 10 years ago

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)

Locked by 2eggnog, TofuBytes, Perci1, and Shawnyg

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

1 answer

Log in to vote
6
Answered by
2eggnog 981 Moderation Voter
10 years ago

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)
0
Thank you so much! It worked! :D blockhaak2 1 — 10y
Ad