I’m trying when the part touches it, falls but when is being cloned it doesn’t work The code works in general but the clone not.
local FallPart = script.Parent.FallPart
local PartPosition = script.Parent.FallPartParent
local Debounce = false
local ClonePart = FallPart:Clone()
local function Touched(hit)
if not Debounce then
Debounce = true
local hum = hit.Parent:FindFirstChild("Humanoid")
if hum then
print("Got Touched")
FallPart.Anchored = false
FallPart.ParticleFall:Emit(30)
task.wait(3)
FallPart:Destroy()
ClonePart.Position = PartPosition.Position
ClonePart.Parent = workspace.FallParts
Debounce = false
end
end
end
FallPart.Touched:Connect(Touched)