Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
1

How To Detect A New Player?

Asked by 16 days ago

I want to run a script making someones value (inside model of their character) a random number between 1 and 1000, but im having trouble detecting a player that's new. because i dont want them to have a different value every time they join. I thought of data store but then you must set the value of that so then it defeats the purpose of finding new players if you need that to make it work. Please Help!

0
datastore is you only option Fad99 180 — 16d
0
Use the Event "PlayerAdded" 50ShadesofLamps -3 — 15d

1 answer

Log in to vote
1
Answered by
sleazel 394 Moderation Voter
16 days ago
Edited 16 days ago

If you don't want to use datastores (which you should), you may use last three digits of player user id as a "random number":

local fakeRandomNumber = math.fmod(player.UserId,1000) +1
0
Yes this is good, it will be the same everytime so you dint have to save anything Fad99 180 — 15d
0
thanks ill try... CommanderCaubunsia 84 — 3h
Ad

Answer this question