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

A script that stops ROBLOX's natural healing?

Asked by
Mystdar 352 Moderation Voter
10 years ago

So you can only heal if you touch a brick that heals you

3 answers

Log in to vote
5
Answered by
M39a9am3R 3210 Moderation Voter Community Moderator
10 years ago

Place in StarterGui or StarterPack.

repeat wait() until script.Parent.Parent.Character:FindFirstChild("Health") --Wait until it exists.
script.Parent.Parent.Character.Health:destroy() --Destroy it.
0
This just gets rid of the health regen not the whole health system right? Mystdar 352 — 10y
0
This is great, thanks! Mystdar 352 — 10y
0
The healthbar can only be removed with CoreGuiEnabled the "Health" script is the regeneration script. fireboltofdeath 635 — 10y
0
@Mystdar Ye It Does, It Just Removes Regen. SharkTailOof 22 — 5y
Ad
Log in to vote
1
Answered by 6 years ago
Edited 6 years ago

insert a Script (not Local Script) into

StarterPlayer > StarterCharacterScripts

you MUST name the script "Health"

then type in:

script:Destroy()

what it does is it replaces the original Health script with the one you've inserted, so each time the player respawns, it'll have that same health script that you've inserted into StarterCharacterScripts

ik this has been 4 years, but just in case you didnt know

this is also the fastest way to do it without doing all of that check if the player has the health script and delete it—from another script

Log in to vote
0
Answered by
Nickoakz 231 Moderation Voter
10 years ago

Remove the health script and add your own to the character at every respawn. Remember, this is not a place to ask.. for... scripts.

Answer this question