game.Players.PlayerAdded:Connect(function(player)
print(player.UserId)
local pl = (player.UserId)
if pl == 142874436 then
script.Parent.Text = "Creator"
else
script.Parent.Text = "Customer"
end
end)
Why does this script not print my USER-ID or change the text to Creator.
Better off using this. Not sure if PlayerAdded in a local script counts the LocalPlayer.
Or runs in a local script.
local player = game.Players.LocalPlayer
local pl = player.UserId
if pl == 142874436 then
script.Parent.Text = "Creator"
else
script.Parent.Text = "Customer"
end