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

How do I define a player who joined as a variable?

Simple question buy I'm new to coding, if I wanted to define a player who joined as a variable, so I can change aspects of them later, how would I do that?

1 answer

Here is a good way!

game.Players.PlayerAdded:Connect(function(plr)
	print(plr .. "joined!") -- says that a player just joined
	local part = Instance.new("Part", plr.Character) -- adds a part to their character
	part.Name = "TestPart"
end)

3 comments

0

xdddddddd

0

wait wtf.. your comment is 2m ^ and this guy posted this 3m ago.. this makes no sense... GUYS INCAPAXIAN IS A TIME BENDER

0

shhhh don't reveal my secret

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