|
| 28 Nov 2013 03:42 PM |
I'm trying to make a button that heals you when you click it. Here's the script I have so far. I don't know what's wrong.
function onClicked() local player = game.Players.LocalPlayer local h = player.Character:findFirstChild("Humanoid") h.Health = h.Health + 50 end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Any help would be great! |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
UnAdmin
|
  |
| Joined: 10 Jul 2012 |
| Total Posts: 4706 |
|
| |
|
|
| 28 Nov 2013 04:26 PM |
Sorry, I'll move the post.
|
|
|
| Report Abuse |
|
|