I've been trying to make a space game, but the problem is that when I want to move my ship I just use .lookVector
to get my velocity. But in order to use that to go left, is a problem. Anyone know a way to do this?
Rotate the CFrame counterclockwise along its Y (vertical)-axis by 90 degrees, then get its .lookVector:
local part = script.Parent local pushdirection = (part.CFrame * CFrame.Angles(0, math.pi/2, 0)).lookVector -- Gets the part's CFrame, rotates it 90 degrees (math.pi/2 radians) counterclockwise along its Y-axis so that faces the left, and then gets its lookVector. local pushvelocity = 400 part.Velocity = pushdirection * pushvelocity