|
| 03 Sep 2013 03:32 PM |
I have a GUI, and I need it to appear ONLY the first time, when the player enters the game... I'm really not sure how to do it. Here's a script I made (Not working obviously).
It's a local script, by the way.
function go() x = script.Parent.Parent.Debris.Welcome:Clone() x.Parent = game.Players.LocalPlayer.PlayerGui end
game.Players.PlayerAdded:connect(go)
Welcome, is the GUI so.... what's wrong here? Help gladly appreciated, thanks! |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2013 03:35 PM |
| The GUI and Script are correct. I don't see a problem. |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2013 03:37 PM |
Hm. Maybe, I will try making it NOT a local script?
|
|
|
| Report Abuse |
|
|
your90
|
  |
| Joined: 06 Mar 2011 |
| Total Posts: 1380 |
|
|
| 03 Sep 2013 03:39 PM |
function onPlayerAdded() x = script.Parent.Parent.Debris.Welcome:Clone() x.Parent = game.Players.LocalPlayer.PlayerGui end
game.Players.PlayerAdded:connect(onPlayerAdded) |
|
|
| Report Abuse |
|
|
| |
|
Soquick
|
  |
| Joined: 01 Nov 2012 |
| Total Posts: 1497 |
|
|
| 03 Sep 2013 03:40 PM |
regular script function go(plr) plr:WaitForDataReady() x = workspace.Derbis.Welcome:Clone() x.Parent = plr.PlayerGui end game.Players.PlayerAdded:connect(go) |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2013 03:43 PM |
That looks complex, though it's not. That is good :P Thanks. |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2013 03:46 PM |
| Not working... it's like it is not cloning to the PlayerGui. I opened it up in build mode and checked my PlayerGui, it's not there. |
|
|
| Report Abuse |
|
|
| |
|
Soquick
|
  |
| Joined: 01 Nov 2012 |
| Total Posts: 1497 |
|
|
| 03 Sep 2013 03:53 PM |
reg script put gui in script function go(plr) plr:WaitForDataReady() script.Welcome:clone().Parent = plr.PlayerGui end game.Players.PlayerAdded:connect(go) |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2013 03:54 PM |
| ooohh k thank you so much! |
|
|
| Report Abuse |
|
|
|
| 03 Sep 2013 03:56 PM |
| Yay, it worked. Thanks again. |
|
|
| Report Abuse |
|
|