PlayerAdded (Event): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Anaminus fixed wrong example |
>GoldenUrg fix include/layout |
||
Line 1: | Line 1: | ||
{{Event|name=PlayerAdded | {| | ||
|<onlyinclude>{{Event|name=PlayerAdded | |||
|arguments=[[Instance]] ''Player'' | |arguments=[[Instance]] ''Player'' | ||
|description= Fired after a player enters the game. | |description= Fired after a player enters the game. | ||
|object= [[RBX.lua.Players (Service)|Players]] | |object= [[RBX.lua.Players (Service)|Players]] | ||
|}} | |}}</onlyinclude> | ||
|} | |||
Example: | Example: |
Revision as of 01:25, 20 May 2010
|
Example:
function onPlayerEntered(newPlayer) wait(10) newPlayer.Character.Torso.Transparency = 1 end game.Players.PlayerAdded:connect(onPlayerEntered)