what math methods should i use to get the direction?
i=0
m=1000
angX=script.Parent.Orientation.X;--90
angY=script.Parent.Orientation.Y;--0
angZ=script.Parent.Orientation.Z;--0
dirX=math.cos(math.pi*angX/180)
dirY=math.sin(math.pi*angY/180)
dirZ=math.tan(math.pi*angZ/180)
print(dirX)
print(dirY)
print(dirZ)
repeat
wait(2.5)
print('wow')
workspace.launchingparttest.Position =Vector3.new(workspace.launchingparttest.Position.X+dirX,workspace.launchingparttest.Position.Y+dirY,workspace.launchingparttest.Position.Z+dirZ)
until i>=m
--doesnt move
i tried switching around the cos sin tan log methods but no sucess

3 comments
forgot to put in i=i+1 in line 20
what do you want to make, also what's the dirX, dirY, dirZ in your output
i wanted to make a rocket thing where the angle slowly decreases so i made this test first because i didnt know how to get the direction in 3d also the dirX,dirY,dirZ are the directions that i made like in 2d e.g( dirX=math.cos(ang) dirY=math.sin(ang) )