When I click a part using click detector, it gets removed. I want it to get removed then wait 20 seconds to come back.
ClassicSword = game.Workspace.ClassicSword
ClassicSword2 = game.Lighting.ClassicSword
function onClicked(playerWhoClicked)
ClassicSword:Destroy() --Use Destroy, it is MUCH more efficient.
wait(.5)
ClassicSword2:Clone().Parent = playerWhoClicked.Backpack --Parent the tool from playerWhoClicked, which is the character who clicked the ClickDetector which is on line 5.
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)

2 comments
It never gave me weapon
Make sure
ClassicSword:Clone().Parent = playerWhoClicked.Backpackis in your script?