Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
2

How can i stop jump animation from canceling my animation?

Asked by
KOK_E 12
6 years ago

This question has been solved by the original poster.

The problem i am having is i am making animation tools but when i jump it cancels the animation and if i press it while jumping it doesn't really work... this is the script

01local player = game.Players.LocalPlayer
02local mouse = player:GetMouse()
03 
04function keyD(key)
05    local key = key:lower()
06    local hotkey = script.Hotkey.Value
07    if key == hotkey then
08 
09local animation = Instance.new("Animation")
10        animation.AnimationId = "rbxassetid://2737702733"
11local animloader = player.Character.Humanoid:LoadAnimation(animation)
12        animloader:Play()
13    end
14end
15 
16mouse.KeyDown:connect(keyD)

If someone could edit it i would be thank full.

1
Use :Connect, this will not fix it yet help in the near future. WideSteal321 773 — 6y
0
Make the priority of your animation higher than the jumping one or don't load the jumping one at all gullet 471 — 6y
0
Already found solution thanks to kingdom5 KOK_E 12 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

Import the animation into your animation editor and change the "Priority" setting to something higher than your other animation's priority setting. You can find the priority setting under the "edit" tab on the animation window.

Ad

Answer this question