Is there a way to make a simple plane script?

Is there away to make a simple plane script? I have seen some free models but they are still complicated and have alot of code inside of them.

1 Like

Well, to make it simple you can just use the old 2007 roblox concept of a plane like the Base Wars Vortex,

Press Y to activate the antigravity fly/hover mode,
In this mode the plane is oriented towards mouse position,
Then press a button to apply a vector force to fly towards the mouse location.

Any problems you face that are undesirable to a plane, you have to build up on your own.

Eventually your plane script will become as complicated as the free models if you desire full functionality.

1 Like

Making a functional plane isn’t as hard as you think you just need to take the time to figure out how to make it. You can use what @dthecoolest said about vectors and add on to it. This isn’t a one day thing. I hope you can make your own flying plane. :slight_smile:

Not an ideal plane but an educational one

simple plane script == Simple Flying

local maxspeed = script.Parent.MaxSpeed

local BodyPosition = script.Parent.BodyPosition

local BodyGyro = script.Parent.BodyGyro

maxspeed = 200

BodyPosition.position = script.Parent.Position

BodyGyro.cframe = script.Parent.CFrame

value1 = 0

while true do

wait()

– Move forward

if script.Parent.Throttle == 1 then

if script.Parent.Steer == 0 then

if value1 < maxspeed then value1 = value1 + 1 end

script.Parent.BodyVelocity.velocity = script.Parent.CFrame.lookVector * value1

end

end

– Nothing Button Move forward = 0

if script.Parent.Throttle == 0 then

value1 = 0

script.Parent.BodyVelocity.velocity = script.Parent.CFrame.lookVector * value1

end

– Height to Top

if script.Parent.Throttle== -1 then

if script.Parent.Steer == 0 then

script.Parent.BodyPosition.Position = script.Parent.CFrame * Vector3.new(0,10,0)

end

end

– Landing

if script.Parent.Throttle == -1 then

if script.Parent.Steer == -1 then

script.Parent.BodyPosition.Position = script.Parent.CFrame * Vector3.new(0,-10,0)

end

end

– Turn Right

if script.Parent.Steer == 1 then

if script.Parent.Throttle == 0 then

script.Parent.BodyGyro.cframe = script.Parent.BodyGyro.cframe * CFrame.fromEulerAnglesXYZ(0,-.1,0)

end

end

– Turn Left

if script.Parent.Steer == -1 then

if script.Parent.Throttle == 0 then

script.Parent.BodyGyro.cframe = script.Parent.BodyGyro.cframe * CFrame.fromEulerAnglesXYZ(0,.1,0)

end

end

end

1 Like

Free airplane model from Toolbox

I used to use BodyVelocity and BodyGyro. BodyVelocity to move it in the direction the plane was facing. BodyGyro to set orientation. It’s not very realistic, but it works.

It’s hard to not make it complicated though. Planes are complex in nature.

1 Like

It is intended for learning only, and not suitable for play

I am a beginner, I am not a professional and I am not good at making airplanes

I have another plane I am waiting for you to give me your opinion on it

I will send a video clip of the other plane

I’m trying to make a plane, but I’m not making a good plane

Free airplane model from Toolbox

If I new how to script, I’d help you.

But I have no experience. Sorry! :grimacing: