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: anyone know how to script health giver?

Previous Thread :: Next Thread 
minerdude8890 is not online. minerdude8890
Joined: 04 Aug 2014
Total Posts: 76
29 Jun 2016 04:17 AM
i want to know how to script a giver which increases you health by 200 or something like that does anyone know?


Report Abuse
j_ffrey is not online. j_ffrey
Joined: 12 Apr 2015
Total Posts: 262
29 Jun 2016 04:24 AM
v = game.Players.LocalPlayer
f = game.Workspace:FindFirstChild(v.Name)
f.Humanoid.MaxHealth = 200
f.Humanoid.Health = 200

or

v = game.Players.LocalPlayer
v.Character.Humanoid.MaxHealth = 200
f.Humanoid.Health = 200


Report Abuse
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
29 Jun 2016 04:26 AM
create a touched function, checking to see if hit.Parent has a humanoid, then do;

hit.Parent.Humanoid.MaxHealth = hit.Parent.Humanoid.MaxHealth + 200
hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health + 200



Report Abuse
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
29 Jun 2016 04:27 AM
@j_ffrey if you keep making them stuff, they will not know what it does, and they will keep posting ugly threads like this.


Report Abuse
minerdude8890 is not online. minerdude8890
Joined: 04 Aug 2014
Total Posts: 76
29 Jun 2016 04:28 AM
inside the part that gives or inside the model?


Report Abuse
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
29 Jun 2016 04:31 AM
Figure it out yourself. If you don't know how to script don't post any threads here.


Report Abuse
TheAddictPlayer is not online. TheAddictPlayer
Joined: 21 Jun 2014
Total Posts: 2003
29 Jun 2016 04:38 AM
local deb = true
local Debounce_Delay = 6 -- Cooldown (in seconds)
script.Parent.Touched:connect(function(Part)
print("Checking Humanoid...")
local h = part.Parent:FindFirstChild'Humanoid'
if h ~= nil then
if not deb then return end
deb = false
h.Health = h.MaxHealth
wait(Debounce_Delay)
deb = true
end)


"When you're gonna do something stupid then don't do it it's simple as 123" - TheAddictPlayer | RIP Tickets you'll be always missed ;-; 2006-2016 | Errare humanum est, perseverare diabolicum | Current RAP: R$242
Report Abuse
minerdude8890 is not online. minerdude8890
Joined: 04 Aug 2014
Total Posts: 76
29 Jun 2016 04:50 AM
bump


Report Abuse
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
29 Jun 2016 04:52 AM
I've lost faith in OP, doesn't try to do anything and just bumps hoping that someday someone will tell him the answer. You can learn more if you just do it yourself bro.


Report Abuse
minerdude8890 is not online. minerdude8890
Joined: 04 Aug 2014
Total Posts: 76
29 Jun 2016 04:53 AM
how about you stop posting things like this. im just trying to get more attention


Report Abuse
minerdude8890 is not online. minerdude8890
Joined: 04 Aug 2014
Total Posts: 76
29 Jun 2016 04:55 AM
oh and im trying to learn but i dont just understand.


Report Abuse
minerdude8890 is not online. minerdude8890
Joined: 04 Aug 2014
Total Posts: 76
29 Jun 2016 05:02 AM
wait i know NOW! just do killing brick script and edit it!


Report Abuse
DurstAuric is online. DurstAuric
Joined: 12 May 2009
Total Posts: 8066
29 Jun 2016 05:03 AM
I'm not creating it for you, but I'll give the basis. Use what's been said above to work it out yourself.

debounce which equals false
check to see if the part has been touched, connecting it with a function with pars of hit
check to see if the hitter contain's a humanoid and if debounce is false then
debounce is true
variable of the humanoid
humanoid's health + how much you want them to get
debounce is false
end the check
end the function


-=[ RAP: 344,149 || DurstAuric; the narb of ROBLOX ]=-
Report Abuse
Lem0nzzx is not online. Lem0nzzx
Joined: 08 Feb 2016
Total Posts: 1604
29 Jun 2016 05:08 AM
Just free model it.. It's what you do best. 'healing pad'.


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