Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I remove the Health GUI?

I'm making a shooting game, both 1st and 3rd person and I'm adding my own personal health GUI, I was wondering how you can remove the other one? I tried a basic script but got stuck, so it went like this:

Game.Players. ?? PlayerGUI.HealthGUI:remove()

I'm not sure what to do. Please reply with a working script. Thank you for reading

-iFluster

5 answers

✓ Accepted answer
game.StarterGui:SetCoreGuiEnabled("Health",false)



This should work. Have a nice day

Try Using This Script and put in the StarterGUI:

wait(1) if script.Parent:FindFirstChild("HealthGUI") ~= nil then script.Parent.HealthGUI:remove() wait(0.5) script:remove() end

This script will remove the Players HealthGUI(which btw has recently changed :D) when the data is loaded.

Make a normal script on your PlayerBackpack. Put inside :

wait(3) 
if script.Parent.Parent.PlayerGui:FindFirstChild("HealthGUI") ~= nil then 
	script.Parent.Parent.PlayerGui.HealthGUI:remove() 
	--Look Down
end

If you are only going to have a script for that 3-line code. You will probably want to remove it.

wait()
script:remove()
local StarterGui = Game:GetService('StarterGui')
 
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)

Put inside of the StarterGUI with a Local Script

This discussion is preserved as it was. New answers, comments, and votes are closed.