if game.workspace.PartTest1 = 10 then
PartTest1: all Destroy()
What is the issue? I tried a lot through the nil
If PartTest = nill then
print ("wow EPIC")
else
wait(4)
Part:Delet()
end
end
But its not work
3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I honestly searched but did not see. I need your help:)
Try making a folder for the parts. Basically, when they spawn, parent them to the folder, then use a for loop to cycle through them. You can click the links below to learn about them!
Here, try this script and it will work for sure
It’s a serverscript (normal script not local script)
local TimeForRemove = 1
local TimeForCheckForPart = 5
while wait(TimeForCheckForPart) do
for i, v in pairs(game.Workspace:GetDescendants()) do
if v.Name == "PartTest1" then
game.Debris:AddItem(v, TimeForRemove)
end
end
end
the funny thing is that I already made a script and just now I saw your help But I’ll mark yours as the answer. Thanks for the help! I like people like you