#why does run animations doesn't play ever until reset when using skill that plays other animation

1 messages · Page 1 of 1 (latest)

regal valley
#

code for skill:

M1AlreadyPro.OnServerEvent:Connect(function(plr)
    local char = plr.Character
    local overlapParams = OverlapParams.new()
    plr:SetAttribute("Attacking",true)
    overlapParams.FilterType = Enum.RaycastFilterType.Exclude
    overlapParams.FilterDescendantsInstances = {char}
    local hrp = char:FindFirstChild("HumanoidRootPart")
    local hum = char:FindFirstChild("Humanoid")
    local anim = Instance.new("Animation")
    anim.AnimationId = "rbxassetid://89111951807992"
    local track = hum:LoadAnimation(anim)
    track:Play()
    local hitbox = HitboxModule.CreateHitbox()
    hitbox.Size = Vector3.new(4, 5, 5)
    hitbox.CFrame = hrp
    hitbox.Offset = CFrame.new(0,0,-3)
    hitbox.OverlapParams = overlapParams
    hitbox.VelocityPrediction = true
    hitbox.VelocityPredictionTime = 0.2
    hitbox.VisualizerColor = Color3.new(1, 0, 0.0156863)
    hitbox.Touched:Connect(function(hit, humanoid)
        
        humanoid:TakeDamage(10)

    end)
    debris:AddItem(anim,1)
    wait(0.3)
    hitbox:Start()
    wait(0.5)
    hitbox:Stop()
end)
regal valley
regal valley
#

?

regal valley
#

OKAY GUYS
THE UPDATE
USING ANIMATOR INSTEAD OF HUM LOAD ANIMATION WORKED

lilac ocean
#

Is it hum.Animator:LoadAnimation ?

daring leafBOT
#

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

regal valley
daring leafBOT
#

studio** You are now Level 10! **studio

regal valley
#

you are kinda late

#

just a little bit