how can i remove or make unable to use the inventory system which is oppened with "?
use this:
local StarterGui = game:GetService("StarterGui") StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
but you should also check here: https://developer.roblox.com/en-us/articles/Disabling-Parts-of-Game-Interface