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?
COMMUNITY QUESTION
How do I define a player who joined as a variable?
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
xdddddddd
wait wtf.. your comment is 2m ^ and this guy posted this 3m ago.. this makes no sense... GUYS INCAPAXIAN IS A TIME BENDER
shhhh don't reveal my secret