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

How can the heath bar be hidden?

I had an old script that hid the heath bar at the bottom of the screen. However, after an update to the heath bar, it stopped working.

Here is a copy of the script.

while true do

for inx, val in pairs(game.Players:GetPlayers()) do 
if val:FindFirstChild("PlayerGui") then 
if val.PlayerGui:FindFirstChild("HealthGUI") then 
val.PlayerGui.HealthGUI:Remove() 
end 
end 
end 

wait()
end

Is there a way to salvage this?

3 answers

Put this in a LocalScript in StarterPack.

game.Players.PlayerAdded:connect(function()
	game.Players.LocalPlayer.Character.Humanoid.Name = "humanoid"
end)

Put this into the workspace as a normal script.

Game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(char)
char.Humanoid.NameOcclusion = Enum.NameOcclusion.OccludeAll
end
end

1 comment

0

Whats with all the down votes?!?! It's what he needed!

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