How can a randomize a players appearance with a function?
Hello, I recently attempted to randomize the players appearance, however it only seems to work if I you the PlayerAdded command. I want to randomize every character's appearance within a table using a function.
In order to make randomization simple I ran multiple tests to see what the population of roblox is, I got values between 16, and 145599999. anything below 16 can give errors because they no longer exist.
So basically this:
1 | game.Players.PlayerAdded:connect( function (Player) |
the above works fine, but for some reason when I try to incorporate it in a function like this:
1 | function randomizecharacter() |
2 | for _, player in pairs (game.Players:GetPlayers()) do |
3 | delay( 1 , function (player) |
It doesn't work at all or give errors.
So how can I randomize players based on a user id value between 16, and 145599999 using a call able function and not only from when the player is added.
Thanks in advance if anyone actually answers this.