#can someone help me fix a "This Mouse is no longer active" error?

1 messages · Page 1 of 1 (latest)

lucid lionBOT
#

studio** You are now Level 3! **studio

runic widget
#

more of my code cuz too many characters to fit in one message:

tool.Equipped:Connect(function(mouze)
    mouse = mouze
    char = char or tool.Parent

    if not motor6d then
        motor6d = Instance.new("Motor6D")
        motor6d.Name = "AirStrike"
        motor6d.Part0 = char:FindFirstChild("Right Arm")
        motor6d.Part1 = handle
        motor6d.Parent = char:FindFirstChild("Right Arm")
    end

    local humanoid = char:FindFirstChildOfClass("Humanoid")
    if humanoid then
        equipanim = humanoid:LoadAnimation(animFolder.Equip)
        idleanim = humanoid:LoadAnimation(animFolder.Idle)
        equipanim:Play()

        task.delay(0.2, function()
            idleanim:Play()
        end)

        task.delay(equipanim.Length, function()
            equipped = true
        end)
    end
end)