so whenever i put my lightsaber in the starter pack perfection weld works perfectly but when I clone it from replicated storage then it breaks down and doesn't work here's the code I put inside the button to switch the lightsaber out and whever that happens its just the handle that appears in my hand I'm new to this platform so idk how to get the start and end of the code into the code box sry

function leftclick() local player = game.Players.LocalPlayer local inHand = player.Character:FindFirstChildOfClass('Tool')

local inBackpack = player.Backpack:FindFirstChildWhichIsA('Tool')

if inHand then

	inHand:Destroy()

end

if inBackpack then

	inBackpack:Destroy()
	

end

	local backpack = player:WaitForChild("Backpack")
	local cloneTool = game.ReplicatedStorage.Bluesaber:Clone()
	cloneTool.Parent = backpack

end script.Parent.MouseButton1Click:Connect(leftclick)