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

4 comments
i forgot to mention that Inventory and DInventory have a UIGridLayout Inside Of Them.
This must work, for some reason I don't know why. Re-try
@Gabe_elvin1226aclan it just doesn't seem to be disabled, it's so odd, like what am i supposed to do? is it a problem with roblox or something?
Is this a LocalScript or Script