Advertisement
Guest User

Fling car

a guest
Aug 26th, 2018
1,473
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 53.69 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Part1 = Instance.new("Part")
  21. Weld2 = Instance.new("Weld")
  22. Weld3 = Instance.new("Weld")
  23. UnionOperation4 = Instance.new("UnionOperation")
  24. Weld5 = Instance.new("Weld")
  25. Part6 = Instance.new("Part")
  26. Weld7 = Instance.new("Weld")
  27. Part8 = Instance.new("Part")
  28. Weld9 = Instance.new("Weld")
  29. Weld10 = Instance.new("Weld")
  30. UnionOperation11 = Instance.new("UnionOperation")
  31. Weld12 = Instance.new("Weld")
  32. Part13 = Instance.new("Part")
  33. Weld14 = Instance.new("Weld")
  34. Weld15 = Instance.new("Weld")
  35. Part16 = Instance.new("Part")
  36. Weld17 = Instance.new("Weld")
  37. Part18 = Instance.new("Part")
  38. Weld19 = Instance.new("Weld")
  39. UnionOperation20 = Instance.new("UnionOperation")
  40. Weld21 = Instance.new("Weld")
  41. UnionOperation22 = Instance.new("UnionOperation")
  42. Weld23 = Instance.new("Weld")
  43. Part24 = Instance.new("Part")
  44. Weld25 = Instance.new("Weld")
  45. Weld26 = Instance.new("Weld")
  46. UnionOperation27 = Instance.new("UnionOperation")
  47. Weld28 = Instance.new("Weld")
  48. Part29 = Instance.new("Part")
  49. Weld30 = Instance.new("Weld")
  50. Part31 = Instance.new("Part")
  51. Weld32 = Instance.new("Weld")
  52. UnionOperation33 = Instance.new("UnionOperation")
  53. Weld34 = Instance.new("Weld")
  54. UnionOperation35 = Instance.new("UnionOperation")
  55. Texture36 = Instance.new("Texture")
  56. Texture37 = Instance.new("Texture")
  57. Texture38 = Instance.new("Texture")
  58. Texture39 = Instance.new("Texture")
  59. ParticleEmitter40 = Instance.new("ParticleEmitter")
  60. Part41 = Instance.new("Part")
  61. SurfaceGui42 = Instance.new("SurfaceGui")
  62. Frame43 = Instance.new("Frame")
  63. SurfaceLight44 = Instance.new("SurfaceLight")
  64. Weld45 = Instance.new("Weld")
  65. Part46 = Instance.new("Part")
  66. SurfaceGui47 = Instance.new("SurfaceGui")
  67. Frame48 = Instance.new("Frame")
  68. SurfaceLight49 = Instance.new("SurfaceLight")
  69. Weld50 = Instance.new("Weld")
  70. Configuration51 = Instance.new("Configuration")
  71. NumberValue52 = Instance.new("NumberValue")
  72. NumberValue53 = Instance.new("NumberValue")
  73. NumberValue54 = Instance.new("NumberValue")
  74. NumberValue55 = Instance.new("NumberValue")
  75. NumberValue56 = Instance.new("NumberValue")
  76. Script57 = Instance.new("Script")
  77. LocalScript58 = Instance.new("LocalScript")
  78. ObjectValue59 = Instance.new("ObjectValue")
  79. ModuleScript60 = Instance.new("ModuleScript")
  80. UnionOperation61 = Instance.new("UnionOperation")
  81. Texture62 = Instance.new("Texture")
  82. Texture63 = Instance.new("Texture")
  83. Texture64 = Instance.new("Texture")
  84. Texture65 = Instance.new("Texture")
  85. ParticleEmitter66 = Instance.new("ParticleEmitter")
  86. UnionOperation67 = Instance.new("UnionOperation")
  87. Texture68 = Instance.new("Texture")
  88. Texture69 = Instance.new("Texture")
  89. Texture70 = Instance.new("Texture")
  90. Texture71 = Instance.new("Texture")
  91. ParticleEmitter72 = Instance.new("ParticleEmitter")
  92. UnionOperation73 = Instance.new("UnionOperation")
  93. Texture74 = Instance.new("Texture")
  94. Texture75 = Instance.new("Texture")
  95. Texture76 = Instance.new("Texture")
  96. Texture77 = Instance.new("Texture")
  97. ParticleEmitter78 = Instance.new("ParticleEmitter")
  98. VehicleSeat79 = Instance.new("VehicleSeat")
  99. Part80 = Instance.new("Part")
  100. Script81 = Instance.new("Script")
  101. ObjectValue82 = Instance.new("ObjectValue")
  102. Sound83 = Instance.new("Sound")
  103. Weld84 = Instance.new("Weld")
  104. WeldConstraint85 = Instance.new("WeldConstraint")
  105. Part86 = Instance.new("Part")
  106. Script87 = Instance.new("Script")
  107. ObjectValue88 = Instance.new("ObjectValue")
  108. Sound89 = Instance.new("Sound")
  109. Weld90 = Instance.new("Weld")
  110. WeldConstraint91 = Instance.new("WeldConstraint")
  111. Part92 = Instance.new("Part")
  112. Script93 = Instance.new("Script")
  113. ObjectValue94 = Instance.new("ObjectValue")
  114. Sound95 = Instance.new("Sound")
  115. Weld96 = Instance.new("Weld")
  116. WeldConstraint97 = Instance.new("WeldConstraint")
  117. Part98 = Instance.new("Part")
  118. Script99 = Instance.new("Script")
  119. ObjectValue100 = Instance.new("ObjectValue")
  120. Sound101 = Instance.new("Sound")
  121. Weld102 = Instance.new("Weld")
  122. WeldConstraint103 = Instance.new("WeldConstraint")
  123. Model0.Name = "Jeep"
  124. Model0.Parent = mas
  125. Part1.Name = "Thruster"
  126. Part1.Parent = Model0
  127. Part1.CFrame = CFrame.new(113.350098, 2.51000571, -101.150024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  128. Part1.Orientation = Vector3.new(0, 90, 0)
  129. Part1.Position = Vector3.new(113.350098, 2.51000571, -101.150024)
  130. Part1.Rotation = Vector3.new(0, 90, 0)
  131. Part1.Transparency = 1
  132. Part1.Size = Vector3.new(1, 1, 2)
  133. Part1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  134. Part1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  135. Part1.CanCollide = false
  136. Part1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  137. Part1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  138. Part1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  139. Part1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  140. Part1.FormFactor = Enum.FormFactor.Custom
  141. Part1.formFactor = Enum.FormFactor.Custom
  142. Weld2.Parent = Part1
  143. Weld2.C0 = CFrame.new(-2.5, 0, -4, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  144. Weld2.Part0 = Part16
  145. Weld2.Part1 = Part1
  146. Weld2.part1 = Part1
  147. Weld3.Name = "WheelWeld"
  148. Weld3.Parent = Part1
  149. Weld3.C0 = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  150. Weld3.Part0 = Part1
  151. Weld3.Part1 = UnionOperation73
  152. Weld3.part1 = UnionOperation73
  153. UnionOperation4.Parent = Model0
  154. UnionOperation4.CFrame = CFrame.new(113.850098, 3.76000571, -103.650024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  155. UnionOperation4.Orientation = Vector3.new(0, 90, 0)
  156. UnionOperation4.Position = Vector3.new(113.850098, 3.76000571, -103.650024)
  157. UnionOperation4.Rotation = Vector3.new(0, 90, 0)
  158. UnionOperation4.Color = Color3.new(0.972549, 0.972549, 0.972549)
  159. UnionOperation4.Size = Vector3.new(5.00000191, 2.50000143, 4.00000048)
  160. UnionOperation4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  161. UnionOperation4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  162. UnionOperation4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  163. UnionOperation4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  164. UnionOperation4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  165. UnionOperation4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  166. UnionOperation4.UsePartColor = true
  167. Weld5.Parent = UnionOperation4
  168. Weld5.C0 = CFrame.new(0, 1.25, -3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  169. Weld5.Part0 = Part16
  170. Weld5.Part1 = UnionOperation4
  171. Weld5.part1 = UnionOperation4
  172. Part6.Parent = Model0
  173. Part6.CFrame = CFrame.new(112.100098, 2.26000571, -103.650024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  174. Part6.Orientation = Vector3.new(0, 90, 0)
  175. Part6.Position = Vector3.new(112.100098, 2.26000571, -103.650024)
  176. Part6.Rotation = Vector3.new(0, 90, 0)
  177. Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  178. Part6.Size = Vector3.new(5, 0.5, 0.5)
  179. Part6.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  180. Part6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  181. Part6.BrickColor = BrickColor.new("Really black")
  182. Part6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  183. Part6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  184. Part6.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  185. Part6.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  186. Part6.brickColor = BrickColor.new("Really black")
  187. Part6.FormFactor = Enum.FormFactor.Custom
  188. Part6.formFactor = Enum.FormFactor.Custom
  189. Weld7.Parent = Part6
  190. Weld7.C0 = CFrame.new(0, -0.25, -5.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  191. Weld7.Part0 = Part16
  192. Weld7.Part1 = Part6
  193. Weld7.part1 = Part6
  194. Part8.Name = "Thruster"
  195. Part8.Parent = Model0
  196. Part8.CFrame = CFrame.new(113.350098, 2.51000571, -106.150024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  197. Part8.Orientation = Vector3.new(0, 90, 0)
  198. Part8.Position = Vector3.new(113.350098, 2.51000571, -106.150024)
  199. Part8.Rotation = Vector3.new(0, 90, 0)
  200. Part8.Transparency = 1
  201. Part8.Size = Vector3.new(1, 1, 2)
  202. Part8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  203. Part8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  204. Part8.CanCollide = false
  205. Part8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  206. Part8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  207. Part8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  208. Part8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  209. Part8.FormFactor = Enum.FormFactor.Custom
  210. Part8.formFactor = Enum.FormFactor.Custom
  211. Weld9.Parent = Part8
  212. Weld9.C0 = CFrame.new(2.5, 0, -4, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  213. Weld9.Part0 = Part16
  214. Weld9.Part1 = Part8
  215. Weld9.part1 = Part8
  216. Weld10.Name = "WheelWeld"
  217. Weld10.Parent = Part8
  218. Weld10.C0 = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  219. Weld10.Part0 = Part8
  220. Weld10.Part1 = UnionOperation61
  221. Weld10.part1 = UnionOperation61
  222. UnionOperation11.Parent = Model0
  223. UnionOperation11.CFrame = CFrame.new(121.100098, 3.76000619, -105.900024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  224. UnionOperation11.Orientation = Vector3.new(0, 90, 0)
  225. UnionOperation11.Position = Vector3.new(121.100098, 3.76000619, -105.900024)
  226. UnionOperation11.Rotation = Vector3.new(0, 90, 0)
  227. UnionOperation11.Color = Color3.new(0.972549, 0.972549, 0.972549)
  228. UnionOperation11.Size = Vector3.new(0.500000834, 2.50000095, 3.50000024)
  229. UnionOperation11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  230. UnionOperation11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  231. UnionOperation11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  232. UnionOperation11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  233. UnionOperation11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  234. UnionOperation11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  235. UnionOperation11.UsePartColor = true
  236. Weld12.Parent = UnionOperation11
  237. Weld12.C0 = CFrame.new(2.25, 1.25000048, 3.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  238. Weld12.Part0 = Part16
  239. Weld12.Part1 = UnionOperation11
  240. Weld12.part1 = UnionOperation11
  241. Part13.Name = "Thruster"
  242. Part13.Parent = Model0
  243. Part13.CFrame = CFrame.new(120.850098, 2.51000571, -106.150024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  244. Part13.Orientation = Vector3.new(0, 90, 0)
  245. Part13.Position = Vector3.new(120.850098, 2.51000571, -106.150024)
  246. Part13.Rotation = Vector3.new(0, 90, 0)
  247. Part13.Transparency = 1
  248. Part13.Size = Vector3.new(1, 1, 2)
  249. Part13.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  250. Part13.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  251. Part13.CanCollide = false
  252. Part13.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  253. Part13.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  254. Part13.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  255. Part13.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  256. Part13.FormFactor = Enum.FormFactor.Custom
  257. Part13.formFactor = Enum.FormFactor.Custom
  258. Weld14.Parent = Part13
  259. Weld14.C0 = CFrame.new(2.5, 0, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  260. Weld14.Part0 = Part16
  261. Weld14.Part1 = Part13
  262. Weld14.part1 = Part13
  263. Weld15.Name = "WheelWeld"
  264. Weld15.Parent = Part13
  265. Weld15.C0 = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  266. Weld15.Part0 = Part13
  267. Weld15.Part1 = UnionOperation67
  268. Weld15.part1 = UnionOperation67
  269. Part16.Name = "Chassis"
  270. Part16.Parent = Model0
  271. Part16.CFrame = CFrame.new(117.350098, 2.51000571, -103.650024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  272. Part16.Orientation = Vector3.new(0, 90, 0)
  273. Part16.Position = Vector3.new(117.350098, 2.51000571, -103.650024)
  274. Part16.Rotation = Vector3.new(0, 90, 0)
  275. Part16.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  276. Part16.Size = Vector3.new(4, 1, 10)
  277. Part16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  278. Part16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  279. Part16.BrickColor = BrickColor.new("Really black")
  280. Part16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  281. Part16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  282. Part16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  283. Part16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  284. Part16.brickColor = BrickColor.new("Really black")
  285. Part16.FormFactor = Enum.FormFactor.Custom
  286. Part16.formFactor = Enum.FormFactor.Custom
  287. Weld17.Parent = Part16
  288. Weld17.C1 = CFrame.new(0, -0.550000191, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  289. Weld17.Part0 = Part16
  290. Weld17.Part1 = VehicleSeat79
  291. Weld17.part1 = VehicleSeat79
  292. Part18.Parent = Model0
  293. Part18.CFrame = CFrame.new(120.850098, 3.76000571, -103.650024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  294. Part18.Orientation = Vector3.new(0, 90, 0)
  295. Part18.Position = Vector3.new(120.850098, 3.76000571, -103.650024)
  296. Part18.Rotation = Vector3.new(0, 90, 0)
  297. Part18.Color = Color3.new(0.972549, 0.972549, 0.972549)
  298. Part18.Size = Vector3.new(4, 1.5, 3)
  299. Part18.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  300. Part18.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  301. Part18.BrickColor = BrickColor.new("Institutional white")
  302. Part18.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  303. Part18.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  304. Part18.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  305. Part18.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  306. Part18.brickColor = BrickColor.new("Institutional white")
  307. Part18.FormFactor = Enum.FormFactor.Custom
  308. Part18.formFactor = Enum.FormFactor.Custom
  309. Weld19.Parent = Part18
  310. Weld19.C0 = CFrame.new(0, 1.25, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  311. Weld19.Part0 = Part16
  312. Weld19.Part1 = Part18
  313. Weld19.part1 = Part18
  314. UnionOperation20.Parent = Model0
  315. UnionOperation20.CFrame = CFrame.new(117.350098, 3.51000571, -101.400024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  316. UnionOperation20.Orientation = Vector3.new(0, 90, 0)
  317. UnionOperation20.Position = Vector3.new(117.350098, 3.51000571, -101.400024)
  318. UnionOperation20.Rotation = Vector3.new(0, 90, 0)
  319. UnionOperation20.Color = Color3.new(0.972549, 0.972549, 0.972549)
  320. UnionOperation20.Size = Vector3.new(0.500000834, 3.00000048, 4.00000048)
  321. UnionOperation20.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  322. UnionOperation20.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  323. UnionOperation20.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  324. UnionOperation20.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  325. UnionOperation20.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  326. UnionOperation20.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  327. UnionOperation20.UsePartColor = true
  328. Weld21.Parent = UnionOperation20
  329. Weld21.C0 = CFrame.new(-2.25, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  330. Weld21.Part0 = Part16
  331. Weld21.Part1 = UnionOperation20
  332. Weld21.part1 = UnionOperation20
  333. UnionOperation22.Parent = Model0
  334. UnionOperation22.CFrame = CFrame.new(117.350098, 3.51000571, -105.900024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  335. UnionOperation22.Orientation = Vector3.new(0, 90, 0)
  336. UnionOperation22.Position = Vector3.new(117.350098, 3.51000571, -105.900024)
  337. UnionOperation22.Rotation = Vector3.new(0, 90, 0)
  338. UnionOperation22.Color = Color3.new(0.972549, 0.972549, 0.972549)
  339. UnionOperation22.Size = Vector3.new(0.500000834, 3.00000048, 4.00000048)
  340. UnionOperation22.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  341. UnionOperation22.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  342. UnionOperation22.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  343. UnionOperation22.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  344. UnionOperation22.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  345. UnionOperation22.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  346. UnionOperation22.UsePartColor = true
  347. Weld23.Parent = UnionOperation22
  348. Weld23.C0 = CFrame.new(2.25, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  349. Weld23.Part0 = Part16
  350. Weld23.Part1 = UnionOperation22
  351. Weld23.part1 = UnionOperation22
  352. Part24.Name = "Thruster"
  353. Part24.Parent = Model0
  354. Part24.CFrame = CFrame.new(120.850098, 2.51000571, -101.150024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  355. Part24.Orientation = Vector3.new(0, 90, 0)
  356. Part24.Position = Vector3.new(120.850098, 2.51000571, -101.150024)
  357. Part24.Rotation = Vector3.new(0, 90, 0)
  358. Part24.Transparency = 1
  359. Part24.Size = Vector3.new(1, 1, 2)
  360. Part24.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  361. Part24.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  362. Part24.CanCollide = false
  363. Part24.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  364. Part24.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  365. Part24.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  366. Part24.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  367. Part24.FormFactor = Enum.FormFactor.Custom
  368. Part24.formFactor = Enum.FormFactor.Custom
  369. Weld25.Parent = Part24
  370. Weld25.C0 = CFrame.new(-2.5, 0, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  371. Weld25.Part0 = Part16
  372. Weld25.Part1 = Part24
  373. Weld25.part1 = Part24
  374. Weld26.Name = "WheelWeld"
  375. Weld26.Parent = Part24
  376. Weld26.C0 = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  377. Weld26.Part0 = Part24
  378. Weld26.Part1 = UnionOperation35
  379. Weld26.part1 = UnionOperation35
  380. UnionOperation27.Parent = Model0
  381. UnionOperation27.CFrame = CFrame.new(121.100098, 3.76000619, -101.400024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  382. UnionOperation27.Orientation = Vector3.new(0, 90, 0)
  383. UnionOperation27.Position = Vector3.new(121.100098, 3.76000619, -101.400024)
  384. UnionOperation27.Rotation = Vector3.new(0, 90, 0)
  385. UnionOperation27.Color = Color3.new(0.972549, 0.972549, 0.972549)
  386. UnionOperation27.Size = Vector3.new(0.500000834, 2.50000095, 3.50000024)
  387. UnionOperation27.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  388. UnionOperation27.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  389. UnionOperation27.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  390. UnionOperation27.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  391. UnionOperation27.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  392. UnionOperation27.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  393. UnionOperation27.UsePartColor = true
  394. Weld28.Parent = UnionOperation27
  395. Weld28.C0 = CFrame.new(-2.25, 1.25000048, 3.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  396. Weld28.Part0 = Part16
  397. Weld28.Part1 = UnionOperation27
  398. Weld28.part1 = UnionOperation27
  399. Part29.Parent = Model0
  400. Part29.CFrame = CFrame.new(122.600098, 3.76000571, -103.650024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  401. Part29.Orientation = Vector3.new(0, 90, 0)
  402. Part29.Position = Vector3.new(122.600098, 3.76000571, -103.650024)
  403. Part29.Rotation = Vector3.new(0, 90, 0)
  404. Part29.Color = Color3.new(0.972549, 0.972549, 0.972549)
  405. Part29.Size = Vector3.new(4, 2.5, 0.5)
  406. Part29.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  407. Part29.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  408. Part29.BrickColor = BrickColor.new("Institutional white")
  409. Part29.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  410. Part29.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  411. Part29.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  412. Part29.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  413. Part29.brickColor = BrickColor.new("Institutional white")
  414. Part29.FormFactor = Enum.FormFactor.Custom
  415. Part29.formFactor = Enum.FormFactor.Custom
  416. Weld30.Parent = Part29
  417. Weld30.C0 = CFrame.new(0, 1.25, 5.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  418. Weld30.Part0 = Part16
  419. Weld30.Part1 = Part29
  420. Weld30.part1 = Part29
  421. Part31.Parent = Model0
  422. Part31.CFrame = CFrame.new(122.600098, 2.26000571, -103.650024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  423. Part31.Orientation = Vector3.new(0, 90, 0)
  424. Part31.Position = Vector3.new(122.600098, 2.26000571, -103.650024)
  425. Part31.Rotation = Vector3.new(0, 90, 0)
  426. Part31.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  427. Part31.Size = Vector3.new(5, 0.5, 0.5)
  428. Part31.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  429. Part31.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  430. Part31.BrickColor = BrickColor.new("Really black")
  431. Part31.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  432. Part31.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  433. Part31.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  434. Part31.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  435. Part31.brickColor = BrickColor.new("Really black")
  436. Part31.FormFactor = Enum.FormFactor.Custom
  437. Part31.formFactor = Enum.FormFactor.Custom
  438. Weld32.Parent = Part31
  439. Weld32.C0 = CFrame.new(0, -0.25, 5.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  440. Weld32.Part0 = Part16
  441. Weld32.Part1 = Part31
  442. Weld32.part1 = Part31
  443. UnionOperation33.Parent = Model0
  444. UnionOperation33.CFrame = CFrame.new(115.992813, 6.13779736, -103.650024, 0, 0.242535442, -0.970142543, 0, 0.970142543, 0.242535442, 1, 0, 0)
  445. UnionOperation33.Orientation = Vector3.new(-14.04, -90, 0)
  446. UnionOperation33.Position = Vector3.new(115.992813, 6.13779736, -103.650024)
  447. UnionOperation33.Rotation = Vector3.new(-90, -75.9599991, -90)
  448. UnionOperation33.Color = Color3.new(0.972549, 0.972549, 0.972549)
  449. UnionOperation33.Size = Vector3.new(5.00000381, 2.50000048, 0.300001502)
  450. UnionOperation33.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  451. UnionOperation33.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  452. UnionOperation33.CanCollide = false
  453. UnionOperation33.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  454. UnionOperation33.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  455. UnionOperation33.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  456. UnionOperation33.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  457. UnionOperation33.UsePartColor = true
  458. Weld34.Parent = UnionOperation33
  459. Weld34.C0 = CFrame.new(-1.90734863e-06, 3.62779188, -1.35728073, -1, 0, 0, 0, 0.970142543, 0.242535442, 0, 0.242535442, -0.970142543)
  460. Weld34.Part0 = Part16
  461. Weld34.Part1 = UnionOperation33
  462. Weld34.part1 = UnionOperation33
  463. UnionOperation35.Name = "BackLeftWheel"
  464. UnionOperation35.Parent = Model0
  465. UnionOperation35.CFrame = CFrame.new(120.850098, 1.51000571, -101.150024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  466. UnionOperation35.Orientation = Vector3.new(0, 90, 0)
  467. UnionOperation35.Position = Vector3.new(120.850098, 1.51000571, -101.150024)
  468. UnionOperation35.Rotation = Vector3.new(0, 90, 0)
  469. UnionOperation35.Color = Color3.new(0.105882, 0.164706, 0.207843)
  470. UnionOperation35.Size = Vector3.new(1.5, 3, 3)
  471. UnionOperation35.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  472. UnionOperation35.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  473. UnionOperation35.BrickColor = BrickColor.new("Black")
  474. UnionOperation35.CanCollide = false
  475. UnionOperation35.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  476. UnionOperation35.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  477. UnionOperation35.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  478. UnionOperation35.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  479. UnionOperation35.brickColor = BrickColor.new("Black")
  480. Texture36.Parent = UnionOperation35
  481. Texture36.Texture = "http://www.roblox.com/asset/?id=259149256"
  482. Texture36.Transparency = 0.5
  483. Texture36.Face = Enum.NormalId.Top
  484. Texture36.StudsPerTileU = 3
  485. Texture36.StudsPerTileV = 3
  486. Texture37.Parent = UnionOperation35
  487. Texture37.Texture = "http://www.roblox.com/asset/?id=259149256"
  488. Texture37.Transparency = 0.5
  489. Texture37.StudsPerTileU = 3
  490. Texture37.StudsPerTileV = 3
  491. Texture38.Parent = UnionOperation35
  492. Texture38.Texture = "http://www.roblox.com/asset/?id=259149256"
  493. Texture38.Transparency = 0.5
  494. Texture38.Face = Enum.NormalId.Back
  495. Texture38.StudsPerTileU = 3
  496. Texture38.StudsPerTileV = 3
  497. Texture39.Parent = UnionOperation35
  498. Texture39.Texture = "http://www.roblox.com/asset/?id=259149256"
  499. Texture39.Transparency = 0.5
  500. Texture39.Face = Enum.NormalId.Bottom
  501. Texture39.StudsPerTileU = 3
  502. Texture39.StudsPerTileV = 3
  503. ParticleEmitter40.Parent = UnionOperation35
  504. ParticleEmitter40.Speed = NumberRange.new(0, 0)
  505. ParticleEmitter40.Rotation = NumberRange.new(0, 360)
  506. ParticleEmitter40.Color = ColorSequence.new(Color3.new(0.121569, 0.121569, 0.121569),Color3.new(0.121569, 0.121569, 0.121569))
  507. ParticleEmitter40.Enabled = false
  508. ParticleEmitter40.LightEmission = 0.20000000298023
  509. ParticleEmitter40.Texture = "rbxassetid://287259619"
  510. ParticleEmitter40.Transparency = NumberSequence.new(1,0.80000001192093,0.66874998807907,0.67499995231628,0.8125,1)
  511. ParticleEmitter40.Size = NumberSequence.new(0,0.53763449192047,0.80645143985748,0.91397821903229)
  512. ParticleEmitter40.Acceleration = Vector3.new(0, -5, 0)
  513. ParticleEmitter40.Lifetime = NumberRange.new(0.80000001192093, 1.2000000476837)
  514. ParticleEmitter40.Rate = 50
  515. ParticleEmitter40.RotSpeed = NumberRange.new(-200, 200)
  516. ParticleEmitter40.SpreadAngle = Vector2.new(40, 40)
  517. ParticleEmitter40.VelocitySpread = 40
  518. Part41.Name = "Light"
  519. Part41.Parent = Model0
  520. Part41.CFrame = CFrame.new(112.000099, 4.01000595, -105.150024, 2.46918255e-08, 5.96113381e-08, 1, 0.707106769, 0.707106769, -5.96113381e-08, -0.707106769, 0.707106769, -2.46918255e-08)
  521. Part41.Orientation = Vector3.new(0, 90, 45)
  522. Part41.Position = Vector3.new(112.000099, 4.01000595, -105.150024)
  523. Part41.Rotation = Vector3.new(45, 90, 0)
  524. Part41.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  525. Part41.Size = Vector3.new(1, 1, 0.5)
  526. Part41.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  527. Part41.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  528. Part41.BrickColor = BrickColor.new("Really black")
  529. Part41.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  530. Part41.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  531. Part41.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  532. Part41.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  533. Part41.brickColor = BrickColor.new("Really black")
  534. Part41.FormFactor = Enum.FormFactor.Custom
  535. Part41.formFactor = Enum.FormFactor.Custom
  536. SurfaceGui42.Parent = Part41
  537. SurfaceGui42.CanvasSize = Vector2.new(100, 100)
  538. Frame43.Parent = SurfaceGui42
  539. Frame43.Position = UDim2.new(0.100000001, 0, 0.100000001, 0)
  540. Frame43.Size = UDim2.new(0.800000012, 0, 0.800000012, 0)
  541. Frame43.BackgroundColor = BrickColor.new("Institutional white")
  542. Frame43.BackgroundColor3 = Color3.new(1, 1, 1)
  543. Frame43.BorderSizePixel = 0
  544. SurfaceLight44.Parent = Part41
  545. SurfaceLight44.Range = 32
  546. SurfaceLight44.Brightness = 0.5
  547. SurfaceLight44.Angle = 60
  548. Weld45.Parent = Part41
  549. Weld45.C0 = CFrame.new(1.5, 1.5, -5.35000038, 0.707106769, -0.707106769, 2.46918255e-08, 0.707106769, 0.707106769, -5.96113381e-08, 2.46918255e-08, 5.96113381e-08, 1)
  550. Weld45.Part0 = Part16
  551. Weld45.Part1 = Part41
  552. Weld45.part1 = Part41
  553. Part46.Name = "Light"
  554. Part46.Parent = Model0
  555. Part46.CFrame = CFrame.new(112.000099, 4.01000595, -102.150024, -2.83364479e-08, -6.84102304e-08, 1, 0.707106769, 0.707106769, 6.84102304e-08, -0.707106769, 0.707106769, 2.83364479e-08)
  556. Part46.Orientation = Vector3.new(0, 90, 45)
  557. Part46.Position = Vector3.new(112.000099, 4.01000595, -102.150024)
  558. Part46.Rotation = Vector3.new(45, 90, 0)
  559. Part46.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  560. Part46.Size = Vector3.new(1, 1, 0.5)
  561. Part46.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  562. Part46.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  563. Part46.BrickColor = BrickColor.new("Really black")
  564. Part46.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  565. Part46.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  566. Part46.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  567. Part46.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  568. Part46.brickColor = BrickColor.new("Really black")
  569. Part46.FormFactor = Enum.FormFactor.Custom
  570. Part46.formFactor = Enum.FormFactor.Custom
  571. SurfaceGui47.Parent = Part46
  572. SurfaceGui47.CanvasSize = Vector2.new(100, 100)
  573. Frame48.Parent = SurfaceGui47
  574. Frame48.Position = UDim2.new(0.100000001, 0, 0.100000001, 0)
  575. Frame48.Size = UDim2.new(0.800000012, 0, 0.800000012, 0)
  576. Frame48.BackgroundColor = BrickColor.new("Institutional white")
  577. Frame48.BackgroundColor3 = Color3.new(1, 1, 1)
  578. Frame48.BorderSizePixel = 0
  579. SurfaceLight49.Parent = Part46
  580. SurfaceLight49.Range = 32
  581. SurfaceLight49.Brightness = 0.5
  582. SurfaceLight49.Angle = 60
  583. Weld50.Parent = Part46
  584. Weld50.C0 = CFrame.new(-1.5, 1.5, -5.35000038, 0.707106769, -0.707106769, -2.83364479e-08, 0.707106769, 0.707106769, 6.84102304e-08, -2.83364479e-08, -6.84102304e-08, 1)
  585. Weld50.Part0 = Part16
  586. Weld50.Part1 = Part46
  587. Weld50.part1 = Part46
  588. Configuration51.Name = "Configurations"
  589. Configuration51.Parent = Model0
  590. NumberValue52.Name = "Bounce"
  591. NumberValue52.Parent = Configuration51
  592. NumberValue52.Value = 100
  593. NumberValue53.Name = "Height"
  594. NumberValue53.Parent = Configuration51
  595. NumberValue53.Value = 3
  596. NumberValue54.Name = "Speed"
  597. NumberValue54.Parent = Configuration51
  598. NumberValue54.Value = 80
  599. NumberValue55.Name = "Suspension"
  600. NumberValue55.Parent = Configuration51
  601. NumberValue55.Value = 4
  602. NumberValue56.Name = "TurnSpeed"
  603. NumberValue56.Parent = Configuration51
  604. NumberValue56.Value = 2
  605. Script57.Name = "CarScript"
  606. Script57.Parent = Model0
  607. table.insert(cors,sandbox(Script57,function()
  608. --Scripted by DermonDarble
  609.  
  610. local car = script.Parent
  611. local stats = car.Configurations
  612. local Raycast = require(script.RaycastModule)
  613.  
  614. local mass = 0
  615.  
  616. for i, v in pairs(car:GetChildren()) do
  617. if v:IsA("BasePart") then
  618. mass = mass + (v:GetMass() * 196.2)
  619. end
  620. end
  621.  
  622. local bodyPosition = Instance.new("BodyPosition", car.Chassis)
  623. bodyPosition.MaxForce = Vector3.new()
  624. local bodyGyro = Instance.new("BodyGyro", car.Chassis)
  625. bodyGyro.MaxTorque = Vector3.new()
  626.  
  627. local function UpdateThruster(thruster)
  628. -- Raycasting
  629. local hit, position = Raycast.new(thruster.Position, thruster.CFrame:vectorToWorldSpace(Vector3.new(0, -1, 0)) * stats.Height.Value) --game.Workspace:FindPartOnRay(ray, car)
  630. local thrusterHeight = (position - thruster.Position).magnitude
  631.  
  632. -- Wheel
  633. local wheelWeld = thruster:FindFirstChild("WheelWeld")
  634. wheelWeld.C0 = CFrame.new(0, -math.min(thrusterHeight, stats.Height.Value * 0.8) + (wheelWeld.Part1.Size.Y / 2), 0)
  635. -- Wheel turning
  636. local offset = car.Chassis.CFrame:inverse() * thruster.CFrame
  637. local speed = car.Chassis.CFrame:vectorToObjectSpace(car.Chassis.Velocity)
  638. if offset.Z < 0 then
  639. local direction = 1
  640. if speed.Z > 0 then
  641. direction = -1
  642. end
  643. wheelWeld.C0 = wheelWeld.C0 * CFrame.Angles(0, (car.Chassis.RotVelocity.Y / 2) * direction, 0)
  644. end
  645.  
  646. -- Particles
  647. if hit and thruster.Velocity.magnitude >= 5 then
  648. wheelWeld.Part1.ParticleEmitter.Enabled = true
  649. else
  650. wheelWeld.Part1.ParticleEmitter.Enabled = false
  651. end
  652. end
  653.  
  654. car.DriveSeat.Changed:connect(function(property)
  655. if property == "Occupant" then
  656. if car.DriveSeat.Occupant then
  657. local player = game.Players:GetPlayerFromCharacter(car.DriveSeat.Occupant.Parent)
  658. if player then
  659. car.DriveSeat:SetNetworkOwner(player)
  660. local localCarScript = script.LocalCarScript:Clone()
  661. localCarScript.Parent = player.PlayerGui
  662. localCarScript.Car.Value = car
  663. localCarScript.Disabled = false
  664. end
  665. end
  666. end
  667. end)
  668.  
  669. spawn(function()
  670. while true do
  671. game:GetService("RunService").Stepped:wait()
  672. for i, part in pairs(car:GetChildren()) do
  673. if part.Name == "Thruster" then
  674. UpdateThruster(part)
  675. end
  676. end
  677. if car.DriveSeat.Occupant then
  678. bodyPosition.MaxForce = Vector3.new()
  679. bodyGyro.MaxTorque = Vector3.new()
  680. else
  681. local hit, position, normal = Raycast.new(car.Chassis.Position, car.Chassis.CFrame:vectorToWorldSpace(Vector3.new(0, -1, 0)) * stats.Height.Value)
  682. if hit and hit.CanCollide then
  683. bodyPosition.MaxForce = Vector3.new(mass / 5, math.huge, mass / 5)
  684. bodyPosition.Position = (CFrame.new(position, position + normal) * CFrame.new(0, 0, -stats.Height.Value + 0.5)).p
  685. bodyGyro.MaxTorque = Vector3.new(math.huge, 0, math.huge)
  686. bodyGyro.CFrame = CFrame.new(position, position + normal) * CFrame.Angles(-math.pi/2, 0, 0)
  687. else
  688. bodyPosition.MaxForce = Vector3.new()
  689. bodyGyro.MaxTorque = Vector3.new()
  690. end
  691. end
  692. end
  693. end)
  694. end))
  695. LocalScript58.Name = "LocalCarScript"
  696. LocalScript58.Parent = Script57
  697. table.insert(cors,sandbox(LocalScript58,function()
  698. --Scripted by DermonDarble
  699. local userInputService = game:GetService("UserInputService")
  700. local camera = game.Workspace.CurrentCamera
  701. local player = game.Players.LocalPlayer
  702. local character = player.Character
  703. local humanoidRootPart = character.HumanoidRootPart
  704. local car = script:WaitForChild("Car").Value
  705. local stats = car:WaitForChild("Configurations")
  706. local Raycast = require(car.CarScript.RaycastModule)
  707.  
  708. local cameraType = Enum.CameraType.Follow
  709.  
  710. local movement = Vector2.new()
  711.  
  712. local seat = car:WaitForChild("DriveSeat")
  713.  
  714. seat.Changed:Connect(function(property)
  715. if property == "Throttle" then
  716. movement = Vector2.new(movement.X, seat.Throttle)
  717. end
  718. if property == "Steer" then
  719. movement = Vector2.new(seat.Steer, movement.Y)
  720. end
  721. end)
  722.  
  723. local force = 0
  724. local damping = 0
  725.  
  726. local mass = 0
  727.  
  728. for i, v in pairs(car:GetChildren()) do
  729. if v:IsA("BasePart") then
  730. mass = mass + (v:GetMass() * 196.2)
  731. end
  732. end
  733.  
  734. force = mass * stats.Suspension.Value
  735. damping = force / stats.Bounce.Value
  736.  
  737. local bodyVelocity = Instance.new("BodyVelocity", car.Chassis)
  738. bodyVelocity.velocity = Vector3.new(0, 0, 0)
  739. bodyVelocity.maxForce = Vector3.new(0, 0, 0)
  740.  
  741. local bodyAngularVelocity = Instance.new("BodyAngularVelocity", car.Chassis)
  742. bodyAngularVelocity.angularvelocity = Vector3.new(0, 0, 0)
  743. bodyAngularVelocity.maxTorque = Vector3.new(0, 0, 0)
  744.  
  745. local rotation = 0
  746.  
  747. local function UpdateThruster(thruster)
  748. --Make sure we have a bodythrust to move the wheel
  749. local bodyThrust = thruster:FindFirstChild("BodyThrust")
  750. if not bodyThrust then
  751. bodyThrust = Instance.new("BodyThrust", thruster)
  752. end
  753. --Do some raycasting to get the height of the wheel
  754. local hit, position = Raycast.new(thruster.Position, thruster.CFrame:vectorToWorldSpace(Vector3.new(0, -1, 0)) * stats.Height.Value)
  755. local thrusterHeight = (position - thruster.Position).magnitude
  756. if hit and hit.CanCollide then
  757. --If we're on the ground, apply some forces to push the wheel up
  758. bodyThrust.force = Vector3.new(0, ((stats.Height.Value - thrusterHeight)^2) * (force / stats.Height.Value^2), 0)
  759. local thrusterDamping = thruster.CFrame:toObjectSpace(CFrame.new(thruster.Velocity + thruster.Position)).p * damping
  760. bodyThrust.force = bodyThrust.force - Vector3.new(0, thrusterDamping.Y, 0)
  761. else
  762. bodyThrust.force = Vector3.new(0, 0, 0)
  763. end
  764.  
  765. --Wheels
  766. local wheelWeld = thruster:FindFirstChild("WheelWeld")
  767. if wheelWeld then
  768. wheelWeld.C0 = CFrame.new(0, -math.min(thrusterHeight, stats.Height.Value * 0.8) + (wheelWeld.Part1.Size.Y / 2), 0)
  769. -- Wheel turning
  770. local offset = car.Chassis.CFrame:inverse() * thruster.CFrame
  771. local speed = car.Chassis.CFrame:vectorToObjectSpace(car.Chassis.Velocity)
  772. if offset.Z < 0 then
  773. local direction = 1
  774. if speed.Z > 0 then
  775. direction = -1
  776. end
  777. wheelWeld.C0 = wheelWeld.C0 * CFrame.Angles(0, (car.Chassis.RotVelocity.Y / 2) * direction, 0)
  778. end
  779. wheelWeld.C0 = wheelWeld.C0 * CFrame.Angles(rotation, 0, 0)
  780. end
  781. end
  782.  
  783. --A simple function to check if the car is grounded
  784. local function IsGrounded()
  785. local hit, position = Raycast.new((car.Chassis.CFrame * CFrame.new(0, 0, (car.Chassis.Size.Z / 2) - 1)).p, car.Chassis.CFrame:vectorToWorldSpace(Vector3.new(0, -1, 0)) * (stats.Height.Value + 0.2))
  786. if hit and hit.CanCollide then
  787. return(true)
  788. end
  789. return(false)
  790. end
  791.  
  792. local oldCameraType = camera.CameraType
  793. camera.CameraType = cameraType
  794.  
  795. spawn(function()
  796. while character.Humanoid.SeatPart == car.DriveSeat do
  797. game:GetService("RunService").RenderStepped:wait()
  798.  
  799. --Broken gyro input
  800. --[[if userInputService.GyroscopeEnabled then
  801. local inputObject, cframe = userInputService:GetDeviceRotation()
  802. local up = cframe:vectorToWorldSpace(Vector3.new(0, 1, 0))
  803. local angle = (1 - up.Y) * (math.abs(up.X) / up.X)
  804. movement = Vector2.new(angle, movement.Y)
  805. end]]
  806.  
  807. if IsGrounded() then
  808. if movement.Y ~= 0 then
  809. local velocity = car.Chassis.CFrame.lookVector * movement.Y * stats.Speed.Value
  810. car.Chassis.Velocity = car.Chassis.Velocity:Lerp(velocity, 0.1)
  811. bodyVelocity.maxForce = Vector3.new(0, 0, 0)
  812. else
  813. bodyVelocity.maxForce = Vector3.new(mass / 2, mass / 4, mass / 2)
  814. end
  815. local rotVelocity = car.Chassis.CFrame:vectorToWorldSpace(Vector3.new(movement.Y * stats.Speed.Value / 50, 0, -car.Chassis.RotVelocity.Y * 5 * movement.Y))
  816. local speed = -car.Chassis.CFrame:vectorToObjectSpace(car.Chassis.Velocity).unit.Z
  817. rotation = rotation + math.rad((-stats.Speed.Value / 5) * movement.Y)
  818. if math.abs(speed) > 0.1 then
  819. rotVelocity = rotVelocity + car.Chassis.CFrame:vectorToWorldSpace((Vector3.new(0, -movement.X * speed * stats.TurnSpeed.Value, 0)))
  820. bodyAngularVelocity.maxTorque = Vector3.new(0, 0, 0)
  821. else
  822. bodyAngularVelocity.maxTorque = Vector3.new(mass / 4, mass / 2, mass / 4)
  823. end
  824. car.Chassis.RotVelocity = car.Chassis.RotVelocity:Lerp(rotVelocity, 0.1)
  825.  
  826. --bodyVelocity.maxForce = Vector3.new(mass / 3, mass / 6, mass / 3)
  827. --bodyAngularVelocity.maxTorque = Vector3.new(mass / 6, mass / 3, mass / 6)
  828. else
  829. bodyVelocity.maxForce = Vector3.new(0, 0, 0)
  830. bodyAngularVelocity.maxTorque = Vector3.new(0, 0, 0)
  831. end
  832.  
  833. for i, part in pairs(car:GetChildren()) do
  834. if part.Name == "Thruster" then
  835. UpdateThruster(part)
  836. end
  837. end
  838. end
  839. for i, v in pairs(car:GetChildren()) do
  840. if v:FindFirstChild("BodyThrust") then
  841. v.BodyThrust:Destroy()
  842. end
  843. end
  844. bodyVelocity:Destroy()
  845. bodyAngularVelocity:Destroy()
  846. camera.CameraType = oldCameraType
  847. userInputService.ModalEnabled = false
  848. script:Destroy()
  849. end)
  850. end))
  851. LocalScript58.Disabled = true
  852. ObjectValue59.Name = "Car"
  853. ObjectValue59.Parent = LocalScript58
  854. ModuleScript60.Name = "RaycastModule"
  855. ModuleScript60.Parent = Script57
  856. table.insert(cors,sandbox(ModuleScript60,function()
  857. local module = {}
  858.  
  859. function module.new(startPosition, startDirection)
  860. local maxDistance = startDirection.magnitude
  861. local direction = startDirection.unit
  862. local lastPosition = startPosition
  863. local distance = 0
  864. local ignore = {}
  865.  
  866. local hit, position, normal
  867.  
  868. repeat
  869. local ray = Ray.new(lastPosition, direction * (maxDistance - distance))
  870. hit, position, normal = game.Workspace:FindPartOnRayWithIgnoreList(ray, ignore, false, true)
  871. if hit then
  872. if not hit.CanCollide then
  873. table.insert(ignore, hit)
  874. end
  875. end
  876. distance = (startPosition - position).magnitude
  877. lastPosition = position
  878. until distance >= maxDistance - 0.1 or (hit and hit.CanCollide)
  879. return hit, position, normal
  880. end
  881.  
  882. return module
  883.  
  884. end))
  885. UnionOperation61.Name = "FrontRightWheel"
  886. UnionOperation61.Parent = Model0
  887. UnionOperation61.CFrame = CFrame.new(113.350098, 1.51000571, -106.150024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  888. UnionOperation61.Orientation = Vector3.new(0, 90, 0)
  889. UnionOperation61.Position = Vector3.new(113.350098, 1.51000571, -106.150024)
  890. UnionOperation61.Rotation = Vector3.new(0, 90, 0)
  891. UnionOperation61.Color = Color3.new(0.105882, 0.164706, 0.207843)
  892. UnionOperation61.Size = Vector3.new(1.5, 3, 3)
  893. UnionOperation61.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  894. UnionOperation61.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  895. UnionOperation61.BrickColor = BrickColor.new("Black")
  896. UnionOperation61.CanCollide = false
  897. UnionOperation61.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  898. UnionOperation61.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  899. UnionOperation61.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  900. UnionOperation61.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  901. UnionOperation61.brickColor = BrickColor.new("Black")
  902. Texture62.Parent = UnionOperation61
  903. Texture62.Texture = "http://www.roblox.com/asset/?id=259149256"
  904. Texture62.Transparency = 0.5
  905. Texture62.Face = Enum.NormalId.Top
  906. Texture62.StudsPerTileU = 3
  907. Texture62.StudsPerTileV = 3
  908. Texture63.Parent = UnionOperation61
  909. Texture63.Texture = "http://www.roblox.com/asset/?id=259149256"
  910. Texture63.Transparency = 0.5
  911. Texture63.StudsPerTileU = 3
  912. Texture63.StudsPerTileV = 3
  913. Texture64.Parent = UnionOperation61
  914. Texture64.Texture = "http://www.roblox.com/asset/?id=259149256"
  915. Texture64.Transparency = 0.5
  916. Texture64.Face = Enum.NormalId.Back
  917. Texture64.StudsPerTileU = 3
  918. Texture64.StudsPerTileV = 3
  919. Texture65.Parent = UnionOperation61
  920. Texture65.Texture = "http://www.roblox.com/asset/?id=259149256"
  921. Texture65.Transparency = 0.5
  922. Texture65.Face = Enum.NormalId.Bottom
  923. Texture65.StudsPerTileU = 3
  924. Texture65.StudsPerTileV = 3
  925. ParticleEmitter66.Parent = UnionOperation61
  926. ParticleEmitter66.Speed = NumberRange.new(0, 0)
  927. ParticleEmitter66.Rotation = NumberRange.new(0, 360)
  928. ParticleEmitter66.Color = ColorSequence.new(Color3.new(0.121569, 0.121569, 0.121569),Color3.new(0.121569, 0.121569, 0.121569))
  929. ParticleEmitter66.Enabled = false
  930. ParticleEmitter66.LightEmission = 0.20000000298023
  931. ParticleEmitter66.Texture = "rbxassetid://287259619"
  932. ParticleEmitter66.Transparency = NumberSequence.new(1,0.80000001192093,0.66874998807907,0.67499995231628,0.8125,1)
  933. ParticleEmitter66.Size = NumberSequence.new(0,0.53763449192047,0.80645143985748,0.91397821903229)
  934. ParticleEmitter66.Acceleration = Vector3.new(0, -5, 0)
  935. ParticleEmitter66.Lifetime = NumberRange.new(0.80000001192093, 1.2000000476837)
  936. ParticleEmitter66.Rate = 50
  937. ParticleEmitter66.RotSpeed = NumberRange.new(-200, 200)
  938. ParticleEmitter66.SpreadAngle = Vector2.new(40, 40)
  939. ParticleEmitter66.VelocitySpread = 40
  940. UnionOperation67.Name = "BackRightWheel"
  941. UnionOperation67.Parent = Model0
  942. UnionOperation67.CFrame = CFrame.new(120.850098, 1.51000571, -106.150024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  943. UnionOperation67.Orientation = Vector3.new(0, 90, 0)
  944. UnionOperation67.Position = Vector3.new(120.850098, 1.51000571, -106.150024)
  945. UnionOperation67.Rotation = Vector3.new(0, 90, 0)
  946. UnionOperation67.Color = Color3.new(0.105882, 0.164706, 0.207843)
  947. UnionOperation67.Size = Vector3.new(1.5, 3, 3)
  948. UnionOperation67.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  949. UnionOperation67.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  950. UnionOperation67.BrickColor = BrickColor.new("Black")
  951. UnionOperation67.CanCollide = false
  952. UnionOperation67.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  953. UnionOperation67.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  954. UnionOperation67.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  955. UnionOperation67.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  956. UnionOperation67.brickColor = BrickColor.new("Black")
  957. Texture68.Parent = UnionOperation67
  958. Texture68.Texture = "http://www.roblox.com/asset/?id=259149256"
  959. Texture68.Transparency = 0.5
  960. Texture68.Face = Enum.NormalId.Top
  961. Texture68.StudsPerTileU = 3
  962. Texture68.StudsPerTileV = 3
  963. Texture69.Parent = UnionOperation67
  964. Texture69.Texture = "http://www.roblox.com/asset/?id=259149256"
  965. Texture69.Transparency = 0.5
  966. Texture69.StudsPerTileU = 3
  967. Texture69.StudsPerTileV = 3
  968. Texture70.Parent = UnionOperation67
  969. Texture70.Texture = "http://www.roblox.com/asset/?id=259149256"
  970. Texture70.Transparency = 0.5
  971. Texture70.Face = Enum.NormalId.Back
  972. Texture70.StudsPerTileU = 3
  973. Texture70.StudsPerTileV = 3
  974. Texture71.Parent = UnionOperation67
  975. Texture71.Texture = "http://www.roblox.com/asset/?id=259149256"
  976. Texture71.Transparency = 0.5
  977. Texture71.Face = Enum.NormalId.Bottom
  978. Texture71.StudsPerTileU = 3
  979. Texture71.StudsPerTileV = 3
  980. ParticleEmitter72.Parent = UnionOperation67
  981. ParticleEmitter72.Speed = NumberRange.new(0, 0)
  982. ParticleEmitter72.Rotation = NumberRange.new(0, 360)
  983. ParticleEmitter72.Color = ColorSequence.new(Color3.new(0.121569, 0.121569, 0.121569),Color3.new(0.121569, 0.121569, 0.121569))
  984. ParticleEmitter72.Enabled = false
  985. ParticleEmitter72.LightEmission = 0.20000000298023
  986. ParticleEmitter72.Texture = "rbxassetid://287259619"
  987. ParticleEmitter72.Transparency = NumberSequence.new(1,0.80000001192093,0.66874998807907,0.67499995231628,0.8125,1)
  988. ParticleEmitter72.Size = NumberSequence.new(0,0.53763449192047,0.80645143985748,0.91397821903229)
  989. ParticleEmitter72.Acceleration = Vector3.new(0, -5, 0)
  990. ParticleEmitter72.Lifetime = NumberRange.new(0.80000001192093, 1.2000000476837)
  991. ParticleEmitter72.Rate = 50
  992. ParticleEmitter72.RotSpeed = NumberRange.new(-200, 200)
  993. ParticleEmitter72.SpreadAngle = Vector2.new(40, 40)
  994. ParticleEmitter72.VelocitySpread = 40
  995. UnionOperation73.Name = "FrontLeftWheel"
  996. UnionOperation73.Parent = Model0
  997. UnionOperation73.CFrame = CFrame.new(113.350098, 1.51000571, -101.150024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  998. UnionOperation73.Orientation = Vector3.new(0, 90, 0)
  999. UnionOperation73.Position = Vector3.new(113.350098, 1.51000571, -101.150024)
  1000. UnionOperation73.Rotation = Vector3.new(0, 90, 0)
  1001. UnionOperation73.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1002. UnionOperation73.Size = Vector3.new(1.5, 3, 3)
  1003. UnionOperation73.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1004. UnionOperation73.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1005. UnionOperation73.BrickColor = BrickColor.new("Black")
  1006. UnionOperation73.CanCollide = false
  1007. UnionOperation73.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1008. UnionOperation73.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1009. UnionOperation73.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1010. UnionOperation73.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1011. UnionOperation73.brickColor = BrickColor.new("Black")
  1012. Texture74.Parent = UnionOperation73
  1013. Texture74.Texture = "http://www.roblox.com/asset/?id=259149256"
  1014. Texture74.Transparency = 0.5
  1015. Texture74.Face = Enum.NormalId.Top
  1016. Texture74.StudsPerTileU = 3
  1017. Texture74.StudsPerTileV = 3
  1018. Texture75.Parent = UnionOperation73
  1019. Texture75.Texture = "http://www.roblox.com/asset/?id=259149256"
  1020. Texture75.Transparency = 0.5
  1021. Texture75.StudsPerTileU = 3
  1022. Texture75.StudsPerTileV = 3
  1023. Texture76.Parent = UnionOperation73
  1024. Texture76.Texture = "http://www.roblox.com/asset/?id=259149256"
  1025. Texture76.Transparency = 0.5
  1026. Texture76.Face = Enum.NormalId.Back
  1027. Texture76.StudsPerTileU = 3
  1028. Texture76.StudsPerTileV = 3
  1029. Texture77.Parent = UnionOperation73
  1030. Texture77.Texture = "http://www.roblox.com/asset/?id=259149256"
  1031. Texture77.Transparency = 0.5
  1032. Texture77.Face = Enum.NormalId.Bottom
  1033. Texture77.StudsPerTileU = 3
  1034. Texture77.StudsPerTileV = 3
  1035. ParticleEmitter78.Parent = UnionOperation73
  1036. ParticleEmitter78.Speed = NumberRange.new(0, 0)
  1037. ParticleEmitter78.Rotation = NumberRange.new(0, 360)
  1038. ParticleEmitter78.Color = ColorSequence.new(Color3.new(0.121569, 0.121569, 0.121569),Color3.new(0.121569, 0.121569, 0.121569))
  1039. ParticleEmitter78.Enabled = false
  1040. ParticleEmitter78.LightEmission = 0.20000000298023
  1041. ParticleEmitter78.Texture = "rbxassetid://287259619"
  1042. ParticleEmitter78.Transparency = NumberSequence.new(1,0.80000001192093,0.66874998807907,0.67499995231628,0.8125,1)
  1043. ParticleEmitter78.Size = NumberSequence.new(0,0.53763449192047,0.80645143985748,0.91397821903229)
  1044. ParticleEmitter78.Acceleration = Vector3.new(0, -5, 0)
  1045. ParticleEmitter78.Lifetime = NumberRange.new(0.80000001192093, 1.2000000476837)
  1046. ParticleEmitter78.Rate = 50
  1047. ParticleEmitter78.RotSpeed = NumberRange.new(-200, 200)
  1048. ParticleEmitter78.SpreadAngle = Vector2.new(40, 40)
  1049. ParticleEmitter78.VelocitySpread = 40
  1050. VehicleSeat79.Name = "DriveSeat"
  1051. VehicleSeat79.Parent = Model0
  1052. VehicleSeat79.CFrame = CFrame.new(117.850098, 3.0600059, -103.650024, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1053. VehicleSeat79.Orientation = Vector3.new(0, 90, 0)
  1054. VehicleSeat79.Position = Vector3.new(117.850098, 3.0600059, -103.650024)
  1055. VehicleSeat79.Rotation = Vector3.new(0, 90, 0)
  1056. VehicleSeat79.MaxSpeed = 2000
  1057. VehicleSeat79.Size = Vector3.new(2, 0.200000003, 2)
  1058. VehicleSeat79.TopSurface = Enum.SurfaceType.Smooth
  1059. Part80.Name = "Fling Brick"
  1060. Part80.Parent = Model0
  1061. Part80.CFrame = CFrame.new(110.25, 3, -103.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1062. Part80.Position = Vector3.new(110.25, 3, -103.5)
  1063. Part80.Color = Color3.new(0.156863, 0.498039, 0.278431)
  1064. Part80.Transparency = 1
  1065. Part80.Size = Vector3.new(2, 2, 4.5)
  1066. Part80.BrickColor = BrickColor.new("Dark green")
  1067. Part80.brickColor = BrickColor.new("Dark green")
  1068. Part80.FormFactor = Enum.FormFactor.Symmetric
  1069. Part80.formFactor = Enum.FormFactor.Symmetric
  1070. Script81.Name = "RepelScript"
  1071. Script81.Parent = Part80
  1072. table.insert(cors,sandbox(Script81,function()
  1073. -- Adds a repulsive force to anything this object touches
  1074. local Part = script.Parent
  1075.  
  1076. local Debris = game:GetService('Debris')
  1077.  
  1078. local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
  1079.  
  1080. local MAGNITUDE = 3E4
  1081. local TIME_OF_FORCE = 0.2
  1082.  
  1083. Part.Touched:connect(function(other)
  1084. if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
  1085. if not other.Anchored then
  1086. local punchSound = script:FindFirstChild('PunchSound')
  1087. if punchSound then punchSound:Play() end
  1088. local direction = (other.Position - Part.Position).unit
  1089. local bodyForce = Instance.new('BodyForce')
  1090. bodyForce.force = MAGNITUDE * direction
  1091. bodyForce.Parent = other
  1092. Debris:AddItem(bodyForce, TIME_OF_FORCE)
  1093. end
  1094. end)
  1095.  
  1096.  
  1097. end))
  1098. ObjectValue82.Name = "CharacterToIgnore"
  1099. ObjectValue82.Parent = Script81
  1100. Sound83.Name = "PunchSound"
  1101. Sound83.Parent = Script81
  1102. Sound83.SoundId = "http://www.roblox.com/asset?id=121603067"
  1103. Sound83.Volume = 0.20000000298023
  1104. Weld84.Name = "RightGrip"
  1105. Weld84.Parent = Part80
  1106. Weld84.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  1107. Weld84.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1108. Weld84.Part0 = Part80
  1109. WeldConstraint85.Parent = Part80
  1110. WeldConstraint85.Part0 = Part80
  1111. WeldConstraint85.Part1 = UnionOperation4
  1112. Part86.Name = "Fling Brick"
  1113. Part86.Parent = Model0
  1114. Part86.CFrame = CFrame.new(124.5, 3, -103.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1115. Part86.Position = Vector3.new(124.5, 3, -103.5)
  1116. Part86.Color = Color3.new(0.156863, 0.498039, 0.278431)
  1117. Part86.Transparency = 1
  1118. Part86.Size = Vector3.new(2, 2, 4.5)
  1119. Part86.BrickColor = BrickColor.new("Dark green")
  1120. Part86.brickColor = BrickColor.new("Dark green")
  1121. Part86.FormFactor = Enum.FormFactor.Symmetric
  1122. Part86.formFactor = Enum.FormFactor.Symmetric
  1123. Script87.Name = "RepelScript"
  1124. Script87.Parent = Part86
  1125. table.insert(cors,sandbox(Script87,function()
  1126. -- Adds a repulsive force to anything this object touches
  1127. local Part = script.Parent
  1128.  
  1129. local Debris = game:GetService('Debris')
  1130.  
  1131. local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
  1132.  
  1133. local MAGNITUDE = 3E4
  1134. local TIME_OF_FORCE = 0.2
  1135.  
  1136. Part.Touched:connect(function(other)
  1137. if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
  1138. if not other.Anchored then
  1139. local punchSound = script:FindFirstChild('PunchSound')
  1140. if punchSound then punchSound:Play() end
  1141. local direction = (other.Position - Part.Position).unit
  1142. local bodyForce = Instance.new('BodyForce')
  1143. bodyForce.force = MAGNITUDE * direction
  1144. bodyForce.Parent = other
  1145. Debris:AddItem(bodyForce, TIME_OF_FORCE)
  1146. end
  1147. end)
  1148.  
  1149.  
  1150. end))
  1151. ObjectValue88.Name = "CharacterToIgnore"
  1152. ObjectValue88.Parent = Script87
  1153. Sound89.Name = "PunchSound"
  1154. Sound89.Parent = Script87
  1155. Sound89.SoundId = "http://www.roblox.com/asset?id=121603067"
  1156. Sound89.Volume = 0.20000000298023
  1157. Weld90.Name = "RightGrip"
  1158. Weld90.Parent = Part86
  1159. Weld90.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  1160. Weld90.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1161. Weld90.Part0 = Part86
  1162. WeldConstraint91.Parent = Part86
  1163. WeldConstraint91.Part0 = Part86
  1164. WeldConstraint91.Part1 = UnionOperation4
  1165. Part92.Name = "Fling Brick"
  1166. Part92.Parent = Model0
  1167. Part92.CFrame = CFrame.new(116.75, 3, -100, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1168. Part92.Orientation = Vector3.new(0, -90, 0)
  1169. Part92.Position = Vector3.new(116.75, 3, -100)
  1170. Part92.Rotation = Vector3.new(0, -90, 0)
  1171. Part92.Color = Color3.new(0.156863, 0.498039, 0.278431)
  1172. Part92.Transparency = 1
  1173. Part92.Size = Vector3.new(2, 2, 11.5)
  1174. Part92.BrickColor = BrickColor.new("Dark green")
  1175. Part92.brickColor = BrickColor.new("Dark green")
  1176. Part92.FormFactor = Enum.FormFactor.Symmetric
  1177. Part92.formFactor = Enum.FormFactor.Symmetric
  1178. Script93.Name = "RepelScript"
  1179. Script93.Parent = Part92
  1180. table.insert(cors,sandbox(Script93,function()
  1181. -- Adds a repulsive force to anything this object touches
  1182. local Part = script.Parent
  1183.  
  1184. local Debris = game:GetService('Debris')
  1185.  
  1186. local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
  1187.  
  1188. local MAGNITUDE = 3E4
  1189. local TIME_OF_FORCE = 0.2
  1190.  
  1191. Part.Touched:connect(function(other)
  1192. if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
  1193. if not other.Anchored then
  1194. local punchSound = script:FindFirstChild('PunchSound')
  1195. if punchSound then punchSound:Play() end
  1196. local direction = (other.Position - Part.Position).unit
  1197. local bodyForce = Instance.new('BodyForce')
  1198. bodyForce.force = MAGNITUDE * direction
  1199. bodyForce.Parent = other
  1200. Debris:AddItem(bodyForce, TIME_OF_FORCE)
  1201. end
  1202. end)
  1203.  
  1204.  
  1205. end))
  1206. ObjectValue94.Name = "CharacterToIgnore"
  1207. ObjectValue94.Parent = Script93
  1208. Sound95.Name = "PunchSound"
  1209. Sound95.Parent = Script93
  1210. Sound95.SoundId = "http://www.roblox.com/asset?id=121603067"
  1211. Sound95.Volume = 0.20000000298023
  1212. Weld96.Name = "RightGrip"
  1213. Weld96.Parent = Part92
  1214. Weld96.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  1215. Weld96.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1216. Weld96.Part0 = Part92
  1217. WeldConstraint97.Parent = Part92
  1218. WeldConstraint97.Part0 = Part92
  1219. WeldConstraint97.Part1 = UnionOperation4
  1220. Part98.Name = "Fling Brick"
  1221. Part98.Parent = Model0
  1222. Part98.CFrame = CFrame.new(117, 3, -107.25, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1223. Part98.Orientation = Vector3.new(0, -90, 0)
  1224. Part98.Position = Vector3.new(117, 3, -107.25)
  1225. Part98.Rotation = Vector3.new(0, -90, 0)
  1226. Part98.Color = Color3.new(0.156863, 0.498039, 0.278431)
  1227. Part98.Transparency = 1
  1228. Part98.Size = Vector3.new(2, 2, 11.5)
  1229. Part98.BrickColor = BrickColor.new("Dark green")
  1230. Part98.brickColor = BrickColor.new("Dark green")
  1231. Part98.FormFactor = Enum.FormFactor.Symmetric
  1232. Part98.formFactor = Enum.FormFactor.Symmetric
  1233. Script99.Name = "RepelScript"
  1234. Script99.Parent = Part98
  1235. table.insert(cors,sandbox(Script99,function()
  1236. -- Adds a repulsive force to anything this object touches
  1237. local Part = script.Parent
  1238.  
  1239. local Debris = game:GetService('Debris')
  1240.  
  1241. local CharacterToIgnore = script:WaitForChild('CharacterToIgnore').Value
  1242.  
  1243. local MAGNITUDE = 3E4
  1244. local TIME_OF_FORCE = 0.2
  1245.  
  1246. Part.Touched:connect(function(other)
  1247. if other.Parent == CharacterToIgnore or (other.Parent and other.Parent.Parent == CharacterToIgnore) then return end
  1248. if not other.Anchored then
  1249. local punchSound = script:FindFirstChild('PunchSound')
  1250. if punchSound then punchSound:Play() end
  1251. local direction = (other.Position - Part.Position).unit
  1252. local bodyForce = Instance.new('BodyForce')
  1253. bodyForce.force = MAGNITUDE * direction
  1254. bodyForce.Parent = other
  1255. Debris:AddItem(bodyForce, TIME_OF_FORCE)
  1256. end
  1257. end)
  1258.  
  1259.  
  1260. end))
  1261. ObjectValue100.Name = "CharacterToIgnore"
  1262. ObjectValue100.Parent = Script99
  1263. Sound101.Name = "PunchSound"
  1264. Sound101.Parent = Script99
  1265. Sound101.SoundId = "http://www.roblox.com/asset?id=121603067"
  1266. Sound101.Volume = 0.20000000298023
  1267. Weld102.Name = "RightGrip"
  1268. Weld102.Parent = Part98
  1269. Weld102.C0 = CFrame.new(0, -1, 0, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  1270. Weld102.C1 = CFrame.new(-0.200000003, 0, -0.150000006, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1271. Weld102.Part0 = Part98
  1272. WeldConstraint103.Parent = Part98
  1273. WeldConstraint103.Part0 = Part98
  1274. WeldConstraint103.Part1 = UnionOperation4
  1275. for i,v in pairs(mas:GetChildren()) do
  1276. v.Parent = workspace
  1277. pcall(function() v:MakeJoints() end)
  1278. end
  1279. mas:Destroy()
  1280. for i,v in pairs(cors) do
  1281. spawn(function()
  1282. pcall(v)
  1283. end)
  1284. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement