I made this code which destroys a Clickdetector in the scripts parent and then clones the Clickdetector but the destroying part works but not the cloning part to then create back the clickdetector.
My Code:
local click = script.Parent.ClickDetector --or wherever it is
click.MouseClick:Connect(function(player)
script.Parent.ClickDetector:Destroy()
wait(20)
script.Parent.ClickDetector:Clone()
end)
Thank You and Help is Appreciated

6 comments
u cant clone smth that has been destroyed
bro i answered your last question an hour ago
jesus you have less than half a brain.
@gioni01 your code didnt work
You destroyed the clickdetector so you cannot clone something that is destroyed.
Why would you even want to do this?