Hello, I would be grateful for some help!
I want to clone the part that falls into the void, back to a safe spot.
So I’m using a part as a parent for a script and an unanchored part,
the script handles a loop which looks for the unanchored part’s death and clones it
local RespawnPoint = script.Parent
local RespawnPoincf = RSP.CFrame
while true do
RespawnPoint.DescendantRemoving:Connect(function(part)
if part.Name == "PartOrignial" then
print("part destroyed")
local clone = part:Clone()
clone.Parent = script.Parent
clone.CFrame = RespawnPoincf
end
end)
wait(1)
end
Issue : when it does clone, it does it more than once. (it makes many clone parts)
It would be awesome to know why DescendantRemoving:Connect fires like 4 sometimes 6 or 9 times.
And mainly how to make it so it only makes one cloned part. Thank you!