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: What's wrong with my script(EASY beginner, clone GUI script)

Previous Thread :: Next Thread 
Overpride is not online. Overpride
Joined: 30 Aug 2011
Total Posts: 1037
09 Aug 2014 04:50 PM
function player_addition(Plyr)
Loading_01 = true
Plyr:WaitForChild("PlayerGui")
Plyr.PlayerGui:WaitForChild("Menu")
game.ReplicatedStorage.Loading_Gui:clone().Parent = Plyr.PlayerGui
Plyer.CharacterAdded:connect(function(Character_01)
Character_01:WaitForChild("Humanoid").Died:connect(function()
if Loading_01 == true then
game.ReplicatedStorage.Loading_Gui:clone().Parent = Plyr.PlayerGui
end
end
end)
end)
end
end

game.Players.PlayerAdded:connect(player_addition)

The error says:
')" expected to close '(' at line 7) near 'end'
Report Abuse
Overpride is not online. Overpride
Joined: 30 Aug 2011
Total Posts: 1037
09 Aug 2014 04:52 PM
I don't understand, what am I supposed to close?
Report Abuse
Overpride is not online. Overpride
Joined: 30 Aug 2011
Total Posts: 1037
09 Aug 2014 04:53 PM
Please help!
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
09 Aug 2014 04:54 PM
function player_addition(Plyr)
Loading_01 = true
Plyr:WaitForChild("PlayerGui")
Plyr.PlayerGui:WaitForChild("Menu")
game.ReplicatedStorage.Loading_Gui:clone().Parent = Plyr.PlayerGui
Plyer.CharacterAdded:connect(function(Character_01)
Character_01:WaitForChild("Humanoid").Died:connect(function)
if Loading_01 == true then
game.ReplicatedStorage.Loading_Gui:clone().Parent = Plyr.PlayerGui
end
end
end)
end)
end
end
Report Abuse
iiEssence is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
09 Aug 2014 04:54 PM
function player_addition(Plyr)
Loading_01 = true
Plyr:WaitForChild("PlayerGui")
Plyr.PlayerGui:WaitForChild("Menu")
game.ReplicatedStorage.Loading_Gui:clone().Parent = Plyr.PlayerGui
Plyer.CharacterAdded:connect(function(Character_01)
Character_01:WaitForChild("Humanoid").Died:connect(function()
if Loading_01 == true then
game.ReplicatedStorage.Loading_Gui:clone().Parent = Plyr.PlayerGui
end
end)
end)
end

game.Players.PlayerAdded:connect(player_addition)

--You had extra 'end's
Report Abuse
Overpride is not online. Overpride
Joined: 30 Aug 2011
Total Posts: 1037
09 Aug 2014 05:09 PM
Thanks.
Report Abuse
Krypticon is not online. Krypticon
Joined: 12 Feb 2014
Total Posts: 680
09 Aug 2014 05:13 PM
I've also noticed you need to capitalize ':clone()'. So it should be ':Clone()'. :)
Report Abuse
Vescatur is not online. Vescatur
Joined: 18 Feb 2012
Total Posts: 3426
09 Aug 2014 05:15 PM
@Krypticon I don't think that matters with events.

clone() works just as well as Clone()
Report Abuse
Krypticon is not online. Krypticon
Joined: 12 Feb 2014
Total Posts: 680
09 Aug 2014 05:18 PM
Does it? :P
I'll keep that in mind :P
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