|
| 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 |
|
|
|
| 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
|
  |
| Joined: 26 Jun 2013 |
| Total Posts: 2833 |
|
|
| 03 Aug 2013 03:36 PM |
| Make sure your hierarchy of parenting is correct. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|