I am trying to weld a tool to the player’s hand when it is equipped so I don’t have to use the classic “arm-out” animation. I don’t know what I’ve done wrong so I need some help, I’ve never worked with welds in scripting before.
Here is what’s in the LocalScript under the tool:
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local character = Player.Character
local part = script.parent.HeldPart-- Handle that you'd be holding
local weld = Instance.new("Weld",part)
weld.Part0 = part --Attach to the handle
weld.Part1 = character["RightArm"] --Attach to the right hand.
weld.C0 = CFrame.new(0, 0, 0) + Vector3.new(0,character["RightArm"].Size.Y/2,0)