Glitching in my custom walking animation/Code

I have been making a boss fight game but I have encountered a glitch in the coding that I cant seem to fix. Basically there is this custom walking animation played by functions to make the boss move,but half of the time the boss itself teleports and glitches around.
Please help me with this and here is the game :CoSpaces Edu :: Caseoh fight yes
Thank you.

1 Like