|
| 11 Sep 2014 07:09 PM |
This is in a part>surfacegui>textbutton but it doesn't work.
script.Parent.MouseButton1Down:connect(function() game.Players.fruitygeneration.Humanoid.Health = 0 end) |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2014 07:11 PM |
the humanoid is not in your player it is in your character |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Sep 2014 07:13 PM |
| it still doesn't do anything |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2014 07:15 PM |
| what did u write as ur script? |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2014 07:15 PM |
script.Parent.MouseButton1Down:connect(function() game.Players.fruitygeneration.Character.Humanoid.Health = 0 end) |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2014 07:17 PM |
since character is in workspace try this
script.Parent.MouseButton1Down:connect(function() character = game.Workspace:findFirstChild("fruitygeneration") if character and character:findFirstChild("Humanoid") then --check if it is there character.Humanoid.Health = 0 end end) |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Sep 2014 07:19 PM |
| let me try it on a surface gui... brb |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2014 07:24 PM |
script.Parent.MouseButton1Down:connect(function() character = game.Workspace:findFirstChild("FutureWebsiteOwner") if character and character:findFirstChild("Humanoid") then --check if it is there character.Humanoid.Health = 0 end end)
this works for me... try clicking the button a few times maybe? |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Sep 2014 07:38 PM |
well... it works for me i would check everything you have make sure it is a button and make sure your name matches the name in the script |
|
|
| Report Abuse |
|
|