oof i can't find this any were so please help out.
You've really got to try harder to research your topic. I found it quickly using your title in fractions, both as a first result:
Player.UserId | Players.PlayerAdded
local players = game:GetService("Players") players.PlayerAdded:Connect(function(player) local userId = player.UserId print(userId) end)