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

Problem with my Backpack remover script? [ANSWERED]

Asked by
Relatch 550 Moderation Voter
10 years ago
game.StarterGui:SetCoreGuiEnabled("Backpack", false)

There is no error, it just doesn't remove it. When I join my game, it's still there. Help?

2 answers

Log in to vote
0
Answered by 10 years ago

This needs to be in a local script in the StarterGui

local StarterGui = Game:GetService('StarterGui')

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

Pulled straight from this wiki article: http://wiki.roblox.com/index.php?title=Disabling_parts_of_the_game_interface

0
Local script or regular? Relatch 550 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

For this to work, it needs to be run within a LocalScript, if it is in a normal script it will have no effect, this local script also then needs to be placed in the starterpack else it will not run due to not being in the player.

Other than that I'm not sure.

Answer this question