bonniekawaiidesu

Untitled

Mar 3rd, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 50.19 KB | None | 0 0
  1. function sandbox(var,func)
  2.     local env = getfenv(func)
  3.     local newenv = setmetatable({},{
  4.         __index = function(self,k)
  5.             if k=="script" then
  6.                 return var
  7.             else
  8.                 return env[k]
  9.             end
  10.         end,
  11.     })
  12.     setfenv(func,newenv)
  13.     return func
  14. end
  15. cors = {}
  16. mas = Instance.new("Model",game:GetService("Lighting"))
  17. Model0 = Instance.new("Model")
  18. Part1 = Instance.new("Part")
  19. Weld2 = Instance.new("Weld")
  20. Weld3 = Instance.new("Weld")
  21. UnionOperation4 = Instance.new("UnionOperation")
  22. Texture5 = Instance.new("Texture")
  23. Texture6 = Instance.new("Texture")
  24. Texture7 = Instance.new("Texture")
  25. Texture8 = Instance.new("Texture")
  26. ParticleEmitter9 = Instance.new("ParticleEmitter")
  27. Part10 = Instance.new("Part")
  28. Weld11 = Instance.new("Weld")
  29. Weld12 = Instance.new("Weld")
  30. Part13 = Instance.new("Part")
  31. Weld14 = Instance.new("Weld")
  32. Weld15 = Instance.new("Weld")
  33. Part16 = Instance.new("Part")
  34. ManualWeld17 = Instance.new("ManualWeld")
  35. BodyPosition18 = Instance.new("BodyPosition")
  36. BodyGyro19 = Instance.new("BodyGyro")
  37. ManualWeld20 = Instance.new("ManualWeld")
  38. VehicleSeat21 = Instance.new("VehicleSeat")
  39. Part22 = Instance.new("Part")
  40. Part23 = Instance.new("Part")
  41. Weld24 = Instance.new("Weld")
  42. Weld25 = Instance.new("Weld")
  43. Part26 = Instance.new("Part")
  44. Weld27 = Instance.new("Weld")
  45. Part28 = Instance.new("Part")
  46. Weld29 = Instance.new("Weld")
  47. Part30 = Instance.new("Part")
  48. Weld31 = Instance.new("Weld")
  49. ManualWeld32 = Instance.new("ManualWeld")
  50. UnionOperation33 = Instance.new("UnionOperation")
  51. Texture34 = Instance.new("Texture")
  52. Texture35 = Instance.new("Texture")
  53. Texture36 = Instance.new("Texture")
  54. Texture37 = Instance.new("Texture")
  55. ParticleEmitter38 = Instance.new("ParticleEmitter")
  56. ManualWeld39 = Instance.new("ManualWeld")
  57. UnionOperation40 = Instance.new("UnionOperation")
  58. Texture41 = Instance.new("Texture")
  59. Texture42 = Instance.new("Texture")
  60. Texture43 = Instance.new("Texture")
  61. Texture44 = Instance.new("Texture")
  62. ParticleEmitter45 = Instance.new("ParticleEmitter")
  63. ManualWeld46 = Instance.new("ManualWeld")
  64. Configuration47 = Instance.new("Configuration")
  65. NumberValue48 = Instance.new("NumberValue")
  66. NumberValue49 = Instance.new("NumberValue")
  67. NumberValue50 = Instance.new("NumberValue")
  68. NumberValue51 = Instance.new("NumberValue")
  69. NumberValue52 = Instance.new("NumberValue")
  70. Script53 = Instance.new("Script")
  71. LocalScript54 = Instance.new("LocalScript")
  72. ObjectValue55 = Instance.new("ObjectValue")
  73. ModuleScript56 = Instance.new("ModuleScript")
  74. Part57 = Instance.new("Part")
  75. Weld58 = Instance.new("Weld")
  76. SurfaceLight59 = Instance.new("SurfaceLight")
  77. SurfaceGui60 = Instance.new("SurfaceGui")
  78. Frame61 = Instance.new("Frame")
  79. Part62 = Instance.new("Part")
  80. Weld63 = Instance.new("Weld")
  81. SurfaceLight64 = Instance.new("SurfaceLight")
  82. SurfaceGui65 = Instance.new("SurfaceGui")
  83. Frame66 = Instance.new("Frame")
  84. UnionOperation67 = Instance.new("UnionOperation")
  85. Weld68 = Instance.new("Weld")
  86. Sound69 = Instance.new("Sound")
  87. Weld70 = Instance.new("Weld")
  88. UnionOperation71 = Instance.new("UnionOperation")
  89. Weld72 = Instance.new("Weld")
  90. UnionOperation73 = Instance.new("UnionOperation")
  91. ManualWeld74 = Instance.new("ManualWeld")
  92. Weld75 = Instance.new("Weld")
  93. UnionOperation76 = Instance.new("UnionOperation")
  94. ManualWeld77 = Instance.new("ManualWeld")
  95. Weld78 = Instance.new("Weld")
  96. UnionOperation79 = Instance.new("UnionOperation")
  97. Weld80 = Instance.new("Weld")
  98. UnionOperation81 = Instance.new("UnionOperation")
  99. Weld82 = Instance.new("Weld")
  100. Part83 = Instance.new("Part")
  101. Part84 = Instance.new("Part")
  102. Weld85 = Instance.new("Weld")
  103. ManualWeld86 = Instance.new("ManualWeld")
  104. UnionOperation87 = Instance.new("UnionOperation")
  105. Texture88 = Instance.new("Texture")
  106. Texture89 = Instance.new("Texture")
  107. Texture90 = Instance.new("Texture")
  108. Texture91 = Instance.new("Texture")
  109. ParticleEmitter92 = Instance.new("ParticleEmitter")
  110. Sound93 = Instance.new("Sound")
  111. Part94 = Instance.new("Part")
  112. Fire95 = Instance.new("Fire")
  113. Script96 = Instance.new("Script")
  114. RopeConstraint97 = Instance.new("RopeConstraint")
  115. Model0.Name = "Jeep"
  116. Model0.Parent = mas
  117. Part1.Name = "Thruster"
  118. Part1.Parent = Model0
  119. Part1.CFrame = CFrame.new(-7.52466774, 2.55091739, 11.2807693, 1, 0.000128672531, -2.20618563e-08, -0.000128672531, 1, -2.12771629e-05, 1.94506065e-08, 2.10447142e-05, 1)
  120. Part1.Orientation = Vector3.new(0, 0, -0.00999999978)
  121. Part1.Position = Vector3.new(-7.52466774, 2.55091739, 11.2807693)
  122. Part1.Rotation = Vector3.new(0, 0, -0.00999999978)
  123. Part1.Transparency = 1
  124. Part1.Size = Vector3.new(1, 1, 2)
  125. Part1.BottomSurface = Enum.SurfaceType.Smooth
  126. Part1.CanCollide = false
  127. Part1.TopSurface = Enum.SurfaceType.Smooth
  128. Part1.FormFactor = Enum.FormFactor.Custom
  129. Part1.formFactor = Enum.FormFactor.Custom
  130. Weld2.Parent = Part1
  131. Weld2.C0 = CFrame.new(-2.5, 0, -4, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  132. Weld2.Part0 = Part16
  133. Weld2.Part1 = Part1
  134. Weld2.part1 = Part1
  135. Weld3.Name = "WheelWeld"
  136. Weld3.Parent = Part1
  137. Weld3.C0 = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  138. Weld3.Part0 = Part1
  139. Weld3.Part1 = UnionOperation4
  140. Weld3.part1 = UnionOperation4
  141. UnionOperation4.Name = "FrontLeftWheel"
  142. UnionOperation4.Parent = Model0
  143. UnionOperation4.CFrame = CFrame.new(-7.52479649, 1.55091739, 11.2807484, 1, 0.000128672531, -2.20618563e-08, -0.000128672531, 1, -2.12771629e-05, 1.94506065e-08, 2.10447142e-05, 1)
  144. UnionOperation4.Orientation = Vector3.new(0, 0, -0.00999999978)
  145. UnionOperation4.Position = Vector3.new(-7.52479649, 1.55091739, 11.2807484)
  146. UnionOperation4.Rotation = Vector3.new(0, 0, -0.00999999978)
  147. UnionOperation4.Color = Color3.new(0.105882, 0.164706, 0.207843)
  148. UnionOperation4.Size = Vector3.new(1.5, 3, 3)
  149. UnionOperation4.BrickColor = BrickColor.new("Black")
  150. UnionOperation4.CanCollide = false
  151. UnionOperation4.brickColor = BrickColor.new("Black")
  152. Texture5.Parent = UnionOperation4
  153. Texture5.Texture = "http://www.roblox.com/asset/?id=259149256"
  154. Texture5.Transparency = 0.5
  155. Texture5.Face = Enum.NormalId.Top
  156. Texture5.StudsPerTileU = 3
  157. Texture5.StudsPerTileV = 3
  158. Texture6.Parent = UnionOperation4
  159. Texture6.Texture = "http://www.roblox.com/asset/?id=259149256"
  160. Texture6.Transparency = 0.5
  161. Texture6.StudsPerTileU = 3
  162. Texture6.StudsPerTileV = 3
  163. Texture7.Parent = UnionOperation4
  164. Texture7.Texture = "http://www.roblox.com/asset/?id=259149256"
  165. Texture7.Transparency = 0.5
  166. Texture7.Face = Enum.NormalId.Back
  167. Texture7.StudsPerTileU = 3
  168. Texture7.StudsPerTileV = 3
  169. Texture8.Parent = UnionOperation4
  170. Texture8.Texture = "http://www.roblox.com/asset/?id=259149256"
  171. Texture8.Transparency = 0.5
  172. Texture8.Face = Enum.NormalId.Bottom
  173. Texture8.StudsPerTileU = 3
  174. Texture8.StudsPerTileV = 3
  175. ParticleEmitter9.Parent = UnionOperation4
  176. ParticleEmitter9.Speed = NumberRange.new(0, 0)
  177. ParticleEmitter9.Rotation = NumberRange.new(0, 360)
  178. ParticleEmitter9.Color = ColorSequence.new(Color3.new(0.121569, 0.121569, 0.121569),Color3.new(0.121569, 0.121569, 0.121569))
  179. ParticleEmitter9.Enabled = false
  180. ParticleEmitter9.LightEmission = 0.20000000298023
  181. ParticleEmitter9.Texture = "rbxassetid://287259619"
  182. ParticleEmitter9.Transparency = NumberSequence.new(1,0.80000001192093,0.66874998807907,0.67500001192093,0.8125,1)
  183. ParticleEmitter9.Size = NumberSequence.new(0,0.53763401508331,0.80645102262497,0.91397798061371)
  184. ParticleEmitter9.Acceleration = Vector3.new(0, -5, 0)
  185. ParticleEmitter9.Lifetime = NumberRange.new(0.80000001192093, 1.2000000476837)
  186. ParticleEmitter9.Rate = 50
  187. ParticleEmitter9.RotSpeed = NumberRange.new(-200, 200)
  188. ParticleEmitter9.SpreadAngle = Vector2.new(40, 40)
  189. ParticleEmitter9.VelocitySpread = 40
  190. Part10.Name = "Thruster"
  191. Part10.Parent = Model0
  192. Part10.CFrame = CFrame.new(-2.52466774, 2.55027413, 11.2807693, 1, 0.000128672531, -2.20618563e-08, -0.000128672531, 1, -2.12771629e-05, 1.94506065e-08, 2.10447142e-05, 1)
  193. Part10.Orientation = Vector3.new(0, 0, -0.00999999978)
  194. Part10.Position = Vector3.new(-2.52466774, 2.55027413, 11.2807693)
  195. Part10.Rotation = Vector3.new(0, 0, -0.00999999978)
  196. Part10.Transparency = 1
  197. Part10.Size = Vector3.new(1, 1, 2)
  198. Part10.BottomSurface = Enum.SurfaceType.Smooth
  199. Part10.CanCollide = false
  200. Part10.TopSurface = Enum.SurfaceType.Smooth
  201. Part10.FormFactor = Enum.FormFactor.Custom
  202. Part10.formFactor = Enum.FormFactor.Custom
  203. Weld11.Parent = Part10
  204. Weld11.C0 = CFrame.new(2.5, 0, -4, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  205. Weld11.Part0 = Part16
  206. Weld11.Part1 = Part10
  207. Weld11.part1 = Part10
  208. Weld12.Name = "WheelWeld"
  209. Weld12.Parent = Part10
  210. Weld12.C0 = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  211. Weld12.Part0 = Part10
  212. Weld12.Part1 = UnionOperation87
  213. Weld12.part1 = UnionOperation87
  214. Part13.Name = "Thruster"
  215. Part13.Parent = Model0
  216. Part13.CFrame = CFrame.new(-2.52466774, 2.55011439, 18.7807693, 1, 0.000128672531, -2.20618563e-08, -0.000128672531, 1, -2.12771629e-05, 1.94506065e-08, 2.10447142e-05, 1)
  217. Part13.Orientation = Vector3.new(0, 0, -0.00999999978)
  218. Part13.Position = Vector3.new(-2.52466774, 2.55011439, 18.7807693)
  219. Part13.Rotation = Vector3.new(0, 0, -0.00999999978)
  220. Part13.Transparency = 1
  221. Part13.Size = Vector3.new(1, 1, 2)
  222. Part13.BottomSurface = Enum.SurfaceType.Smooth
  223. Part13.CanCollide = false
  224. Part13.TopSurface = Enum.SurfaceType.Smooth
  225. Part13.FormFactor = Enum.FormFactor.Custom
  226. Part13.formFactor = Enum.FormFactor.Custom
  227. Weld14.Parent = Part13
  228. Weld14.C0 = CFrame.new(2.5, 0, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  229. Weld14.Part0 = Part16
  230. Weld14.Part1 = Part13
  231. Weld14.part1 = Part13
  232. Weld15.Name = "WheelWeld"
  233. Weld15.Parent = Part13
  234. Weld15.C0 = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  235. Weld15.Part0 = Part13
  236. Weld15.Part1 = UnionOperation33
  237. Weld15.part1 = UnionOperation33
  238. Part16.Name = "Chassis"
  239. Part16.Parent = Model0
  240. Part16.CFrame = CFrame.new(-5.02466774, 2.55051064, 15.2807693, 1, 0.000128672531, -2.20618563e-08, -0.000128672531, 1, -2.12771629e-05, 1.94506065e-08, 2.10447142e-05, 1)
  241. Part16.Orientation = Vector3.new(0, 0, -0.00999999978)
  242. Part16.Position = Vector3.new(-5.02466774, 2.55051064, 15.2807693)
  243. Part16.Rotation = Vector3.new(0, 0, -0.00999999978)
  244. Part16.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  245. Part16.Size = Vector3.new(4, 1, 10)
  246. Part16.BottomSurface = Enum.SurfaceType.Smooth
  247. Part16.BrickColor = BrickColor.new("Really black")
  248. Part16.TopSurface = Enum.SurfaceType.Smooth
  249. Part16.brickColor = BrickColor.new("Really black")
  250. Part16.FormFactor = Enum.FormFactor.Custom
  251. Part16.formFactor = Enum.FormFactor.Custom
  252. ManualWeld17.Name = "Chassis-to-DriveSeat Strong Joint"
  253. ManualWeld17.Parent = Part16
  254. ManualWeld17.C0 = CFrame.new(-2, 0.5, 5, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  255. ManualWeld17.C1 = CFrame.new(-2, -0.0999660492, 4.6000061, -1, -1.142093e-08, -1.2423443e-06, -1.2423443e-06, 1.00420866e-05, 1, -1.14084546e-08, 1, -1.00420866e-05)
  256. ManualWeld17.Part0 = Part16
  257. ManualWeld17.Part1 = VehicleSeat21
  258. ManualWeld17.part1 = VehicleSeat21
  259. BodyPosition18.Parent = Part16
  260. BodyPosition18.MaxForce = Vector3.new(0, 0, 0)
  261. BodyPosition18.maxForce = Vector3.new(0, 0, 0)
  262. BodyGyro19.Parent = Part16
  263. BodyGyro19.MaxTorque = Vector3.new(0, 0, 0)
  264. BodyGyro19.maxTorque = Vector3.new(0, 0, 0)
  265. ManualWeld20.Name = "Chassis-to-Part Strong Joint"
  266. ManualWeld20.Parent = Part16
  267. ManualWeld20.C0 = CFrame.new(-2, -0.5, 5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  268. ManualWeld20.C1 = CFrame.new(-1.99993896, -1.74999809, -0.25, 1, 4.10487968e-13, 1.99786854e-11, 4.09731737e-13, 1, -3.67035682e-08, 1.99786854e-11, -3.67035682e-08, 1)
  269. ManualWeld20.Part0 = Part16
  270. ManualWeld20.Part1 = Part22
  271. ManualWeld20.part1 = Part22
  272. VehicleSeat21.Name = "DriveSeat"
  273. VehicleSeat21.Parent = Model0
  274. VehicleSeat21.CFrame = CFrame.new(-5.02459049, 3.15051198, 15.6807766, 1, 0.000129914872, -1.19455432e-08, -0.000129914872, 1, -3.13192504e-05, 8.00353028e-09, 3.10868018e-05, 1)
  275. VehicleSeat21.Orientation = Vector3.new(0, 0, -0.00999999978)
  276. VehicleSeat21.Position = Vector3.new(-5.02459049, 3.15051198, 15.6807766)
  277. VehicleSeat21.Rotation = Vector3.new(0, 0, -0.00999999978)
  278. VehicleSeat21.Color = Color3.new(0.105882, 0.164706, 0.207843)
  279. VehicleSeat21.Size = Vector3.new(2, 0.200000003, 2)
  280. VehicleSeat21.BrickColor = BrickColor.new("Black")
  281. VehicleSeat21.TopSurface = Enum.SurfaceType.Smooth
  282. VehicleSeat21.brickColor = BrickColor.new("Black")
  283. Part22.Parent = Model0
  284. Part22.CFrame = CFrame.new(-5.02456808, 3.80039692, 20.5307961, 1, 0.000128672531, -2.2046601e-08, -0.000128672531, 1, -2.13138665e-05, 1.94705851e-08, 2.10080107e-05, 1)
  285. Part22.Orientation = Vector3.new(0, 0, -0.00999999978)
  286. Part22.Position = Vector3.new(-5.02456808, 3.80039692, 20.5307961)
  287. Part22.Rotation = Vector3.new(0, 0, -0.00999999978)
  288. Part22.Color = Color3.new(0.972549, 0.972549, 0.972549)
  289. Part22.Transparency = 1
  290. Part22.Size = Vector3.new(4, 2.5, 0.5)
  291. Part22.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  292. Part22.BottomSurface = Enum.SurfaceType.Smooth
  293. Part22.BrickColor = BrickColor.new("Institutional white")
  294. Part22.TopSurface = Enum.SurfaceType.Smooth
  295. Part22.brickColor = BrickColor.new("Institutional white")
  296. Part22.FormFactor = Enum.FormFactor.Custom
  297. Part22.formFactor = Enum.FormFactor.Custom
  298. Part23.Name = "Thruster"
  299. Part23.Parent = Model0
  300. Part23.CFrame = CFrame.new(-7.52466774, 2.55075788, 18.7807693, 1, 0.000128672531, -2.20618563e-08, -0.000128672531, 1, -2.12771629e-05, 1.94506065e-08, 2.10447142e-05, 1)
  301. Part23.Orientation = Vector3.new(0, 0, -0.00999999978)
  302. Part23.Position = Vector3.new(-7.52466774, 2.55075788, 18.7807693)
  303. Part23.Rotation = Vector3.new(0, 0, -0.00999999978)
  304. Part23.Transparency = 1
  305. Part23.Size = Vector3.new(1, 1, 2)
  306. Part23.BottomSurface = Enum.SurfaceType.Smooth
  307. Part23.CanCollide = false
  308. Part23.TopSurface = Enum.SurfaceType.Smooth
  309. Part23.FormFactor = Enum.FormFactor.Custom
  310. Part23.formFactor = Enum.FormFactor.Custom
  311. Weld24.Parent = Part23
  312. Weld24.C0 = CFrame.new(-2.5, 0, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  313. Weld24.Part0 = Part16
  314. Weld24.Part1 = Part23
  315. Weld24.part1 = Part23
  316. Weld25.Name = "WheelWeld"
  317. Weld25.Parent = Part23
  318. Weld25.C0 = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  319. Weld25.Part0 = Part23
  320. Weld25.Part1 = UnionOperation40
  321. Weld25.part1 = UnionOperation40
  322. Part26.Parent = Model0
  323. Part26.CFrame = CFrame.new(-5.02453899, 3.5505476, 13.5307903, 1, 0.000128672531, -2.20618563e-08, -0.000128672531, 1, -2.12771629e-05, 1.94506065e-08, 2.10447142e-05, 1)
  324. Part26.Orientation = Vector3.new(0, 0, -0.00999999978)
  325. Part26.Position = Vector3.new(-5.02453899, 3.5505476, 13.5307903)
  326. Part26.Rotation = Vector3.new(0, 0, -0.00999999978)
  327. Part26.Size = Vector3.new(1, 7, 1)
  328. Part26.BottomSurface = Enum.SurfaceType.Smooth
  329. Part26.TopSurface = Enum.SurfaceType.Smooth
  330. Weld27.Parent = Part26
  331. Weld27.C0 = CFrame.new(0, -0.25, -5.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  332. Weld27.Part0 = Part84
  333. Weld27.Part1 = Part26
  334. Weld27.part1 = Part26
  335. Part28.Name = "Target"
  336. Part28.Parent = Part26
  337. Part28.CFrame = CFrame.new(-5.02450705, 3.80043602, 18.7807961, 1, 0.000128672531, -2.20618563e-08, -0.000128672531, 1, -2.12771629e-05, 1.94506065e-08, 2.10447142e-05, 1)
  338. Part28.Orientation = Vector3.new(0, 0, -0.00999999978)
  339. Part28.Position = Vector3.new(-5.02450705, 3.80043602, 18.7807961)
  340. Part28.Rotation = Vector3.new(0, 0, -0.00999999978)
  341. Part28.Color = Color3.new(0.960784, 0.803922, 0.188235)
  342. Part28.Size = Vector3.new(1, 1, 1)
  343. Part28.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  344. Part28.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  345. Part28.BrickColor = BrickColor.new("Bright yellow")
  346. Part28.CanCollide = false
  347. Part28.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  348. Part28.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  349. Part28.Material = Enum.Material.Concrete
  350. Part28.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  351. Part28.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  352. Part28.brickColor = BrickColor.new("Bright yellow")
  353. Weld29.Parent = Part26
  354. Weld29.C0 = CFrame.new(0, -0.25, -5.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  355. Weld29.Part0 = Part28
  356. Weld29.Part1 = Part26
  357. Weld29.part1 = Part26
  358. Part30.Parent = Model0
  359. Part30.CFrame = CFrame.new(-5.02470016, 2.30039883, 20.5307636, 1, 0.000128672531, -2.20618563e-08, -0.000128672531, 1, -2.12771629e-05, 1.94506065e-08, 2.10447142e-05, 1)
  360. Part30.Orientation = Vector3.new(0, 0, -0.00999999978)
  361. Part30.Position = Vector3.new(-5.02470016, 2.30039883, 20.5307636)
  362. Part30.Rotation = Vector3.new(0, 0, -0.00999999978)
  363. Part30.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  364. Part30.Size = Vector3.new(5, 0.5, 0.5)
  365. Part30.BottomSurface = Enum.SurfaceType.Smooth
  366. Part30.BrickColor = BrickColor.new("Really black")
  367. Part30.TopSurface = Enum.SurfaceType.Smooth
  368. Part30.brickColor = BrickColor.new("Really black")
  369. Part30.FormFactor = Enum.FormFactor.Custom
  370. Part30.formFactor = Enum.FormFactor.Custom
  371. Weld31.Parent = Part30
  372. Weld31.C0 = CFrame.new(0, -0.25, 5.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  373. Weld31.Part0 = Part16
  374. Weld31.Part1 = Part30
  375. Weld31.part1 = Part30
  376. ManualWeld32.Name = "Part-to-Part Strong Joint"
  377. ManualWeld32.Parent = Part30
  378. ManualWeld32.C0 = CFrame.new(-2.5, 0.25, 0.25, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  379. ManualWeld32.C1 = CFrame.new(-2.49996948, -1.24999809, 0.25, -1, 1.99786854e-11, 4.10487968e-13, -4.09731737e-13, -3.67035682e-08, 1, -1.99786854e-11, 1, -3.67035682e-08)
  380. ManualWeld32.Part0 = Part30
  381. ManualWeld32.Part1 = Part22
  382. ManualWeld32.part1 = Part22
  383. UnionOperation33.Name = "BackRightWheel"
  384. UnionOperation33.Parent = Model0
  385. UnionOperation33.CFrame = CFrame.new(-2.52479649, 1.55011439, 18.7807484, 1, 0.000128672531, -2.20618563e-08, -0.000128672531, 1, -2.12771629e-05, 1.94506065e-08, 2.10447142e-05, 1)
  386. UnionOperation33.Orientation = Vector3.new(0, 0, -0.00999999978)
  387. UnionOperation33.Position = Vector3.new(-2.52479649, 1.55011439, 18.7807484)
  388. UnionOperation33.Rotation = Vector3.new(0, 0, -0.00999999978)
  389. UnionOperation33.Color = Color3.new(0.105882, 0.164706, 0.207843)
  390. UnionOperation33.Size = Vector3.new(1.5, 3, 3)
  391. UnionOperation33.BrickColor = BrickColor.new("Black")
  392. UnionOperation33.CanCollide = false
  393. UnionOperation33.brickColor = BrickColor.new("Black")
  394. Texture34.Parent = UnionOperation33
  395. Texture34.Texture = "http://www.roblox.com/asset/?id=259149256"
  396. Texture34.Transparency = 0.5
  397. Texture34.Face = Enum.NormalId.Top
  398. Texture34.StudsPerTileU = 3
  399. Texture34.StudsPerTileV = 3
  400. Texture35.Parent = UnionOperation33
  401. Texture35.Texture = "http://www.roblox.com/asset/?id=259149256"
  402. Texture35.Transparency = 0.5
  403. Texture35.StudsPerTileU = 3
  404. Texture35.StudsPerTileV = 3
  405. Texture36.Parent = UnionOperation33
  406. Texture36.Texture = "http://www.roblox.com/asset/?id=259149256"
  407. Texture36.Transparency = 0.5
  408. Texture36.Face = Enum.NormalId.Back
  409. Texture36.StudsPerTileU = 3
  410. Texture36.StudsPerTileV = 3
  411. Texture37.Parent = UnionOperation33
  412. Texture37.Texture = "http://www.roblox.com/asset/?id=259149256"
  413. Texture37.Transparency = 0.5
  414. Texture37.Face = Enum.NormalId.Bottom
  415. Texture37.StudsPerTileU = 3
  416. Texture37.StudsPerTileV = 3
  417. ParticleEmitter38.Parent = UnionOperation33
  418. ParticleEmitter38.Speed = NumberRange.new(0, 0)
  419. ParticleEmitter38.Rotation = NumberRange.new(0, 360)
  420. ParticleEmitter38.Color = ColorSequence.new(Color3.new(0.121569, 0.121569, 0.121569),Color3.new(0.121569, 0.121569, 0.121569))
  421. ParticleEmitter38.Enabled = false
  422. ParticleEmitter38.LightEmission = 0.20000000298023
  423. ParticleEmitter38.Texture = "rbxassetid://287259619"
  424. ParticleEmitter38.Transparency = NumberSequence.new(1,0.80000001192093,0.66874998807907,0.67500001192093,0.8125,1)
  425. ParticleEmitter38.Size = NumberSequence.new(0,0.53763401508331,0.80645102262497,0.91397798061371)
  426. ParticleEmitter38.Acceleration = Vector3.new(0, -5, 0)
  427. ParticleEmitter38.Lifetime = NumberRange.new(0.80000001192093, 1.2000000476837)
  428. ParticleEmitter38.Rate = 50
  429. ParticleEmitter38.RotSpeed = NumberRange.new(-200, 200)
  430. ParticleEmitter38.SpreadAngle = Vector2.new(40, 40)
  431. ParticleEmitter38.VelocitySpread = 40
  432. ManualWeld39.Name = "BackRightWheel-to-Part Strong Joint"
  433. ManualWeld39.Parent = UnionOperation33
  434. ManualWeld39.C0 = CFrame.new(-0.75, -1.5, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  435. ManualWeld39.C1 = CFrame.new(1.75003052, -3.75, -0.25, 1, 4.10206211e-13, 6.65956179e-12, 4.10206211e-13, 1, -1.22345227e-08, 6.65956179e-12, -1.22345227e-08, 1)
  436. ManualWeld39.Part0 = UnionOperation33
  437. ManualWeld39.Part1 = Part22
  438. ManualWeld39.part1 = Part22
  439. UnionOperation40.Name = "BackLeftWheel"
  440. UnionOperation40.Parent = Model0
  441. UnionOperation40.CFrame = CFrame.new(-7.52479649, 1.55075788, 18.7807484, 1, 0.000128672531, -2.20618563e-08, -0.000128672531, 1, -2.12771629e-05, 1.94506065e-08, 2.10447142e-05, 1)
  442. UnionOperation40.Orientation = Vector3.new(0, 0, -0.00999999978)
  443. UnionOperation40.Position = Vector3.new(-7.52479649, 1.55075788, 18.7807484)
  444. UnionOperation40.Rotation = Vector3.new(0, 0, -0.00999999978)
  445. UnionOperation40.Color = Color3.new(0.105882, 0.164706, 0.207843)
  446. UnionOperation40.Size = Vector3.new(1.5, 3, 3)
  447. UnionOperation40.BrickColor = BrickColor.new("Black")
  448. UnionOperation40.CanCollide = false
  449. UnionOperation40.brickColor = BrickColor.new("Black")
  450. Texture41.Parent = UnionOperation40
  451. Texture41.Texture = "http://www.roblox.com/asset/?id=259149256"
  452. Texture41.Transparency = 0.5
  453. Texture41.Face = Enum.NormalId.Top
  454. Texture41.StudsPerTileU = 3
  455. Texture41.StudsPerTileV = 3
  456. Texture42.Parent = UnionOperation40
  457. Texture42.Texture = "http://www.roblox.com/asset/?id=259149256"
  458. Texture42.Transparency = 0.5
  459. Texture42.StudsPerTileU = 3
  460. Texture42.StudsPerTileV = 3
  461. Texture43.Parent = UnionOperation40
  462. Texture43.Texture = "http://www.roblox.com/asset/?id=259149256"
  463. Texture43.Transparency = 0.5
  464. Texture43.Face = Enum.NormalId.Back
  465. Texture43.StudsPerTileU = 3
  466. Texture43.StudsPerTileV = 3
  467. Texture44.Parent = UnionOperation40
  468. Texture44.Texture = "http://www.roblox.com/asset/?id=259149256"
  469. Texture44.Transparency = 0.5
  470. Texture44.Face = Enum.NormalId.Bottom
  471. Texture44.StudsPerTileU = 3
  472. Texture44.StudsPerTileV = 3
  473. ParticleEmitter45.Parent = UnionOperation40
  474. ParticleEmitter45.Speed = NumberRange.new(0, 0)
  475. ParticleEmitter45.Rotation = NumberRange.new(0, 360)
  476. ParticleEmitter45.Color = ColorSequence.new(Color3.new(0.121569, 0.121569, 0.121569),Color3.new(0.121569, 0.121569, 0.121569))
  477. ParticleEmitter45.Enabled = false
  478. ParticleEmitter45.LightEmission = 0.20000000298023
  479. ParticleEmitter45.Texture = "rbxassetid://287259619"
  480. ParticleEmitter45.Transparency = NumberSequence.new(1,0.80000001192093,0.66874998807907,0.67500001192093,0.8125,1)
  481. ParticleEmitter45.Size = NumberSequence.new(0,0.53763401508331,0.80645102262497,0.91397798061371)
  482. ParticleEmitter45.Acceleration = Vector3.new(0, -5, 0)
  483. ParticleEmitter45.Lifetime = NumberRange.new(0.80000001192093, 1.2000000476837)
  484. ParticleEmitter45.Rate = 50
  485. ParticleEmitter45.RotSpeed = NumberRange.new(-200, 200)
  486. ParticleEmitter45.SpreadAngle = Vector2.new(40, 40)
  487. ParticleEmitter45.VelocitySpread = 40
  488. ManualWeld46.Name = "BackLeftWheel-to-Part Strong Joint"
  489. ManualWeld46.Parent = UnionOperation40
  490. ManualWeld46.C0 = CFrame.new(-0.75, -1.5, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  491. ManualWeld46.C1 = CFrame.new(-3.24990845, -3.74999619, -0.25, 1, 4.10628833e-13, 2.66382472e-11, 4.09494487e-13, 1, -4.89380909e-08, 2.66382472e-11, -4.89380909e-08, 1)
  492. ManualWeld46.Part0 = UnionOperation40
  493. ManualWeld46.Part1 = Part22
  494. ManualWeld46.part1 = Part22
  495. Configuration47.Name = "Configurations"
  496. Configuration47.Parent = Model0
  497. NumberValue48.Name = "Bounce"
  498. NumberValue48.Parent = Configuration47
  499. NumberValue48.Value = 100
  500. NumberValue49.Name = "Height"
  501. NumberValue49.Parent = Configuration47
  502. NumberValue49.Value = 3
  503. NumberValue50.Name = "Speed"
  504. NumberValue50.Parent = Configuration47
  505. NumberValue50.Value = 80
  506. NumberValue51.Name = "Suspension"
  507. NumberValue51.Parent = Configuration47
  508. NumberValue51.Value = 4
  509. NumberValue52.Name = "TurnSpeed"
  510. NumberValue52.Parent = Configuration47
  511. NumberValue52.Value = 2
  512. Script53.Name = "CarScript"
  513. Script53.Parent = Model0
  514. table.insert(cors,sandbox(Script53,function()
  515. --Scripted by DermonDarble
  516.  
  517. local car = script.Parent
  518. local stats = car.Configurations
  519. local Raycast = require(script.RaycastModule)
  520.  
  521. local mass = 0
  522.  
  523. for i, v in pairs(car:GetChildren()) do
  524.     if v:IsA("BasePart") then
  525.         mass = mass + (v:GetMass() * 196.2)
  526.     end
  527. end
  528.  
  529. local bodyPosition = car.Chassis.BodyPosition
  530. local bodyGyro = car.Chassis.BodyGyro
  531.  
  532. --local bodyPosition = Instance.new("BodyPosition", car.Chassis)
  533. --bodyPosition.MaxForce = Vector3.new()
  534. --local bodyGyro = Instance.new("BodyGyro", car.Chassis)
  535. --bodyGyro.MaxTorque = Vector3.new()
  536.  
  537. local function UpdateThruster(thruster)
  538.     -- Raycasting
  539.     local hit, position = Raycast.new(thruster.Position, thruster.CFrame:vectorToWorldSpace(Vector3.new(0, -1, 0)) * stats.Height.Value) --game.Workspace:FindPartOnRay(ray, car)
  540.     local thrusterHeight = (position - thruster.Position).magnitude
  541.    
  542.     -- Wheel
  543.     local wheelWeld = thruster:FindFirstChild("WheelWeld")
  544.     wheelWeld.C0 = CFrame.new(0, -math.min(thrusterHeight, stats.Height.Value * 0.8) + (wheelWeld.Part1.Size.Y / 2), 0)
  545.     -- Wheel turning
  546.     local offset = car.Chassis.CFrame:inverse() * thruster.CFrame
  547.     local speed = car.Chassis.CFrame:vectorToObjectSpace(car.Chassis.Velocity)
  548.     if offset.Z < 0 then
  549.         local direction = 1
  550.         if speed.Z > 0 then
  551.             direction = -1
  552.         end
  553.         wheelWeld.C0 = wheelWeld.C0 * CFrame.Angles(0, (car.Chassis.RotVelocity.Y / 2) * direction, 0)
  554.     end
  555.    
  556.     -- Particles
  557.     if hit and thruster.Velocity.magnitude >= 5 then
  558.         wheelWeld.Part1.ParticleEmitter.Enabled = true
  559.     else
  560.         wheelWeld.Part1.ParticleEmitter.Enabled = false
  561.     end
  562. end
  563.  
  564. car.DriveSeat.Changed:connect(function(property)
  565.     if property == "Occupant" then
  566.         if car.DriveSeat.Occupant then
  567.             car.EngineBlock.Running.Pitch = 1
  568.             car.EngineBlock.Running:Play()
  569.             local player = game.Players:GetPlayerFromCharacter(car.DriveSeat.Occupant.Parent)
  570.             if player then
  571.                 car.DriveSeat:SetNetworkOwner(player)
  572.                 local localCarScript = script.LocalCarScript:Clone()
  573.                 localCarScript.Parent = player.PlayerGui
  574.                 localCarScript.Car.Value = car
  575.                 localCarScript.Disabled = false
  576.             end
  577.         else
  578.             car.EngineBlock.Running:Stop()
  579.         end
  580.     end
  581. end)
  582.  
  583. --spawn(function()
  584.     while true do
  585.         game:GetService("RunService").Stepped:wait()
  586.         for i, part in pairs(car:GetChildren()) do
  587.             if part.Name == "Thruster" then
  588.                 UpdateThruster(part)
  589.             end
  590.         end
  591.         if car.DriveSeat.Occupant then
  592.             local ratio = car.DriveSeat.Velocity.magnitude / stats.Speed.Value
  593.             car.EngineBlock.Running.Pitch = 1 + ratio / 4
  594.             bodyPosition.MaxForce = Vector3.new()
  595.             bodyGyro.MaxTorque = Vector3.new()
  596.         else
  597.             local hit, position, normal = Raycast.new(car.Chassis.Position, car.Chassis.CFrame:vectorToWorldSpace(Vector3.new(0, -1, 0)) * stats.Height.Value)
  598.             if hit and hit.CanCollide then
  599.                 bodyPosition.MaxForce = Vector3.new(mass / 5, math.huge, mass / 5)
  600.                 bodyPosition.Position = (CFrame.new(position, position + normal) * CFrame.new(0, 0, -stats.Height.Value + 0.5)).p
  601.                 bodyGyro.MaxTorque = Vector3.new(math.huge, 0, math.huge)
  602.                 bodyGyro.CFrame = CFrame.new(position, position + normal) * CFrame.Angles(-math.pi/2, 0, 0)
  603.             else
  604.                 bodyPosition.MaxForce = Vector3.new()
  605.                 bodyGyro.MaxTorque = Vector3.new()
  606.             end
  607.         end
  608.     end
  609. --end)
  610. end))
  611. LocalScript54.Name = "LocalCarScript"
  612. LocalScript54.Parent = Script53
  613. table.insert(cors,sandbox(LocalScript54,function()
  614. --local camera = game.Workspace.CurrentCamera
  615. local player = game.Players.LocalPlayer
  616. local character = player.Character
  617. local humanoidRootPart = character.HumanoidRootPart
  618. local car = script:WaitForChild("Car").Value
  619. local stats = car:WaitForChild("Configurations")
  620. local Raycast = require(car.CarScript.RaycastModule)
  621.  
  622. --local cameraType = Enum.CameraType.Follow
  623.  
  624. local movement = Vector2.new()
  625. local gamepadDeadzone = 0.14
  626.  
  627. car.DriveSeat.Changed:connect(function(property)
  628.     if property == "Steer" then
  629.         movement = Vector2.new(car.DriveSeat.Steer, movement.Y)
  630.     elseif property == "Throttle" then
  631.         movement = Vector2.new(movement.X, car.DriveSeat.Throttle)
  632.     end
  633. end)
  634.  
  635. -- Input begin
  636. --game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
  637. --  if not gameProcessedEvent then
  638. --      if inputObject.KeyCode == Enum.KeyCode.W then
  639. --          movement = Vector2.new(movement.X, 1)
  640. --      elseif inputObject.KeyCode == Enum.KeyCode.A then
  641. --          movement = Vector2.new(-1, movement.Y)
  642. --      elseif inputObject.KeyCode == Enum.KeyCode.S then
  643. --          movement = Vector2.new(movement.X, -1)
  644. --      elseif inputObject.KeyCode == Enum.KeyCode.D then
  645. --          movement = Vector2.new(1, movement.Y)
  646. --      end
  647. --  end
  648. --end)
  649. --
  650. --game:GetService("UserInputService").InputChanged:connect(function(inputObject, gameProcessedEvent)
  651. --  --if not gameProcessedEvent then
  652. --      if inputObject.KeyCode == Enum.KeyCode.Thumbstick1 then
  653. --          --Gamepad support because yay
  654. --          if inputObject.Position.magnitude >= gamepadDeadzone then
  655. --              movement = Vector2.new(movement.X, inputObject.Position.Y)
  656. --          else
  657. --              movement = Vector2.new(movement.X, 0)
  658. --          end
  659. --      elseif inputObject.KeyCode == Enum.KeyCode.Thumbstick2 then
  660. --          if inputObject.Position.magnitude >= gamepadDeadzone then
  661. --              movement = Vector2.new(inputObject.Position.X, movement.Y)
  662. --          else
  663. --              movement = Vector2.new(0, movement.Y)
  664. --          end
  665. --      end
  666. --  --end
  667. --end)
  668. --
  669. ---- Input end
  670. --game:GetService("UserInputService").InputEnded:connect(function(inputObject, gameProcessedEvent)
  671. --  if inputObject.KeyCode == Enum.KeyCode.W then
  672. --      if movement.Y == 1 then
  673. --          movement = Vector2.new(movement.X, 0)
  674. --      end
  675. --  elseif inputObject.KeyCode == Enum.KeyCode.A then
  676. --      if movement.X == -1 then
  677. --          movement = Vector2.new(0, movement.Y)
  678. --      end
  679. --  elseif inputObject.KeyCode == Enum.KeyCode.S then
  680. --      if movement.Y == -1 then
  681. --          movement = Vector2.new(movement.X, 0)
  682. --      end
  683. --  elseif inputObject.KeyCode == Enum.KeyCode.D then
  684. --      if movement.X == 1 then
  685. --          movement = Vector2.new(0, movement.Y)
  686. --      end
  687. --  end
  688. --end)
  689.  
  690. local force = 0
  691. local damping = 0
  692.  
  693. local mass = 0
  694.  
  695. for i, v in pairs(car:GetChildren()) do
  696.     if v:IsA("BasePart") then
  697.         mass = mass + (v:GetMass() * 196.2)
  698.     end
  699. end
  700.  
  701. force = mass * stats.Suspension.Value
  702. damping = force / stats.Bounce.Value
  703.  
  704. local bodyVelocity = Instance.new("BodyVelocity", car.Chassis)
  705. bodyVelocity.velocity = Vector3.new(0, 0, 0)
  706. bodyVelocity.maxForce = Vector3.new(0, 0, 0)
  707.  
  708. local bodyAngularVelocity = Instance.new("BodyAngularVelocity", car.Chassis)
  709. bodyAngularVelocity.angularvelocity = Vector3.new(0, 0, 0)
  710. bodyAngularVelocity.maxTorque = Vector3.new(0, 0, 0)
  711.  
  712. local rotation = 0
  713.  
  714. local function UpdateThruster(thruster)
  715.     --Make sure we have a bodythrust to move the wheel
  716.     local bodyThrust = thruster:FindFirstChild("BodyThrust")
  717.     if not bodyThrust then
  718.         bodyThrust = Instance.new("BodyThrust", thruster)
  719.     end
  720.     --Do some raycasting to get the height of the wheel
  721.     local hit, position = Raycast.new(thruster.Position, thruster.CFrame:vectorToWorldSpace(Vector3.new(0, -1, 0)) * stats.Height.Value)
  722.     local thrusterHeight = (position - thruster.Position).magnitude
  723.     if hit and hit.CanCollide then
  724.         --If we're on the ground, apply some forces to push the wheel up
  725.         bodyThrust.force = Vector3.new(0, ((stats.Height.Value - thrusterHeight)^2) * (force / stats.Height.Value^2), 0)
  726.         local thrusterDamping = thruster.CFrame:toObjectSpace(CFrame.new(thruster.Velocity + thruster.Position)).p * damping
  727.         bodyThrust.force = bodyThrust.force - Vector3.new(0, thrusterDamping.Y, 0)
  728.     else
  729.         bodyThrust.force = Vector3.new(0, 0, 0)
  730.     end
  731.    
  732.     --Wheels
  733.     local wheelWeld = thruster:FindFirstChild("WheelWeld")
  734.     if wheelWeld then
  735.         wheelWeld.C0 = CFrame.new(0, -math.min(thrusterHeight, stats.Height.Value * 0.8) + (wheelWeld.Part1.Size.Y / 2), 0)
  736.         -- Wheel turning
  737.         local offset = car.Chassis.CFrame:inverse() * thruster.CFrame
  738.         local speed = car.Chassis.CFrame:vectorToObjectSpace(car.Chassis.Velocity)
  739.         if offset.Z < 0 then
  740.             local direction = 1
  741.             if speed.Z > 0 then
  742.                 direction = -1
  743.             end
  744.             wheelWeld.C0 = wheelWeld.C0 * CFrame.Angles(0, (car.Chassis.RotVelocity.Y / 2) * direction, 0)
  745.         end
  746.         wheelWeld.C0 = wheelWeld.C0 * CFrame.Angles(rotation, 0, 0)
  747.     end
  748. end
  749.  
  750. --A simple function to check if the car is grounded
  751. local function IsGrounded()
  752.     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))
  753.     if hit and hit.CanCollide then
  754.         return(true)
  755.     end
  756.     return(false)
  757. end
  758.  
  759. --local oldCameraType = camera.CameraType
  760. --camera.CameraType = cameraType
  761.  
  762. --spawn(function()
  763.     while game:GetService("RunService").Heartbeat:wait() and car:FindFirstChild("DriveSeat") and character.Humanoid.SeatPart == car.DriveSeat do
  764.         --game:GetService("RunService").RenderStepped:wait()
  765.         if IsGrounded() then
  766.             if movement.Y ~= 0 then
  767.                 local velocity = humanoidRootPart.CFrame.lookVector * movement.Y * stats.Speed.Value
  768.                 humanoidRootPart.Velocity = humanoidRootPart.Velocity:Lerp(velocity, 0.1)
  769.                 bodyVelocity.maxForce = Vector3.new(0, 0, 0)
  770.             else
  771.                 bodyVelocity.maxForce = Vector3.new(mass / 2, mass / 4, mass / 2)
  772.             end
  773.             local rotVelocity = humanoidRootPart.CFrame:vectorToWorldSpace(Vector3.new(movement.Y * stats.Speed.Value / 50, 0, -humanoidRootPart.RotVelocity.Y * 5 * movement.Y))
  774.             local speed = -humanoidRootPart.CFrame:vectorToObjectSpace(humanoidRootPart.Velocity).unit.Z
  775.             rotation = rotation + math.rad((-stats.Speed.Value / 5) * movement.Y)
  776.             if math.abs(speed) > 0.1 then
  777.                 rotVelocity = rotVelocity + humanoidRootPart.CFrame:vectorToWorldSpace((Vector3.new(0, -movement.X * speed * stats.TurnSpeed.Value, 0)))
  778.                 bodyAngularVelocity.maxTorque = Vector3.new(0, 0, 0)
  779.             else
  780.                 bodyAngularVelocity.maxTorque = Vector3.new(mass / 4, mass / 2, mass / 4)
  781.             end
  782.             humanoidRootPart.RotVelocity = humanoidRootPart.RotVelocity:Lerp(rotVelocity, 0.1)
  783.            
  784.             --bodyVelocity.maxForce = Vector3.new(mass / 3, mass / 6, mass / 3)
  785.             --bodyAngularVelocity.maxTorque = Vector3.new(mass / 6, mass / 3, mass / 6)
  786.         else
  787.             bodyVelocity.maxForce = Vector3.new(0, 0, 0)
  788.             bodyAngularVelocity.maxTorque = Vector3.new(0, 0, 0)
  789.         end
  790.        
  791.         for i, part in pairs(car:GetChildren()) do
  792.             if part.Name == "Thruster" then
  793.                 UpdateThruster(part)
  794.             end
  795.         end
  796.     end
  797.     for i, v in pairs(car:GetChildren()) do
  798.         if v:FindFirstChild("BodyThrust") then
  799.             v.BodyThrust:Destroy()
  800.         end
  801.     end
  802.     bodyVelocity:Destroy()
  803.     bodyAngularVelocity:Destroy()
  804.     --camera.CameraType = oldCameraType
  805.     script:Destroy()
  806. --end)
  807. end))
  808. LocalScript54.Disabled = true
  809. ObjectValue55.Name = "Car"
  810. ObjectValue55.Parent = LocalScript54
  811. ModuleScript56.Name = "RaycastModule"
  812. ModuleScript56.Parent = Script53
  813. table.insert(cors,sandbox(ModuleScript56,function()
  814. local module = {}
  815.  
  816. function module.new(startPosition, startDirection)
  817.     local maxDistance = startDirection.magnitude
  818.     local direction = startDirection.unit
  819.     local lastPosition = startPosition
  820.     local distance = 0
  821.     local ignore = {}
  822.    
  823.     local hit, position, normal
  824.    
  825.     repeat
  826.         local ray = Ray.new(lastPosition, direction * (maxDistance - distance))
  827.         hit, position, normal = game.Workspace:FindPartOnRayWithIgnoreList(ray, ignore, false, true)
  828.         if hit then
  829.             if not hit.CanCollide then
  830.                 table.insert(ignore, hit)
  831.             end
  832.         end
  833.         distance = (startPosition - position).magnitude
  834.         lastPosition = position
  835.     until distance >= maxDistance - 0.1 or (hit and hit.CanCollide)
  836.     return hit, position, normal
  837. end
  838.  
  839. return module
  840.  
  841. end))
  842. Part57.Name = "Light"
  843. Part57.Parent = Model0
  844. Part57.CFrame = CFrame.new(-6.52447462, 4.05081749, 9.93080044, 0.707197726, -0.707015812, -5.03895023e-08, 0.707015812, 0.707197726, -2.12087489e-05, 1.48662766e-05, 1.47986957e-05, 1)
  845. Part57.Orientation = Vector3.new(0, 0, 44.9900017)
  846. Part57.Position = Vector3.new(-6.52447462, 4.05081749, 9.93080044)
  847. Part57.Rotation = Vector3.new(0, 0, 44.9900017)
  848. Part57.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  849. Part57.Size = Vector3.new(1, 1, 0.5)
  850. Part57.BottomSurface = Enum.SurfaceType.Smooth
  851. Part57.BrickColor = BrickColor.new("Really black")
  852. Part57.TopSurface = Enum.SurfaceType.Smooth
  853. Part57.brickColor = BrickColor.new("Really black")
  854. Part57.FormFactor = Enum.FormFactor.Custom
  855. Part57.formFactor = Enum.FormFactor.Custom
  856. Weld58.Parent = Part57
  857. Weld58.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)
  858. Weld58.Part0 = Part16
  859. Weld58.Part1 = Part57
  860. Weld58.part1 = Part57
  861. SurfaceLight59.Parent = Part57
  862. SurfaceLight59.Range = 32
  863. SurfaceLight59.Brightness = 0.5
  864. SurfaceLight59.Angle = 60
  865. SurfaceGui60.Parent = Part57
  866. SurfaceGui60.CanvasSize = Vector2.new(100, 100)
  867. Frame61.Parent = SurfaceGui60
  868. Frame61.Position = UDim2.new(0.100000001, 0, 0.100000001, 0)
  869. Frame61.Size = UDim2.new(0.800000012, 0, 0.800000012, 0)
  870. Frame61.BackgroundColor = BrickColor.new("Institutional white")
  871. Frame61.BackgroundColor3 = Color3.new(1, 1, 1)
  872. Frame61.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  873. Frame61.BorderSizePixel = 0
  874. Part62.Name = "Light"
  875. Part62.Parent = Model0
  876. Part62.CFrame = CFrame.new(-3.52447462, 4.05043125, 9.93080044, 0.707197726, -0.707015812, 2.62229882e-09, 0.707015812, 0.707197726, -2.13367766e-05, 1.49193047e-05, 1.49267171e-05, 1)
  877. Part62.Orientation = Vector3.new(0, 0, 44.9900017)
  878. Part62.Position = Vector3.new(-3.52447462, 4.05043125, 9.93080044)
  879. Part62.Rotation = Vector3.new(0, 0, 44.9900017)
  880. Part62.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  881. Part62.Size = Vector3.new(1, 1, 0.5)
  882. Part62.BottomSurface = Enum.SurfaceType.Smooth
  883. Part62.BrickColor = BrickColor.new("Really black")
  884. Part62.TopSurface = Enum.SurfaceType.Smooth
  885. Part62.brickColor = BrickColor.new("Really black")
  886. Part62.FormFactor = Enum.FormFactor.Custom
  887. Part62.formFactor = Enum.FormFactor.Custom
  888. Weld63.Parent = Part62
  889. Weld63.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)
  890. Weld63.Part0 = Part16
  891. Weld63.Part1 = Part62
  892. Weld63.part1 = Part62
  893. SurfaceLight64.Parent = Part62
  894. SurfaceLight64.Range = 32
  895. SurfaceLight64.Brightness = 0.5
  896. SurfaceLight64.Angle = 60
  897. SurfaceGui65.Parent = Part62
  898. SurfaceGui65.CanvasSize = Vector2.new(100, 100)
  899. Frame66.Parent = SurfaceGui65
  900. Frame66.Position = UDim2.new(0.100000001, 0, 0.100000001, 0)
  901. Frame66.Size = UDim2.new(0.800000012, 0, 0.800000012, 0)
  902. Frame66.BackgroundColor = BrickColor.new("Institutional white")
  903. Frame66.BackgroundColor3 = Color3.new(1, 1, 1)
  904. Frame66.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  905. Frame66.BorderSizePixel = 0
  906. UnionOperation67.Name = "EngineBlock"
  907. UnionOperation67.Parent = Model0
  908. UnionOperation67.CFrame = CFrame.new(-5.02450705, 3.80058527, 11.7807961, 1, 0.000128672531, -2.20618563e-08, -0.000128672531, 1, -2.12771629e-05, 1.94506065e-08, 2.10447142e-05, 1)
  909. UnionOperation67.Orientation = Vector3.new(0, 0, -0.00999999978)
  910. UnionOperation67.Position = Vector3.new(-5.02450705, 3.80058527, 11.7807961)
  911. UnionOperation67.Rotation = Vector3.new(0, 0, -0.00999999978)
  912. UnionOperation67.Color = Color3.new(0.972549, 0.972549, 0.972549)
  913. UnionOperation67.Transparency = 1
  914. UnionOperation67.Size = Vector3.new(5.00000191, 2.50000143, 4.00000048)
  915. UnionOperation67.UsePartColor = true
  916. Weld68.Parent = UnionOperation67
  917. Weld68.C0 = CFrame.new(0, -0.25, -5.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  918. Sound69.Name = "Running"
  919. Sound69.Parent = UnionOperation67
  920. Sound69.Looped = true
  921. Sound69.EmitterSize = 0
  922. Sound69.MinDistance = 0
  923. Sound69.SoundId = "http://www.roblox.com/asset/?id=391824568"
  924. Sound69.Volume = 1
  925. Weld70.Parent = UnionOperation67
  926. Weld70.C0 = CFrame.new(0, 1.25, -3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  927. Weld70.Part0 = Part16
  928. Weld70.Part1 = UnionOperation67
  929. Weld70.part1 = UnionOperation67
  930. UnionOperation71.Parent = Model0
  931. UnionOperation71.CFrame = CFrame.new(-2.77453899, 3.5502212, 15.2807903, 1, 0.000128672531, -2.20618563e-08, -0.000128672531, 1, -2.12771629e-05, 1.94506065e-08, 2.10447142e-05, 1)
  932. UnionOperation71.Orientation = Vector3.new(0, 0, -0.00999999978)
  933. UnionOperation71.Position = Vector3.new(-2.77453899, 3.5502212, 15.2807903)
  934. UnionOperation71.Rotation = Vector3.new(0, 0, -0.00999999978)
  935. UnionOperation71.Color = Color3.new(0.972549, 0.972549, 0.972549)
  936. UnionOperation71.Transparency = 1
  937. UnionOperation71.Size = Vector3.new(0.500000834, 3.00000048, 4.00000048)
  938. UnionOperation71.UsePartColor = true
  939. Weld72.Parent = UnionOperation71
  940. Weld72.C0 = CFrame.new(2.25, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  941. Weld72.Part0 = Part16
  942. Weld72.Part1 = UnionOperation71
  943. Weld72.part1 = UnionOperation71
  944. UnionOperation73.Parent = Model0
  945. UnionOperation73.CFrame = CFrame.new(-2.77450681, 3.80014181, 19.0307961, 1, 0.000128672531, -2.20618563e-08, -0.000128672531, 1, -2.12771629e-05, 1.94506065e-08, 2.10447142e-05, 1)
  946. UnionOperation73.Orientation = Vector3.new(0, 0, -0.00999999978)
  947. UnionOperation73.Position = Vector3.new(-2.77450681, 3.80014181, 19.0307961)
  948. UnionOperation73.Rotation = Vector3.new(0, 0, -0.00999999978)
  949. UnionOperation73.Color = Color3.new(0.972549, 0.972549, 0.972549)
  950. UnionOperation73.Transparency = 1
  951. UnionOperation73.Size = Vector3.new(0.500000834, 2.50000095, 3.50000024)
  952. UnionOperation73.UsePartColor = true
  953. ManualWeld74.Name = "Union-to-Part Strong Joint"
  954. ManualWeld74.Parent = UnionOperation73
  955. ManualWeld74.C0 = CFrame.new(-0.250000417, -1.25000048, -1.75000012, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  956. ManualWeld74.C1 = CFrame.new(2.00003052, -1.24999809, -3.25, 1.99786854e-11, 4.10487968e-13, -1, -3.67035682e-08, 1, -4.09731737e-13, 1, -3.67035682e-08, -1.99786854e-11)
  957. ManualWeld74.Part0 = UnionOperation73
  958. ManualWeld74.Part1 = Part22
  959. ManualWeld74.part1 = Part22
  960. Weld75.Parent = UnionOperation73
  961. Weld75.C0 = CFrame.new(2.25, 1.25000048, 3.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  962. Weld75.Part0 = Part16
  963. Weld75.Part1 = UnionOperation73
  964. Weld75.part1 = UnionOperation73
  965. UnionOperation76.Parent = Model0
  966. UnionOperation76.CFrame = CFrame.new(-7.27450657, 3.80072093, 19.0307961, 1, 0.000128672531, -2.20618563e-08, -0.000128672531, 1, -2.12771629e-05, 1.94506065e-08, 2.10447142e-05, 1)
  967. UnionOperation76.Orientation = Vector3.new(0, 0, -0.00999999978)
  968. UnionOperation76.Position = Vector3.new(-7.27450657, 3.80072093, 19.0307961)
  969. UnionOperation76.Rotation = Vector3.new(0, 0, -0.00999999978)
  970. UnionOperation76.Color = Color3.new(0.972549, 0.972549, 0.972549)
  971. UnionOperation76.Transparency = 1
  972. UnionOperation76.Size = Vector3.new(0.500000834, 2.50000095, 3.50000024)
  973. UnionOperation76.UsePartColor = true
  974. ManualWeld77.Name = "Union-to-Part Strong Joint"
  975. ManualWeld77.Parent = UnionOperation76
  976. ManualWeld77.C0 = CFrame.new(0.250000417, -1.25000048, 1.75000012, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  977. ManualWeld77.C1 = CFrame.new(-1.99993896, -1.24999714, 0.25, -2.66382472e-11, 4.10628833e-13, 1, 4.89380909e-08, 1, 4.09494487e-13, -1, -4.89380909e-08, 2.66382472e-11)
  978. ManualWeld77.Part0 = UnionOperation76
  979. ManualWeld77.Part1 = Part22
  980. ManualWeld77.part1 = Part22
  981. Weld78.Parent = UnionOperation76
  982. Weld78.C0 = CFrame.new(-2.25, 1.25000048, 3.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  983. Weld78.Part0 = Part16
  984. Weld78.Part1 = UnionOperation76
  985. Weld78.part1 = UnionOperation76
  986. UnionOperation79.Parent = Model0
  987. UnionOperation79.CFrame = CFrame.new(-7.27453899, 3.55080032, 15.2807903, 1, 0.000128672531, -2.20618563e-08, -0.000128672531, 1, -2.12771629e-05, 1.94506065e-08, 2.10447142e-05, 1)
  988. UnionOperation79.Orientation = Vector3.new(0, 0, -0.00999999978)
  989. UnionOperation79.Position = Vector3.new(-7.27453899, 3.55080032, 15.2807903)
  990. UnionOperation79.Rotation = Vector3.new(0, 0, -0.00999999978)
  991. UnionOperation79.Color = Color3.new(0.972549, 0.972549, 0.972549)
  992. UnionOperation79.Transparency = 1
  993. UnionOperation79.Size = Vector3.new(0.500000834, 3.00000048, 4.00000048)
  994. UnionOperation79.UsePartColor = true
  995. Weld80.Parent = UnionOperation79
  996. Weld80.C0 = CFrame.new(-2.25, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  997. Weld80.Part0 = Part16
  998. Weld80.Part1 = UnionOperation79
  999. Weld80.part1 = UnionOperation79
  1000. UnionOperation81.Parent = Model0
  1001. UnionOperation81.CFrame = CFrame.new(-5.02420282, 6.17833138, 13.9235649, -1, 0.000124825339, 3.12290504e-05, 0.000128672531, 0.970137358, 0.24255608, -1.94506065e-08, 0.242555857, -0.970137417)
  1002. UnionOperation81.Orientation = Vector3.new(-14.04, 180, 0.00999999978)
  1003. UnionOperation81.Position = Vector3.new(-5.02420282, 6.17833138, 13.9235649)
  1004. UnionOperation81.Rotation = Vector3.new(-165.960007, 0, -179.990005)
  1005. UnionOperation81.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1006. UnionOperation81.Transparency = 1
  1007. UnionOperation81.Size = Vector3.new(5.00000381, 2.50000048, 0.300001502)
  1008. UnionOperation81.CanCollide = false
  1009. UnionOperation81.UsePartColor = true
  1010. Weld82.Parent = UnionOperation81
  1011. Weld82.C0 = CFrame.new(-1.90734863e-06, 3.62779188, -1.35728073, -1, 0, 0, 0, 0.970142543, 0.242535442, 0, 0.242535442, -0.970142543)
  1012. Weld82.Part0 = Part16
  1013. Weld82.Part1 = UnionOperation81
  1014. Weld82.part1 = UnionOperation81
  1015. Part83.Parent = Model0
  1016. Part83.CFrame = CFrame.new(-5.02471256, 2.30062151, 10.0307674, 1, 0.000128672531, -2.20618563e-08, -0.000128672531, 1, -2.12771665e-05, 1.94506047e-08, 2.10447142e-05, 1)
  1017. Part83.Orientation = Vector3.new(0, 0, -0.00999999978)
  1018. Part83.Position = Vector3.new(-5.02471256, 2.30062151, 10.0307674)
  1019. Part83.Rotation = Vector3.new(0, 0, -0.00999999978)
  1020. Part83.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1021. Part83.Transparency = 1
  1022. Part83.Size = Vector3.new(5, 0.5, 0.5)
  1023. Part83.BottomSurface = Enum.SurfaceType.Smooth
  1024. Part83.BrickColor = BrickColor.new("Really black")
  1025. Part83.CanCollide = false
  1026. Part83.TopSurface = Enum.SurfaceType.Smooth
  1027. Part83.brickColor = BrickColor.new("Really black")
  1028. Part83.FormFactor = Enum.FormFactor.Custom
  1029. Part83.formFactor = Enum.FormFactor.Custom
  1030. Part84.Parent = Model0
  1031. Part84.CFrame = CFrame.new(-5.02450705, 3.80043602, 18.7807961, 1, 0.000128672531, -2.20618563e-08, -0.000128672531, 1, -2.12771629e-05, 1.94506065e-08, 2.10447142e-05, 1)
  1032. Part84.Orientation = Vector3.new(0, 0, -0.00999999978)
  1033. Part84.Position = Vector3.new(-5.02450705, 3.80043602, 18.7807961)
  1034. Part84.Rotation = Vector3.new(0, 0, -0.00999999978)
  1035. Part84.Color = Color3.new(0.972549, 0.972549, 0.972549)
  1036. Part84.Transparency = 1
  1037. Part84.Size = Vector3.new(4, 1.5, 3)
  1038. Part84.BottomSurface = Enum.SurfaceType.Smooth
  1039. Part84.BrickColor = BrickColor.new("Institutional white")
  1040. Part84.TopSurface = Enum.SurfaceType.Smooth
  1041. Part84.brickColor = BrickColor.new("Institutional white")
  1042. Part84.FormFactor = Enum.FormFactor.Custom
  1043. Part84.formFactor = Enum.FormFactor.Custom
  1044. Weld85.Parent = Part84
  1045. Weld85.C0 = CFrame.new(0, 1.25, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1046. Weld85.Part0 = Part16
  1047. Weld85.Part1 = Part84
  1048. Weld85.part1 = Part84
  1049. ManualWeld86.Name = "Part-to-Part Strong Joint"
  1050. ManualWeld86.Parent = Part84
  1051. ManualWeld86.C0 = CFrame.new(-2, -0.75, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1052. ManualWeld86.C1 = CFrame.new(-1.99996948, -0.749999046, -0.25, 1, 4.10347076e-13, 1.33191236e-11, 4.09968961e-13, 1, -2.44690455e-08, 1.33191236e-11, -2.44690455e-08, 1)
  1053. ManualWeld86.Part0 = Part84
  1054. ManualWeld86.Part1 = Part22
  1055. ManualWeld86.part1 = Part22
  1056. UnionOperation87.Name = "FrontRightWheel"
  1057. UnionOperation87.Parent = Model0
  1058. UnionOperation87.CFrame = CFrame.new(-2.52479649, 1.55027413, 11.2807484, 1, 0.000128672531, -2.20618563e-08, -0.000128672531, 1, -2.12771629e-05, 1.94506065e-08, 2.10447142e-05, 1)
  1059. UnionOperation87.Orientation = Vector3.new(0, 0, -0.00999999978)
  1060. UnionOperation87.Position = Vector3.new(-2.52479649, 1.55027413, 11.2807484)
  1061. UnionOperation87.Rotation = Vector3.new(0, 0, -0.00999999978)
  1062. UnionOperation87.Color = Color3.new(0.105882, 0.164706, 0.207843)
  1063. UnionOperation87.Size = Vector3.new(1.5, 3, 3)
  1064. UnionOperation87.BrickColor = BrickColor.new("Black")
  1065. UnionOperation87.CanCollide = false
  1066. UnionOperation87.brickColor = BrickColor.new("Black")
  1067. Texture88.Parent = UnionOperation87
  1068. Texture88.Texture = "http://www.roblox.com/asset/?id=259149256"
  1069. Texture88.Transparency = 0.5
  1070. Texture88.Face = Enum.NormalId.Top
  1071. Texture88.StudsPerTileU = 3
  1072. Texture88.StudsPerTileV = 3
  1073. Texture89.Parent = UnionOperation87
  1074. Texture89.Texture = "http://www.roblox.com/asset/?id=259149256"
  1075. Texture89.Transparency = 0.5
  1076. Texture89.StudsPerTileU = 3
  1077. Texture89.StudsPerTileV = 3
  1078. Texture90.Parent = UnionOperation87
  1079. Texture90.Texture = "http://www.roblox.com/asset/?id=259149256"
  1080. Texture90.Transparency = 0.5
  1081. Texture90.Face = Enum.NormalId.Back
  1082. Texture90.StudsPerTileU = 3
  1083. Texture90.StudsPerTileV = 3
  1084. Texture91.Parent = UnionOperation87
  1085. Texture91.Texture = "http://www.roblox.com/asset/?id=259149256"
  1086. Texture91.Transparency = 0.5
  1087. Texture91.Face = Enum.NormalId.Bottom
  1088. Texture91.StudsPerTileU = 3
  1089. Texture91.StudsPerTileV = 3
  1090. ParticleEmitter92.Parent = UnionOperation87
  1091. ParticleEmitter92.Speed = NumberRange.new(0, 0)
  1092. ParticleEmitter92.Rotation = NumberRange.new(0, 360)
  1093. ParticleEmitter92.Color = ColorSequence.new(Color3.new(0.121569, 0.121569, 0.121569),Color3.new(0.121569, 0.121569, 0.121569))
  1094. ParticleEmitter92.Enabled = false
  1095. ParticleEmitter92.LightEmission = 0.20000000298023
  1096. ParticleEmitter92.Texture = "rbxassetid://287259619"
  1097. ParticleEmitter92.Transparency = NumberSequence.new(1,0.80000001192093,0.66874998807907,0.67500001192093,0.8125,1)
  1098. ParticleEmitter92.Size = NumberSequence.new(0,0.53763401508331,0.80645102262497,0.91397798061371)
  1099. ParticleEmitter92.Acceleration = Vector3.new(0, -5, 0)
  1100. ParticleEmitter92.Lifetime = NumberRange.new(0.80000001192093, 1.2000000476837)
  1101. ParticleEmitter92.Rate = 50
  1102. ParticleEmitter92.RotSpeed = NumberRange.new(-200, 200)
  1103. ParticleEmitter92.SpreadAngle = Vector2.new(40, 40)
  1104. ParticleEmitter92.VelocitySpread = 40
  1105. Sound93.Name = "Body Rolls"
  1106. Sound93.Parent = Model0
  1107. Sound93.Looped = true
  1108. Sound93.PlayOnRemove = true
  1109. Sound93.Playing = true
  1110. Sound93.SoundId = "rbxassetid://325216286"
  1111. Sound93.Volume = 2.5
  1112. Part94.Parent = Model0
  1113. Part94.CFrame = CFrame.new(-4.5, 3.5, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1114. Part94.Position = Vector3.new(-4.5, 3.5, 3.5)
  1115. Part94.Color = Color3.new(0.458824, 0, 0)
  1116. Part94.Size = Vector3.new(3, 3, 3)
  1117. Part94.BottomSurface = Enum.SurfaceType.Smooth
  1118. Part94.BrickColor = BrickColor.new("Maroon")
  1119. Part94.Material = Enum.Material.Pebble
  1120. Part94.TopSurface = Enum.SurfaceType.Smooth
  1121. Part94.brickColor = BrickColor.new("Maroon")
  1122. Part94.Shape = Enum.PartType.Ball
  1123. Fire95.Parent = Part94
  1124. Fire95.Size = 13
  1125. Fire95.Heat = 16
  1126. Fire95.size = 13
  1127. Script96.Parent = Part94
  1128. table.insert(cors,sandbox(Script96,function()
  1129. local pf = script.Parent
  1130. local function sdf(part)
  1131.     local parent = part.parent
  1132.     if game.Players:GetPlayerFromCharacter(parent) then
  1133.         parent.Humanoid.Health = 0
  1134.     end
  1135. end
  1136. pf.Touched:connect(sdf)
  1137. end))
  1138. RopeConstraint97.Parent = Part94
  1139. RopeConstraint97.Length = 15
  1140. RopeConstraint97.Visible = true
  1141. RopeConstraint97.Attachment0 = nil
  1142. RopeConstraint97.Attachment1 = nil
  1143. for i,v in pairs(mas:GetChildren()) do
  1144.     v.Parent = workspace
  1145.     pcall(function() v:MakeJoints() end)
  1146. end
  1147. mas:Destroy()
  1148. for i,v in pairs(cors) do
  1149.     spawn(function()
  1150.         pcall(v)
  1151.     end)
  1152. end
Advertisement
Add Comment
Please, Sign In to add comment