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

How do I make the default roblox hotbar visible when I equip an Item?

Asked by 4 years ago

Here is an example https://gyazo.com/36004da386e651f4f6307a8849cec175 I need it to go into my hotbar when I equip, and when I unequip it goes back into my inventory. This is the only relatable code I found in the script.

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack,false)
0
The link to the photo doesn't work. AlmostADemon 50 — 4y
0
For some odd reason it got blocked https://gyazo.com/60a83332ad80fe9dc6fac41be192ff3f joshsharpe07 -1 — 4y

1 answer

Log in to vote
-1
Answered by
n_ubo 29
4 years ago

Please provide explanation with your answers. Simply posting code does not spread knowledge of integral scripting processes which helps people understand the logic and reasoning behind your answer.

try

--localscript inside the tool
tool = script.Parent

tool.Equipped:Connect(function()
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack,true)

end)

tool.UnEquipped:Connect(function()
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack,false)

end)
0
Whenever I equip a item all the other items pop up in the hotbar, I just need the one item joshsharpe07 -1 — 4y
Ad

Answer this question