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

How to make Id Players?I can't make it, cause i dont know scripting ;-;

local Id = game.Players.LocalPlayer:FindFirstChild("CharacterApperanceId") -- Change "Coins" To your sort of currency.

game.StartedGui.CoinsGui.CIFrame.TextId.DescendantAdded:Connect(function() script.Parent.Text = "ID: ".. Id end)

1 comment

0

Are you trying to get the player ID?

1 answer

✓ Accepted answer

to get player's user id you have to firstly make a function with an event called playerAdded then make a variable that says player.UserId and then make whatever you want inside the function

game.Players.PlayerAdded:Connect(function(player)
	local id = player.UserId
	game.StartedGui.CoinsGui.CIFrame.TextId.DescendantAdded:Connect(function() 
		script.Parent.Text = "ID: "..id
	end)
end)

1 comment

0

what does that variable mean?

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