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?
Put this code in a LocalScript in-side StarterGui:
game:GetService("StarterGui"):SetCoreGuiEnabled("Health",false)
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