PlayerAdded (Event)

From Goodblox Wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Event
Syntax PlayerAdded( Instance Player )
Description: Fired after a player enters the game.
In Object: Players


Example:

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

game.Players.PlayerAdded:connect(onPlayerEntered)