|
| 01 Apr 2012 04:57 PM |
How do I do that? Right now my script wont work.
function onPlayerRespawned(newPlayer) a = game.Lighting.Intro:Clone() a.Parent = newPlayer end
function onPlayerEntered(newPlayer) newPlayer.Changed:connect(function (property) if (property == "Character") then onPlayerRespawned(newPlayer) end end) end
game.Players.PlayerAdded:connect(onPlayerEntered) |
|
|
| Report Abuse |
|
|
| |
|
|
| 01 Apr 2012 04:59 PM |
If you want it to get in their PlayerGui everytime they spawn, put it in the StarterGui.
If you only want it to get in their PlayerGui when they enter, use the PlayerAdded event or wait for the admins to release the LoadingGui object. |
|
|
| Report Abuse |
|
|
| |
|
|
| 01 Apr 2012 05:01 PM |
| I am using a playeradded event. How do I make it so that it goes INTO the player from lighting. Yes, its an Intro, so I only want it to go into them once. |
|
|
| Report Abuse |
|
|
|
| 01 Apr 2012 05:04 PM |
Game.Player.PlayerAdded:connect(function(Player) Player.CharacterAdded:wait() Game.Lighting.Intro:Clone().Parent = Player.PlayerGui end) |
|
|
| Report Abuse |
|
|