Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.40 KB | None | 0 0
  1. receiver = game.Players.DarkEder
  2. color = BrickColor.Red()
  3. colorB = BrickColor.Black()
  4.  
  5. mc = Instance.new("Model")
  6. mc.Name = "Plane"
  7. mc.Parent = receiver.Character
  8.  
  9. v = Instance.new("IntValue")
  10. v.Name = "PlaneCheck"
  11. v.Value = 0
  12. v.Parent = mc
  13.  
  14. v = Instance.new("IntValue")
  15. v.Name = "Stunt"
  16. v.Value = 0
  17. v.Parent = mc
  18.  
  19. md = Instance.new("Model")
  20. md.Name = "Parts"
  21. md.Parent = mc
  22.  
  23. x = Instance.new("Part")
  24. x.formFactor = "Plate"
  25. x.BackSurface = "Smooth"
  26. x.FrontSurface = "Smooth"
  27. x.TopSurface = "Weld"
  28. x.Size = Vector3.new(6, 0.4, 6)
  29. x.BrickColor = color
  30. x.Position = Vector3.new(-13, 6.2, 6)
  31. x.Parent = md
  32.  
  33. a = Instance.new("Part")
  34. a.formFactor = "Plate"
  35. a.BackSurface = "Weld"
  36. a.FrontSurface = "Weld"
  37. a.TopSurface = "Weld"
  38. a.LeftSurface = "Motor"
  39. a.RightSurface = "Motor"
  40. a.LeftSurfaceInput = "Constant"
  41. a.RightSurfaceInput = "Constant"
  42. a.LeftParamB = 0
  43. a.RightParamB = 0
  44. a.Size = Vector3.new(2, 0.4, 2)
  45. a.BrickColor = color
  46. a.Position = Vector3.new(-13, 6.2, 10)
  47. a.Name = "backAxle"
  48. a.Parent = md
  49.  
  50. g = Instance.new("Part")
  51. g.formFactor = "Plate"
  52. g.BackSurface = "Weld"
  53. g.FrontSurface = "Weld"
  54. g.TopSurface = "Weld"
  55. g.LeftSurface = "Motor"
  56. g.RightSurface = "Motor"
  57. g.LeftSurfaceInput = "Constant"
  58. g.RightSurfaceInput = "Constant"
  59. g.LeftParamB = 0
  60. g.RightParamB = 0
  61. g.Size = Vector3.new(2, 0.4, 2)
  62. g.BrickColor = color
  63. g.Position = Vector3.new(-13, 6.2, 2)
  64. g.Parent = md
  65.  
  66. s = Instance.new("Script")
  67. s.Source = "while true do script.Parent.RightParamB = script.Parent.Parent.backAxle.RightParamB script.Parent.LeftParamB = script.Parent.Parent.backAxle.LeftParamB wait() end "
  68. s.Parent = g
  69.  
  70. s = Instance.new("Part")
  71. s.Shape = "Cylinder"
  72. s.TopSurface = "Smooth"
  73. s.BottomSurface = "Smooth"
  74. s.Size = Vector3.new(2,2,2)
  75. s.BrickColor = BrickColor.Black()
  76. s.Position = Vector3.new(-15, 6.2, 10)
  77. s.Parent = md
  78.  
  79. s = Instance.new("Part")
  80. s.Shape = "Cylinder"
  81. s.TopSurface = "Smooth"
  82. s.BottomSurface = "Smooth"
  83. s.Size = Vector3.new(2,2,2)
  84. s.BrickColor = BrickColor.Black()
  85. s.Position = Vector3.new(-15, 6.2, 2)
  86. s.Parent = md
  87.  
  88. s = Instance.new("Part")
  89. s.Shape = "Cylinder"
  90. s.TopSurface = "Smooth"
  91. s.BottomSurface = "Smooth"
  92. s.Size = Vector3.new(2,2,2)
  93. s.BrickColor = BrickColor.Black()
  94. s.Position = Vector3.new(-11, 6.2, 10)
  95. s.Parent = md
  96.  
  97. s = Instance.new("Part")
  98. s.Shape = "Cylinder"
  99. s.TopSurface = "Smooth"
  100. s.BottomSurface = "Smooth"
  101. s.Size = Vector3.new(2,2,2)
  102. s.BrickColor = BrickColor.Black()
  103. s.Position = Vector3.new(-11, 6.2, 2)
  104. s.Parent = md
  105.  
  106. x = Instance.new("Part")
  107. x.formFactor = "Plate"
  108. x.BackSurface = "Smooth"
  109. x.FrontSurface = "Smooth"
  110. x.TopSurface = "Weld"
  111. x.Size = Vector3.new(1, 1.2, 3)
  112. x.BrickColor = color
  113. x.Position = Vector3.new(-15.5, 7, 6.5)
  114. x.Parent = md
  115.  
  116. x = Instance.new("Part")
  117. x.formFactor = "Plate"
  118. x.BackSurface = "Smooth"
  119. x.FrontSurface = "Smooth"
  120. x.TopSurface = "Weld"
  121. x.Size = Vector3.new(2, 1.2, 2)
  122. x.BrickColor = color
  123. x.Position = Vector3.new(-13, 6.99, 2)
  124. x.Parent = md
  125.  
  126. x = Instance.new("Part")
  127. x.formFactor = "Plate"
  128. x.BackSurface = "Smooth"
  129. x.FrontSurface = "Smooth"
  130. x.TopSurface = "Weld"
  131. x.Size = Vector3.new(6, 1.2, 2)
  132. x.BrickColor = color
  133. x.Position = Vector3.new(-13, 6.99, 4)
  134. x.Parent = md
  135.  
  136. x = Instance.new("Part")
  137. x.formFactor = "Plate"
  138. x.BackSurface = "Smooth"
  139. x.FrontSurface = "Smooth"
  140. x.TopSurface = "Weld"
  141. x.Size = Vector3.new(6, 1.6, 1)
  142. x.BrickColor = color
  143. x.Position = Vector3.new(-13, 6.79, 11.5)
  144. x.Parent = md
  145.  
  146. x = Instance.new("Part")
  147. x.formFactor = "Plate"
  148. x.BackSurface = "Smooth"
  149. x.FrontSurface = "Smooth"
  150. x.TopSurface = "Smooth"
  151. x.Size = Vector3.new(6, 0.4, 5)
  152. x.BrickColor = color
  153. x.Position = Vector3.new(-13, 7.79, 2.5)
  154. x.Parent = md
  155.  
  156. x = Instance.new("Part")
  157. x.formFactor = "Plate"
  158. x.BackSurface = "Smooth"
  159. x.FrontSurface = "Smooth"
  160. x.TopSurface = "Weld"
  161. x.Size = Vector3.new(1, 1.2, 3)
  162. x.BrickColor = color
  163. x.Name = "Engine"
  164. x.Position = Vector3.new(-10.5, 6.99, 6.5)
  165. x.Parent = md
  166.  
  167. x = Instance.new("Part")
  168. x.formFactor = "Plate"
  169. x.BackSurface = "Smooth"
  170. x.FrontSurface = "Smooth"
  171. x.TopSurface = "Weld"
  172. x.Size = Vector3.new(2, 1.2, 2)
  173. x.BrickColor = color
  174. x.Position = Vector3.new(-13, 6.99, 10)
  175. x.Parent = md
  176.  
  177. x = Instance.new("Part")
  178. x.formFactor = "Plate"
  179. x.BackSurface = "Smooth"
  180. x.FrontSurface = "Smooth"
  181. x.TopSurface = "Smooth"
  182. x.Size = Vector3.new(6, 0.4, 4)
  183. x.BrickColor = color
  184. x.Position = Vector3.new(-13, 7.79, 10)
  185. x.Parent = md
  186.  
  187. x = Instance.new("Part")
  188. x.formFactor = "Plate"
  189. x.BackSurface = "Smooth"
  190. x.FrontSurface = "Smooth"
  191. x.TopSurface = "Weld"
  192. x.Size = Vector3.new(6, 1.6, 1)
  193. x.BrickColor = color
  194. x.Position = Vector3.new(-13, 6.79, 0.5)
  195. x.Parent = md
  196.  
  197. x = Instance.new("Part")
  198. x.formFactor = "Plate"
  199. x.BackSurface = "Smooth"
  200. x.FrontSurface = "Smooth"
  201. x.TopSurface = "Weld"
  202. x.Size = Vector3.new(6, 1.2, 1)
  203. x.BrickColor = color
  204. x.Position = Vector3.new(-13, 6.99, 8.5)
  205. x.Parent = md
  206.  
  207. x = Instance.new("Part")
  208. x.formFactor = "Plate"
  209. x.BackSurface = "Smooth"
  210. x.FrontSurface = "Smooth"
  211. x.TopSurface = "Smooth"
  212. x.BottomSurface = "Weld"
  213. x.Size = Vector3.new(6, 1.2, 1)
  214. x.BrickColor = BrickColor.White()
  215. x.Position = Vector3.new(-13, 8.6, 4.5)
  216. x.Transparency = 0.5
  217. x.Parent = md
  218.  
  219. x = Instance.new("Seat")
  220. x.formFactor = "Plate"
  221. x.BackSurface = "Smooth"
  222. x.FrontSurface = "Smooth"
  223. x.TopSurface = "Smooth"
  224. x.BottomSurface = "Weld"
  225. x.Size = Vector3.new(2, 0.4, 2)
  226. x.BrickColor = colorB
  227. x.Name = "Seat2"
  228. x.Position = Vector3.new(-12, 6.6, 7)
  229. x.Parent = md
  230.  
  231. x = Instance.new("Seat")
  232. x.formFactor = "Plate"
  233. x.BackSurface = "Smooth"
  234. x.FrontSurface = "Smooth"
  235. x.TopSurface = "Smooth"
  236. x.BottomSurface = "Weld"
  237. x.Size = Vector3.new(2, 0.4, 2)
  238. x.BrickColor = colorB
  239. x.Position = Vector3.new(-14, 6.6, 7)
  240. x.Parent = md
  241.  
  242. x = Instance.new("Part")
  243. x.formFactor = "Plate"
  244. x.BackSurface = "Smooth"
  245. x.FrontSurface = "Smooth"
  246. x.TopSurface = "Smooth"
  247. x.BottomSurface = "Weld"
  248. x.Size = Vector3.new(1, 0.4, 2)
  249. x.BrickColor = color
  250. x.Position = Vector3.new(-11.5, 8.2, 11)
  251. x.Parent = md
  252.  
  253. x = Instance.new("Part")
  254. x.formFactor = "Plate"
  255. x.BackSurface = "Smooth"
  256. x.FrontSurface = "Smooth"
  257. x.TopSurface = "Smooth"
  258. x.BottomSurface = "Weld"
  259. x.Size = Vector3.new(2, 0.4, 2)
  260. x.BrickColor = color
  261. x.Position = Vector3.new(-13, 8.2, 2)
  262. x.Parent = md
  263.  
  264. x = Instance.new("Part")
  265. x.formFactor = "Plate"
  266. x.BackSurface = "Smooth"
  267. x.FrontSurface = "Smooth"
  268. x.TopSurface = "Smooth"
  269. x.BottomSurface = "Weld"
  270. x.Size = Vector3.new(6, 0.4, 1)
  271. x.BrickColor = color
  272. x.Position = Vector3.new(-13, 8.6, 11.5)
  273. x.Parent = md
  274.  
  275. x = Instance.new("Part")
  276. x.formFactor = "Plate"
  277. x.BackSurface = "Smooth"
  278. x.FrontSurface = "Smooth"
  279. x.TopSurface = "Smooth"
  280. x.BottomSurface = "Weld"
  281. x.Size = Vector3.new(1, 0.4, 2)
  282. x.BrickColor = color
  283. x.Position = Vector3.new(-14.5, 8.2, 11)
  284. x.Parent = md
  285.  
  286. r = Instance.new("Part")
  287. r.formFactor = "Plate"
  288. r.BackSurface = "Weld"
  289. r.FrontSurface = "Smooth"
  290. r.TopSurface = "Smooth"
  291. r.BottomSurface = "Smooth"
  292. r.Size = Vector3.new(1, 0.8, 1)
  293. r.BrickColor = color
  294. r.Position = Vector3.new(-10.5, 7.2, -0.5)
  295. r.Transparency = 1
  296. r.Parent = md
  297.  
  298. s = Instance.new("Part")
  299. s.formFactor = "Plate"
  300. s.BackSurface = "Weld"
  301. s.FrontSurface = "Smooth"
  302. s.TopSurface = "Smooth"
  303. s.BottomSurface = "Smooth"
  304. s.Size = Vector3.new(1, 0.8, 1)
  305. s.BrickColor = color
  306. s.Position = Vector3.new(-15.5, 7.2, -0.5)
  307. s.Transparency = 1
  308. s.Parent = md
  309.  
  310. md:makeJoints()
  311.  
  312. b = md:children()
  313. for i=1,#b do
  314. if (b[i].className == "Part") then
  315. b[i].Locked = true
  316. end
  317. end
  318.  
  319. t = Instance.new("HopperBin")
  320. t.Name = "VI Car tool"
  321. t.Parent = receiver.Backpack
  322.  
  323. s = Instance.new("Script")
  324. s.Source = [[bin=script.Parent
  325. plane=nil
  326. hold=false
  327. local debounce = false
  328. local planedebounce = false
  329. local stuntdebounce = false
  330. local controlling = false
  331.  
  332. function onSelected(mouse)
  333. mouse.KeyDown:connect(onKeyDown)
  334. while true do
  335. mouse.Icon = "rbxasset://textures\\W_Key.png"
  336. wait(1)
  337. mouse.Icon = "rbxasset://textures\\A_Key.png"
  338. wait(1)
  339. mouse.Icon = "rbxasset://textures\\S_Key.png"
  340. wait(1)
  341. mouse.Icon = "rbxasset://textures\\D_Key.png"
  342. wait(1)
  343. end
  344. end
  345.  
  346. function onKeyDown(key)
  347. if (key~=nil) then
  348. key = key:lower()
  349. local vehicle = script.Parent.Parent.Parent.Character:findFirstChild("Plane")
  350. if (vehicle==nil) then return end
  351. plane = vehicle.Parts
  352. local engine = vehicle.Parts.Engine
  353.  
  354. if (key=="x") and planedebounce == false then
  355. engine.Parent.backAxle.RightParamB = 0
  356. engine.Parent.backAxle.LeftParamB = 0
  357. end
  358. if (key=="s" and engine.Parent.backAxle.RightParamB == 0 and engine.Parent.backAxle.LeftParamB == 0) then
  359. engine.Parent.backAxle.RightParamB = 1
  360. engine.Parent.backAxle.LeftParamB = -1
  361. end
  362. if (key=="s" and engine.Parent.backAxle.RightParamB == 0 and engine.Parent.backAxle.LeftParamB ~= 0) then
  363. engine.Parent.backAxle.RightParamB = engine.Parent.backAxle.LeftParamB * -1
  364. end
  365. if (key=="s" and engine.Parent.backAxle.RightParamB ~= 0 and engine.Parent.backAxle.LeftParamB == 0) then
  366. engine.Parent.backAxle.LeftParamB = engine.Parent.backAxle.RightParamB * -1
  367. end
  368. if (key=="w" and engine.Parent.backAxle.RightParamB == 0 and engine.Parent.backAxle.LeftParamB == 0) then
  369. engine.Parent.backAxle.RightParamB = -1
  370. engine.Parent.backAxle.LeftParamB = 1
  371. end
  372. if (key=="w" and engine.Parent.backAxle.RightParamB == 0 and engine.Parent.backAxle.LeftParamB ~= 0) then
  373. engine.Parent.backAxle.RightParamB = engine.Parent.backAxle.LeftParamB * -1
  374. end
  375. if (key=="w" and engine.Parent.backAxle.RightParamB ~= 0 and engine.Parent.backAxle.LeftParamB == 0) then
  376. engine.Parent.backAxle.LeftParamB = engine.Parent.backAxle.RightParamB * -1
  377. end
  378. if (key=="d") then
  379. engine.Parent.backAxle.LeftParamB = engine.Parent.backAxle.RightParamB * -1
  380. engine.Parent.backAxle.RightParamB = 0
  381. end
  382. if (key=="a") then
  383. engine.Parent.backAxle.RightParamB = engine.Parent.backAxle.LeftParamB * -1
  384. engine.Parent.backAxle.LeftParamB = 0
  385. end
  386. if (key=="n") then
  387. engine.Parent.backAxle.RightParamB = engine.Parent.backAxle.RightParamB + 0.1
  388. engine.Parent.backAxle.LeftParamB = engine.Parent.backAxle.LeftParamB - 0.1
  389. end
  390. if (key=="m") then
  391. engine.Parent.backAxle.RightParamB = engine.Parent.backAxle.RightParamB - 0.1
  392. engine.Parent.backAxle.LeftParamB = engine.Parent.backAxle.LeftParamB + 0.1
  393. end
  394. end
  395. end
  396.  
  397. bin.Selected:connect(onSelected)]]
  398.  
  399. s.Disabled = false
  400. s.Parent = t
  401.  
  402. --Removing this message or editing it's content is punishable by law.
  403.  
  404. msg = Instance.new("Message")
  405. msg.Text = "MrHavic's script builder car loaded for " .. receiver.Name
  406. msg.Parent = game.Workspace
  407. wait(3)
  408. msg.Parent = nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement