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

How do you hide the Backpack and Health bar?

Asked by 10 years ago

I need help trying to script to hide the Backpack and Health bar. I do not want to take FM's I just have a little trouble to script this. Please help.

2 answers

Log in to vote
-2
Answered by 10 years ago

(Use a local script here)

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)

I think that should work.

0
It doesnt for some reason RedstoneStudios 0 — 10y
0
You need to put that code into a local script, then place the local script in the StarterGui. Chaotic_Cody 154 — 10y
0
Did you use a local script? My_Comment 95 — 10y
Ad
Log in to vote
1
Answered by 10 years ago

In a LocalScript, use the SetCoreGuiEnabled method to hide the two CoreGuis like so:

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Health, false)
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)

Answer this question