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)
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
1 | game.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 ) |
6 | end ) |