basically this code is meant to disable some GUI, it works, but Inventory And DInventory Do Not Get Disabled.
for i,v in pairs (game.Players:GetChildren()) do v.Team = game.Teams.Survivors local machinegui = v.PlayerGui:WaitForChild('Machines') machinegui.Enabled = true local ib = v.PlayerGui:WaitForChild('InventoryButton') ib.Enabled = false local dib = v.PlayerGui:WaitForChild('DInventoryButton') dib.Enabled = false local i = v.PlayerGui:WaitForChild('Inventory') i.Enabled = false local di = v.PlayerGui:WaitForChild('DInventory') di.Enabled = false local s = v.PlayerGui:WaitForChild('RobuxShop') s.Enabled = false end
Use .Visible
instead of .Enabled
. Enabled
isn't a real thing, and therefore you shouldn't use it.