Hi I made a placement system where players can place tape but issue I am having is when the player leaves the game it won’t destroy all the tape only 1 here is my script:
game.Players.PlayerRemoving:Connect(function(player)
if workspace:WaitForChild(player.Name.."Tape", 5) then
local Taper = workspace:WaitForChild(player.Name.."Tape", 5)
Taper:Destroy()
end
end)
@shadowmaster940’s solution should work.
I just wanted to add that if I were you, I would make all the tapes spawn under a “tape” folder, just for organising purposes.
This also gives the script a easier time finding all the tapes, since all it would need to do is delete the folder’s children.