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

How do i make this script to change a color of a trail repeat?

Asked by 5 years ago

I need help, how to repeat the script when it ends?

game.Workspace.Trail.Color = "Bright blue"
wait(1)
game.Workspace.Trail.Color = "Bright red"
wait(1)
game.Workpace.Trail.Color = "Yellow"
--Starts over when it get here.
0
while true do? Nickelz 37 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
while true do
    game.Workspace.Trail.Color = "Bright blue"
    wait(1)
    game.Workspace.Trail.Color = "Bright red"
    wait(1)
    game.Workpace.Trail.Color = "Yellow"
    --Starts over when it get here.
end

while true do Is a "While" Loop function which repeats everything inside the function

0
Why am i so dumb :P AnotherPerson_999 28 — 5y
Ad

Answer this question