script.Parent.Equipped:Connect(function()
rp = game:GetService("ReplicatedStorage")
Sword1Tool = script.Parent
char = script.Parent.Parent
rp.Sword1ConnectM6D:FireServer(Sword1Tool.BodyAttach)
char.RightHand.ToolGrip.Part0 = char.RightHand
char.RightHand.ToolGrip.Part1 = Sword1Tool.BodyAttach
Sword1Idle = Sword1Tool.Sword1Idle
Sword1Draw = Sword1Tool.Sword1Draw
Sword1Swing = Sword1Tool.Sword1Swing
char.Humanoid:LoadAnimation(Sword1Draw)
end)
script.Parent.Unequipped:Connect(function()
rp.Sword1DisconnectM6D:FireServer()
end)
It outputs no error. What is wrong with this?
