What do I want to achieve?
Related to squid game, I am trying to achieve basically body numbers for the players. So when they join the game, they get set with a number that is in numerical order. 0-456.
If you have watched squid game you understand they get numbers when they first start.
So I want a player to spawn in with a set number.
How could I attempt this?
What solutions have I tried so far?
Mainly looked at functions on updating player counts and everything related to that.
I mainly just need the basic knowledge of giving a player a certain number when they join. I already know all the rest relating to positioning, and displaying the gui.
local PlayersService = game:GetService("Players") local txt = script.Parent local function UpdatePlayerCount() txt.Text = "Players: ".. #PlayersService:GetPlayers() .."." end UpdatePlayerCount() PlayersService.PlayerAdded:Connect(UpdatePlayerCount) PlayersService.PlayerRemoving:Connect(UpdatePlayerCount)
How do I set a player a certain number on join?