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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 29 Mar 2009 |
| Total Posts: 3332 |
|
| |
|
VoidFrost
|
  |
| Joined: 14 Oct 2011 |
| Total Posts: 1188 |
|
|
| 29 Sep 2016 01:36 PM |
| thats not relevant to this discussion |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|