generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Whats wrong with this GUI cloning script?

Previous Thread :: Next Thread 
RSoMKC is not online. 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 is not online. 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 is not online. RSoMKC
Joined: 01 Jun 2008
Total Posts: 3131
11 Jul 2014 04:31 PM
That wasn't it, sadly.
Report Abuse
error9999 is not online. error9999
Joined: 05 Sep 2009
Total Posts: 1593
11 Jul 2014 04:33 PM
what does the output says?
Report Abuse
RSoMKC is not online. 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 is not online. 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 is not online. RSoMKC
Joined: 01 Jun 2008
Total Posts: 3131
11 Jul 2014 04:41 PM
Content failed because Not Found
Report Abuse
RSoMKC is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image