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)