I have a code that moves a player forwards two studs based on which direction they are facing. However, after the first time the script it run, the LookVector no longer updates, so the character moves in the same direction no matter the actual facing direction.
local primary = player.Character.PrimaryPart
repeat
primary.CFrame = primary.CFrame + primary.CFrame.LookVector * 2
task.wait()
until isFlying == false