|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 29 Jun 2016 04:28 AM |
inside the part that gives or inside the model?
|
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
| |
|
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 |
|
|
|
| 29 Jun 2016 04:53 AM |
how about you stop posting things like this. im just trying to get more attention
|
|
|
| Report Abuse |
|
|
|
| 29 Jun 2016 04:55 AM |
oh and im trying to learn but i dont just understand.
|
|
|
| Report Abuse |
|
|
|
| 29 Jun 2016 05:02 AM |
wait i know NOW! just do killing brick script and edit it!
|
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|