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

Any way to reload a script as if the game was just starting?

Is there any way to reload a script, as in making it run again as if the game was starting?

1 answer

You should make it a function. That way you can call it again, again and again.

function startGame()
	--Enter the game code here
end
--Under here is how to call it.
startGame()

When you want to start the game, call the function, and all code inside will run. - Toby

2 comments

0

Is there any way to call it from another script?

0

Use either a remote event or a remote function.

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