i legit really started scripting today but my script to change light isnt working. i looked on the developer website but i didnt find anything that helped
local light = game.Workspace.Light light.Color = Color3.new(225, 225, 225) wait (2) light.Color = Color3.new(138, 171, 133)
Im not sure if im missing something or i got it completely wrong.
If you need to know the part name its called Brick, before it was called Part and was changing colors from other scripts.
Whoops, I saw a space between wait
and (2)
in line 2, it probably the problem with your script
local light = game.Workspace.Light light.Color = Color3.new(225, 225, 225) wait(2) -- Fixed light.Color = Color3.new(138, 171, 133)
Remember, The Color3 parameters should be on the range [0, 1].
local light = game.Workspace.Light light.Color = Color3.new(225/255, 225/255, 225/255) wait(2) light.Color = Color3.new(138/255, 171/255, 133/255)
Figured it out i did
game.Workspace.Brick
instead of
game.Workspace.Brick.SurfaceLight