Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

BF Medkit Help?

Asked by
KAAK82 16
10 years ago

am stuck a lil... help... I cant find the Thread were I posted my Script, and cant Remember how to do it, I want a Regenerate Script, not an Instant Heal Script, and Plus I want it to stay there... Help me with this guys, am not Reuesting, but I need some help...

0
Gimme 5 mins and i'll answer CardboardRocks 215 — 10y
0
k, thnx KAAK82 16 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago
function onClicked(player)
    player.Humanoid.Health = player.Humanoid.Health + 10 until player.Humanoid.Health >= 100
end

script.Parent.ClickDetector.MouseClick:connect(onClicked)

Something like this

This script would be if you clicked it.

This is just to help you start, if you need more in-depth explanation I would check the wiki. Hope I helped!

0
well, yes, I know this... I just forgot the Script I posted in the Forums and so am here... cos mine was Generating Health Slow, like in BF... btw, would u know by any Chance, if u throw the Medkit, wen it touches the Baseplate, does it count as Touched, cos am confused... KAAK82 16 — 10y
Ad

Answer this question