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

Why is my dual welding sword script not working?

Asked by 3 years ago

Can someone help please, my dual sword script is not working. When I equip it it does not go in my hands instead in the workspace.

local equip = game.ReplicatedStorage.EquipBSword
local unequip = game.ReplicatedStorage.UnequipBSword


equip.OnServerEvent:Connect(function(plr)
    local char = plr.Character
    local handle = script.Parent.Parent.RHandle
    local handle2 = script.Parent.Parent.LHandle
    local RH = char:WaitForChild("RightHand")
    local LH = char:WaitForChild("LeftHand")
    local weld = Instance.new("Weld", handle)
    weld.Part0 = RH
    weld.Part1 = handle
    weld.C0 = CFrame.new(0.2,0,-1.9) * CFrame.fromEulerAnglesXYZ(math.pi/.5,5,0)
    local weld2 = Instance.new("Weld", handle2)
    weld2.Part0 = LH
    weld2.Part1 = handle2
    weld2.C0 = CFrame.new(0.2,0,-1.9) * CFrame.fromEulerAnglesXYZ(math.pi/.5,5,0)
end)

Answer this question