PlayerAdded (Event): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>GoldenUrg
fix include/layout
>Blocco
Replaced example with example template.
Line 7: Line 7:
|}
|}


Example:
{{Example|
 
<pre>function onPlayerEntered(newPlayer)
<pre>function onPlayerEntered(newPlayer)
wait(10)
wait(10)
Line 14: Line 13:
end
end


game.Players.PlayerAdded:connect(onPlayerEntered)</pre>
game.Players.PlayerAdded:connect(onPlayerEntered)</pre>}}

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)