Advertisement
ManOhMan

Untitled

Jul 3rd, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.84 KB | None | 0 0
  1. --Created with PenguinAnonymous's compiler
  2. --PenguinAnonymous is not responsible for damages caused to your game
  3. --This plugin does not remove things
  4. --PenguinAnonymous cannot be held resonsible for manual deletion for the purpose of testing
  5. --Keep in mind, any items that cause errors in compilation will be skipped and documented within the last line of the disclaimer comments
  6. --Thank you for using my plugin and enjoy :)
  7. --It is free to use
  8. --If you use this plugin to create your own, please give me credit
  9. --Z_V edited my plugin to look like his own and published it without giving me credit, and that makes me very angry
  10. --Errors: GuiMain
  11. local runDummyScript = function(f,scri)
  12. local oldenv = getfenv(f)
  13. local newenv = setmetatable({}, {
  14. __index = function(_, k)
  15. if k:lower() == 'script' then
  16. return scri
  17. else
  18. return oldenv[k]
  19. end
  20. end
  21. })
  22. setfenv(f, newenv)
  23. ypcall(function() f() end)
  24. end
  25. cors = {}
  26. mas = Instance.new("Model",game:GetService("Lighting"))
  27. mas.Name = "CompiledModel"
  28. o1 = Instance.new("Model")
  29. o2 = Instance.new("Part")
  30. o3 = Instance.new("Part")
  31. o4 = Instance.new("Part")
  32. o5 = Instance.new("WedgePart")
  33. o6 = Instance.new("WedgePart")
  34. o7 = Instance.new("WedgePart")
  35. o8 = Instance.new("Part")
  36. o9 = Instance.new("Part")
  37. o10 = Instance.new("Part")
  38. o11 = Instance.new("Part")
  39. o12 = Instance.new("WedgePart")
  40. o13 = Instance.new("Part")
  41. o14 = Instance.new("Part")
  42. o15 = Instance.new("Part")
  43. o16 = Instance.new("Seat")
  44. o17 = Instance.new("Hole")
  45. o18 = Instance.new("BodyVelocity")
  46. o19 = Instance.new("BodyGyro")
  47. o20 = Instance.new("IntValue")
  48. o21 = Instance.new("IntValue")
  49. o22 = Instance.new("Script")
  50. o23 = Instance.new("HopperBin")
  51. o24 = Instance.new("Script")
  52. o26 = Instance.new("TextLabel")
  53. o27 = Instance.new("TextLabel")
  54. o28 = Instance.new("TextLabel")
  55. o29 = Instance.new("TextLabel")
  56. o30 = Instance.new("TextLabel")
  57. o31 = Instance.new("TextLabel")
  58. o32 = Instance.new("TextLabel")
  59. o33 = Instance.new("TextLabel")
  60. o34 = Instance.new("TextLabel")
  61. o35 = Instance.new("TextLabel")
  62. o36 = Instance.new("TextLabel")
  63. o37 = Instance.new("IntValue")
  64. o38 = Instance.new("IntValue")
  65. o39 = Instance.new("IntValue")
  66. o40 = Instance.new("IntValue")
  67. o41 = Instance.new("Script")
  68. o42 = Instance.new("CFrameValue")
  69. o43 = Instance.new("Fire")
  70. o44 = Instance.new("Script")
  71. o45 = Instance.new("CFrameValue")
  72. o46 = Instance.new("CFrameValue")
  73. o47 = Instance.new("Part")
  74. o48 = Instance.new("WedgePart")
  75. o49 = Instance.new("Part")
  76. o50 = Instance.new("WedgePart")
  77. o1.Parent = mas
  78. o2.Parent = o1
  79. o2.BrickColor = BrickColor.new("Really black")
  80. o2.Position = Vector3.new(-73.4656067, 3.5973773, -87.5821228)
  81. o2.Size = Vector3.new(4, 4.80000067, 1)
  82. o2.CFrame = CFrame.new(-73.4656067, 3.5973773, -87.5821228, 0.999994636, 1.26506784e-05, 3.76836906e-05, -1.2420147e-05, 0.999993563, 3.75806012e-05, -3.69979171e-05, -3.50649789e-05, 0.999990284)
  83. o2.BottomSurface = Enum.SurfaceType.Weld
  84. o2.TopSurface = Enum.SurfaceType.Smooth
  85. o2.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  86. o2.Position = Vector3.new(-73.4656067, 3.5973773, -87.5821228)
  87. o3.Parent = o1
  88. o3.BrickColor = BrickColor.new("Really black")
  89. o3.Position = Vector3.new(-73.4651184, 0.597865283, -75.0821533)
  90. o3.Rotation = Vector3.new(-18.5599995, -89.8099976, -18.5599995)
  91. o3.Size = Vector3.new(26, 1.20000005, 4)
  92. o3.CFrame = CFrame.new(-73.4651184, 0.597865283, -75.0821533, 3.76836906e-05, 1.26506784e-05, -0.999994636, 3.75806012e-05, 0.999993563, 1.2420147e-05, 0.999990284, -3.50649789e-05, 3.69979171e-05)
  93. o3.BottomSurface = Enum.SurfaceType.Smooth
  94. o3.TopSurface = Enum.SurfaceType.Smooth
  95. o3.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  96. o3.Position = Vector3.new(-73.4651184, 0.597865283, -75.0821533)
  97. o4.Parent = o1
  98. o4.BrickColor = BrickColor.new("Really black")
  99. o4.Position = Vector3.new(-60.4651566, 1.79770923, -75.0822144)
  100. o4.Rotation = Vector3.new(-18.5699997, -89.8099976, -18.5699997)
  101. o4.Size = Vector3.new(4, 2.79999995, 22)
  102. o4.CFrame = CFrame.new(-60.4651566, 1.79770923, -75.0822144, 4.11100191e-05, 1.38099385e-05, -0.999994636, 5.51943813e-05, 0.999993563, 1.35802584e-05, 0.999990284, -5.26787844e-05, 4.04239508e-05)
  103. o4.TopSurface = Enum.SurfaceType.Smooth
  104. o4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  105. o4.Position = Vector3.new(-60.4651566, 1.79770923, -75.0822144)
  106. o5.Name = "Part"
  107. o5.Parent = o1
  108. o5.BrickColor = BrickColor.new("Bright red")
  109. o5.Position = Vector3.new(-62.4690628, 0.498530269, -67.8844757)
  110. o5.Rotation = Vector3.new(-20.9200001, -89.8099976, -110.889999)
  111. o5.Size = Vector3.new(1, 10.4000015, 18)
  112. o5.CFrame = CFrame.new(-62.4690628, 0.498530269, -67.8844757, -1.62530432e-05, 4.25925027e-05, -0.999994636, -0.999993563, -4.97908622e-05, 1.60189702e-05, -5.23059825e-05, 0.999990284, 4.19079988e-05)
  113. o5.BackSurface = Enum.SurfaceType.Weld
  114. o5.BottomSurface = Enum.SurfaceType.Smooth
  115. o5.Color = Color3.new(0.768628, 0.156863, 0.109804)
  116. o5.Position = Vector3.new(-62.4690628, 0.498530269, -67.8844757)
  117. o6.Name = "Part"
  118. o6.Parent = o1
  119. o6.BrickColor = BrickColor.new("Really black")
  120. o6.Transparency = 0.40000000596046
  121. o6.Position = Vector3.new(-52.9702835, 4.3977561, -75.0805054)
  122. o6.Rotation = Vector3.new(160.199997, 89.8099976, -160.220001)
  123. o6.CanCollide = false
  124. o6.Size = Vector3.new(4, 2.4000001, 7)
  125. o6.CFrame = CFrame.new(-52.9702835, 4.3977561, -75.0805054, -4.72162355e-05, 1.69839514e-05, 0.999994636, -5.75399754e-05, 0.999993563, -1.6754715e-05, -0.999990284, -5.50246041e-05, -4.65299345e-05)
  126. o6.BottomSurface = Enum.SurfaceType.Weld
  127. o6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  128. o6.Position = Vector3.new(-52.9702835, 4.3977561, -75.0805054)
  129. o7.Name = "Part"
  130. o7.Parent = o1
  131. o7.BrickColor = BrickColor.new("Bright red")
  132. o7.Position = Vector3.new(-62.4695511, 0.500362277, -82.2769775)
  133. o7.Rotation = Vector3.new(85.3300018, -89.8099976, 175.220001)
  134. o7.Size = Vector3.new(1, 10.4000015, 18)
  135. o7.CFrame = CFrame.new(-62.4695511, 0.500362277, -82.2769775, -0.000346851331, -2.90273074e-05, -0.999994576, 0.999993503, 1.47031369e-06, -0.000347082969, 3.99610872e-06, -0.999990284, 2.83406316e-05)
  136. o7.BackSurface = Enum.SurfaceType.Weld
  137. o7.BottomSurface = Enum.SurfaceType.Smooth
  138. o7.Color = Color3.new(0.768628, 0.156863, 0.109804)
  139. o7.Position = Vector3.new(-62.4695511, 0.500362277, -82.2769775)
  140. o8.Parent = o1
  141. o8.BrickColor = BrickColor.new("Really black")
  142. o8.Position = Vector3.new(-58.4651566, 0.197688282, -75.0827026)
  143. o8.Rotation = Vector3.new(-18.5599995, -89.8099976, -18.5599995)
  144. o8.Size = Vector3.new(4, 0.400000006, 26)
  145. o8.CFrame = CFrame.new(-58.4651566, 0.197688282, -75.0827026, 3.76836906e-05, 1.26506784e-05, -0.999994636, 3.75806012e-05, 0.999993563, 1.2420147e-05, 0.999990284, -3.50649789e-05, 3.69979171e-05)
  146. o8.BackSurface = Enum.SurfaceType.Weld
  147. o8.BottomSurface = Enum.SurfaceType.Smooth
  148. o8.TopSurface = Enum.SurfaceType.Smooth
  149. o8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  150. o8.Position = Vector3.new(-58.4651566, 0.197688282, -75.0827026)
  151. o9.Parent = o1
  152. o9.BrickColor = BrickColor.new("Really black")
  153. o9.Transparency = 0.40000000596046
  154. o9.Position = Vector3.new(-47.4656448, 4.19785118, -73.5830536)
  155. o9.Rotation = Vector3.new(-18.5699997, -89.8099976, -18.5699997)
  156. o9.Size = Vector3.new(1, 2, 4)
  157. o9.CFrame = CFrame.new(-47.4656448, 4.19785118, -73.5830536, 4.04243328e-05, 1.35782475e-05, -0.999994636, 5.26778858e-05, 0.999993563, 1.33484282e-05, 0.999990284, -5.01622853e-05, 3.97383119e-05)
  158. o9.BottomSurface = Enum.SurfaceType.Weld
  159. o9.TopSurface = Enum.SurfaceType.Weld
  160. o9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  161. o9.Position = Vector3.new(-47.4656448, 4.19785118, -73.5830536)
  162. o10.Parent = o1
  163. o10.BrickColor = BrickColor.new("Really black")
  164. o10.Transparency = 0.40000000596046
  165. o10.Position = Vector3.new(-47.4656448, 5.39777231, -75.0830994)
  166. o10.Rotation = Vector3.new(-18.5699997, -89.8099976, -18.5699997)
  167. o10.CanCollide = false
  168. o10.Size = Vector3.new(4, 0.400000006, 4)
  169. o10.CFrame = CFrame.new(-47.4656448, 5.39777231, -75.0830994, 4.04243328e-05, 1.35782475e-05, -0.999994636, 5.26778858e-05, 0.999993563, 1.33484282e-05, 0.999990284, -5.01622853e-05, 3.97383119e-05)
  170. o10.BackSurface = Enum.SurfaceType.Weld
  171. o10.BottomSurface = Enum.SurfaceType.Smooth
  172. o10.FrontSurface = Enum.SurfaceType.Weld
  173. o10.TopSurface = Enum.SurfaceType.Smooth
  174. o10.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  175. o10.Position = Vector3.new(-47.4656448, 5.39777231, -75.0830994)
  176. o11.Parent = o1
  177. o11.BrickColor = BrickColor.new("Really black")
  178. o11.Transparency = 0.40000000596046
  179. o11.Position = Vector3.new(-47.4656448, 4.19770145, -76.5830383)
  180. o11.Rotation = Vector3.new(-18.5699997, -89.8099976, -18.5699997)
  181. o11.CanCollide = false
  182. o11.Size = Vector3.new(1, 2, 4)
  183. o11.CFrame = CFrame.new(-47.4656448, 4.19770145, -76.5830383, 4.04243328e-05, 1.35782475e-05, -0.999994636, 5.26778858e-05, 0.999993563, 1.33484282e-05, 0.999990284, -5.01622853e-05, 3.97383119e-05)
  184. o11.BottomSurface = Enum.SurfaceType.Weld
  185. o11.TopSurface = Enum.SurfaceType.Weld
  186. o11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  187. o11.Position = Vector3.new(-47.4656448, 4.19770145, -76.5830383)
  188. o12.Name = "Part"
  189. o12.Parent = o1
  190. o12.BrickColor = BrickColor.new("Really black")
  191. o12.Transparency = 0.40000000596046
  192. o12.Position = Vector3.new(-43.9680862, 4.39696217, -75.0820007)
  193. o12.Rotation = Vector3.new(-17.8600006, -89.8099976, -17.8600006)
  194. o12.CanCollide = false
  195. o12.Size = Vector3.new(4, 2.4000001, 3)
  196. o12.CFrame = CFrame.new(-43.9680862, 4.39696217, -75.0820007, 5.54516701e-05, 1.78722948e-05, -0.999994636, 8.80197622e-05, 0.999993563, 1.76452231e-05, 0.999990284, -8.55044855e-05, 5.4764736e-05)
  197. o12.BottomSurface = Enum.SurfaceType.Weld
  198. o12.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  199. o12.Position = Vector3.new(-43.9680862, 4.39696217, -75.0820007)
  200. o13.Parent = o1
  201. o13.BrickColor = BrickColor.new("Really black")
  202. o13.Position = Vector3.new(-73.4646301, 3.59832335, -62.5823479)
  203. o13.Size = Vector3.new(4, 4.80000067, 1)
  204. o13.CFrame = CFrame.new(-73.4646301, 3.59832335, -62.5823479, 0.999994636, 1.26506784e-05, 3.76836906e-05, -1.2420147e-05, 0.999993563, 3.75806012e-05, -3.69979171e-05, -3.50649789e-05, 0.999990284)
  205. o13.BottomSurface = Enum.SurfaceType.Weld
  206. o13.TopSurface = Enum.SurfaceType.Smooth
  207. o13.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  208. o13.Position = Vector3.new(-73.4646301, 3.59832335, -62.5823479)
  209. o14.Parent = o1
  210. o14.BrickColor = BrickColor.new("Really black")
  211. o14.Position = Vector3.new(-47.4651566, 1.7976023, -73.5831451)
  212. o14.Rotation = Vector3.new(-18.5599995, -89.8099976, -18.5599995)
  213. o14.Size = Vector3.new(1, 2.79999995, 4)
  214. o14.CFrame = CFrame.new(-47.4651566, 1.7976023, -73.5831451, 3.76836906e-05, 1.26506784e-05, -0.999994636, 3.75806012e-05, 0.999993563, 1.2420147e-05, 0.999990284, -3.50649789e-05, 3.69979171e-05)
  215. o14.TopSurface = Enum.SurfaceType.Smooth
  216. o14.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  217. o14.Position = Vector3.new(-47.4651566, 1.7976023, -73.5831451)
  218. o15.Parent = o1
  219. o15.BrickColor = BrickColor.new("Really black")
  220. o15.Position = Vector3.new(-47.4651566, 1.7974813, -76.5831604)
  221. o15.Rotation = Vector3.new(-18.5599995, -89.8099976, -18.5599995)
  222. o15.Size = Vector3.new(1, 2.79999995, 4)
  223. o15.CFrame = CFrame.new(-47.4651566, 1.7974813, -76.5831604, 3.76836906e-05, 1.26506784e-05, -0.999994636, 3.75806012e-05, 0.999993563, 1.2420147e-05, 0.999990284, -3.50649789e-05, 3.69979171e-05)
  224. o15.TopSurface = Enum.SurfaceType.Smooth
  225. o15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  226. o15.Position = Vector3.new(-47.4651566, 1.7974813, -76.5831604)
  227. o16.Name = "AircraftSeat"
  228. o16.Parent = o1
  229. o16.BrickColor = BrickColor.new("Really black")
  230. o16.Position = Vector3.new(-47.4651566, 0.597545266, -75.0831299)
  231. o16.Rotation = Vector3.new(-18.5599995, -89.8099976, -18.5599995)
  232. o16.Size = Vector3.new(2, 0.400000006, 2)
  233. o16.CFrame = CFrame.new(-47.4651566, 0.597545266, -75.0831299, 3.76836906e-05, 1.26506784e-05, -0.999994636, 3.75806012e-05, 0.999993563, 1.2420147e-05, 0.999990284, -3.50649789e-05, 3.69979171e-05)
  234. o16.BottomSurface = Enum.SurfaceType.Weld
  235. o16.TopSurface = Enum.SurfaceType.Weld
  236. o16.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  237. o16.Position = Vector3.new(-47.4651566, 0.597545266, -75.0831299)
  238. o17.Parent = o16
  239. o17.FaceId = Enum.NormalId.Front
  240. o18.Name = "Thrust"
  241. o18.Parent = o16
  242. o18.Velocity = Vector3.new(0, 0.159999996, 0)
  243. o18.Velocity = Vector3.new(0, 0.159999996, 0)
  244. o19.Name = "Direction"
  245. o19.Parent = o16
  246. o19.CFrame = CFrame.new(-1242.03491, 428.376831, 444.081696, 0.999937594, 2.76033497e-05, 0.0111732818, -1.15091716e-05, 0.999998987, -0.00144047826, -0.0111733098, 0.00144025963, 0.999936521)
  247. o19.maxTorque = Vector3.new(0, 0, 0)
  248. o19.P = 1000
  249. o19.MaxTorque = Vector3.new(0, 0, 0)
  250. o20.Name = "Speed"
  251. o20.Parent = o16
  252. o20.Value = 40
  253. o21.Name = "TurnSpeed"
  254. o21.Parent = o16
  255. o21.Value = 1000
  256. o22.Name = "ToolScript"
  257. o22.Parent = o16
  258. table.insert(cors,coroutine.create(function()
  259. wait()
  260. runDummyScript(function()
  261. position = script.Parent.Position
  262. local frame = Instance.new("CFrameValue")
  263. frame.Name = "OriginCFrame"
  264. frame.Value = script.Parent.CFrame
  265. frame.Parent = script.Parent
  266.  
  267. local object = Instance.new("ObjectValue")
  268. object.Value = script.Parent
  269.  
  270. seat = script.Parent
  271. seat.Direction.cframe = seat.CFrame
  272.  
  273. function onSitUp(child, hopper, gui, plane)
  274. if child.Parent == nil then
  275. seat.Direction.maxTorque = Vector3.new(0,0,0)
  276. seat.Thrust.maxForce = Vector3.new(0,0,0)
  277. hopper.Parent = script
  278. hopper.Active = false
  279. gui.Parent = script
  280. script.Parent.Locked = false
  281. script.Parent.Parent = game.Workspace
  282. end
  283. end
  284.  
  285. function onChildAdded(part)
  286. if part.className == "Weld" then
  287. local torso = part.Part1
  288. if torso ~= nil then
  289.  
  290. local char = torso.Parent
  291. local player = game.Players:GetPlayerFromCharacter(char)
  292. if player ~= nil then
  293. local hopper = script["Aircraft"]
  294. hopper.Parent = player.Backpack
  295. local GUI = script["Controls"]
  296. GUI.Parent = player.PlayerGui
  297. part.AncestryChanged:connect(function(child) onSitUp(child, hopper, GUI, script.Parent) end)
  298. end
  299.  
  300. local parent = torso.Parent
  301. if parent ~= nil then
  302. script.Parent.Locked = true
  303. script.Parent.Parent = parent
  304. end
  305. end
  306. end
  307. end
  308.  
  309. seat.ChildAdded:connect(onChildAdded)
  310. -- Korky5000
  311. end,o22)
  312. end))
  313. o23.Name = "Aircraft"
  314. o23.Parent = o22
  315. o23.Selected = Signal Selected
  316. o24.Name = "Aircraft"
  317. o24.Parent = o23
  318. table.insert(cors,coroutine.create(function()
  319. wait()
  320. runDummyScript(function()
  321. bin = script.Parent
  322. plane = nil
  323. hold = false
  324. local debounce = false
  325. local planedebounce = false
  326. local stuntdebounce = false
  327. local controlling = false
  328. local currentspeed = 0
  329. local turn = nil
  330. fly = false
  331.  
  332. function computeDirection(vec)
  333. local lenSquared = vec.magnitude * vec.magnitude
  334. local invSqrt = 1 / math.sqrt(lenSquared)
  335. return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
  336. end
  337.  
  338. function move(point, engine)
  339. local origincframe = engine:findFirstChild("Direction").cframe
  340. size = engine.Size
  341.  
  342. target = engine.Position+((point - engine.Position).unit*100)
  343. local dir = (target - engine.Position).unit
  344. local spawnPos = engine.Position
  345. left = engine.CFrame*CFrame.new(-size.x/2, 0, 0).p
  346. right = engine.CFrame*CFrame.new(size.x/2, 0, 0).p
  347. md = (target - engine.Position).magnitude
  348.  
  349. foebmd = engine.CFrame*CFrame.new(0, 0, -md).p
  350. toleft = (target -left).magnitude
  351. toright = (target -right).magnitude
  352. rot = ((foebmd - target).magnitude/10)
  353. local pos = spawnPos + (dir * 1)
  354. turn = math.rad((rot/10)*engine.TiltFactor.Value)
  355. if turn > math.rad(89) then
  356. turn = math.rad(89)
  357. end
  358. if toleft< toright and toleft >rot then
  359. engine:findFirstChild("Direction").cframe = CFrame.new(pos, pos + dir)*CFrame.fromEulerAnglesXYZ(0, 0, turn)
  360. elseif toleft > toright and toright >rot then
  361. engine:findFirstChild("Direction").cframe = CFrame.new(pos, pos + dir)*CFrame.fromEulerAnglesXYZ(0, 0, -turn)
  362. else
  363. engine:findFirstChild("Direction").cframe = CFrame.new(pos, pos + dir)
  364. end
  365. engine:findFirstChild("Direction").P = engine.TurnSpeed.Value
  366. end
  367.  
  368. function findPlane(player)
  369. local list = player.Character:GetChildren()
  370. for x = 1, #list do
  371. if (list[x].Name == "AircraftSeat") then
  372. return list[x]
  373. end
  374. end
  375. return nil
  376. end
  377.  
  378. function onButton1Down(mouse)
  379. local vehicle = findPlane(script.Parent.Parent.Parent)
  380. if vehicle ~= nil and debounce == false and planedebounce == false then
  381. if fly == false and taxi == false then return end
  382. debounce = true
  383.  
  384. controlling = true
  385.  
  386. while true do
  387. wait()
  388. local engine = vehicle
  389. local position = mouse.Hit
  390. local target = position.p
  391. move(target, engine)
  392. if planedebounce == true or
  393. controlling == false then break end
  394. end
  395. wait(0.1)
  396. debounce = false
  397. end
  398. end
  399.  
  400. function onButton1Up(mouse)
  401. controlling = false
  402. end
  403.  
  404. function onSelected(mouse)
  405. mouse.Icon = "http://www.roblox.com/asset/?id=7419350"
  406. game.Workspace.CurrentCamera.CameraSubject = bin.Parent.Parent.Character.Head
  407. game.Workspace.CurrentCamera.CameraType = "Track"
  408. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  409. mouse.Button1Up:connect(function() onButton1Up(mouse) end)
  410. mouse.KeyDown:connect(onKeyDown)
  411. mouse.KeyUp:connect(onKeyUp)
  412. mouse.Move:connect(function() Fly(mouse) end)
  413. mouse.Idle:connect(function() Fly(mouse) end)
  414. end
  415.  
  416. function onDeselected(mouse)
  417. game.Workspace.CurrentCamera.CameraSubject = bin.Parent.Parent.Character.Humanoid
  418. game.Workspace.CurrentCamera.CameraType = "Custom"
  419. end
  420.  
  421. function Fly(mouse)
  422. local vehicle = findPlane(script.Parent.Parent.Parent)
  423. if (vehicle==nil) then return end
  424. vehicle.Thrust.velocity = (vehicle.CFrame.lookVector * currentspeed) + Vector3.new(0,vehicle.LiftTrim.Value/100,0)
  425. end
  426.  
  427. function onKeyDown(key)
  428. if (key~=nil) then
  429. key = key:lower()
  430. local vehicle = findPlane(script.Parent.Parent.Parent)
  431. if (vehicle==nil) then return end
  432. if key == "y" then
  433. fly = true
  434. vehicle.Direction.cframe = vehicle.CFrame
  435. vehicle.Direction.maxTorque = Vector3.new(4e3,4e3,4e3)
  436. vehicle.Thrust.maxForce = Vector3.new(9e20,9e20,9e20)
  437. while fly == true do
  438. if currentspeed < vehicle.Speed.Value then
  439. currentspeed = currentspeed + 1
  440. elseif currentspeed > vehicle.Speed.Value then
  441. currentspeed = currentspeed - 1
  442. end
  443. if vehicle.Acceleration.Value > 1000 then vehicle.Acceleration.Value = 1000 end
  444. wait((1-(vehicle.Acceleration.Value/1000))+0.01)
  445. if fly == false then break end
  446. end
  447. end
  448. if key == "x" then
  449. fly = false
  450. currentspeed = 0
  451. vehicle.Direction.maxTorque = Vector3.new(0,0,0)
  452. vehicle.Thrust.maxForce = Vector3.new(0,0,0)
  453. end
  454. if key == "w" then
  455. if vehicle.Speed.Value < vehicle.MaxSpeed.Value then
  456. vehicle.Speed.Value = vehicle.Speed.Value + 10
  457. end
  458. end
  459. if key == "s" then
  460. if vehicle.Speed.Value > -10 then
  461. vehicle.Speed.Value = vehicle.Speed.Value - 10
  462. end
  463. end
  464. if (key=="'") and (bin.Locked.Value == false) then
  465. local repl = script:clone()
  466. repl.Parent = bin
  467. wait(1)
  468. script:remove()
  469. end
  470. if key == "l" and fly == true then
  471. vehicle.Direction.maxTorque = Vector3.new(4e3,0,4e3)
  472. local frame = vehicle:FindFirstChild("OriginCFrame")
  473. if frame ~= nil then
  474. vehicle.Direction.cframe = frame.Value
  475. end
  476. wait(2)
  477. vehicle.Direction.cframe = vehicle.CFrame
  478. vehicle.Direction.maxTorque = Vector3.new(4e3,4e3,4e3)
  479. end
  480. end
  481. end
  482.  
  483. function onKeyUp(key)
  484. if (key~=nil) then
  485. key = key:lower()
  486. local vehicle = findPlane(script.Parent.Parent.Parent)
  487. if (vehicle==nil) then return end
  488. end
  489. end
  490.  
  491. bin.Selected:connect(onSelected)
  492. bin.Deselected:connect(onDeselected)
  493. -- Korky5000
  494. end,o24)
  495. end))
  496. o26.Name = "Title"
  497. o26.Parent = mas
  498. o26.Position = UDim2.new(0,0,0.69999998807907,0)
  499. o26.Size = UDim2.new(0,200,0,20)
  500. o26.Text = "Korky5000's AircraftSeat [Version 1.1]"
  501. o26.Position = UDim2.new(0,0,0.69999998807907,0)
  502. o26.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  503. o26.BorderColor3 = Color3.new(0.796079, 0.796079, 0.796079)
  504. o26.FontSize = Enum.FontSize.Size9
  505. o26.TextColor3 = Color3.new(0.717647, 0.87451, 1)
  506. o27.Name = "Y"
  507. o27.Parent = o26
  508. o27.Position = UDim2.new(0,0,1,0)
  509. o27.Size = UDim2.new(0,20,0,20)
  510. o27.Text = "Y"
  511. o27.Position = UDim2.new(0,0,1,0)
  512. o27.BackgroundColor3 = Color3.new(0, 0, 0)
  513. o27.BorderColor3 = Color3.new(0.8, 0.8, 0.8)
  514. o27.FontSize = Enum.FontSize.Size12
  515. o27.TextColor3 = Color3.new(0.721569, 0.878431, 1)
  516. o28.Name = "Description"
  517. o28.Parent = o27
  518. o28.Position = UDim2.new(1,0,0,0)
  519. o28.Size = UDim2.new(0,180,0,20)
  520. o28.Text = "- Start Up"
  521. o28.Position = UDim2.new(1,0,0,0)
  522. o28.BackgroundColor3 = Color3.new(0, 0, 0)
  523. o28.BorderColor3 = Color3.new(0.8, 0.8, 0.8)
  524. o28.FontSize = Enum.FontSize.Size9
  525. o28.TextColor3 = Color3.new(0.721569, 0.878431, 1)
  526. o28.TextXAlignment = Enum.TextXAlignment.Left
  527. o29.Name = "X"
  528. o29.Parent = o26
  529. o29.Position = UDim2.new(0,0,2,0)
  530. o29.Size = UDim2.new(0,20,0,20)
  531. o29.Text = "X"
  532. o29.Position = UDim2.new(0,0,2,0)
  533. o29.BackgroundColor3 = Color3.new(0, 0, 0)
  534. o29.BorderColor3 = Color3.new(0.803922, 0.803922, 0.803922)
  535. o29.FontSize = Enum.FontSize.Size12
  536. o29.TextColor3 = Color3.new(0.72549, 0.882353, 1)
  537. o30.Name = "Description"
  538. o30.Parent = o29
  539. o30.Position = UDim2.new(1,0,0,0)
  540. o30.Size = UDim2.new(0,180,0,20)
  541. o30.Text = "- Turn Off"
  542. o30.Position = UDim2.new(1,0,0,0)
  543. o30.BackgroundColor3 = Color3.new(0, 0, 0)
  544. o30.BorderColor3 = Color3.new(0.803922, 0.803922, 0.803922)
  545. o30.FontSize = Enum.FontSize.Size9
  546. o30.TextColor3 = Color3.new(0.72549, 0.882353, 1)
  547. o30.TextXAlignment = Enum.TextXAlignment.Left
  548. o31.Name = "W"
  549. o31.Parent = o26
  550. o31.Position = UDim2.new(0,0,3,0)
  551. o31.Size = UDim2.new(0,20,0,20)
  552. o31.Text = "W"
  553. o31.Position = UDim2.new(0,0,3,0)
  554. o31.BackgroundColor3 = Color3.new(0, 0, 0)
  555. o31.BorderColor3 = Color3.new(0.807843, 0.807843, 0.807843)
  556. o31.FontSize = Enum.FontSize.Size12
  557. o31.TextColor3 = Color3.new(0.729412, 0.886275, 1)
  558. o32.Name = "Description"
  559. o32.Parent = o31
  560. o32.Position = UDim2.new(1,0,0,0)
  561. o32.Size = UDim2.new(0,180,0,20)
  562. o32.Text = "- Faster"
  563. o32.Position = UDim2.new(1,0,0,0)
  564. o32.BackgroundColor3 = Color3.new(0, 0, 0)
  565. o32.BorderColor3 = Color3.new(0.807843, 0.807843, 0.807843)
  566. o32.FontSize = Enum.FontSize.Size9
  567. o32.TextColor3 = Color3.new(0.729412, 0.886275, 1)
  568. o32.TextXAlignment = Enum.TextXAlignment.Left
  569. o33.Name = "S"
  570. o33.Parent = o26
  571. o33.Position = UDim2.new(0,0,4,0)
  572. o33.Size = UDim2.new(0,20,0,20)
  573. o33.Text = "S"
  574. o33.Position = UDim2.new(0,0,4,0)
  575. o33.BackgroundColor3 = Color3.new(0, 0, 0)
  576. o33.BorderColor3 = Color3.new(0.811765, 0.811765, 0.811765)
  577. o33.FontSize = Enum.FontSize.Size12
  578. o33.TextColor3 = Color3.new(0.733333, 0.890196, 1)
  579. o34.Name = "Description"
  580. o34.Parent = o33
  581. o34.Position = UDim2.new(1,0,0,0)
  582. o34.Size = UDim2.new(0,180,0,20)
  583. o34.Text = "- Slower"
  584. o34.Position = UDim2.new(1,0,0,0)
  585. o34.BackgroundColor3 = Color3.new(0, 0, 0)
  586. o34.BorderColor3 = Color3.new(0.811765, 0.811765, 0.811765)
  587. o34.FontSize = Enum.FontSize.Size9
  588. o34.TextColor3 = Color3.new(0.733333, 0.890196, 1)
  589. o34.TextXAlignment = Enum.TextXAlignment.Left
  590. o35.Name = "L"
  591. o35.Parent = o26
  592. o35.Position = UDim2.new(0,0,5,0)
  593. o35.Size = UDim2.new(0,20,0,20)
  594. o35.Text = "L"
  595. o35.Position = UDim2.new(0,0,5,0)
  596. o35.BackgroundColor3 = Color3.new(0, 0, 0)
  597. o35.BorderColor3 = Color3.new(0.815686, 0.815686, 0.815686)
  598. o35.FontSize = Enum.FontSize.Size14
  599. o35.TextColor3 = Color3.new(0.737255, 0.894118, 1)
  600. o36.Name = "Description"
  601. o36.Parent = o35
  602. o36.Position = UDim2.new(1,0,0,0)
  603. o36.Size = UDim2.new(0,180,0,20)
  604. o36.Text = "- Level Out"
  605. o36.Position = UDim2.new(1,0,0,0)
  606. o36.BackgroundColor3 = Color3.new(0, 0, 0)
  607. o36.BorderColor3 = Color3.new(0.815686, 0.815686, 0.815686)
  608. o36.FontSize = Enum.FontSize.Size9
  609. o36.TextColor3 = Color3.new(0.737255, 0.894118, 1)
  610. o36.TextXAlignment = Enum.TextXAlignment.Left
  611. o37.Name = "MaxSpeed"
  612. o37.Parent = o16
  613. o37.Value = 150
  614. o38.Name = "TiltFactor"
  615. o38.Parent = o16
  616. o38.Value = 40
  617. o39.Name = "Acceleration"
  618. o39.Parent = o16
  619. o39.Value = 1000
  620. o40.Name = "LiftTrim"
  621. o40.Parent = o16
  622. o40.Value = 16
  623. o41.Name = "README"
  624. o41.Parent = o16
  625. table.insert(cors,coroutine.create(function()
  626. wait()
  627. runDummyScript(function()
  628. --[[
  629.  
  630. Korky5000's AircraftSeat [Version 1.0]
  631.  
  632. ------------------------------------------------------------------------------------------
  633.  
  634. Version Log:
  635.  
  636. -V1.0
  637. First version launched! Comments would be greatly appreciated
  638.  
  639. -V1.1
  640. Fixed Camera
  641. When turned off, speed resets to 0
  642.  
  643. ------------------------------------------------------------------------------------------
  644.  
  645. Thank you for using Mark901's AircraftSeat! Below are instructions
  646. on how to use your seat and make any model fly! If you have any
  647. comments or need to report bugs, glitches, and any other problems,
  648. simply send a message to Mark901. Enjoy! :D
  649.  
  650. Instructions:
  651.  
  652. -- A: Pre-Existing Model --
  653. 1. Use a move tool [in-game or Roblox Studio] and place seat in
  654. desired position
  655. |Note: Make sure no one is using the seat, or else you will be unable
  656. to move it
  657. 2. Sit on the seat
  658. 3. Select the tool
  659. 4. Follow controls in GUI to pilot your vehicle
  660.  
  661. -- B: Building From Scratch --
  662. |Note: These are instructions on how to use this seat during online
  663. mode, at a building game for example
  664. 1. Make a large, flat brick first
  665. 2. Build your vehicle on top of the flat brick [This is to make sure that
  666. the vehicle is not stuck to the ground]
  667. 3. Follow instructions from section A
  668.  
  669. Have fun!
  670. -- Korky5000
  671. end,o41)
  672. end))
  673. o42.Name = "OriginCFrame"
  674. o42.Parent = o16
  675. o42.Value = CFrame.new(0, 0.200000003, 0, -1, 0, -0, -0, 1, -0, -0, 0, -1)
  676. o43.Parent = o16
  677. o43.Size = 30
  678. o43.Color = Color3.new(0, 0, 1)
  679. o43.Enabled = false
  680. o43.Heat = 25
  681. o43.SecondaryColor = Color3.new(0, 0.898039, 1)
  682. o44.Name = "Spread"
  683. o44.Parent = o43
  684. table.insert(cors,coroutine.create(function()
  685. wait()
  686. runDummyScript(function()
  687. function Spread(part)
  688. check = part:findFirstChild("Fire")
  689. if check == nil then
  690. script.Parent:Clone().Parent = part
  691.  
  692. elseif check ~= nil then
  693. check.Size = check.Size + 1
  694. check.Heat = check.Heat +1
  695. end
  696. end
  697.  
  698.  
  699. script.Parent.Parent.Touched:connect(Spread)
  700.  
  701. --Korky5000
  702.  
  703. end,o44)
  704. end))
  705. o45.Name = "OriginCFrame"
  706. o45.Parent = o16
  707. o45.Value = CFrame.new(-22.0051937, 3.18354821, 21.0000019, 0, -0.000791319646, -0.999999642, 2.50374433e-06, 0.999999702, -0.000791319646, 1, -2.50374433e-06, 0)
  708. o46.Name = "OriginCFrame"
  709. o46.Parent = o16
  710. o46.Value = CFrame.new(-1242.03491, 428.376831, 444.081696, 0.999937594, 2.76033497e-05, 0.0111732818, -1.15091716e-05, 0.999998987, -0.00144047826, -0.0111733098, 0.00144025963, 0.999936521)
  711. o47.Parent = o1
  712. o47.BrickColor = BrickColor.new("Really black")
  713. o47.Position = Vector3.new(-43.9651566, 1.5974983, -75.0832825)
  714. o47.Rotation = Vector3.new(-18.5599995, -89.8099976, -18.5599995)
  715. o47.Size = Vector3.new(4, 3.20000005, 3)
  716. o47.CFrame = CFrame.new(-43.9651566, 1.5974983, -75.0832825, 3.76836906e-05, 1.26506784e-05, -0.999994636, 3.75806012e-05, 0.999993563, 1.2420147e-05, 0.999990284, -3.50649789e-05, 3.69979171e-05)
  717. o47.BackSurface = Enum.SurfaceType.Weld
  718. o47.BottomSurface = Enum.SurfaceType.Smooth
  719. o47.TopSurface = Enum.SurfaceType.Smooth
  720. o47.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  721. o47.Position = Vector3.new(-43.9651566, 1.5974983, -75.0832825)
  722. o48.Name = "Part"
  723. o48.Parent = o1
  724. o48.BrickColor = BrickColor.new("Really black")
  725. o48.Position = Vector3.new(-40.4654007, 2.59730029, -75.0829163)
  726. o48.Rotation = Vector3.new(0, -90, 0)
  727. o48.Size = Vector3.new(4, 1.20000005, 4)
  728. o48.CFrame = CFrame.new(-40.4654007, 2.59730029, -75.0829163, 9.59720001e-06, 3.24541793e-06, -1, 2.51621095e-05, 1, 3.2456594e-06, 1, -2.51621404e-05, 9.59711815e-06)
  729. o48.BackSurface = Enum.SurfaceType.Weld
  730. o48.BottomSurface = Enum.SurfaceType.Smooth
  731. o48.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  732. o48.Position = Vector3.new(-40.4654007, 2.59730029, -75.0829163)
  733. o49.Parent = o1
  734. o49.BrickColor = BrickColor.new("Really black")
  735. o49.Position = Vector3.new(-40.4651566, 1.59745431, -75.0834045)
  736. o49.Rotation = Vector3.new(-18.5599995, -89.8099976, -18.5599995)
  737. o49.Size = Vector3.new(4, 0.800000012, 4)
  738. o49.CFrame = CFrame.new(-40.4651566, 1.59745431, -75.0834045, 3.76836906e-05, 1.26506784e-05, -0.999994636, 3.75806012e-05, 0.999993563, 1.2420147e-05, 0.999990284, -3.50649789e-05, 3.69979171e-05)
  739. o49.BackSurface = Enum.SurfaceType.Weld
  740. o49.BottomSurface = Enum.SurfaceType.Smooth
  741. o49.TopSurface = Enum.SurfaceType.Smooth
  742. o49.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  743. o49.Position = Vector3.new(-40.4651566, 1.59745431, -75.0834045)
  744. o50.Name = "Part"
  745. o50.Parent = o1
  746. o50.BrickColor = BrickColor.new("Really black")
  747. o50.Position = Vector3.new(-40.4654007, 0.597376287, -75.0831299)
  748. o50.Rotation = Vector3.new(180, -90, 0)
  749. o50.Size = Vector3.new(4, 1.20000005, 4)
  750. o50.CFrame = CFrame.new(-40.4654007, 0.597376287, -75.0831299, -3.72814138e-05, -1.28568063e-05, -1, -4.33249734e-05, -1, 1.28584215e-05, -1, 4.33254536e-05, 3.72808536e-05)
  751. o50.BackSurface = Enum.SurfaceType.Weld
  752. o50.BottomSurface = Enum.SurfaceType.Smooth
  753. o50.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  754. o50.Position = Vector3.new(-40.4654007, 0.597376287, -75.0831299)
  755. mas.Parent = workspace
  756. mas:MakeJoints()
  757. local mas1 = mas:GetChildren()
  758. for i=1,#mas1 do
  759. mas1[i].Parent = workspace
  760. ypcall(function() mas1[i]:MakeJoints() end)
  761. end
  762. mas:Destroy()
  763. for i=1,#cors do
  764. coroutine.resume(cors[i])
  765. end
  766.  
  767. game:GetService("Lighting").Ambient = Color3.new(0, 0, 0)
  768. game:GetService("Lighting").Brightness = 2
  769. game:GetService("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
  770. game:GetService("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
  771. game:GetService("Lighting").GlobalShadows = true
  772. game:GetService("Lighting").OutdoorAmbient = Color3.new(0.501961, 0.501961, 0.501961)
  773. game:GetService("Lighting").Outlines = false
  774. game:GetService("Lighting").GeographicLatitude = 41.733299255371
  775. game:GetService("Lighting").TimeOfDay = "14:00:00"
  776. game:GetService("Lighting").FogColor = Color3.new(0.752941, 0.752941, 0.752941)
  777. game:GetService("Lighting").FogEnd = 100000
  778. game:GetService("Lighting").FogStart = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement