Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

how would i make the players named as player 1 player 2 player 3 and so on?

I am asking this question because it would make it easier for me to make it so everyone teleports to their own building box. If there are any other ways could someone tell me? Thanks!

2 comments

0

in my game i am trying to do the opposite but with some variables

0

well that doesnt help :(

1 answer

✓ Accepted answer

This would probably work, but it doesn't allow you to change a player's name.

local players = game.Players:GetPlayers()

for i, v in pairs(players) do
	v.Name = "Player ".. i
end

When you put this in a localscript, it just prints

The current identity (0) cannot set a Player's name (lacking permission 4)

This discussion is preserved as it was. New answers, comments, and votes are closed.