how do i disable these two GUIs?
basically this code is meant to disable some GUI, it works, but Inventory And DInventory Do Not Get Disabled.
01 | for i,v in pairs (game.Players:GetChildren()) do |
02 | v.Team = game.Teams.Survivors |
03 | local machinegui = v.PlayerGui:WaitForChild( 'Machines' ) |
04 | machinegui.Enabled = true |
05 | local ib = v.PlayerGui:WaitForChild( 'InventoryButton' ) |
07 | local dib = v.PlayerGui:WaitForChild( 'DInventoryButton' ) |
09 | local i = v.PlayerGui:WaitForChild( 'Inventory' ) |
11 | local di = v.PlayerGui:WaitForChild( 'DInventory' ) |
13 | local s = v.PlayerGui:WaitForChild( 'RobuxShop' ) |