It also needs to be able to get the sword again after it was taken from inventory because i also have a part that takes it.
local debounce = false
script.Parent.Touched:Connect(function(hit)
if not debounce then
debounce = true
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
local LinkedSword = game.ServerStorage.ClassicSword:Clone()
LinkedSword.Parent = player.Backpack
wait(3)
debounce = false
end
end)

1 comment
thank you!!