Give tool to player

I’m trying to make an item that when you click it gives you a new item,
I have this script here but how would I make it so that it gives you it?

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local db = false
db = false

local tool = script.Parent

script.Parent.Equipped:Connect(function(Mouse)
	Mouse.Button1Down:Connect(function()
		if db == false then
			animation = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(script.Parent.Animation)
			db = true
			

			game.ReplicatedStorage.RemoteEventTest:FireServer()

			animation:Play()
			wait (1)
			tool:Destroy()
			wait (5)
			db = false
		end
		
	end)
end)

script.Parent.Unequipped:Connect(function()
	
	animation:Stop()
    
end)
3 Likes
script.Parent.ClickDetector.MouseClick:Connect(function(player)

game["Wherever your tool is"]["Tool Name"]:Clone().Parent = player.Backpack

end)
4 Likes