How to find and edit CORE roblox scripts and UI

I’d like to edit a CORE roblox script, I believe it’s called ‘HealthScript’ in-order to change when the red UI overlay turns on, basically it turns on when a humanoid loses 5% or more health from the total it has, I want to amend this value but I’m struggling to find this script within the explorer/directory during runtime.

I’m aware I can create a script, match the name of the CORE script and overwrite it that way, but I’d need to extract the source code first. Any help with this would be appreciated.

I have found a copy of this script from github but not sure if it’s up-to-date, hence my desire to find the script within roblox studio: Core-Scripts/HealthScript.lua at master · Roblox/Core-Scripts · GitHub

2 Likes

Just play test the game and copy and paste the scripts

It’s in the workspace in character in humanoid I think also put that script in StarterCharacterScripts

Hello,

The only script I can see within the explorer is the ‘Health’ script that handles humanoid’s health regen:


However, this script doesn’t contain any information about the UI nor any of the variables that are used to determine the trigger for the appearance of the UI.

If this indeed is the script, although somewhat doubtful, where would I find the CORE UI? since this script isn’t creating the UI it must either already be present within the explorer or created from yet another script.

Oh sorry actually no it’s not in there what do you need it for

You can’t edit CoreGui scripts, If you want custom functionality for your health, I’d recommend disabling the Health CoreGui

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)

and now you can use your own UI

You can fork the health regen script in StarterCharacter but you can’t edit the health CoreGui with that

3 Likes

Due to some security reasons, you can’t legitimately access and edit core scripts and objects on Roblox.

I guess It is also agains’t the Roblox term of use and can make you banned from Roblox for doing it.

I see, in which case I can’t re-use the script from 2017 and tailor it to my needs, good to know.

Thank you all.

It depend what the script is doing.
As it was made in 2017, there can be a lot of deprecated code, functions or services, so you can’t really re use it, the only way is to fully remade the script or a new system.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.