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 » Scripters
Home Search
 

Re: Help with a gui script

Previous Thread :: Next Thread 
cheeser124 is not online. cheeser124
Joined: 22 May 2009
Total Posts: 8250
29 Nov 2014 11:58 AM
I'm making a reset gui but I get an error in the connection line



1. function onClicked()
2. script.Disabled = true
3. script.Parent.Parent.Parent.Parent.Character .Humanoid.Health = 0
4. wait()
5. script.Disabled = false
6. end
7.
8. script.Parent.MouseButton1Click:connect(onClicked)


Error: MouseButton1Click is not a valid member of ScreenGui
Report Abuse
makerror is not online. makerror
Joined: 29 Aug 2011
Total Posts: 493
29 Nov 2014 12:01 PM
You should learn how to read errors the're no event like MouseButton1Click,
it should be MouseButton1Down
Report Abuse
cheeser124 is not online. cheeser124
Joined: 22 May 2009
Total Posts: 8250
29 Nov 2014 12:04 PM
I tried 'Down' but it also said it's not a valid member of screenGui
Report Abuse
cheeser124 is not online. cheeser124
Joined: 22 May 2009
Total Posts: 8250
29 Nov 2014 12:06 PM
oh nvm i put the script into the gui instead of the textbutton
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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