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 3 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 — 3y

1 answer

Log in to vote
0
Answered by
mroaan 95
3 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

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)
0
what does that variable mean? RizkySugihartoYT 36 — 3y
Ad

Answer this question