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

How do I make a certain script run once for a game then never again?

If I wanted to make a model, and make it so that when the game runs with that model inside it, it prints Hello or something. Then if the game servers close and open again, it wont print it again until like the model is removed and then added back in. How would I do this?

4 comments

0

Using DataStores (info on wiki)

0

I don't know what you're asking, completely.

0

Say what? wait you want it to run just once and then you say it won't run again until to put the model back in? Well first of all: your wording is confusing here. Secondly: It's supposed to do that, scripts can't run if they don't exist.

0

I mean, lets say I had a script that did print("Hello"). I want the script to print this only once like when the game is opened, then never again.

1 answer

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