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: easiest mistake ever??

Previous Thread :: Next Thread 
VaCheesehead is not online. VaCheesehead
Joined: 03 Feb 2013
Total Posts: 115
03 Aug 2013 03:35 PM
I made my own team gui with text buttons for teams. The buttons i know work but nothing happens. Im assuming its like one but I cannot understand how something so simple could be wrong :|.


function onClick(mouse)
script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Dark stone grey")
end


script.Parent.MouseButton1Down:connect(Click)

Report Abuse
wafles26122 is not online. wafles26122
Joined: 14 Jun 2010
Total Posts: 958
03 Aug 2013 03:36 PM
Your function name and event name don't match...


function onClick(mouse)
script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Dark stone grey")
end


script.Parent.MouseButton1Down:connect(onClick)
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
03 Aug 2013 03:36 PM
Make sure your hierarchy of parenting is correct.
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
03 Aug 2013 03:37 PM
Nevermind, I didn't notice the function name difference >.>
Report Abuse
VaCheesehead is not online. VaCheesehead
Joined: 03 Feb 2013
Total Posts: 115
03 Aug 2013 04:18 PM
function Click(mouse)
script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Dark stone grey")
end


script.Parent.MouseButton1Down:connect(Click)

still got nothing.
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