So just recently my animations started to suddenly stutter for no reason, i've checked the code, tried older code, tried playing them alone with the dev console, still happens.

I also tried reuploading the animations wich are much smoother and still nothing changes.

Example of stuttering

Uploaded Animation

Code I use to play the equip and unequip animations

local debounce = false
function onKeyPressed(Input, Chatting)
	if Chatting then
		do return end
	else
		if not debounce then
			debounce = true
			if Input.KeyCode == Enum.KeyCode.E and canequip == true and isattacking == false and isblocking == false then
				equipTrack:Play()
				wait(equipTrack.length)
				equippedTrack:Play()
				canattack = true
				canequip = false
			elseif Input.KeyCode == Enum.KeyCode.E and canequip == false and isattacking == false and isblocking == false then
				canattack = false
				unequipTrack:Play()
				equippedTrack:Stop()
				wait(unequipTrack.length)
				canequip = true
			end
			debounce = false
		end
	end
end
uis.InputBegan:Connect(onKeyPressed)

1 comment

0

I changed the easing style of the keyframes that were cubic to linear and now it's not doing it anymore, why does it stutter in game but not in studio though?