wait(0.1) game.Players.PlayerAdded:connect(function(plr) end) local ID = game.ServerScriptService.Loader.ServerID.Value local Length = math.random(3, 5) for i = 1, Length do local N = math.random(1, 9) ID = ID..tostring(N) end
This was my failure Attempt.
Your randomseed is probably the same
Roblox has a reprehensibility to set the randomseed to be the same across server instances. What this means for you, is that your random number generation is the same every time a server starts.
math.randomseed(tick())
That one line normally solves most of those kinds of issues.
As for other issues:
- Your SID is not truly unique, and can be shared by another server.
- I don't see the point in this, as Roblox already provides you with a ServerId from the JobId and such.