I’m trying to make an attack where the player can grab someone, but I’m having some issues. Right now, my script welds the players hand to the "victim"s humanoid root part, which is then parented to the player’s humanoid root part:
local hand = player.Character:FindFirstChild("Right Hand")
local function weldToHand(object)
object.Parent = hrp
local weld = Instance.new("Weld")
weld.Part0 = hand
weld.Part1 = object
weld.C0 = CFrame.new(0, 0, 0)
weld.C1 = CFrame.new(0, 0, 0)
weld.Parent = hand
end
This is server side by the way.
This script actually does partially work, but it is not properly welding to the hand.
What is happening:
When I use the attack on someone, it causes their character to spin around according to the animation that is playing. Their character’s position does not change, only their orientation, shown in the image below:
I’ve tried using WeldConstraints too, but that just gave me the same results. I believe there might be a way to use attachments but I’m not sure how.
Please tell me what I’m doing wrong, I would really appreciate it.