Dual Wield Script

I found this old tutorial from 3 years ago on how to make a dual wield sword. For some reason when I try to equip the sword, the tool doesn’t even show up when I try to hold it. What’s wrong with the scripts?

I have this in a local script under the tool

local rs = game:GetService("ReplicatedStorage")
local Equipt = rs:WaitForChild("UnEquipt")
local UnEquipt = rs:WaitForChild("UnEquipt")

local tool = script.Parent

tool.Equipped:Connect(function()
	Equipt:FireServer()
	tool.Unequipped:Connect(function()
		UnEquipt:FireServer()
	end)
end)

Then this as a regular script under the local script

local rs = game:GetService("ReplicatedStorage")
local Equipt = rs:WaitForChild("UnEquipt")
local UnEquipt = rs:WaitForChild("UnEquipt")

Equipt.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)

the models must not be anchored they must be held together with welds

How would I do that? By scripting or by welding it through the model tab?

do it manually welding can be tedious so if i were u i would look into using an extension to weld a model together

Alright, thank you for your help.

1 Like

I know I marked this as the solution, but I wanted to try to add an animation to the swords. Welding the models together makes the animation look kinda weird. How should I fix it?

so dont weld the whole model together each sword seperatly like all the parts in one sword weld those together and all the parts in the other weld those together

If i do that then the second sword is completely gone
Screenshot 2023-07-16 192744

Is there a way to weld the second sword to the left hand?