Player Inventory Disabled on Death

Hey, so I’ve been wondering on how to make the Roblox inventory system to be disabled when a player is dead and re-enable when a player is alive. Help is really needed, thanks!

1 Like

Oh, that’s simple, just put it at the start and change the false to true!

game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
local humanoid = script.Parent:WaitForChild(“Humanoid”)


humanoid.Died:Connect(function()
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
end)
1 Like