Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Trying to make the tool weld to the torso but it just unequips and dosent do anything?

Asked by 2 years ago
Edited 2 years ago

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)

0
are you putting that in a local script, or a server script? Xyternal 247 — 2y
0
i put it in the tool as a local script AlphaRedAnt -4 — 2y

Answer this question