Animation resets before looping

I made an animation and looped it but every time it loops it stops then plays again like this

unknown1
unknown2
image

On the third image you can see that it sits still until it plays again.

How can I fix this?

Here’s my script for it if it helps

local Gohan = script.Parent
local FloatAnim = Gohan.FloatAnim
local Humanoid = Gohan.Humanoid
local LoadedAnim = Humanoid:LoadAnimation(FloatAnim)
LoadedAnim:Play()

PS: I don’t know what category this goes in so sorry if it’s in the wrong one

2 Likes