In my starwars game I have a blocking and holding system but this weird bounce thing happens with the left arm.
I have tried setting the proity to action 4 but it doesnt help. I have searched up on google and nothing came up.
can anyone help??
main part of my code:
spawn(function()
while wait() do
mb2 = UIS:IsMouseButtonPressed(Enum.UserInputType.MouseButton2)
--print(mb2,swing,e,blocking)
if mb2 == true and swing == false and e == true and blocking == false then
print(print(loadedAnims[2]))
blocking = true
local char = plr.Character
local hum = char:WaitForChild("Humanoid")
loadedAnims[1]:Stop()
loadedAnims[2] = hum:LoadAnimation(anims[2])
loadedAnims[2].Priority= Enum.AnimationPriority.Action3
loadedAnims[2].Looped = true
loadedAnims[2]:Play()
sounds[4].PlaybackSpeed = 0.975
script.Block:FireServer(true)
else
warn(print(loadedAnims[2]))
if mb2 == false and e == true and swing == false then
loadedAnims[1]:Play()
blocking = false
if loadedAnims[2] ~= nil then
loadedAnims[2]:Stop()
loadedAnims[2] = nil
sounds[4].PlaybackSpeed = 1
end
end
end
end
end)
it wasnt the easing style and im still unsure of why it happend but i basically made a animation where the character would change from blocking to holding and play that then start the holding animation and it worked