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

On Players Join Count Script?

Hi, I'd like to make a script that will give number value to player. Like when the first player join to the game then he will get number value 1 second player = number value 2 etc. I have no idea how to make that :( Can You guys help me?

1 answer

✓ Accepted answer
local playercount = 1

game.Players.PlayerAdded:connect(function(plr)
	local numbervalue = Instance.new("NumberValue")
	numbervalue.Parent = plr
	numbervalue.Value = playercount
	playercount = playercount + 1
end

2 comments

0

Thank You :)

0

And when you need to use the number values, you would do game.Players.playername.NumberValue.Value for whatever your using it for.

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