MaxxusX
(maxxus)
August 8, 2021, 8:16pm
1
I want to disable the health bar but it just reappears
I couldn’t find anything on how to fix it
this is my code, its in a LocalScript in StarterGui
local StarterGui = game:GetService("StarterGui")
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)
4 Likes
Rodtodon
(Rodtodon)
August 8, 2021, 8:44pm
2
Is this in a server-side script or local script? You can only disable core GUIs from a local script.
Which healthbar? If it for the character billboardgui you can do
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
char.HealthDisplayType = 0
end)
end)
This may work
MaxxusX
(maxxus)
August 8, 2021, 9:14pm
4
its the coregui one that appears on the top of your screen
MaxxusX
(maxxus)
August 8, 2021, 9:15pm
5
its a local script not a server side
Have you tried putting this script in the StarterGui as a localscript?
MaxxusX
(maxxus)
August 14, 2021, 3:17am
7
that’s what I did I don’t know how to make it work
bjdanh266
(2odin66)
August 14, 2021, 3:35am
8
local StarterGui = game:GetService("StarterGui")
while not pcall(function()
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)
end) do
wait()
end
I disabled ResetButton same!
1 Like
Try putting this into a localscript in the startergui.
game:GetService("StarterGui"):SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)
Edit: I tried your code, and it still works fine for me.
2 Likes
False, I Would Add A Custom Hum In Starterplayer With That Already Disabled
1 Like
Put A Script Inside Of StarterGui
Put
local StarterGui = game:GetService("StarterGui")
while wait(0.5) do
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)
end
2 Likes
omg i can believe i reviving this topic but yeah i came here to help
just put this:
local rs = game:GetService("RunService")
rs.Heartbeat:Connect(function()
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)
end)```
it fires every frame
Maybe another script is disabling it. add a wait to the beginning incase other scripts are messing it up
By the way.
Type 0 = Show when not full health.
Type 1 = Always show
Type 2 = Never show.
The right type is 2 in this situation.
1 Like
so i think i found the problem. Just put it in StarterPlayer > StarterCharacterScripts
MaxxusX
(maxxus)
June 25, 2025, 3:16am
16
guys this is so old i’ve already moved on to Zig/C, i no longer need help with this, lmao. thanks for the help though
if anyone has the same problem in the future, IIRC i just added a delay or put it in ReplicatedFirst or something
1 Like
system
(system)
Closed
July 9, 2025, 3:17am
17
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.