PlayerAdded (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Blocco
Replaced example with example template.
>Blocco
Replaced example with example template.
(No difference)

Revision as of 02:22, 20 May 2010

PlayerAdded ( Instance Player )
Description Fired after a player enters the game.
Member of: [[RBX.lua.Players (Object)|Players]]
Example
function onPlayerEntered(newPlayer)
wait(10)
newPlayer.Character.Torso.Transparency = 1
end

game.Players.PlayerAdded:connect(onPlayerEntered)