generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: if you were to make a plane/aircraft

Previous Thread :: Next Thread 
VoidFrost is not online. VoidFrost
Joined: 14 Oct 2011
Total Posts: 1188
29 Sep 2016 12:12 PM
how would you make the movement system

note: im not asking how to because of help making it, but im wondering of a cool method to script it
Report Abuse
CodeBreadpudding is not online. CodeBreadpudding
Joined: 24 Aug 2016
Total Posts: 1286
29 Sep 2016 12:40 PM
I'd set the velocity of the brick(probably the least efficient way to do it) and once it gets to a certain speed it teleports to another game.
Report Abuse
Milenveliki is not online. Milenveliki
Joined: 14 Aug 2013
Total Posts: 1097
29 Sep 2016 12:48 PM

p=Instance.new('Part',workspace)p.Anchored=true;while wait()do--[[Test what dis does xd]]p.CFrame=p.CFrame*CFrame.new(math.random(0.2,3),math.random(0.2,3),math.random(0.2,3));end
Report Abuse
VoidFrost is not online. VoidFrost
Joined: 14 Oct 2011
Total Posts: 1188
29 Sep 2016 01:13 PM
i dont consider either of those real answers

this is an answer, but the simplest method

BodyGyro.CFrame = CFrame.new(Base.Position, Mouse.Hit.p)

and of course some velocty always going forward.
Report Abuse
HlCOM is not online. HlCOM
Joined: 29 Mar 2009
Total Posts: 3332
29 Sep 2016 01:31 PM
would that work with FE?
Report Abuse
VoidFrost is not online. VoidFrost
Joined: 14 Oct 2011
Total Posts: 1188
29 Sep 2016 01:36 PM
thats not relevant to this discussion
Report Abuse
HlCOM is not online. HlCOM
Joined: 29 Mar 2009
Total Posts: 3332
29 Sep 2016 01:57 PM
so if plane follows mouse in FE enviroment

:FireServer spam? how would you go about so it's not FireServer spam?


Report Abuse
Repsej112 is not online. Repsej112
Joined: 22 Jan 2013
Total Posts: 205
29 Sep 2016 02:30 PM
@HICOM The only thing I can think of is changing the plane gyro on the client side and then send the plane gyro to the server via remoteevent every .5 second. That makes the gyro smooth for the player that is controlling.
Report Abuse
VoidFrost is not online. VoidFrost
Joined: 14 Oct 2011
Total Posts: 1188
29 Sep 2016 03:44 PM
cant you go make your own thread about that, if youre wondering about some question

otherwise if youre just trying to make a point, its just annoying
Report Abuse
Aviator_Ratchet is not online. Aviator_Ratchet
Joined: 09 Feb 2014
Total Posts: 288
29 Sep 2016 06:00 PM
I've made my own plane kit before.
Took me only oh...
500 lines?

Here's a basic example:

1. Weld all the parts to a part with a BodyVelocity and BodyGyro in it
2. Insert a local script into the pilot seat that puts it in your inventory when you sit on the seat.
Here's some basic code for the plane that I just randomly write. Errors on planes are usually really easy to fix.
(The part I welded all of the other parts to is called "Main)
ALSO MAKE SURE TO UNANCHOR ALL OF THE PLANE PARTS!!!

--Code:

plr=game.Players.LocalPlayer
mouse=plr:GetMouse()
plane=game.Workspace.Plane
speed=0
###########################################################################################################hold=true
while hold do
if speed < maxSpeed then
speed = speed + 1
end
wait()
end
end

if k == "s" then
hold=true
while hold do
if speed > 0 then
speed = speed - 1
end
wait()
end
#########################################################################################################end
end

while wait(.1) do
--Makes the plane move by adding a force to the bodyVelocity
plane.Main.BodyVelocity.velocity = (plane.Main.CFrame.lookVector) * speed
--Makes the plane turn (not bank) by using the mouse
plane.Main.BodyGyro.cframe = (mouse.Hit)
end





Tell me if i could make improvements or if I have errors.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image