Ad
Log in to vote
1

Why My animation got conflicted by Roblox's walkanimation?

Asked by 2 months ago
Edited 2 months ago

I'm was thinking about this is a conflicting animation maybe.
These is my codes:

function onKeyPress(inputObject, gameProcessedEvent)
    if MovingKeys then
        Moving = true
        if ControlHolding then
            print("HEY!")
            SquatMoving:play() --It got conflicted by roblox's walking animation :C
        end
    end
end
game:GetService("UserInputService").InputBegan:connect(onKeyPress)

I actually get HEY! too, but it still not playing. How do i fix them?
Thanks for help!

0
It's probably Roblox's Animator script. Color3fromRGB 109 — 2mo

1 answer

Log in to vote
0
Answered by 2 months ago

What you need to do is go back to the animator, load the animation you currently have and press on settings and change the priority of the animation to Action this means that this animation is more important then Roblox's animation and so your animation actually will overlap Roblox's animation.

For more information on animation check here: http://wiki.roblox.com/index.php?title=Animations

This is a simple setting change in the Plugin, your code looks fine to me, if it happens to error comment your error and I will get back to you.

Hope this helped!

0
Ooooooh!!! this is REALLY worked!! thank you very very much! MEndermanM 64 — 2mo
Ad

Answer this question