Let's say that I have a tool, and the tool spawns "ToolSpawnedParts" that will be placed on the ground. I made a seperate script that is supposed to be in Workspace. It's supposed to clean up all "ToolSpawnedParts" in Workspace, but it doesn't work. It doesn't say anything in the output, I tried functions, waits, and changed. Can anyone help?
function toolCleanup() wait(8) workspace:FindChildren("ToolSpawnedParts") workspace.ToolSpawnedParts:remove() end workspace:connect(toolCleanup)