|
| 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
|
  |
| 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 |
|
|
|
| 29 Nov 2014 12:04 PM |
| I tried 'Down' but it also said it's not a valid member of screenGui |
|
|
| Report Abuse |
|
|
|
| 29 Nov 2014 12:06 PM |
| oh nvm i put the script into the gui instead of the textbutton |
|
|
| Report Abuse |
|
|