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

Beam does not change color thru script?

--[[i am attempting to make a beam change color thru script but it does not allow me to do so.
this is how the script looks like:
]]
while wait()do
if game.Lighting.ClockTime>=18 then
game.Workspace.Clouds.Parts.Beam.Color=Color3.new(190,180,175)

if game.Lighting.ClockTime>=18.3 then
game.Workspace.Clouds.Parts.Beam.Color=Color3.new(120,150,110)

if game.Lighting.ClockTime>=19 then
game.Workspace.Clouds.Parts.Beam.Color=Color3.new(65,60,60)

if game.Lighting.ClockTime>=19.3 then
game.Workspace.Clouds.Parts.Beam.Color=Color3.new(0,0,0)

if game.Lighting.ClockTime>=4 then
game.Workspace.Clouds.Parts.Beam.Color=Color3.new(65,60,60)

if game.Lighting.ClockTime>=5 then
game.Workspace.Clouds.Parts.Beam.Color=Color3.new(120,150,110)

if game.Lighting.ClockTime>=6 then
game.Workspace.Clouds.Parts.Beam.Color=Color3.new(190,180,175)

end
end
end
end
end
end
end
end

-- is it from the script or the property is not allowed to change while in game at all?

1 comment

0

After each "if" put the "end" below it.

1 answer

✓ Accepted answer

After each "if" put a "end" at the end of it.

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