So I’m making an axe and for the 2nd and 3rd swings, they are completely bugged from the actual animation.
Actual Animations
In Game
As you can see the first clip doesn’t have the arms move the same as in the second clip
Here is the code, it’s in a script that’s in a tool.
local CombatInfo = {
script.Swing1,
script.Swing2,
script.Swing3,
script.Swing4,
script.Swing5
}
local Debounce = true
script.Parent.Activated:Connect(function()
if Debounce then
Debounce = false
local Character = script.Parent.Parent
Current = tick()
local Fix = Current - Previous
Previous = Current
if Fix < 1.2 then
Count += 1
if Count > 5 then
Count = 1
end
else
Count = 1
end
local Swing = Character.Humanoid.Animator:LoadAnimation(CombatInfo[Count])
Swing:Play()
Swing:AdjustWeight(2)
Swing:AdjustSpeed(1.2)
Swing.Stopped:Connect(function()
Hitbox:Destroy()
if Count == 5 then
wait(1)
end
Debounce = true
end)
end
end)
You shouldn’t rely on this, it could be removed and you don’t want to be one of the people to have kept it disabled despite Roblox telling you to make your game compatible.
What you should do (if your animations are fixed by this) is open your animation in the built-in animation editor (because Moon Animator doesn’t let you control this, for some reason) and set the priority correctly.
Why does this "fix" (AnimationWeightedBlendFix) "break" my game?
Currently, there’s a bug in the animation blending code that can make an animation completely override another if they both have the same priority.
Animation1 - Plays with priority “Action” (default for Moon Animator, but applies to all other priorities)
Animation2 - Also plays with priority action
The old behaviour used to play Animation2 over Animation1, so Animation1 wouldn’t be visible, but the new behaviour, which you can turn on by setting AnimationWeightedBlendFix under Workspace to Enabled or Default, mixes the animations 1 : 1, which is a more desirable result, since simply changing the order of the :Play() calls in the older behaviour would result in the wrong thing playing.
I have tried removing the weight part and it didnt do anything and i dont think the priority is the problem but ill try and do it with the animation editor