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 » Scripters
Home Search
 

Re: Click to Heal button

Previous Thread :: Next Thread 
Leangreen99 is not online. Leangreen99
Joined: 03 Aug 2010
Total Posts: 42
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 is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
28 Nov 2013 03:44 PM
wrong forum, go to SH
Report Abuse
UnAdmin is not online. UnAdmin
Joined: 10 Jul 2012
Total Posts: 4706
28 Nov 2013 04:04 PM
wrong forum, go to hell
Report Abuse
Leangreen99 is not online. Leangreen99
Joined: 03 Aug 2010
Total Posts: 42
28 Nov 2013 04:26 PM
Sorry, I'll move the post.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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