Whenever you touch the part you get given multiple swords (For example 9 swords in one touch) how could you limit this to one sword on each touch?
script.Parent.Touched:connect(function(part)
if part.Parent:FindFirstChild("Humanoid") then -- checking if the part is a child of the character
player = game.Players:GetPlayerFromCharacter (part.Parent) -- find the player
Tool = game.Workspace.LinkedSword:Clone()
Tool.Parent = player.Backpack
end
end)

1 comment
You need debounce.