- What do you want to achieve? Keep it simple and clear!
I want my inventory to hide when I activate a tool and then re-appear after I activate the tool again.
- What is the issue? Include screenshots / videos if possible!
When I activate the Tool the inventory won’t hide. There was no error in the output either.
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I looked for solutions on many posts but none seem to be the solution to my problem.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
Here is the script that I ended up with:
local Debounce = false
script.Parent.Activated:Connect(function()
if Debounce == false then
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack,false)
Debounce = true
end
if Debounce == true then
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack,true)
Debounce = false
end
end)
I would be happy if anyone could help me!