Hey! So im making a fighting superhero game and ive been working on games like this for 3-4 years and always i struggled with flying mecahnic so can anyone tell me how i can make a flight mecahnic like on the video because i already tried making one but i dont really know how to make one ive been script for 3-4 years but this is confusing for me thanks if anyone helps!
Example:
(The games called MUO_ALPHA if anyone needs a closer look)
2 Likes
this one looks like its using the cframe of the camera along with keyboard controls, so its relative direction, w being the foward vector of the camera, a being to the left and so on, then for directly up or down alot of games use space or like q and e.
in terms of angles that looks like
local cf = CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(90), 0)
or you can use these

then the rest is mostly just animating and having some things e.g if more than 1 key is pressed
the baseline of it is all the same tho. that game looks rather choppy though, so its honestly not a good example to try to reach, admin games e.c.t also use the same sort of thing for flying only without the animations e.c.t, prob a better raw example of this
2 Likes