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

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

Asked by
trecept 367 Moderation Voter
6 years ago

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?

0
Using DataStores (info on wiki) mattscy 3725 — 6y
0
I don't know what you're asking, completely. OldPalHappy 1477 — 6y
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. TehHyperGamer 0 — 6y
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. trecept 367 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

Use DataStores... There is a great guide here: CLICK ME!

Ad

Answer this question