Move part in direction of it facing

Hi, I want to make the part go in the direction it faces

https://cdn.discordapp.com/attachments/859410216461664298/1048794202571538463/2022-12-03_20-43-22.mp4

This is my code for it too move, I linked the file for the model

Spaceship_Demo.rbxm (7.2 KB)

script.Parent.AlignPosition.Position = script.Parent.Position

while true do

script.Parent.AlignPosition.Position = script.Parent.Position + Vector3.new(0,0,1)

wait()

end
1 Like

Try experimenting using a LinearVelocity rather than an AlignPosition, and change its RelativeTo property to the Part

1 Like

use the lookvector of the part

To get the direction it faces use Part.CFrame.LookVector.

GFink is correct, changing the AlignPosition property of what it is relative too should let vector3.new(0,0,-1) be the direction its facing. (Look vectors are negative)

Oh, thanks for mentioning. I’ve never really used body movers and stuck with manual velocity personally so I didn’t know.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.