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

How do you make the player equip the tool but the backpack slot/icon is removed?

Asked by 4 years ago

So when you equip a tool, at the bottom of the screen there is always an icon - how do I remove this? Couldn't find anything on the internet so maybe someone who has dealt with this before could help. Thanks!

1 answer

Log in to vote
0
Answered by 4 years ago

Local script in StarterGui:

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

Example local script to equip tool:

local plr = game.Players.LocalPlayer
local char = plr.Character
local hum = char:WaitForChild("Humanoid")
hum:EquipTool(plr.Backpack["Tool"])

For this example to work you must have a tool in StarterPack Named Tool. It doesn't have to be a local script. But LocalPlayer can only be used in local scripts.

0
Oof there is an answer above me :/ PrismaticFruits 842 — 4y
0
Thank you :) TabooAntonioiscool 42 — 4y
0
Don't worry, I removed my answer as yours was more descriptive and actually gave code rather than just a wiki like mine. MrLonely1221 701 — 4y
Ad

Answer this question