The fish is doing a weird flip every time it moves.
local Humanoid = script.Parent.Humanoid
local HumanoidRootPart = script.Parent.HumanoidRootPart
while true do
local pos = HumanoidRootPart.Position
local TargetPos = Vector3.new((pos.X + math.random(-30, 30)), pos.Y, (pos.Z + math.random(-30, 30)))
local direction = (TargetPos - pos).unit
HumanoidRootPart.CFrame = CFrame.lookAt(pos, TargetPos)
wait()
Humanoid:MoveTo(TargetPos)
Humanoid.MoveToFinished:Wait()
end
This is what I use to move the fish

This is how the fish is structured
What can I do to fix this flippy move?