Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can the heath bar be hidden?

Asked by 9 years ago

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

Log in to vote
0
Answered by 9 years ago

Put this code in a LocalScript in-side StarterGui:

game:GetService("StarterGui"):SetCoreGuiEnabled("Health",false)
Ad
Log in to vote
1
Answered by 9 years ago

Put this in a LocalScript in StarterPack.

game.Players.PlayerAdded:connect(function()
    game.Players.LocalPlayer.Character.Humanoid.Name = "humanoid"
end)
Log in to vote
-2
Answered by 9 years ago

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
0
Whats with all the down votes?!?! It's what he needed! Michael007800 144 — 9y

Answer this question