Difference between revisions of "PlayerAdded (Event)"

From Goodblox Wiki
Jump to navigationJump to search
m (Pizzaboxer moved page PlayerEntered to PlayerAdded (Event))
m
Line 1: Line 1:
 +
{{CatUp|Events}}
 +
 
<onlyinclude>{{Event|name=PlayerAdded
 
<onlyinclude>{{Event|name=PlayerAdded
 
|arguments=[[Instance]] ''Player''
 
|arguments=[[Instance]] ''Player''

Revision as of 05:09, 22 September 2021


Event
Syntax PlayerAdded( Instance Player )
Description: Fired after a player enters the game.
In Object: Players


Example:

function onPlayerEntered(newPlayer)
wait(10)
newPlayer.Character.Torso.Transparency = 1
end

game.Players.PlayerAdded:connect(onPlayerEntered)