PlayerAdded (Event): Difference between revisions

From Goodblox Wiki
Jump to navigationJump to search
(Created page with "<onlyinclude>{{Event|name=PlayerAdded |arguments=Instance ''Player'' |description= Fired after a player enters the game. |object= Players |}}...")
 
m (Pizzaboxer moved page PlayerEntered to PlayerAdded (Event))
(No difference)

Revision as of 20:50, 23 June 2020

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)