You've probably seen this question before, The "Terrain" and "Camera" in Workspace is still annoying me :/
I am trying to make a CleanUp script for glitched out debris in the workspace, but there are so many parts to be named, I decided to go with a script that deletes everything outside a folder Called "World"
local Time = 5 -- The time you want it to disappear (Short time for testing purposes)
while true do
for i, v in pairs(workspace:GetChildren()) do -- Getting all the children in workspace
if v.Parent ~= workspace.World and v.Name ~= "Terrain" and v.ClassName ~= "Camera" and v.Name ~= "World" then
v:Destroy()
end
end
wait(Time) -- Wait to stop the loop from breaking the game.
end
Attempts: -Tried to Make a StarterCharacter script which parents you to the folder, Output says no

1 comment
Yes, Thank you very much!