I am having issues making a plane

I am trying to make a plane that I can control but it has stats such as ( health , speed , flexibility ( can move right or left better ) , strength ) ( each of these stats differs from plane to another plane model)

and one of the plane features is it can use weapons around the map and Collect coins and gems and if it hits anything it loses health

the issue is no matter what I try to script it doesn’t work

I tried to copy some of the scripts online yet it won’t work

edit : Now the only thing that is just left for me is make a plane script that can help me do the features if some one can tell me how i can atleast make one of the features you would help ALOT

If some one can tell me what I need to put inside the script or do any kind of help to me

That would be Insanely appreciated. Thank you to anyone who read this. Have a Nice Day!

edit: Thank you for every person who replied

For the booster, set a variable for the plane’s speed, kind of like this:

local speed = --Whatever speed
local button = --Path here

local function boostspeed()
   repeat
      wait(0) -- Replace 0 with a different number, I recommend it to be less than one
      speed += --How much you want speed to increase
      -- Have the plane's speed increase here
   until speed = --Boost speed
   wait(0) -- Replace 0 with how long you want the plane to be boosted
   repeat
      wait(0) -- This should be the same number as when speed increases
      speed += --How much you want speed to decrease
      -- Have the plane's speed decrease here
   until speed = --Base plane speed
end
button.MouseButton1Click:Connect(boostspeed)

Im not sure if this works

Thank You so much for the help I will try it now

Send me the script you put in the game when you’re done testing.

1 Like

Make sure to mark my post as the solution if it was the solution

It didn’t work

I probably did something wrong but here it is ( i tried to put other thing and play with the numbers but still)

replace until speed = 50 with until speed == 50, same with the until speed == 23, my bad

still doesn’t work

what should I do now?

Oh, I also noticed something
Remember in my code when I put the comment “-- Have the plane’s speed increase here”?

Well I meant increase your plane’s speed using the variables

I don’t understand

if you can just rewrite it and tell me where to put the script

I would greatly appreciate it

Thank you so much for sticking with me till now!

please give us more context
is this an issue with inputs?
do you even have inputs?

also, if youre going to copy and paste scripts together, make sure they work
you probably have to read over the scripts and edit variable names
people have different coding styles

I have been trying to boost pad that is in the air that if my plane goes through the planes speed increases ( by 10 or something ) for like 3 seconds

but I don’t know what to do

and for some random reason I think I messed my actual plane script so the plane itself doesn’t even move now :sweat_smile: :sweat_smile:

i think you might’ve accidentally fallen into the trap of spaghetti code

i think it’s probably best to make your own script, or be VERY careful about copying and pasting things (im not against copy paste, because if you understand the principles of the code, and also what is going on in the code, it means you do get more work done. Im against copy + pasting if you don’t know what the code is doing)
yeah sometimes it just sucks to redo your code, but sometimes you just have to (or other times youre just too lazy to search in your files

1 Like

It’s that I am pretty bad at coding/scripting and alot of the videos I have watched weren’t useful so I am in ditch not knowing where to even start

I will just stop this post and count it as solved and try to do anything.

If I need anymore support I will make another post.

Thanks so much for the help everyone who replied . Have Great Day!

I would say that you should try and reverse engineer various models to find out how they work. You have the source code after all.
Also read the roblox documentation. It isn’t as good as many other pieces of documentation (such as documentation for say, java or python) but it still contains more than enough valuable information.
Its not easy to start, but I believe in you!
As well as this, try and figure out how each individual component works, such as the controls and movement.
While roblox tutorials don’t tell you how to make a plane directly, they do go into how to move them, as well as going into controls

1 Like

I wish I could help you, but making a plane is rather a difficult task. I recommend you start with something more simple if you’re a new scripter like a part that changes colours, a part that speeds you up, etc. I made this tutorial a while ago and it’s very basic: How to Make a Simple Plane: Roblox Studio - YouTube but hopefully it points you toward the right direction.

1 Like