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 repeat itself after its done?

Asked by 5 years ago

here's the script,



game.Workspace.OHHH.Position = Vector3.new(-16.3, 0.5, -10.5) wait(3) game.Workspace.OHHH.Position = Vector3.new(-16.4, 0.5, -8.8)

I want to make it so the script repeats itself after its ben finished

0
loop it LawlR 182 — 5y
0
above the script do while true do hoth7 45 — 5y

1 answer

Log in to vote
0
Answered by
Mr_Unlucky 1085 Moderation Voter
5 years ago
Edited 5 years ago
while true do
    game.Workspace.OHHH.Position = Vector3.new(-16.3, 0.5, -10.5)

    wait(3)

    game.Workspace.OHHH.Position = Vector3.new(-16.4, 0.5, -8.8)

    wait(3)
end
0
while true do infinitely loops Mr_Unlucky 1085 — 5y
0
You need another wait before the end, or it will move and then immediately move back. fredfishy 833 — 5y
0
yeah I just noticed that lol Mr_Unlucky 1085 — 5y
Ad

Answer this question