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
|
Example
function onPlayerEntered(newPlayer) wait(10) newPlayer.Character.Torso.Transparency = 1 end game.Players.PlayerAdded:connect(onPlayerEntered)