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

Why does this turn on the lights in every car and not just this car?

Asked by
ghxstlvty 133
3 years ago
game.ReplicatedStorage.Stages.OnServerEvent:Connect(function(player)
    if script.Parent.Lightbar.on.Value == 0 then
        script.Parent.Lightbar.on.Value = 1
    elseif script.Parent.Lightbar.on.Value == 1 then
        script.Parent.Lightbar.on.Value = 2
    elseif script.Parent.Lightbar.on.Value == 2 then
        script.Parent.Lightbar.on.Value = 3 
    elseif script.Parent.Lightbar.on.Value == 3 then
        script.Parent.Lightbar.on.Value = 0
    end
end)

https://gyazo.com/37dfe41d0fe22c5b90f3de27a8bedbd8 gif

0
Is the script in one car or all of them? AdSomnum 20 — 3y
0
The gif doesn't work, try sending another! JesseSong 3916 — 3y
0
the script is in every car ghxstlvty 133 — 3y
0
the gif works, just highlight the link and click go to ghxstlvty 133 — 3y

Answer this question