|
| 13 Jan 2014 08:36 PM |
im not very good at playeradded scripts,i thought this would be simple.. ok,so what Im trying to do,is just copy a startergui to the player,IF his name is islandmaker2012(me) so heres what I got..not working btw
game.Players.PlayerAdded:connect(function(player) if player.Name == "islandmaker2012" then admin = game.Lighting.admin:clone() admin.Parent = player.PlayerGui end end)
|
|
|
| Report Abuse |
|
|
|
| 13 Jan 2014 08:37 PM |
also,when I die,i want it to clone it to me if I(only me) die I guess it would be a ":Died()" event..idk.. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 13 Jan 2014 08:38 PM |
Play your game. It should work.
Btw, when you reset, the GUI won't be re added so use CharacterAdded along with it. |
|
|
| Report Abuse |
|
|
Thaeh
|
  |
| Joined: 05 Feb 2011 |
| Total Posts: 7685 |
|
|
| 13 Jan 2014 08:38 PM |
all u gotta do is put the gui in startergui check the player name if its u, then its visible
|
|
|
| Report Abuse |
|
|
|
| 13 Jan 2014 08:38 PM |
I did play it..nothing happened.. @cnt,why is admin nil? |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 13 Jan 2014 08:39 PM |
| Admin is nil as in that the path is invalid? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 13 Jan 2014 08:40 PM |
Oh never mind, I didn't see that line...
game.Players.PlayerAdded:connect(function(player) if player.Name == "islandmaker2012" then admin = game.Lighting.admin:clone() admin.Parent = player:WaitForChild("PlayerGui") end end)
Try that |
|
|
| Report Abuse |
|
|
|
| 13 Jan 2014 08:40 PM |
how is admin nil? "admin" is a StarterGui in Lighting Lighting -admin
admin = game.Lighting.admin:clone() admin.Parent = player .. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 13 Jan 2014 08:41 PM |
| "Oh never mind, I didn't see that line..." |
|
|
| Report Abuse |
|
|
| |
|
| |
|