I am trying to make a Backpack Gui to overpower the Roblox CoreGui, with that it disables the scripts along with this Gui. I am wondering how you would go about enabling a HopperBin in a script. I have checked the Core Script on github, have tried taking a look at some free models (those models will give you the same script as the github link), and I have looked at the API for HopperBins.
I have tried the .Active property, and it does not seem to want to do anything.
Here's the current script I have tried so far, any help would be appreciated. Thank you.
function ActivateHopper(Hopper) Hopper.Active = true end function DeactivateHopper(Hopper) Hopper.Active = false end function Select(Item) if not equipping and script.Parent.Hold:FindFirstChild(tostring(Item)) then newItem = script.Parent.Hold[Item] if newItem.Value.Value.ClassName == "HopperBin" then ActivateHopper(newItem.Value.Value) end end end game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key) if key:byte()-48 >=0 and key:byte()-48 <= 9 then Select(key:byte()-48) end end)