game.Workspace.FilteringEnabled = true if game.Workspace.FilteringEnabled == false then do game.Workspace.FilteringEnabled = true wait(1) if game.Workspace.FilteringEnabled == false then local Var = game.Workspace:GetChildren(Players) print (Var) wait(1) game.Workspace:GetChildren():Remove end end
There is a problem in line 11
You forgot the () at the end of :Remove
game.Workspace.FilteringEnabled = true if game.Workspace.FilteringEnabled == false then game.Workspace.FilteringEnabled = true wait(1) if game.Workspace.FilteringEnabled == false then local Var = game.Workspace:GetChildren(Players) print (Var) wait(1) game.Workspace:GetChildren():Remove() end end