Here is the script.
player = Game.Players.LocalPlayer player1 = player.Character BP = Instance.new("BodyPosition")
BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
if key == "d" then while wait(.1) do local Lv = Workspace.Camera.CoordinateFrame BP.position = player1.Torso.Position BP.position = BP.position + speed * Lv.lookVector -- can you edit this to make the player fly to the right end end