PlayerAdded (Event)

From Goodblox Wiki
Revision as of 22:05, 23 September 2021 by Rocket (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
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)