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
local player = game.Players.LocalPlayer local mouse = player:GetMouse() function keyD(key) local key = key:lower() local hotkey = script.Hotkey.Value if key == hotkey then local animation = Instance.new("Animation") animation.AnimationId = "rbxassetid://2737702733" local animloader = player.Character.Humanoid:LoadAnimation(animation) animloader:Play() end end mouse.KeyDown:connect(keyD)
If someone could edit it i would be thank full.
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.