I am currently making a weapon(or weapons for this matter) that is two different weapons, one going in each hand. The only problem is, I can't seem to get the weapon to move from the character's hand into any other position. Obviously I can make it move by typing 1 or 5 into the CFrame values, but I'm trying to make the weapons basically welded to the character's hands. This is the script I have, please help me fix it. Thank you :) This is a local script in the weapon
player = game.Players.LocalPlayer
character = player.Character
LArm=script.Parent.Parent:WaitForChild("Left Arm")
RArm=script.Parent.Parent:WaitForChild("Right Arm")
function KaiWeld()
local w1 = Instance.new("Weld")
w1.Parent = script.Parent.Handle
w1.Part0 = w1.Parent
w1.Part1 = script.Parent.Handle-------- This is the weapon that goes in the character's Right hand
w1.C1 = CFrame.fromEulerAnglesXYZ(1, 0, 0) * CFrame.new(RArm.Position.CFrame.new(0,0,0),0,0)
local w2 = Instance.new("Weld")
w2.Parent = script.Parent.Handle
w2.Part0 = w2.Parent
w2.Part1 = script.Parent.Handle1-------- This is the weapon that goes in the Character's Left hand
w2.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(LArm.Position.CFrame.new(0,0,0),0,0)
end
script.Parent.Equipped:connect(KaiWeld)
script.Parent.Unequipped:connect(KaiWeld)
