Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I use coroutine?

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

1 answer

✓ Accepted answer

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!

1 comment

0

It involves coroutine.resume and coroutine.create If I didn't do coroutine it'd break.

This discussion is preserved as it was. New answers, comments, and votes are closed.