How to make controllable flying object

Hello. I’m working on a game where I need to control a flying object. I want the object to be able to: Stay in the air, Move to the exact position, I’m not very experienced with this so if anyone could help I would appreciate it.

2 Likes

You would maybe need a body force and a body velocity(With the maxforce of inf,0,inf)
and the body force would need a little math

like

local ImaginaryPart = workspace.Part
local BodyForce = Instance.new("BodyForce")
BodyForce.Force = Vector3.new(0,workspace.Gravity*ImaginaryPart:GetMass(),0) -- Antigravity
BodyForce.Parent = ImaginaryPart
1 Like

sorry if im wrong because im not that well with forces

It makes the part fly up, So that’s not working

You need to do :

local ImaginaryPart = workspace.Part
local BodyForce = Instance.new("BodyForce")
BodyForce.Force = Vector3.new(0,ImaginaryPart:GetMass() - workspace.Gravity,0) -- Antigravity
BodyForce.Parent = ImaginaryPart

Not working either, I don’t know why tho

Its basically the same thing

Check if the part has massless checked or not