http://prntscr.com/8ksltj
I need to know this cuz im putting the script inside a part
What you could do is make a 'playerAdded event' like so:
1 | game.Players.PlayerAdded:connect( function (player) |
2 | --stuff heer |
3 | end ) |
but say you want to play it on the character, not the player. You'd simply do a character added one right after it.
1 | game.Players.PlayerAdded:connect( function (player) |
2 | --player stuff heer |
3 | player.CharacterAdded:connect( function (character) |
4 | --character stuff here |
5 | end ) |
6 | end ) |
-Player: http://wiki.roblox.com/index.php?title=PlayerAdded
-Character: http://wiki.roblox.com/index.php?title=CharacterAdded
-- Put this in the StarterGui or StarterPack
-- It will Lead to PlayerGui or Backpack which that parent will be the Player itself
1 | local Player = script.Parent.Parent |
2 | local Character = Player.Character or game [ "Workspace" ] :WaitForChild(Player.Name) |