Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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)

0
Are you trying to get the player ID? BabanizPROcuk 49 — 4y

1 answer

Log in to vote
0
Answered by
mroaan 95
4 years ago

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

1game.Players.PlayerAdded:Connect(function(player)
2    local id = player.UserId
3    game.StartedGui.CoinsGui.CIFrame.TextId.DescendantAdded:Connect(function()
4        script.Parent.Text = "ID: "..id
5    end)
6end)
0
what does that variable mean? RizkySugihartoYT 36 — 4y
Ad

Answer this question