I Want to attach the clone to the torso of the player and then delete when equipped, but dosent clone, nor makes a new instance, ive tried changing local script to script.

local tool = script.Parent
local handle = tool.Handle
local torso = script.Parent.Parent:WaitForChild("Torso", 1)

tool.Unequipped:Connect(function(weld)
	local attachment = Instance.new("Attachment", torso)
	local weld = Instance.new("WeldConstraint", torso)
	local clone = handle:Clone()
	weld.Part0 = torso
	weld.Part1 = handle
	clone.Position = Vector3.new(attachment.Position)
end)

2 comments

0

are you putting that in a local script, or a server script?

0

i put it in the tool as a local script