Hypnoxic
|
  |
| Joined: 03 Apr 2013 |
| Total Posts: 199 |
|
|
| 18 May 2013 01:16 PM |
I want it to only happen once, but it happens every time I respawn...
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) script.LocalScript:clone().Parent = character script.Start:clone().Parent = player.PlayerGui end) end)
- Run while you can. |
|
|
| Report Abuse |
|
|
johnhugh
|
  |
| Joined: 26 Mar 2009 |
| Total Posts: 1971 |
|
|
| 18 May 2013 01:18 PM |
player.CharacterAdded:connect(function(character)
When the character respawns it is triggered because it was 'Added' to Workspace If you only want it to happen once (when you join the game) delete this line and one of the 'end)'s |
|
|
| Report Abuse |
|
|
Hypnoxic
|
  |
| Joined: 03 Apr 2013 |
| Total Posts: 199 |
|
|
| 18 May 2013 01:19 PM |
Thats how it adds the localscript though
- Run while you can. |
|
|
| Report Abuse |
|
|
|
| 18 May 2013 02:03 PM |
Put it in lighting then clone it to workspace.
I think, sorry I'm a beginner. |
|
|
| Report Abuse |
|
|
|
| 18 May 2013 02:10 PM |
game.Players.PlayerAdded:connect(function(player) repeat wait() until player.Character local character = player.Character script.LocalScript:clone().Parent = character script.Start:clone().Parent = player.PlayerGui end) |
|
|
| Report Abuse |
|
|