I have a Jet and i made a script and put in there so it looks like its flying but its actually running CFrames really fast, but then when i play it flies sideways, its a mesh Jet by the way and it has a invisible block in it that i cant ungroup from the jet or move without moving the jet. How would i make it so the jet flies straight?

while true do

for i = 1000, -1000, -20 do

    workspace.p.CFrame = CFrame.new(Vector3.new(i, 20, 0))
 

    wait(.001)

 

end

    end

7 comments

0

You need to base the new cframe off of the lookvector of the part.

0

How do i do that?

0

Actually, which side of the aircraft is forward? X axis, or Z?

0

x

0

Is that the orientation of every part in the aircraft? Or, more specifically, the part you use to move it?

0

the part

0

I found a way but i can't get it completely straight..