Running it once ?

Hello gais, so I’ve created these 4 variables that generate a number from 1-250 math.random and I want it to run only once, I’ve tried creating networked variables and adding them in PlayerSpawn thinking that it would only run once… but these 4 numbers just go craaaazy randomly generating, if you need further details let me know.


Put them in PlayerInitialSpawn instead of PlayerSpawn and the code will run only once when the player first spawns in the game.

Yaaay Thanks, I actually wanted them to only generate once instead of in every death, thank you!