20.03.2017, 09:02
I would recommend perhaps using a timer rather than onplayerupdate. Onplayerupdate is called a lot. Also a variable for whether a player is spawned or not could also be added to the if statement, but you'd have to create this yourself.