RSoMKC
|
  |
| Joined: 01 Jun 2008 |
| Total Posts: 3131 |
|
|
| 11 Jul 2014 04:26 PM |
I've never worked with :clone() before. Unsurprisingly this script below doesn't work. Does anyone know why that is?
~~~~~~~~~~~~~~~~~ game.ReplicatedStorage.StartGUI = startGUI
game.Players.PlayerAdded:connect(function(player) local startGUICopy = startGUI:Clone() startGUICopy.Parent = player.PlayerGUI end) ~~~~~~~~~~~~~~~~~ |
|
|
| Report Abuse |
|
|
error9999
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1593 |
|
|
| 11 Jul 2014 04:28 PM |
startGUI = game.ReplicatedStorage.StartGUI
game.Players.PlayerAdded:connect(function(player) local startGUICopy = startGUI:Clone() startGUICopy.Parent = player:WaitForChild('PlayerGUI') end) |
|
|
| Report Abuse |
|
|
RSoMKC
|
  |
| Joined: 01 Jun 2008 |
| Total Posts: 3131 |
|
| |
|
error9999
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1593 |
|
|
| 11 Jul 2014 04:33 PM |
| what does the output says? |
|
|
| Report Abuse |
|
|
RSoMKC
|
  |
| Joined: 01 Jun 2008 |
| Total Posts: 3131 |
|
|
| 11 Jul 2014 04:34 PM |
I have no way of checking since the player is loaded before the scripts in Play Solo. It says nothing even if I try anyways. |
|
|
| Report Abuse |
|
|
error9999
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1593 |
|
|
| 11 Jul 2014 04:39 PM |
| well, save the game, then Play it, then press F9 to open the player output, and then click on server console to check out the server output c: |
|
|
| Report Abuse |
|
|
RSoMKC
|
  |
| Joined: 01 Jun 2008 |
| Total Posts: 3131 |
|
|
| 11 Jul 2014 04:41 PM |
| Content failed because Not Found |
|
|
| Report Abuse |
|
|
RSoMKC
|
  |
| Joined: 01 Jun 2008 |
| Total Posts: 3131 |
|
|
| 11 Jul 2014 04:44 PM |
Just a typo. That was a lot of hassle just because of that.
~~~~~~~~~~~~~~~~~ game.ReplicatedStorage.StartGUI = startGUI
game.Players.PlayerAdded:connect(function(player) local startGUICopy = startGUI:Clone() startGUICopy.Parent = player.PlayerGUI -- This is supposed to be 'PlayerGui' end) ~~~~~~~~~~~~~~~~~ |
|
|
| Report Abuse |
|
|
error9999
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1593 |
|
|
| 11 Jul 2014 04:45 PM |
well, that has nothing to do with the script xD
hm....
well, check all capital letters in the script
change the function to an ontouch baseplate function or something (to test it)
that's what I would do to make it work
just keep on testing things until it works c: |
|
|
| Report Abuse |
|
|