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

How do I use coroutine?

Asked by 10 years ago

I don't know what it is or how to use it :(

1 answer

Log in to vote
1
Answered by 10 years ago

This is not a request site but here is loop explode script: Change Player1 to your name

function Explode()
    while true do
        wait(1.5)--Recommended not to change
        ex = Instance.new("Explosion", game.Workspace.Player1.Head)
        ex.Position = game.Workspace.Player1.Head.Position
    end
end
wait(3)
coroutine.resume(coroutine.create(Explode))
wait(3)

Hope I helped!

0
It involves coroutine.resume and coroutine.create If I didn't do coroutine it'd break. fireboltofdeath 635 — 10y
Ad

Answer this question