Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i make a script that finds the id of the player that has joined?

oof i can't find this any were so please help out.

1 answer

✓ Accepted answer

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)

3 comments

0

oof is it a local script?

0

Generally both, but usually a ServerScript in this manner; it ultimately depends on what you wish to do with the ID, as both have limitations.

1

Thanks, and ill look harder next time.

This discussion is preserved as it was. New answers, comments, and votes are closed.