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

Beam does not change color thru script?

Asked by 4 years ago
--[[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?

0
After each "if" put the "end" below it. User#29320 0 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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

Ad

Answer this question