Advertisement
okban

Untitled

Mar 14th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 93.23 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. Script2 = Instance.new("Script")
  22. BillboardGui3 = Instance.new("BillboardGui")
  23. TextLabel4 = Instance.new("TextLabel")
  24. Model5 = Instance.new("Model")
  25. Model6 = Instance.new("Model")
  26. Part7 = Instance.new("Part")
  27. SpecialMesh8 = Instance.new("SpecialMesh")
  28. Sound9 = Instance.new("Sound")
  29. Sound10 = Instance.new("Sound")
  30. Sound11 = Instance.new("Sound")
  31. Weld12 = Instance.new("Weld")
  32. Weld13 = Instance.new("Weld")
  33. Weld14 = Instance.new("Weld")
  34. Weld15 = Instance.new("Weld")
  35. Weld16 = Instance.new("Weld")
  36. Weld17 = Instance.new("Weld")
  37. Weld18 = Instance.new("Weld")
  38. Weld19 = Instance.new("Weld")
  39. Weld20 = Instance.new("Weld")
  40. Weld21 = Instance.new("Weld")
  41. Weld22 = Instance.new("Weld")
  42. VehicleSeat23 = Instance.new("VehicleSeat")
  43. Sound24 = Instance.new("Sound")
  44. Sound25 = Instance.new("Sound")
  45. Sound26 = Instance.new("Sound")
  46. Sound27 = Instance.new("Sound")
  47. Sound28 = Instance.new("Sound")
  48. Sound29 = Instance.new("Sound")
  49. Sound30 = Instance.new("Sound")
  50. Sound31 = Instance.new("Sound")
  51. Sound32 = Instance.new("Sound")
  52. Folder33 = Instance.new("Folder")
  53. BoolValue34 = Instance.new("BoolValue")
  54. IntValue35 = Instance.new("IntValue")
  55. NumberValue36 = Instance.new("NumberValue")
  56. NumberValue37 = Instance.new("NumberValue")
  57. NumberValue38 = Instance.new("NumberValue")
  58. BoolValue39 = Instance.new("BoolValue")
  59. NumberValue40 = Instance.new("NumberValue")
  60. NumberValue41 = Instance.new("NumberValue")
  61. NumberValue42 = Instance.new("NumberValue")
  62. NumberValue43 = Instance.new("NumberValue")
  63. NumberValue44 = Instance.new("NumberValue")
  64. Script45 = Instance.new("Script")
  65. ScreenGui46 = Instance.new("ScreenGui")
  66. ObjectValue47 = Instance.new("ObjectValue")
  67. LocalScript48 = Instance.new("LocalScript")
  68. Frame49 = Instance.new("Frame")
  69. Frame50 = Instance.new("Frame")
  70. ScrollingFrame51 = Instance.new("ScrollingFrame")
  71. TextLabel52 = Instance.new("TextLabel")
  72. TextLabel53 = Instance.new("TextLabel")
  73. TextLabel54 = Instance.new("TextLabel")
  74. TextLabel55 = Instance.new("TextLabel")
  75. TextLabel56 = Instance.new("TextLabel")
  76. TextLabel57 = Instance.new("TextLabel")
  77. TextLabel58 = Instance.new("TextLabel")
  78. TextLabel59 = Instance.new("TextLabel")
  79. TextLabel60 = Instance.new("TextLabel")
  80. TextLabel61 = Instance.new("TextLabel")
  81. TextLabel62 = Instance.new("TextLabel")
  82. TextLabel63 = Instance.new("TextLabel")
  83. Frame64 = Instance.new("Frame")
  84. ImageButton65 = Instance.new("ImageButton")
  85. ImageButton66 = Instance.new("ImageButton")
  86. TextButton67 = Instance.new("TextButton")
  87. TextButton68 = Instance.new("TextButton")
  88. Frame69 = Instance.new("Frame")
  89. TextLabel70 = Instance.new("TextLabel")
  90. ImageLabel71 = Instance.new("ImageLabel")
  91. ImageLabel72 = Instance.new("ImageLabel")
  92. ImageLabel73 = Instance.new("ImageLabel")
  93. ImageLabel74 = Instance.new("ImageLabel")
  94. TextLabel75 = Instance.new("TextLabel")
  95. TextLabel76 = Instance.new("TextLabel")
  96. TextButton77 = Instance.new("TextButton")
  97. ImageLabel78 = Instance.new("ImageLabel")
  98. Frame79 = Instance.new("Frame")
  99. Frame80 = Instance.new("Frame")
  100. TextLabel81 = Instance.new("TextLabel")
  101. Script82 = Instance.new("Script")
  102. LocalScript83 = Instance.new("LocalScript")
  103. ObjectValue84 = Instance.new("ObjectValue")
  104. LocalScript85 = Instance.new("LocalScript")
  105. Part86 = Instance.new("Part")
  106. Model87 = Instance.new("Model")
  107. Part88 = Instance.new("Part")
  108. Decal89 = Instance.new("Decal")
  109. Part90 = Instance.new("Part")
  110. Part91 = Instance.new("Part")
  111. Part92 = Instance.new("Part")
  112. Part93 = Instance.new("Part")
  113. SpecialMesh94 = Instance.new("SpecialMesh")
  114. Decal95 = Instance.new("Decal")
  115. Part96 = Instance.new("Part")
  116. SpecialMesh97 = Instance.new("SpecialMesh")
  117. Decal98 = Instance.new("Decal")
  118. Part99 = Instance.new("Part")
  119. Part100 = Instance.new("Part")
  120. Part101 = Instance.new("Part")
  121. Part102 = Instance.new("Part")
  122. Part103 = Instance.new("Part")
  123. Part104 = Instance.new("Part")
  124. Part105 = Instance.new("Part")
  125. Part106 = Instance.new("Part")
  126. Decal107 = Instance.new("Decal")
  127. Part108 = Instance.new("Part")
  128. ManualWeld109 = Instance.new("ManualWeld")
  129. ManualWeld110 = Instance.new("ManualWeld")
  130. Model111 = Instance.new("Model")
  131. Part112 = Instance.new("Part")
  132. CylinderMesh113 = Instance.new("CylinderMesh")
  133. Part114 = Instance.new("Part")
  134. CylinderMesh115 = Instance.new("CylinderMesh")
  135. Part116 = Instance.new("Part")
  136. CylinderMesh117 = Instance.new("CylinderMesh")
  137. Part118 = Instance.new("Part")
  138. CylinderMesh119 = Instance.new("CylinderMesh")
  139. Part120 = Instance.new("Part")
  140. SpecialMesh121 = Instance.new("SpecialMesh")
  141. Part122 = Instance.new("Part")
  142. CylinderMesh123 = Instance.new("CylinderMesh")
  143. Part124 = Instance.new("Part")
  144. SpecialMesh125 = Instance.new("SpecialMesh")
  145. Decal126 = Instance.new("Decal")
  146. Part127 = Instance.new("Part")
  147. SpecialMesh128 = Instance.new("SpecialMesh")
  148. Decal129 = Instance.new("Decal")
  149. Part130 = Instance.new("Part")
  150. Decal131 = Instance.new("Decal")
  151. Part132 = Instance.new("Part")
  152. Model133 = Instance.new("Model")
  153. Part134 = Instance.new("Part")
  154. BoolValue135 = Instance.new("BoolValue")
  155. CylinderMesh136 = Instance.new("CylinderMesh")
  156. BoolValue137 = Instance.new("BoolValue")
  157. Part138 = Instance.new("Part")
  158. Decal139 = Instance.new("Decal")
  159. BlockMesh140 = Instance.new("BlockMesh")
  160. Part141 = Instance.new("Part")
  161. BoolValue142 = Instance.new("BoolValue")
  162. CylinderMesh143 = Instance.new("CylinderMesh")
  163. BoolValue144 = Instance.new("BoolValue")
  164. Part145 = Instance.new("Part")
  165. Decal146 = Instance.new("Decal")
  166. BlockMesh147 = Instance.new("BlockMesh")
  167. Part148 = Instance.new("Part")
  168. BodyGyro149 = Instance.new("BodyGyro")
  169. CylinderMesh150 = Instance.new("CylinderMesh")
  170. BoolValue151 = Instance.new("BoolValue")
  171. Part152 = Instance.new("Part")
  172. Decal153 = Instance.new("Decal")
  173. BlockMesh154 = Instance.new("BlockMesh")
  174. Part155 = Instance.new("Part")
  175. BodyGyro156 = Instance.new("BodyGyro")
  176. CylinderMesh157 = Instance.new("CylinderMesh")
  177. BoolValue158 = Instance.new("BoolValue")
  178. Part159 = Instance.new("Part")
  179. Decal160 = Instance.new("Decal")
  180. BlockMesh161 = Instance.new("BlockMesh")
  181. Part162 = Instance.new("Part")
  182. BodyGyro163 = Instance.new("BodyGyro")
  183. CylinderMesh164 = Instance.new("CylinderMesh")
  184. BoolValue165 = Instance.new("BoolValue")
  185. Part166 = Instance.new("Part")
  186. Decal167 = Instance.new("Decal")
  187. BlockMesh168 = Instance.new("BlockMesh")
  188. Script169 = Instance.new("Script")
  189. LocalScript170 = Instance.new("LocalScript")
  190. Model0.Name = "pink"
  191. Model0.Parent = mas
  192. Part1.Name = "Button"
  193. Part1.Parent = Model0
  194. Part1.BrickColor = BrickColor.new("Bright violet")
  195. Part1.Rotation = Vector3.new(0, 90, 0)
  196. Part1.Anchored = true
  197. Part1.FormFactor = Enum.FormFactor.Custom
  198. Part1.Size = Vector3.new(2, 0.200000003, 5)
  199. Part1.CFrame = CFrame.new(7.88938379, 0.100019999, -16.0067501, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  200. Part1.BottomSurface = Enum.SurfaceType.Weld
  201. Part1.TopSurface = Enum.SurfaceType.Smooth
  202. Part1.Color = Color3.new(0.419608, 0.196078, 0.486275)
  203. Part1.Position = Vector3.new(7.88938379, 0.100019999, -16.0067501)
  204. Part1.Orientation = Vector3.new(0, 90, 0)
  205. Part1.Color = Color3.new(0.419608, 0.196078, 0.486275)
  206. Script2.Parent = Part1
  207. table.insert(cors,sandbox(Script2,function()
  208. debounce = false
  209. regen = {}
  210. last = {}
  211.  
  212. local regenTime = 3
  213.  
  214. local guiTextLabel = script.Parent.GUI.TextLabel
  215.  
  216. for a,b in ipairs(script.Parent.Parent:GetChildren()) do
  217. if b ~= script.Parent then
  218. table.insert(regen,b:clone())
  219. table.insert(last,b)
  220. end
  221. end
  222.  
  223. script.Parent.Touched:connect(function(hit)
  224. if hit.Parent ~= nil then
  225. if game.Players:playerFromCharacter(hit.Parent) ~= nil and debounce == false then
  226. debounce = true
  227. for a,b in ipairs(last) do
  228. if b.Parent == script.Parent.Parent then
  229. b:remove()
  230. end
  231. end
  232. last = {}
  233. for a,b in ipairs(regen) do
  234. local c = b:clone()
  235. table.insert(last,c)
  236. c.Parent = script.Parent.Parent
  237. pcall(function() c:MakeJoints() end)
  238. end
  239. script.Parent.BrickColor = BrickColor.new(26)
  240. local timer = regenTime
  241. while (timer > 0) do
  242. timer = timer - 1
  243. guiTextLabel.Text = "Regen in "..timer.." seconds."
  244. wait(1)
  245. end
  246. guiTextLabel.Text = "Touch to regen!"
  247. script.Parent.BrickColor = BrickColor.new(104)
  248. debounce = false
  249. end
  250. end
  251. end)
  252. end))
  253. BillboardGui3.Name = "GUI"
  254. BillboardGui3.Parent = Part1
  255. BillboardGui3.Size = UDim2.new(5, 0, 2, 0)
  256. BillboardGui3.StudsOffset = Vector3.new(0, 4, 0)
  257. TextLabel4.Parent = BillboardGui3
  258. TextLabel4.Transparency = 1
  259. TextLabel4.Size = UDim2.new(1, 0, 1, 0)
  260. TextLabel4.Text = "Touch to regen!"
  261. TextLabel4.BackgroundColor3 = Color3.new(1, 1, 1)
  262. TextLabel4.BackgroundTransparency = 1
  263. TextLabel4.Font = Enum.Font.SourceSans
  264. TextLabel4.FontSize = Enum.FontSize.Size14
  265. TextLabel4.TextColor3 = Color3.new(1, 1, 1)
  266. TextLabel4.TextScaled = true
  267. TextLabel4.TextStrokeTransparency = 0
  268. TextLabel4.TextWrapped = true
  269. Model5.Parent = Model0
  270. Model6.Name = "Body"
  271. Model6.Parent = Model5
  272. Part7.Name = "Handle"
  273. Part7.Parent = Model6
  274. Part7.Transparency = 100
  275. Part7.Rotation = Vector3.new(-90, 75, 90)
  276. Part7.Anchored = true
  277. Part7.FormFactor = Enum.FormFactor.Custom
  278. Part7.Size = Vector3.new(0.800000012, 0.400000006, 0.400000006)
  279. Part7.CFrame = CFrame.new(10.0600462, 5.20003223, -9.24562836, 1.13133414e-08, -0.258819073, 0.965925813, 1.48942902e-09, 0.965925813, 0.258819073, -1, -1.48942902e-09, 1.13133414e-08)
  280. Part7.BottomSurface = Enum.SurfaceType.Smooth
  281. Part7.TopSurface = Enum.SurfaceType.Smooth
  282. Part7.Position = Vector3.new(10.0600462, 5.20003223, -9.24562836)
  283. Part7.Orientation = Vector3.new(-15, 90, 0)
  284. SpecialMesh8.Parent = Part7
  285. SpecialMesh8.MeshType = Enum.MeshType.Cylinder
  286. Sound9.Name = "FireSound"
  287. Sound9.Parent = Part7
  288. Sound9.Pitch = 0.64999997615814
  289. Sound9.SoundId = "http://roblox.com/asset/?id=10209798"
  290. Sound9.Volume = 1
  291. Sound10.Name = "Reload"
  292. Sound10.Parent = Part7
  293. Sound10.SoundId = "http://www.roblox.com/asset/?id=95309699"
  294. Sound10.Volume = 1
  295. Sound11.Name = "Spinup"
  296. Sound11.Parent = Part7
  297. Sound11.Pitch = 0.81000000238419
  298. Sound11.SoundId = "http://roblox.com/asset/?id=10209780"
  299. Sound11.Volume = 1
  300. Weld12.Parent = Part7
  301. Weld12.C0 = CFrame.new(-8.05127456e-06, 5.60613785e-07, 4.80133728e-08, 1, 1.61265423e-09, -1.52461744e-05, -9.3673036e-10, 1, 1.74638448e-13, 7.62000855e-06, -5.42665685e-14, 1)
  302. Weld12.C1 = CFrame.new(-8.05127456e-06, 5.60613785e-07, 4.80133728e-08, 1, 1.61265423e-09, -1.52461744e-05, -9.3673036e-10, 1, 1.74638448e-13, 7.62000855e-06, -5.42665685e-14, 1)
  303. Weld13.Parent = Part7
  304. Weld13.C0 = CFrame.new(-4.08887473e-07, 2.28349435e-07, -9.38336996e-07, -0.510256767, 3.51973775e-08, 0.860022366, -0.0429474972, 0.998752594, -0.0254809801, -0.858948946, -0.0499376878, -0.50962007)
  305. Weld13.C1 = CFrame.new(-4.08887473e-07, 2.28349435e-07, -9.38336996e-07, -0.510256767, 3.51973775e-08, 0.860022366, -0.0429474972, 0.998752594, -0.0254809801, -0.858948946, -0.0499376878, -0.50962007)
  306. Weld14.Parent = Part7
  307. Weld14.C0 = CFrame.new(-9.55283355e-08, -7.14992836e-07, 5.05076159e-08, -0.715460241, -3.83701737e-09, 0.69865346, 0.696126997, 0.0849666595, 0.712872982, -0.059362255, 0.996383846, -0.0607902631)
  308. Weld14.C1 = CFrame.new(-9.55283355e-08, -7.14992836e-07, 5.05076159e-08, -0.715460241, -3.83701737e-09, 0.69865346, 0.696126997, 0.0849666595, 0.712872982, -0.059362255, 0.996383846, -0.0607902631)
  309. Weld15.Parent = Part7
  310. Weld15.C0 = CFrame.new(-9.55283355e-08, -7.14992836e-07, 5.05076159e-08, -0.715460241, -3.83701737e-09, 0.69865346, 0.696126997, 0.0849666595, 0.712872982, -0.059362255, 0.996383846, -0.0607902631)
  311. Weld15.C1 = CFrame.new(-9.55283355e-08, -7.14992836e-07, 5.05076159e-08, -0.715460241, -3.83701737e-09, 0.69865346, 0.696126997, 0.0849666595, 0.712872982, -0.059362255, 0.996383846, -0.0607902631)
  312. Weld16.Parent = Part7
  313. Weld16.C0 = CFrame.new(-1.49206871e-05, 1.48607512e-06, 2.61855757e-06, -0.99434489, 4.83356707e-05, 0.106200993, 0.000135254653, 0.999992192, 0.000821616559, -0.106202453, 0.000831683574, -0.994336367)
  314. Weld16.C1 = CFrame.new(-1.49206871e-05, 1.48607512e-06, 2.61855757e-06, -0.99434489, 4.83356707e-05, 0.106200993, 0.000135254653, 0.999992192, 0.000821616559, -0.106202453, 0.000831683574, -0.994336367)
  315. Weld17.Parent = Part7
  316. Weld17.C0 = CFrame.new(-8.43965751e-08, -6.75717502e-07, 1.6926748e-07, -0.711260438, -1.48397237e-06, 0.702928543, 0.693642378, 0.162007347, 0.701864541, -0.113880634, 0.986789525, -0.115228392)
  317. Weld17.C1 = CFrame.new(-8.43965751e-08, -6.75717502e-07, 1.6926748e-07, -0.711260438, -1.48397237e-06, 0.702928543, 0.693642378, 0.162007347, 0.701864541, -0.113880634, 0.986789525, -0.115228392)
  318. Weld18.Parent = Part7
  319. Weld18.C0 = CFrame.new(8.02439644e-08, 4.75047663e-08, -5.99234056e-07, -0.510256827, -4.76948389e-06, 0.860022366, -0.0429465957, 0.998752773, -0.0254749581, -0.858949125, -0.0499337502, -0.509620309)
  320. Weld18.C1 = CFrame.new(8.02439644e-08, 4.75047663e-08, -5.99234056e-07, -0.510256827, -4.76948389e-06, 0.860022366, -0.0429465957, 0.998752773, -0.0254749581, -0.858949125, -0.0499337502, -0.509620309)
  321. Weld19.Parent = Part7
  322. Weld19.C0 = CFrame.new(2.5905249e-06, -7.38690278e-06, -3.38572863e-06, 0.576513588, 6.90224058e-11, 0.817087591, 0.601113915, 0.677330732, -0.424128741, -0.553438544, 0.735678673, 0.390490383)
  323. Weld19.C1 = CFrame.new(2.5905249e-06, -7.38690278e-06, -3.38572863e-06, 0.576513588, 6.90224058e-11, 0.817087591, 0.601113915, 0.677330732, -0.424128741, -0.553438544, 0.735678673, 0.390490383)
  324. Weld20.Parent = Part7
  325. Weld20.C0 = CFrame.new(0, 0, 0, 2.62805515e-05, 9.37869481e-06, 1.00000036, 7.64430752e-06, 1.0000006, -9.45848296e-06, -1.0000006, 7.57723137e-06, 2.6070913e-05)
  326. Weld20.C1 = CFrame.new(0, 0, 0, 2.62805515e-05, 9.37869481e-06, 1.00000036, 7.64430752e-06, 1.0000006, -9.45848296e-06, -1.0000006, 7.57723137e-06, 2.6070913e-05)
  327. Weld21.Parent = Part7
  328. Weld21.C0 = CFrame.new(-1.16339243e-05, -7.47603622e-07, 1.42308963e-05, 0.840285301, 0.000319318962, -0.542144656, 0.00125857349, 0.999992073, 0.00253892899, 0.542142093, -0.00281555997, 0.840277374)
  329. Weld21.C1 = CFrame.new(-1.16339243e-05, -7.47603622e-07, 1.42308963e-05, 0.840285301, 0.000319318962, -0.542144656, 0.00125857349, 0.999992073, 0.00253892899, 0.542142093, -0.00281555997, 0.840277374)
  330. Weld22.Parent = Part7
  331. Weld22.C0 = CFrame.new(2.74268608e-09, 1.74765361e-07, -7.41032181e-07, -0.715460241, -3.59581418e-06, 0.69865346, 0.427248538, 0.791217864, 0.437530518, -0.552788675, 0.611534357, -0.566083431)
  332. Weld22.C1 = CFrame.new(2.74268608e-09, 1.74765361e-07, -7.41032181e-07, -0.715460241, -3.59581418e-06, 0.69865346, 0.427248538, 0.791217864, 0.437530518, -0.552788675, 0.611534357, -0.566083431)
  333. VehicleSeat23.Parent = Model6
  334. VehicleSeat23.Material = Enum.Material.SmoothPlastic
  335. VehicleSeat23.BrickColor = BrickColor.new("Really black")
  336. VehicleSeat23.Transparency = 1
  337. VehicleSeat23.Rotation = Vector3.new(180, -0.00999999978, 178.569992)
  338. VehicleSeat23.Anchored = true
  339. VehicleSeat23.CanCollide = false
  340. VehicleSeat23.Size = Vector3.new(1, 1, 2.5999999)
  341. VehicleSeat23.CFrame = CFrame.new(11.8541136, 3.60802007, -9.44326401, -0.999686956, -0.0250248201, -0.000140241871, -0.0250195414, 0.999686718, -3.59148835e-05, 0.000141557466, -3.27123234e-05, -1.00000072)
  342. VehicleSeat23.BottomSurface = Enum.SurfaceType.Smooth
  343. VehicleSeat23.FrontSurface = Enum.SurfaceType.Inlet
  344. VehicleSeat23.TopSurface = Enum.SurfaceType.Smooth
  345. VehicleSeat23.MaxSpeed = 202
  346. VehicleSeat23.Torque = 30
  347. VehicleSeat23.TurnSpeed = 0.69999998807907
  348. VehicleSeat23.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  349. VehicleSeat23.Position = Vector3.new(11.8541136, 3.60802007, -9.44326401)
  350. VehicleSeat23.Orientation = Vector3.new(0, -179.98999, -1.42999995)
  351. VehicleSeat23.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  352. Sound24.Name = "BrakeOff"
  353. Sound24.Parent = VehicleSeat23
  354. Sound24.SoundId = "rbxassetid://209946451"
  355. Sound25.Name = "BrakeOn"
  356. Sound25.Parent = VehicleSeat23
  357. Sound25.SoundId = "rbxassetid://209946416"
  358. Sound26.Name = "EngineIdle"
  359. Sound26.Parent = VehicleSeat23
  360. Sound26.SoundId = "rbxassetid://189517472"
  361. Sound26.Looped = true
  362. Sound27.Name = "EngineStart"
  363. Sound27.Parent = VehicleSeat23
  364. Sound27.SoundId = "rbxassetid://174967904"
  365. Sound27.Volume = 1
  366. Sound28.Name = "EngineStop"
  367. Sound28.Parent = VehicleSeat23
  368. Sound28.SoundId = "rbxassetid://174967918"
  369. Sound28.Volume = 1
  370. Sound29.Name = "Horn"
  371. Sound29.Parent = VehicleSeat23
  372. Sound29.SoundId = "rbxassetid://143133249"
  373. Sound29.Volume = 1
  374. Sound29.Looped = true
  375. Sound30.Name = "SignalOff"
  376. Sound30.Parent = VehicleSeat23
  377. Sound30.SoundId = "rbxassetid://144412085"
  378. Sound31.Name = "SignalOn"
  379. Sound31.Parent = VehicleSeat23
  380. Sound31.SoundId = "rbxassetid://144412054"
  381. Sound32.Name = "TireNoise"
  382. Sound32.Parent = VehicleSeat23
  383. Sound32.SoundId = "rbxassetid://188608071"
  384. Sound32.Volume = 0
  385. Sound32.Looped = true
  386. Folder33.Name = "ATSVariables"
  387. Folder33.Parent = VehicleSeat23
  388. BoolValue34.Name = "AutomaticMode"
  389. BoolValue34.Parent = Folder33
  390. BoolValue34.Value = true
  391. IntValue35.Name = "Gear"
  392. IntValue35.Parent = Folder33
  393. NumberValue36.Name = "RPM"
  394. NumberValue36.Parent = Folder33
  395. NumberValue37.Name = "SuspensionAngle"
  396. NumberValue37.Parent = Folder33
  397. NumberValue37.Value = 5
  398. NumberValue38.Name = "SmoothThrottle"
  399. NumberValue38.Parent = Folder33
  400. BoolValue39.Name = "CruiseControl"
  401. BoolValue39.Parent = Folder33
  402. NumberValue40.Name = "SuspensionDampening"
  403. NumberValue40.Parent = Folder33
  404. NumberValue40.Value = 2000
  405. NumberValue41.Name = "SuspensionPower"
  406. NumberValue41.Parent = Folder33
  407. NumberValue41.Value = 300000
  408. NumberValue42.Name = "Clutch"
  409. NumberValue42.Parent = Folder33
  410. NumberValue42.Value = 1
  411. NumberValue43.Name = "WheelSpeed"
  412. NumberValue43.Parent = Folder33
  413. NumberValue44.Name = "TrueBrake"
  414. NumberValue44.Parent = Folder33
  415. Script45.Name = "DynDSGiver"
  416. Script45.Parent = VehicleSeat23
  417. table.insert(cors,sandbox(Script45,function()
  418. -- DynDS 1.2.0
  419. --------------------------------------------------------------------------------------------------
  420. local P = script.Parent
  421. local body = P.Parent
  422. local car = body.Parent
  423.  
  424. for i,v in pairs(script:GetChildren()) do
  425. if (v:FindFirstChild("Car")) and (v.Car:IsA("ObjectValue")) then
  426. v.Car.Value = car
  427. end
  428. end
  429.  
  430. P.ChildAdded:connect(function(child)
  431. if child:IsA("Weld") and (child.Part1) and (child.Part1.Name == "HumanoidRootPart") then
  432. local player = game.Players:GetPlayerFromCharacter(child.Part1.Parent)
  433. if (player) then
  434. for i,v in pairs(script:GetChildren()) do
  435. v:Clone().Parent = player.PlayerGui
  436. end
  437. end
  438. end
  439. end)
  440. end))
  441. ScreenGui46.Name = "DynDS"
  442. ScreenGui46.Parent = Script45
  443. ObjectValue47.Name = "Car"
  444. ObjectValue47.Parent = ScreenGui46
  445. LocalScript48.Name = "DynDS"
  446. LocalScript48.Parent = ScreenGui46
  447. table.insert(cors,sandbox(LocalScript48,function()
  448. -- DynDS 1.2.0
  449. --------------------------------------------------------------------------------------------------
  450. -- Changing anything below is likely going to break the car, only advanced scripters should continue.
  451. local UIS = game:GetService("UserInputService")
  452. local P = script.Parent
  453. local player = game.Players.LocalPlayer
  454. local character = player.Character
  455. local cam = game.Workspace.CurrentCamera
  456. cam.CameraType = Enum.CameraType.Follow
  457. cam.CameraSubject = character.Humanoid
  458.  
  459. -- Find and disable ATS
  460. local ATS = P.Parent:WaitForChild("Drive")
  461. ATS.Disabled = true
  462.  
  463. wait(0.2)
  464.  
  465. --// Car variables
  466. local car = P.Car.Value
  467. local body = car.Body
  468. local seat = body.VehicleSeat
  469. seat.HeadsUpDisplay = false
  470. local vars = seat.ATSVariables
  471. --// GUI variables
  472. local UI = P.GUI
  473. local leftMenu = UI.Left
  474. local controlsFrame = leftMenu.ControlsFrame
  475. local rpmMeter = UI.RPMMeter
  476. local topMenu = UI.Top
  477. local rightMenu = UI.Right
  478. --// Wheels
  479. local wheels = {}
  480. local steerMotor = nil
  481. for i,v in pairs(car.Wheels:GetChildren()) do
  482. table.insert(wheels, v.Wheel)
  483. if (v:FindFirstChild("Steer")) and (not steerMotor) then
  484. steerMotor = v.Steer.Motor
  485. end
  486. end
  487. local wheelDiameter = wheels[1].Size.x
  488. --// Lights
  489. local brakeLights = (car:FindFirstChild("Lights") and car.Lights:FindFirstChild("Brake")) and car.Lights.Brake:GetChildren() or {}
  490. local reverseLights = (car:FindFirstChild("Lights") and car.Lights:FindFirstChild("Reverse")) and car.Lights.Reverse:GetChildren() or {}
  491. local beamLights1 = (car:FindFirstChild("Lights") and car.Lights:FindFirstChild("Beams")) and car.Lights.Beams.Front:GetChildren() or {}
  492. local beamLights2 = (car:FindFirstChild("Lights") and car.Lights:FindFirstChild("Beams")) and car.Lights.Beams.Rear:GetChildren() or {}
  493. local hiBeamLights = (car:FindFirstChild("Lights") and car.Lights:FindFirstChild("HiBeams")) and car.Lights.HiBeams:GetChildren() or {}
  494. local leftSignalLights1 = (car:FindFirstChild("Lights") and car.Lights:FindFirstChild("Left")) and car.Lights.Left.Front:GetChildren() or {}
  495. local leftSignalLights2 = (car:FindFirstChild("Lights") and car.Lights:FindFirstChild("Left")) and car.Lights.Left.Rear:GetChildren() or {}
  496. local rightSignalLights1= (car:FindFirstChild("Lights") and car.Lights:FindFirstChild("Right")) and car.Lights.Right.Front:GetChildren() or {}
  497. local rightSignalLights2= (car:FindFirstChild("Lights") and car.Lights:FindFirstChild("Right")) and car.Lights.Right.Rear:GetChildren() or {}
  498. --// Car state
  499. local automatic = vars.AutomaticMode
  500. local beamsOn = 0
  501. local hazardActive = false
  502. local signalLeftActive = false
  503. local signalRightActive = false
  504. local signalOn = false
  505. local hibeamsOn = false
  506. local handbrakeOn = false
  507. local timer = 0.0
  508. local currentGear = vars.Gear
  509. local suspensionIncrement = 0.0
  510. local cruiseControl = vars.CruiseControl
  511. local blinkerSensor = false
  512.  
  513. --// -------------------
  514. --// Helper functions
  515. --// -------------------
  516. function Clamp(val, Min, Max) return math.min( math.max(val, Min), Max) end
  517.  
  518. function SetHandbrakeForce(force)
  519. handbrakeOn = force > 0
  520. rpmMeter.PBrake.Visible = handbrakeOn
  521. if (handbrakeOn == true) then seat.BrakeOn:Play() else seat.BrakeOff:Play() end
  522. for i,v in pairs(wheels) do
  523. if (v:FindFirstChild("EBrake")) then
  524. v.EBrake.cframe = v.CFrame
  525. v.EBrake.maxTorque = Vector3.new(force,force,force)
  526. end
  527. end
  528. end
  529.  
  530. function SetLights(lightModel, state)
  531. for _,v in pairs(lightModel) do
  532. if (v:IsA("BasePart")) then
  533. if v:FindFirstChild("Light") then v.Light.Enabled = state end
  534. v.Material = state and Enum.Material.Neon or Enum.Material.SmoothPlastic
  535. v.Transparency = v.Parent.Properties["BrickTransparency"..(state and "On" or "Off")].Value
  536. v.BrickColor = v.Parent.Properties["BrickColor"..(state and "On" or "Off")].Value
  537. end
  538. end
  539. end
  540.  
  541. function StartEngine()
  542. SetGUIInfo("Starting Engine")
  543. seat.EngineStart:Play()
  544. wait(1.3)
  545. seat.EngineIdle:Play()
  546. ATS.Disabled = false
  547. SetGUIInfo("Engine started")
  548. end
  549.  
  550. function StopEngine()
  551. SetGUIInfo("Engine stopped")
  552. seat.EngineStop:Play()
  553. wait(0.2)
  554. seat.EngineIdle:Stop()
  555. ATS.Disabled = true
  556. end
  557.  
  558. function SetGear(gear)
  559. if (automatic.Value) then return end
  560. currentGear.Value = Clamp(gear, -1, 6)
  561. SetLights(reverseLights, currentGear.Value < 0)
  562. end
  563.  
  564. -- This function will reset the camera and CoreGui correctly.
  565. function ResetPlayer()
  566. if (cam) then
  567. cam.CameraType = Enum.CameraType.Custom
  568. cam.CameraSubject = character.Humanoid
  569. end
  570. end
  571.  
  572. function SetGUIInfo(text)
  573. topMenu.Message.Text = text
  574. end
  575.  
  576. function Flip()
  577. local g = Instance.new("BodyGyro", car.Body.VehicleSeat)
  578. g.maxTorque = Vector3.new(math.huge, 0, math.huge)
  579. game.Debris:AddItem(g, 3)
  580. end
  581.  
  582. function ChangeCam()
  583. if (cam.CameraType == Enum.CameraType.Track) then
  584. cam.CameraType = Enum.CameraType.Follow
  585. else
  586. cam.CameraType = Enum.CameraType.Track
  587. end
  588. end
  589.  
  590. function ToggleCC(on)
  591. if (cruiseControl.Value ~= on) then SetGUIInfo("Cruise Control "..(on and "enabled" or "disabled")) end
  592. cruiseControl.Value = on
  593. end
  594.  
  595. function ToggleLights(override)
  596. beamsOn = override and override or (beamsOn + 1) % 3
  597. if (beamsOn == 1) then
  598. SetLights(beamLights1, true)
  599. SetLights(beamLights2, true)
  600. rightMenu.LightSwitch.Image = "rbxassetid://151673100"
  601. rightMenu.LightSwitch.Style = Enum.ButtonStyle.RobloxRoundDefaultButton
  602. SetGUIInfo("Beams: ON")
  603. elseif (beamsOn == 2) then
  604. rightMenu.LightSwitch.Image = "rbxassetid://165966725"
  605. SetGUIInfo("Beams: AUTO")
  606. else
  607. SetLights(beamLights1, false)
  608. SetLights(beamLights2, false)
  609. rightMenu.LightSwitch.Image = "rbxassetid://151673087"
  610. rightMenu.LightSwitch.Style = Enum.ButtonStyle.RobloxRoundButton
  611. SetGUIInfo("Beams: OFF")
  612. end
  613. end
  614.  
  615. ---GENERAL FUNCTIONS-------------------------------
  616. seat.ChildRemoved:connect(function(child)
  617. if child.Name == "SeatWeld" then
  618. ResetPlayer()
  619. SetHandbrakeForce(math.huge)
  620. seat.TireNoise:Stop()
  621. seat.EngineIdle:Stop()
  622. P:Destroy()
  623. end
  624. end)
  625.  
  626. function ToLinear(angular)
  627. return angular * 1 / (0.257 * wheelDiameter)
  628. end
  629.  
  630. local controlsOpen = false
  631. rightMenu.ControlsButton.MouseButton1Click:connect(function()
  632. if (controlsOpen) then
  633. controlsFrame:TweenPosition(UDim2.new(-1, 0, 0, 0), "Out", "Quart", 1, true)
  634. controlsOpen = false
  635. else
  636. controlsFrame:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Quart", 1, true)
  637. controlsOpen = true
  638. end
  639. end)
  640.  
  641. UIS.InputBegan:connect(function(input)
  642. if (input.KeyCode == Enum.KeyCode.X) then
  643. if (ATS.Disabled) then
  644. StartEngine()
  645. ToggleLights(2)
  646. else
  647. StopEngine()
  648. ToggleLights(0)
  649. end
  650. elseif (input.KeyCode == Enum.KeyCode.V) then Flip()
  651. elseif (input.KeyCode == Enum.KeyCode.C) then ChangeCam()
  652. elseif (input.KeyCode == Enum.KeyCode.Z) then ToggleCC(not cruiseControl.Value)
  653. elseif (input.KeyCode == Enum.KeyCode.R) or (input.KeyCode == Enum.KeyCode.ButtonR1) then
  654. SetGear(currentGear.Value+1)
  655. elseif (input.KeyCode == Enum.KeyCode.F) or (input.KeyCode == Enum.KeyCode.ButtonL1) then
  656. SetGear(currentGear.Value-1)
  657. elseif (input.KeyCode == Enum.KeyCode.Q) then
  658. signalLeftActive = not signalLeftActive
  659. signalRightActive = false
  660. elseif (input.KeyCode == Enum.KeyCode.E) then
  661. signalRightActive = not signalRightActive
  662. signalLeftActive = false
  663. elseif (input.KeyCode == Enum.KeyCode.T) then
  664. suspensionIncrement = 10
  665. elseif (input.KeyCode == Enum.KeyCode.G) then
  666. suspensionIncrement = -10
  667. elseif (input.KeyCode == Enum.KeyCode.H) then
  668. seat.Horn:Play()
  669. elseif (input.KeyCode == Enum.KeyCode.L) then
  670. ToggleLights()
  671. elseif (input.KeyCode == Enum.KeyCode.K) then
  672. hibeamsOn = not hibeamsOn
  673. SetLights(hiBeamLights, hibeamsOn)
  674. elseif (input.KeyCode == Enum.KeyCode.P) then
  675. SetHandbrakeForce(handbrakeOn and 0 or math.huge)
  676. end
  677. end)
  678.  
  679. UIS.InputEnded:connect(function(input)
  680. if (input.KeyCode == Enum.KeyCode.T) or (input.KeyCode == Enum.KeyCode.G) then
  681. suspensionIncrement = 0
  682. elseif (input.KeyCode == Enum.KeyCode.H) then
  683. seat.Horn:Stop()
  684. end
  685. end)
  686.  
  687. rightMenu.LightSwitch.MouseButton1Click:connect(ToggleLights)
  688.  
  689. --// Button for hazards
  690. rightMenu.HazardSwitch.MouseButton1Click:connect(function() hazardActive = not hazardActive end)
  691.  
  692. --// Button for gear type
  693. rightMenu.TypeButton.MouseButton1Click:connect(function()
  694. automatic.Value = not automatic.Value
  695. rightMenu.TypeButton.Text = automatic.Value and "Auto" or "Manual"
  696. end)
  697.  
  698. function UpdateBlinkers()
  699. if (steerMotor.CurrentAngle == 0) and (blinkerSensor) then
  700. blinkerSensor = false
  701. signalLeftActive = false
  702. signalRightActive = false
  703. end
  704. if (math.abs(steerMotor.CurrentAngle) > 0) then
  705. blinkerSensor = true
  706. end
  707. if (timer < 0) then
  708. timer = 0.4
  709. signalOn = not signalOn
  710. if (signalLeftActive or signalRightActive or hazardActive) then
  711. SetLights(leftSignalLights1, (hazardActive or signalLeftActive) and signalOn)
  712. SetLights(leftSignalLights2, (hazardActive or signalLeftActive) and signalOn)
  713. SetLights(rightSignalLights1, (hazardActive or signalRightActive) and signalOn)
  714. SetLights(rightSignalLights2, (hazardActive or signalRightActive) and signalOn)
  715. topMenu.Left.Visible = ((hazardActive or signalLeftActive) and signalOn)
  716. topMenu.Right.Visible = ((hazardActive or signalRightActive) and signalOn)
  717. rightMenu.HazardSwitch.Style = (hazardActive and signalOn) and Enum.ButtonStyle.RobloxRoundDefaultButton or Enum.ButtonStyle.RobloxRoundButton
  718. if (signalOn) then
  719. seat.SignalOn:Play()
  720. seat.SignalOff:Stop()
  721. else
  722. seat.SignalOn:Stop()
  723. seat.SignalOff:Play()
  724. end
  725. else
  726. SetLights(rightSignalLights1, false)
  727. SetLights(rightSignalLights2, false)
  728. SetLights(leftSignalLights1, false)
  729. SetLights(leftSignalLights2, false)
  730. rightMenu.HazardSwitch.Style = Enum.ButtonStyle.RobloxRoundButton
  731. topMenu.Left.Visible = false
  732. topMenu.Right.Visible = false
  733. end
  734. end
  735. end
  736.  
  737. function Init()
  738. seat.TireNoise:Play()
  739. SetHandbrakeForce(0)
  740. end
  741.  
  742. function Main(deltaTime)
  743. timer = timer - deltaTime
  744. local brake = vars.TrueBrake.Value
  745. vars.SuspensionAngle.Value = Clamp(vars.SuspensionAngle.Value + suspensionIncrement * deltaTime, 0, 25)
  746. local wheelSpeed = vars.WheelSpeed.Value
  747.  
  748. if (brake > 0.0) then ToggleCC(false) end
  749.  
  750. --// Sound
  751. seat.TireNoise.Volume = math.min(seat.Velocity.Magnitude / 200, 0.3)
  752. seat.EngineIdle.Pitch = 0.1 + vars.RPM.Value
  753. seat.EngineIdle.Volume = 0.1 + 0.9 * vars.SmoothThrottle.Value
  754.  
  755. -- Lights
  756. if (beamsOn == 2) then
  757. local hoursAfterMidnight = game.Lighting:GetMinutesAfterMidnight() / 60
  758. SetLights(beamLights1, (hoursAfterMidnight > 18 or hoursAfterMidnight < 6))
  759. SetLights(beamLights2, (hoursAfterMidnight > 18 or hoursAfterMidnight < 6))
  760. end
  761. SetLights(reverseLights, currentGear.Value < 0)
  762. SetLights(brakeLights, brake > 0)
  763. UpdateBlinkers()
  764.  
  765. -- Gear indicator
  766. rpmMeter.Gear.Text = (currentGear.Value > 0) and currentGear.Value or (currentGear.Value < 0) and 'R' or 'N'
  767. -- Velocity indicator
  768. local velText = math.floor(wheelSpeed+0.5).." sps"
  769. rpmMeter.Velocity.Text = velText
  770. -- RPM indicators
  771. rpmMeter.RPMIndicator.Rotation = -220 + 160 * (0.6 * vars.RPM.Value + 0.1)
  772. -- Clutch indicator
  773. rpmMeter.Clutch.Bar.Size = UDim2.new(0,5,vars.Clutch.Value,0)
  774. rpmMeter.Clutch.Bar.Position = UDim2.new(1,-5,1-vars.Clutch.Value,0)
  775. end
  776.  
  777. Init()
  778. while true do
  779. local success, message = pcall(Main, wait())
  780. if (not success) then
  781. print("DynDS error: "..message)
  782. ResetPlayer()
  783. P:Destroy() -- Delete GUI
  784. break
  785. end
  786. end
  787. end))
  788. Frame49.Name = "GUI"
  789. Frame49.Parent = ScreenGui46
  790. Frame49.Transparency = 1
  791. Frame49.Size = UDim2.new(1, 0, 1, 0)
  792. Frame49.BackgroundColor3 = Color3.new(1, 1, 1)
  793. Frame49.BackgroundTransparency = 1
  794. Frame49.BorderSizePixel = 0
  795. Frame50.Name = "Left"
  796. Frame50.Parent = Frame49
  797. Frame50.Transparency = 1
  798. Frame50.Size = UDim2.new(0, 200, 0.5, 0)
  799. Frame50.Position = UDim2.new(0, 0, 0.25, 0)
  800. Frame50.BackgroundColor3 = Color3.new(1, 1, 1)
  801. Frame50.BackgroundTransparency = 1
  802. Frame50.BorderSizePixel = 0
  803. ScrollingFrame51.Name = "ControlsFrame"
  804. ScrollingFrame51.Parent = Frame50
  805. ScrollingFrame51.Transparency = 0.5
  806. ScrollingFrame51.Size = UDim2.new(1, 0, 1, 0)
  807. ScrollingFrame51.Position = UDim2.new(-1, 0, 0, 0)
  808. ScrollingFrame51.CanvasSize = UDim2.new(0, 0, 0, 360)
  809. ScrollingFrame51.BackgroundColor3 = Color3.new(0, 0, 0)
  810. ScrollingFrame51.BackgroundTransparency = 0.5
  811. ScrollingFrame51.ZIndex = 2
  812. ScrollingFrame51.BottomImage = "http://www.roblox.com/asset/?id=158362221"
  813. ScrollingFrame51.MidImage = "http://www.roblox.com/asset/?id=158362264"
  814. ScrollingFrame51.ScrollBarThickness = 10
  815. ScrollingFrame51.TopImage = "http://www.roblox.com/asset/?id=158362307"
  816. TextLabel52.Parent = ScrollingFrame51
  817. TextLabel52.Transparency = 1
  818. TextLabel52.Size = UDim2.new(1, 0, 0, 30)
  819. TextLabel52.Text = "V - Flip"
  820. TextLabel52.Position = UDim2.new(0, 0, 0, 120)
  821. TextLabel52.BackgroundColor3 = Color3.new(1, 1, 1)
  822. TextLabel52.BackgroundTransparency = 1
  823. TextLabel52.ZIndex = 2
  824. TextLabel52.Font = Enum.Font.SourceSans
  825. TextLabel52.FontSize = Enum.FontSize.Size18
  826. TextLabel52.TextColor3 = Color3.new(1, 1, 1)
  827. TextLabel52.TextWrapped = true
  828. TextLabel53.Parent = ScrollingFrame51
  829. TextLabel53.Transparency = 1
  830. TextLabel53.Size = UDim2.new(1, 0, 0, 30)
  831. TextLabel53.Text = "C - Change camera"
  832. TextLabel53.Position = UDim2.new(0, 0, 0, 150)
  833. TextLabel53.BackgroundColor3 = Color3.new(1, 1, 1)
  834. TextLabel53.BackgroundTransparency = 1
  835. TextLabel53.ZIndex = 2
  836. TextLabel53.Font = Enum.Font.SourceSans
  837. TextLabel53.FontSize = Enum.FontSize.Size18
  838. TextLabel53.TextColor3 = Color3.new(1, 1, 1)
  839. TextLabel53.TextWrapped = true
  840. TextLabel54.Parent = ScrollingFrame51
  841. TextLabel54.Transparency = 1
  842. TextLabel54.Size = UDim2.new(1, 0, 0, 30)
  843. TextLabel54.Text = "Z - Cruise control"
  844. TextLabel54.Position = UDim2.new(0, 0, 0, 180)
  845. TextLabel54.BackgroundColor3 = Color3.new(1, 1, 1)
  846. TextLabel54.BackgroundTransparency = 1
  847. TextLabel54.ZIndex = 2
  848. TextLabel54.Font = Enum.Font.SourceSans
  849. TextLabel54.FontSize = Enum.FontSize.Size18
  850. TextLabel54.TextColor3 = Color3.new(1, 1, 1)
  851. TextLabel54.TextWrapped = true
  852. TextLabel55.Parent = ScrollingFrame51
  853. TextLabel55.Transparency = 1
  854. TextLabel55.Size = UDim2.new(1, 0, 0, 30)
  855. TextLabel55.Text = "R/F - Manual Up/Down"
  856. TextLabel55.Position = UDim2.new(0, 0, 0, 30)
  857. TextLabel55.BackgroundColor3 = Color3.new(1, 1, 1)
  858. TextLabel55.BackgroundTransparency = 1
  859. TextLabel55.ZIndex = 2
  860. TextLabel55.Font = Enum.Font.SourceSans
  861. TextLabel55.FontSize = Enum.FontSize.Size18
  862. TextLabel55.TextColor3 = Color3.new(1, 1, 1)
  863. TextLabel55.TextWrapped = true
  864. TextLabel56.Parent = ScrollingFrame51
  865. TextLabel56.Transparency = 1
  866. TextLabel56.Size = UDim2.new(1, 0, 0, 30)
  867. TextLabel56.Text = "WASD / Arrows - Drive"
  868. TextLabel56.BackgroundColor3 = Color3.new(1, 1, 1)
  869. TextLabel56.BackgroundTransparency = 1
  870. TextLabel56.ZIndex = 2
  871. TextLabel56.Font = Enum.Font.SourceSans
  872. TextLabel56.FontSize = Enum.FontSize.Size18
  873. TextLabel56.TextColor3 = Color3.new(1, 1, 1)
  874. TextLabel56.TextWrapped = true
  875. TextLabel57.Parent = ScrollingFrame51
  876. TextLabel57.Transparency = 1
  877. TextLabel57.Size = UDim2.new(1, 0, 0, 30)
  878. TextLabel57.Text = "X - Start / Stop"
  879. TextLabel57.Position = UDim2.new(0, 0, 0, 210)
  880. TextLabel57.BackgroundColor3 = Color3.new(1, 1, 1)
  881. TextLabel57.BackgroundTransparency = 1
  882. TextLabel57.ZIndex = 2
  883. TextLabel57.Font = Enum.Font.SourceSans
  884. TextLabel57.FontSize = Enum.FontSize.Size18
  885. TextLabel57.TextColor3 = Color3.new(1, 1, 1)
  886. TextLabel57.TextWrapped = true
  887. TextLabel58.Parent = ScrollingFrame51
  888. TextLabel58.Transparency = 1
  889. TextLabel58.Size = UDim2.new(1, 0, 0, 30)
  890. TextLabel58.Text = "H - Horn"
  891. TextLabel58.Position = UDim2.new(0, 0, 0, 90)
  892. TextLabel58.BackgroundColor3 = Color3.new(1, 1, 1)
  893. TextLabel58.BackgroundTransparency = 1
  894. TextLabel58.ZIndex = 2
  895. TextLabel58.Font = Enum.Font.SourceSans
  896. TextLabel58.FontSize = Enum.FontSize.Size18
  897. TextLabel58.TextColor3 = Color3.new(1, 1, 1)
  898. TextLabel58.TextWrapped = true
  899. TextLabel59.Parent = ScrollingFrame51
  900. TextLabel59.Transparency = 1
  901. TextLabel59.Size = UDim2.new(1, 0, 0, 30)
  902. TextLabel59.Text = "T/G - Suspension"
  903. TextLabel59.Position = UDim2.new(0, 0, 0, 60)
  904. TextLabel59.BackgroundColor3 = Color3.new(1, 1, 1)
  905. TextLabel59.BackgroundTransparency = 1
  906. TextLabel59.ZIndex = 2
  907. TextLabel59.Font = Enum.Font.SourceSans
  908. TextLabel59.FontSize = Enum.FontSize.Size18
  909. TextLabel59.TextColor3 = Color3.new(1, 1, 1)
  910. TextLabel59.TextWrapped = true
  911. TextLabel60.Parent = ScrollingFrame51
  912. TextLabel60.Transparency = 1
  913. TextLabel60.Size = UDim2.new(1, 0, 0, 30)
  914. TextLabel60.Text = "L - Lights"
  915. TextLabel60.Position = UDim2.new(0, 0, 0, 240)
  916. TextLabel60.BackgroundColor3 = Color3.new(1, 1, 1)
  917. TextLabel60.BackgroundTransparency = 1
  918. TextLabel60.ZIndex = 2
  919. TextLabel60.Font = Enum.Font.SourceSans
  920. TextLabel60.FontSize = Enum.FontSize.Size18
  921. TextLabel60.TextColor3 = Color3.new(1, 1, 1)
  922. TextLabel60.TextWrapped = true
  923. TextLabel61.Parent = ScrollingFrame51
  924. TextLabel61.Transparency = 1
  925. TextLabel61.Size = UDim2.new(1, 0, 0, 30)
  926. TextLabel61.Text = "K - Hi-beams"
  927. TextLabel61.Position = UDim2.new(0, 0, 0, 270)
  928. TextLabel61.BackgroundColor3 = Color3.new(1, 1, 1)
  929. TextLabel61.BackgroundTransparency = 1
  930. TextLabel61.ZIndex = 2
  931. TextLabel61.Font = Enum.Font.SourceSans
  932. TextLabel61.FontSize = Enum.FontSize.Size18
  933. TextLabel61.TextColor3 = Color3.new(1, 1, 1)
  934. TextLabel61.TextWrapped = true
  935. TextLabel62.Parent = ScrollingFrame51
  936. TextLabel62.Transparency = 1
  937. TextLabel62.Size = UDim2.new(1, 0, 0, 30)
  938. TextLabel62.Text = "Q/E - Signals"
  939. TextLabel62.Position = UDim2.new(0, 0, 0, 300)
  940. TextLabel62.BackgroundColor3 = Color3.new(1, 1, 1)
  941. TextLabel62.BackgroundTransparency = 1
  942. TextLabel62.ZIndex = 2
  943. TextLabel62.Font = Enum.Font.SourceSans
  944. TextLabel62.FontSize = Enum.FontSize.Size18
  945. TextLabel62.TextColor3 = Color3.new(1, 1, 1)
  946. TextLabel62.TextWrapped = true
  947. TextLabel63.Parent = ScrollingFrame51
  948. TextLabel63.Transparency = 1
  949. TextLabel63.Size = UDim2.new(1, 0, 0, 30)
  950. TextLabel63.Text = "P - Parking brake"
  951. TextLabel63.Position = UDim2.new(0, 0, 0, 330)
  952. TextLabel63.BackgroundColor3 = Color3.new(1, 1, 1)
  953. TextLabel63.BackgroundTransparency = 1
  954. TextLabel63.ZIndex = 2
  955. TextLabel63.Font = Enum.Font.SourceSans
  956. TextLabel63.FontSize = Enum.FontSize.Size18
  957. TextLabel63.TextColor3 = Color3.new(1, 1, 1)
  958. TextLabel63.TextWrapped = true
  959. Frame64.Name = "Right"
  960. Frame64.Parent = Frame49
  961. Frame64.Transparency = 0.34999999403954
  962. Frame64.Size = UDim2.new(0, 50, 0, 200)
  963. Frame64.Position = UDim2.new(1, -54, 0.5, -150)
  964. Frame64.BackgroundColor3 = Color3.new(0, 0, 0)
  965. Frame64.BackgroundTransparency = 0.34999999403954
  966. Frame64.BorderColor3 = Color3.new(0.215686, 0.215686, 0.215686)
  967. Frame64.BorderSizePixel = 4
  968. ImageButton65.Name = "HazardSwitch"
  969. ImageButton65.Parent = Frame64
  970. ImageButton65.Transparency = 1
  971. ImageButton65.Size = UDim2.new(0, 50, 0, 50)
  972. ImageButton65.Style = Enum.ButtonStyle.RobloxRoundButton
  973. ImageButton65.Position = UDim2.new(0, 0, 0, 150)
  974. ImageButton65.BackgroundColor3 = Color3.new(1, 1, 1)
  975. ImageButton65.BackgroundTransparency = 1
  976. ImageButton65.BorderSizePixel = 0
  977. ImageButton65.Image = "http://www.roblox.com/asset/?id=151678797"
  978. ImageButton66.Name = "LightSwitch"
  979. ImageButton66.Parent = Frame64
  980. ImageButton66.Transparency = 1
  981. ImageButton66.Size = UDim2.new(0, 50, 0, 50)
  982. ImageButton66.Style = Enum.ButtonStyle.RobloxRoundButton
  983. ImageButton66.Position = UDim2.new(0, 0, 0, 50)
  984. ImageButton66.BackgroundColor3 = Color3.new(1, 1, 1)
  985. ImageButton66.BackgroundTransparency = 1
  986. ImageButton66.BorderSizePixel = 0
  987. ImageButton66.Image = "http://www.roblox.com/asset/?id=151673087"
  988. TextButton67.Name = "ControlsButton"
  989. TextButton67.Parent = Frame64
  990. TextButton67.Size = UDim2.new(0, 50, 0, 50)
  991. TextButton67.Style = Enum.ButtonStyle.RobloxRoundButton
  992. TextButton67.Text = "Help"
  993. TextButton67.BackgroundColor3 = Color3.new(1, 1, 1)
  994. TextButton67.Font = Enum.Font.SourceSans
  995. TextButton67.FontSize = Enum.FontSize.Size18
  996. TextButton67.TextColor3 = Color3.new(1, 1, 1)
  997. TextButton68.Name = "TypeButton"
  998. TextButton68.Parent = Frame64
  999. TextButton68.Size = UDim2.new(0, 50, 0, 50)
  1000. TextButton68.Style = Enum.ButtonStyle.RobloxRoundButton
  1001. TextButton68.Text = "Auto"
  1002. TextButton68.Position = UDim2.new(0, 0, 0, 100)
  1003. TextButton68.BackgroundColor3 = Color3.new(1, 1, 1)
  1004. TextButton68.Font = Enum.Font.SourceSans
  1005. TextButton68.FontSize = Enum.FontSize.Size18
  1006. TextButton68.TextColor3 = Color3.new(1, 1, 1)
  1007. Frame69.Name = "Top"
  1008. Frame69.Parent = Frame49
  1009. Frame69.Transparency = 0.34999999403954
  1010. Frame69.Size = UDim2.new(0, 300, 0, 20)
  1011. Frame69.Position = UDim2.new(0.5, -150, 0, 4)
  1012. Frame69.BackgroundColor3 = Color3.new(0, 0, 0)
  1013. Frame69.BackgroundTransparency = 0.34999999403954
  1014. Frame69.BorderColor3 = Color3.new(0.215686, 0.215686, 0.215686)
  1015. Frame69.BorderSizePixel = 4
  1016. TextLabel70.Name = "Message"
  1017. TextLabel70.Parent = Frame69
  1018. TextLabel70.Transparency = 1
  1019. TextLabel70.Size = UDim2.new(1, 0, 1, 0)
  1020. TextLabel70.Text = "Press X to start"
  1021. TextLabel70.BackgroundColor3 = Color3.new(1, 1, 1)
  1022. TextLabel70.BackgroundTransparency = 1
  1023. TextLabel70.BorderSizePixel = 0
  1024. TextLabel70.Font = Enum.Font.SourceSans
  1025. TextLabel70.FontSize = Enum.FontSize.Size18
  1026. TextLabel70.TextColor3 = Color3.new(0.509804, 0.796079, 1)
  1027. ImageLabel71.Name = "Left"
  1028. ImageLabel71.Parent = Frame69
  1029. ImageLabel71.Transparency = 1
  1030. ImageLabel71.Rotation = 180
  1031. ImageLabel71.Size = UDim2.new(0, 20, 0, 20)
  1032. ImageLabel71.Visible = false
  1033. ImageLabel71.BackgroundColor3 = Color3.new(1, 1, 1)
  1034. ImageLabel71.BackgroundTransparency = 1
  1035. ImageLabel71.ZIndex = 2
  1036. ImageLabel71.Image = "rbxassetid://71659683"
  1037. ImageLabel71.ImageColor3 = Color3.new(1, 0.494118, 0)
  1038. ImageLabel72.Name = "Right"
  1039. ImageLabel72.Parent = Frame69
  1040. ImageLabel72.Transparency = 1
  1041. ImageLabel72.Size = UDim2.new(0, 20, 0, 20)
  1042. ImageLabel72.Position = UDim2.new(1, -20, 0, 0)
  1043. ImageLabel72.Visible = false
  1044. ImageLabel72.BackgroundColor3 = Color3.new(1, 1, 1)
  1045. ImageLabel72.BackgroundTransparency = 1
  1046. ImageLabel72.ZIndex = 2
  1047. ImageLabel72.Image = "rbxassetid://71659683"
  1048. ImageLabel72.ImageColor3 = Color3.new(1, 0.494118, 0)
  1049. ImageLabel73.Name = "RPMMeter"
  1050. ImageLabel73.Parent = Frame49
  1051. ImageLabel73.Transparency = 1
  1052. ImageLabel73.Size = UDim2.new(0, 200, 0, 200)
  1053. ImageLabel73.Position = UDim2.new(1, -200, 1, -200)
  1054. ImageLabel73.BackgroundColor3 = Color3.new(1, 1, 1)
  1055. ImageLabel73.BackgroundTransparency = 1
  1056. ImageLabel73.ZIndex = 2
  1057. ImageLabel73.Image = "rbxassetid://188610998"
  1058. ImageLabel74.Name = "RPMIndicator"
  1059. ImageLabel74.Parent = ImageLabel73
  1060. ImageLabel74.Transparency = 1
  1061. ImageLabel74.Rotation = -220
  1062. ImageLabel74.Size = UDim2.new(1, 0, 1, 0)
  1063. ImageLabel74.Position = UDim2.new(0, 20, 0, 20)
  1064. ImageLabel74.BackgroundColor3 = Color3.new(1, 1, 1)
  1065. ImageLabel74.BackgroundTransparency = 1
  1066. ImageLabel74.ZIndex = 4
  1067. ImageLabel74.Image = "rbxassetid://188611496"
  1068. TextLabel75.Name = "Gear"
  1069. TextLabel75.Parent = ImageLabel73
  1070. TextLabel75.Transparency = 1
  1071. TextLabel75.Size = UDim2.new(0, 60, 0, 0)
  1072. TextLabel75.Text = "N"
  1073. TextLabel75.Position = UDim2.new(0.5, -10, 0.800000012, 0)
  1074. TextLabel75.BackgroundColor3 = Color3.new(1, 1, 1)
  1075. TextLabel75.BackgroundTransparency = 1
  1076. TextLabel75.ZIndex = 2
  1077. TextLabel75.Font = Enum.Font.SourceSans
  1078. TextLabel75.FontSize = Enum.FontSize.Size24
  1079. TextLabel75.TextColor3 = Color3.new(1, 1, 1)
  1080. TextLabel76.Name = "Multiplier"
  1081. TextLabel76.Parent = ImageLabel73
  1082. TextLabel76.Transparency = 1
  1083. TextLabel76.Size = UDim2.new(0, 60, 0, 0)
  1084. TextLabel76.Text = "x1000"
  1085. TextLabel76.Position = UDim2.new(0.5, -10, 0.400000006, 0)
  1086. TextLabel76.BackgroundColor3 = Color3.new(1, 1, 1)
  1087. TextLabel76.BackgroundTransparency = 1
  1088. TextLabel76.ZIndex = 2
  1089. TextLabel76.Font = Enum.Font.SourceSans
  1090. TextLabel76.FontSize = Enum.FontSize.Size18
  1091. TextLabel76.TextColor3 = Color3.new(1, 1, 1)
  1092. TextButton77.Name = "Velocity"
  1093. TextButton77.Parent = ImageLabel73
  1094. TextButton77.Transparency = 1
  1095. TextButton77.Size = UDim2.new(0, 60, 0, 25)
  1096. TextButton77.Text = "0 sps"
  1097. TextButton77.Position = UDim2.new(0.5, -10, 1, -32)
  1098. TextButton77.BackgroundColor3 = Color3.new(1, 1, 1)
  1099. TextButton77.BackgroundTransparency = 1
  1100. TextButton77.BorderSizePixel = 0
  1101. TextButton77.ZIndex = 3
  1102. TextButton77.Font = Enum.Font.SourceSans
  1103. TextButton77.FontSize = Enum.FontSize.Size14
  1104. TextButton77.TextColor3 = Color3.new(1, 1, 1)
  1105. TextButton77.TextScaled = true
  1106. TextButton77.TextWrapped = true
  1107. ImageLabel78.Name = "PBrake"
  1108. ImageLabel78.Parent = ImageLabel73
  1109. ImageLabel78.Transparency = 1
  1110. ImageLabel78.Size = UDim2.new(0, 40, 0, 40)
  1111. ImageLabel78.Position = UDim2.new(0.5, -50, 0.5, 0)
  1112. ImageLabel78.BackgroundColor3 = Color3.new(1, 1, 1)
  1113. ImageLabel78.BackgroundTransparency = 1
  1114. ImageLabel78.ZIndex = 3
  1115. ImageLabel78.Image = "rbxassetid://123454312"
  1116. Frame79.Name = "Clutch"
  1117. Frame79.Parent = ImageLabel73
  1118. Frame79.Size = UDim2.new(0, 30, 0, 100)
  1119. Frame79.Style = Enum.FrameStyle.RobloxRound
  1120. Frame79.Position = UDim2.new(1, -40, 1, -120)
  1121. Frame79.BackgroundColor3 = Color3.new(1, 1, 1)
  1122. Frame79.ZIndex = 2
  1123. Frame80.Name = "Bar"
  1124. Frame80.Parent = Frame79
  1125. Frame80.Rotation = 180
  1126. Frame80.Size = UDim2.new(0, 5, 1, 0)
  1127. Frame80.Position = UDim2.new(1, -5, 0, 0)
  1128. Frame80.BackgroundColor3 = Color3.new(1, 1, 0)
  1129. Frame80.ZIndex = 2
  1130. TextLabel81.Name = "T"
  1131. TextLabel81.Parent = Frame79
  1132. TextLabel81.Rotation = 270
  1133. TextLabel81.Size = UDim2.new(0, 1, 0, 1)
  1134. TextLabel81.Text = "Clutch"
  1135. TextLabel81.Position = UDim2.new(0, 0, 0.5, 0)
  1136. TextLabel81.BackgroundColor3 = Color3.new(1, 1, 1)
  1137. TextLabel81.ZIndex = 2
  1138. TextLabel81.Font = Enum.Font.SourceSans
  1139. TextLabel81.FontSize = Enum.FontSize.Size18
  1140. TextLabel81.TextColor3 = Color3.new(1, 1, 1)
  1141. TextLabel81.TextStrokeTransparency = 0
  1142. Script82.Name = "ATSGiver"
  1143. Script82.Parent = VehicleSeat23
  1144. table.insert(cors,sandbox(Script82,function()
  1145. -- ATS 1.3.0
  1146. --------------------------------------------------------------------------------------------------
  1147. local P = script.Parent
  1148. local body = P.Parent
  1149. local car = body.Parent
  1150. local vars = P.ATSVariables
  1151.  
  1152. for i,v in pairs(script:GetChildren()) do
  1153. if (v:FindFirstChild("Car")) and (v.Car:IsA("ObjectValue")) then
  1154. v.Car.Value = car
  1155. end
  1156. end
  1157.  
  1158. P.ChildAdded:connect(function(child)
  1159. if child:IsA("Weld") and (child.Part1) and (child.Part1.Name == "HumanoidRootPart") then
  1160. child.C0 = CFrame.new(0,P.Size.y*2,0) * CFrame.Angles(0,-math.pi/2,0)
  1161. child.C1 = CFrame.new(0, 0, 0)
  1162. local player = game.Players:GetPlayerFromCharacter(child.Part1.Parent)
  1163. if (player) then
  1164. for i,v in pairs(script:GetChildren()) do
  1165. v:Clone().Parent = player.PlayerGui
  1166. end
  1167. end
  1168. end
  1169. end)
  1170. end))
  1171. LocalScript83.Name = "Drive"
  1172. LocalScript83.Parent = Script82
  1173. table.insert(cors,sandbox(LocalScript83,function()
  1174. -- ATS 1.3.0
  1175. --------------------------------------------------------------------------------------------------
  1176. local engineIdleDrag = 0.05 -- Affects coasting.
  1177. local brakeMultiplier = 3.0 -- Affects braking power.
  1178. --------------------------------------------------------------------------------------------------
  1179. -- Changing anything below is likely going to break the car, only advanced scripters should continue.
  1180. local UIS = game:GetService("UserInputService")
  1181. local gamepadDeadzone = 0.05
  1182. local P = script.Parent
  1183. local player = game.Players.LocalPlayer
  1184. wait(0.2)
  1185. local car = script.Car.Value
  1186. local body = car.Body
  1187. local seat = body.VehicleSeat
  1188. local vars = seat.ATSVariables
  1189. local powerwheels = {}
  1190. local steerMotors = {}
  1191. for i,v in pairs(car.Wheels:GetChildren()) do
  1192. if (v.Wheel:FindFirstChild("BAV")) and (v.Wheel.BAV.maxTorque.Magnitude > 0) then
  1193. table.insert(powerwheels, v.Wheel)
  1194. end
  1195. if (v:FindFirstChild("Steer")) then
  1196. table.insert(steerMotors, v.Steer.Motor)
  1197. end
  1198. end
  1199. local wheelDiameter = powerwheels[1].Size.x
  1200. local automatic = vars.AutomaticMode
  1201. local redlineTimer = 0.0
  1202. local engineRPM = vars.RPM
  1203. local wheelRPM = 0.0
  1204. local gearRatios = {-0.3, 0.0, 0.2, 0.33, 0.45, 0.66, 0.8, 1.0}
  1205. local currentGear = vars.Gear
  1206. local smoothThrottle = vars.SmoothThrottle
  1207. local cruiseControl = vars.CruiseControl
  1208. local clutch = vars.Clutch
  1209. --------------------------------------------------------------------------------------------------
  1210. -- Methods
  1211. function Clamp(val, Min, Max) return math.min( math.max(val, Min), Max) end
  1212.  
  1213. function GetInput()
  1214. local inputs = {0.0, 0.0, 0.0} -- Forward, Brake, Steering
  1215. local GP1state = UIS:GetGamepadState(Enum.UserInputType.Gamepad1)
  1216. for i,v in pairs(GP1state) do
  1217. if (v.KeyCode == Enum.KeyCode.ButtonR2) then
  1218. if (currentGear.Value >= 0) then
  1219. inputs[1] = (v.Position.z > gamepadDeadzone) and v.Position.z or 0.0
  1220. else
  1221. inputs[2] = (v.Position.z > gamepadDeadzone) and v.Position.z or 0.0
  1222. end
  1223. elseif (v.KeyCode == Enum.KeyCode.ButtonL2) then
  1224. if (currentGear.Value >= 0) then
  1225. inputs[2] = (v.Position.z > gamepadDeadzone) and v.Position.z or 0.0
  1226. else
  1227. inputs[1] = (v.Position.z > gamepadDeadzone) and v.Position.z or 0.0
  1228. end
  1229. elseif (v.KeyCode == Enum.KeyCode.Thumbstick1) then
  1230. inputs[3] = (math.abs(v.Position.x) > gamepadDeadzone) and v.Position.x or 0.0
  1231. end
  1232. end
  1233. if (currentGear.Value >= 0) then
  1234. inputs[1] = math.max((seat.Throttle > 0) and seat.Throttle or 0.0, inputs[1])
  1235. inputs[2] = math.max((seat.Throttle < 0) and -seat.Throttle or 0.0, inputs[2])
  1236. else
  1237. inputs[1] = math.max((seat.Throttle < 0) and -seat.Throttle or 0.0, inputs[1])
  1238. inputs[2] = math.max((seat.Throttle > 0) and seat.Throttle or 0.0, inputs[2])
  1239. end
  1240. if (math.abs(seat.Steer) > math.abs(inputs[3])) then
  1241. inputs[3] = seat.Steer
  1242. end
  1243. return inputs
  1244. end
  1245.  
  1246. function SetThrottle(newThrottle)
  1247. newThrottle = ToAngular(newThrottle) -- Fix
  1248. for i,v in pairs(powerwheels) do
  1249. local dir = seat.CFrame.lookVector
  1250. if (v.Parent:FindFirstChild("Steer")) then
  1251. dir = (v.Parent.Steer.CFrame * CFrame.Angles(math.pi/2,0,0)).lookVector
  1252. end
  1253. v.BAV.angularvelocity = dir * newThrottle
  1254. end
  1255. end
  1256.  
  1257. function SetGear(gear)
  1258. currentGear.Value = Clamp(gear, -1, 6)
  1259. end
  1260.  
  1261. function GetGearRatio() return gearRatios[currentGear.Value+2] end
  1262.  
  1263. function ToEngineRPM( _wheelRPM )
  1264. if (gearRatios[currentGear.Value+2] == 0) then return 0 end
  1265. return _wheelRPM / gearRatios[currentGear.Value+2]
  1266. end
  1267.  
  1268. function ToWheelRPM( _engineRPM ) return _engineRPM * gearRatios[currentGear.Value+2] end
  1269.  
  1270. function ToAngular(linear) return linear * 0.257 * wheelDiameter end
  1271.  
  1272. function ToLinear(angular) return angular * 1 / (0.257 * wheelDiameter) end
  1273.  
  1274. function GetWheelSpeed()
  1275. local wspd = 0.0
  1276. for i,v in pairs(powerwheels) do
  1277. local rVel = Vector3.new(v.RotVelocity.x, 0, v.RotVelocity.z).magnitude
  1278. wspd = wspd + ToLinear(rVel)
  1279. end
  1280. wspd = wspd / #powerwheels
  1281. vars.WheelSpeed.Value = wspd
  1282. return wspd
  1283. end
  1284.  
  1285. function Main(deltaTime)
  1286. -- Prerequisites
  1287. redlineTimer = redlineTimer - deltaTime
  1288. local inputs = GetInput()
  1289. local brake = inputs[2] * brakeMultiplier
  1290. vars.TrueBrake.Value = brake
  1291. local throttle = (redlineTimer <= 0) and inputs[1] or 0.0
  1292. smoothThrottle.Value = 0.8 * smoothThrottle.Value + 0.2 * throttle
  1293. local trueSpeed = seat.Velocity.magnitude
  1294. local wheelSpeed = GetWheelSpeed()
  1295. clutch.Value = math.min(clutch.Value + deltaTime, 1.0)
  1296. -- Steering
  1297. local steerInfluence = 1 - math.min(trueSpeed / 300, 0.5)
  1298. for i,v in pairs(steerMotors) do
  1299. v.DesiredAngle = inputs[3] * seat.TurnSpeed * steerInfluence
  1300. end
  1301. -- Redline
  1302. if (engineRPM.Value >= 1.0) then redlineTimer = 0.05 end
  1303. -- Gearing
  1304. if (automatic.Value) and (currentGear.Value == 0) and (brake > 0.0) then
  1305. SetGear(-1)
  1306. local t = brake
  1307. brake = throttle
  1308. throttle = t
  1309. end
  1310. if (automatic.Value) and (currentGear.Value == 0) and (throttle > 0.1) then SetGear(1) end
  1311. if (automatic.Value) and (throttle < 0.1) and (engineRPM.Value < 0.15) and (currentGear.Value == 1 or currentGear.Value == -1) then SetGear(0) end
  1312. if (automatic.Value) then
  1313. if (engineRPM.Value > 0.9 and currentGear.Value > 0 and currentGear.Value < 6) then
  1314. SetGear(currentGear.Value + 1)
  1315. elseif (engineRPM.Value < 0.4 and currentGear.Value > 1) then
  1316. SetGear(currentGear.Value - 1)
  1317. end
  1318. end
  1319.  
  1320. -- Drivetrain
  1321. local engineFeedback = (currentGear.Value ~= 0) and (wheelSpeed - math.abs(ToWheelRPM(engineRPM.Value) * seat.MaxSpeed)) * 0.1 or 0.0
  1322. local engineDrag = (throttle < 0.5) and ((currentGear.Value ~= 0) and -(engineIdleDrag * math.abs(1/GetGearRatio())) or -1.0) or 0.0
  1323.  
  1324. local tq = ((engineRPM.Value^2-(engineRPM.Value-0.05)^3) * 2.2 + 0.5) * seat.Torque * 0.01
  1325. local gmul = (currentGear.Value ~= 0) and math.abs(1/GetGearRatio()) or 6
  1326. local acc = cruiseControl.Value and 0.0 or (throttle * tq * gmul) + engineDrag + engineFeedback
  1327. local change = (acc - brake) * deltaTime
  1328.  
  1329. engineRPM.Value = Clamp(engineRPM.Value + change, 0.1, 1.0)
  1330. wheelRPM = (1-clutch.Value) * wheelRPM + clutch.Value * ToWheelRPM(engineRPM.Value)
  1331. SetThrottle(wheelRPM * seat.MaxSpeed)
  1332. end
  1333.  
  1334. currentGear.Changed:connect(function()
  1335. clutch.Value = 0.0
  1336. end)
  1337.  
  1338. local success, message
  1339. -- Main loop
  1340. while true do
  1341. success, message = pcall(Main, wait())
  1342. if (not success) then break end
  1343. end
  1344. print("ATS error: "..message)
  1345. end))
  1346. ObjectValue84.Name = "Car"
  1347. ObjectValue84.Parent = LocalScript83
  1348. LocalScript85.Name = "DisableDetector"
  1349. LocalScript85.Parent = LocalScript83
  1350. table.insert(cors,sandbox(LocalScript85,function()
  1351. -- ATS 1.3.0
  1352. --------------------------------------------------------------------------------------------------
  1353. local P = script.Parent
  1354. local car = P.Car.Value
  1355. local body = car.Body
  1356. local seat = body.VehicleSeat
  1357. local vars = seat.ATSVariables
  1358. local wheelModels = car.Wheels:GetChildren()
  1359. local wheels = {}
  1360. for i,v in pairs(wheelModels) do
  1361. table.insert(wheels, v.Wheel)
  1362. end
  1363.  
  1364. function Stop()
  1365. for i,v in pairs(wheels) do
  1366. if (v:FindFirstChild("BAV")) then
  1367. v.BAV.angularvelocity = Vector3.new()
  1368. end
  1369. end
  1370. vars.Gear.Value = 0
  1371. vars.RPM.Value = 0
  1372. vars.SmoothThrottle.Value = 0
  1373. end
  1374.  
  1375. seat.ChildRemoved:connect(function(child)
  1376. if (child.Name == "SeatWeld") then
  1377. Stop()
  1378. script.Parent:Destroy()
  1379. end
  1380. end)
  1381.  
  1382. P.Changed:connect(function(property)
  1383. if (property == "Disabled") and (P.Disabled == true) then
  1384. Stop()
  1385. end
  1386. end)
  1387. end))
  1388. Part86.Name = "Flat Brick"
  1389. Part86.Parent = Model6
  1390. Part86.BrickColor = BrickColor.new("Pink")
  1391. Part86.Rotation = Vector3.new(0, 90, 0)
  1392. Part86.Anchored = true
  1393. Part86.FormFactor = Enum.FormFactor.Plate
  1394. Part86.Size = Vector3.new(3.01000023, 0.879999995, 6.72000027)
  1395. Part86.CFrame = CFrame.new(9.70695591, 2.55043006, -9.553442, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  1396. Part86.TopSurface = Enum.SurfaceType.Smooth
  1397. Part86.Color = Color3.new(1, 0.4, 0.8)
  1398. Part86.Position = Vector3.new(9.70695591, 2.55043006, -9.553442)
  1399. Part86.Orientation = Vector3.new(0, 90, 0)
  1400. Part86.Color = Color3.new(1, 0.4, 0.8)
  1401. Model87.Parent = Model6
  1402. Part88.Parent = Model87
  1403. Part88.BrickColor = BrickColor.new("Pink")
  1404. Part88.Rotation = Vector3.new(-90, -14.9799995, 90)
  1405. Part88.Anchored = true
  1406. Part88.FormFactor = Enum.FormFactor.Symmetric
  1407. Part88.Friction = 0
  1408. Part88.Size = Vector3.new(2, 2, 1)
  1409. Part88.CFrame = CFrame.new(7.73288679, 5.41915178, -9.39199829, 2.38218968e-06, -0.966010571, -0.258475751, -4.50551033e-06, -0.258473754, 0.966017485, -0.999992549, -1.1363386e-06, -4.93833295e-06)
  1410. Part88.BottomSurface = Enum.SurfaceType.Smooth
  1411. Part88.TopSurface = Enum.SurfaceType.Smooth
  1412. Part88.Color = Color3.new(1, 0.4, 0.8)
  1413. Part88.Position = Vector3.new(7.73288679, 5.41915178, -9.39199829)
  1414. Part88.Orientation = Vector3.new(-75.0199966, -90, -180)
  1415. Part88.Color = Color3.new(1, 0.4, 0.8)
  1416. Decal89.Name = "roblox"
  1417. Decal89.Parent = Part88
  1418. Part90.Parent = Model87
  1419. Part90.BrickColor = BrickColor.new("Pink")
  1420. Part90.Rotation = Vector3.new(90, 75.0699997, -90)
  1421. Part90.Anchored = true
  1422. Part90.FormFactor = Enum.FormFactor.Symmetric
  1423. Part90.Size = Vector3.new(1, 2, 1)
  1424. Part90.CFrame = CFrame.new(6.73734713, 4.62088919, -10.8854084, 1.99999249e-06, 0.2575652, 0.966253757, -4.85227292e-06, 0.966258824, -0.257570326, -0.999992549, -4.1477474e-06, 3.16715523e-06)
  1425. Part90.BottomSurface = Enum.SurfaceType.Smooth
  1426. Part90.TopSurface = Enum.SurfaceType.Smooth
  1427. Part90.Color = Color3.new(1, 0.4, 0.8)
  1428. Part90.Position = Vector3.new(6.73734713, 4.62088919, -10.8854084)
  1429. Part90.Orientation = Vector3.new(14.9299994, 90, 0)
  1430. Part90.Color = Color3.new(1, 0.4, 0.8)
  1431. Part91.Parent = Model87
  1432. Part91.BrickColor = BrickColor.new("Pink")
  1433. Part91.Rotation = Vector3.new(-89.8199997, 89.7799988, 74.7699966)
  1434. Part91.Anchored = true
  1435. Part91.FormFactor = Enum.FormFactor.Symmetric
  1436. Part91.Size = Vector3.new(1, 2, 1)
  1437. Part91.CFrame = CFrame.new(6.73734713, 4.62088919, -7.89923286, 0.000162719138, -0.000597731327, 0.999992907, -0.259664744, 0.965697825, 0.00061577803, -0.965691566, -0.259663045, 1.91976665e-06)
  1438. Part91.BottomSurface = Enum.SurfaceType.Smooth
  1439. Part91.TopSurface = Enum.SurfaceType.Smooth
  1440. Part91.Color = Color3.new(1, 0.4, 0.8)
  1441. Part91.Position = Vector3.new(6.73734713, 4.62088919, -7.89923286)
  1442. Part91.Orientation = Vector3.new(-0.0399999991, 90, -15.0499992)
  1443. Part91.Color = Color3.new(1, 0.4, 0.8)
  1444. Part92.Parent = Model87
  1445. Part92.BrickColor = BrickColor.new("Pink")
  1446. Part92.Rotation = Vector3.new(-90, 60.0699997, 74.9499969)
  1447. Part92.Anchored = true
  1448. Part92.FormFactor = Enum.FormFactor.Symmetric
  1449. Part92.Size = Vector3.new(1, 2, 1)
  1450. Part92.CFrame = CFrame.new(9.1286459, 4.61806679, -8.49440002, 0.129554868, -0.481813043, 0.866635919, -0.225043207, 0.83691448, 0.498926967, -0.965690017, -0.259669006, -2.40034274e-06)
  1451. Part92.BottomSurface = Enum.SurfaceType.Smooth
  1452. Part92.TopSurface = Enum.SurfaceType.Smooth
  1453. Part92.Color = Color3.new(1, 0.4, 0.8)
  1454. Part92.Position = Vector3.new(9.1286459, 4.61806679, -8.49440002)
  1455. Part92.Orientation = Vector3.new(-29.9299984, 90, -15.0499992)
  1456. Part92.Color = Color3.new(1, 0.4, 0.8)
  1457. Part93.Parent = Model87
  1458. Part93.BrickColor = BrickColor.new("Pink")
  1459. Part93.Rotation = Vector3.new(-89.8199997, 89.7799988, 89.8199997)
  1460. Part93.Anchored = true
  1461. Part93.FormFactor = Enum.FormFactor.Symmetric
  1462. Part93.Friction = 0
  1463. Part93.Size = Vector3.new(2, 1, 1)
  1464. Part93.CFrame = CFrame.new(6.39750719, 5.82069778, -9.39254189, 2.00255135e-06, -0.000622527092, 0.999992907, -4.85261216e-06, 0.999999046, 0.000618824211, -0.999992549, -4.8251386e-06, 1.99152942e-06)
  1465. Part93.TopSurface = Enum.SurfaceType.Smooth
  1466. Part93.Color = Color3.new(1, 0.4, 0.8)
  1467. Part93.Position = Vector3.new(6.39750719, 5.82069778, -9.39254189)
  1468. Part93.Orientation = Vector3.new(-0.0399999991, 90, 0)
  1469. Part93.Color = Color3.new(1, 0.4, 0.8)
  1470. SpecialMesh94.Parent = Part93
  1471. SpecialMesh94.Scale = Vector3.new(1.25, 1.25, 1.25)
  1472. SpecialMesh94.Scale = Vector3.new(1.25, 1.25, 1.25)
  1473. Decal95.Name = "face"
  1474. Decal95.Parent = Part93
  1475. Decal95.Texture = "rbxasset://textures/face.png"
  1476. Part96.Parent = Model87
  1477. Part96.BrickColor = BrickColor.new("Cool yellow")
  1478. Part96.Rotation = Vector3.new(-89.8199997, 89.7799988, 89.8199997)
  1479. Part96.Anchored = true
  1480. Part96.FormFactor = Enum.FormFactor.Symmetric
  1481. Part96.Friction = 0
  1482. Part96.Size = Vector3.new(2, 1, 1)
  1483. Part96.CFrame = CFrame.new(6.33781385, 5.72088623, -9.393116, 2.00255135e-06, -0.000622527092, 0.999992907, -4.85261216e-06, 0.999999046, 0.000618824211, -0.999992549, -4.8251386e-06, 1.99152942e-06)
  1484. Part96.TopSurface = Enum.SurfaceType.Smooth
  1485. Part96.Color = Color3.new(0.992157, 0.917647, 0.552941)
  1486. Part96.Position = Vector3.new(6.33781385, 5.72088623, -9.393116)
  1487. Part96.Orientation = Vector3.new(-0.0399999991, 90, 0)
  1488. Part96.Color = Color3.new(0.992157, 0.917647, 0.552941)
  1489. SpecialMesh97.Parent = Part96
  1490. SpecialMesh97.Scale = Vector3.new(1.25, 1.25, 1.25)
  1491. SpecialMesh97.Scale = Vector3.new(1.25, 1.25, 1.25)
  1492. Decal98.Parent = Part96
  1493. Decal98.Texture = "http://www.roblox.com/asset/?id=214083825"
  1494. Part99.Parent = Model87
  1495. Part99.BrickColor = BrickColor.new("Pink")
  1496. Part99.Rotation = Vector3.new(-74.9700012, 60.0699997, 90.0199966)
  1497. Part99.Anchored = true
  1498. Part99.FormFactor = Enum.FormFactor.Symmetric
  1499. Part99.Size = Vector3.new(1, 2, 1)
  1500. Part99.CFrame = CFrame.new(9.52653599, 4.61720419, -10.090168, -0.000158634648, -0.498997033, 0.866595685, 0.259661227, 0.836857557, 0.481916815, -0.96569252, 0.22509782, 0.129437476)
  1501. Part99.BottomSurface = Enum.SurfaceType.Smooth
  1502. Part99.TopSurface = Enum.SurfaceType.Smooth
  1503. Part99.Color = Color3.new(1, 0.4, 0.8)
  1504. Part99.Position = Vector3.new(9.52653599, 4.61720419, -10.090168)
  1505. Part99.Orientation = Vector3.new(-28.8099995, 81.5, 17.2399998)
  1506. Part99.Color = Color3.new(1, 0.4, 0.8)
  1507. Part100.Parent = Model87
  1508. Part100.BrickColor = BrickColor.new("Pink")
  1509. Part100.Transparency = 1
  1510. Part100.Rotation = Vector3.new(90, 75.0699997, -90)
  1511. Part100.Anchored = true
  1512. Part100.FormFactor = Enum.FormFactor.Symmetric
  1513. Part100.Size = Vector3.new(5.71999979, 2.86999989, 2.56999993)
  1514. Part100.CFrame = CFrame.new(7.60788679, 4.83902693, -9.53541756, 1.99999249e-06, 0.2575652, 0.966253757, -4.85227292e-06, 0.966258824, -0.257570326, -0.999992549, -4.1477474e-06, 3.16715523e-06)
  1515. Part100.BottomSurface = Enum.SurfaceType.Smooth
  1516. Part100.TopSurface = Enum.SurfaceType.Smooth
  1517. Part100.Color = Color3.new(1, 0.4, 0.8)
  1518. Part100.Position = Vector3.new(7.60788679, 4.83902693, -9.53541756)
  1519. Part100.Orientation = Vector3.new(14.9299994, 90, 0)
  1520. Part100.Color = Color3.new(1, 0.4, 0.8)
  1521. Part101.Parent = Model87
  1522. Part101.BrickColor = BrickColor.new("Pink")
  1523. Part101.Transparency = 1
  1524. Part101.Rotation = Vector3.new(90, 75.0699997, -90)
  1525. Part101.Anchored = true
  1526. Part101.FormFactor = Enum.FormFactor.Symmetric
  1527. Part101.Size = Vector3.new(5.71999979, 2.86999989, 2.56999993)
  1528. Part101.CFrame = CFrame.new(7.60788679, 4.83902693, -9.53541756, 1.99999249e-06, 0.2575652, 0.966253757, -4.85227292e-06, 0.966258824, -0.257570326, -0.999992549, -4.1477474e-06, 3.16715523e-06)
  1529. Part101.BottomSurface = Enum.SurfaceType.Smooth
  1530. Part101.TopSurface = Enum.SurfaceType.Smooth
  1531. Part101.Color = Color3.new(1, 0.4, 0.8)
  1532. Part101.Position = Vector3.new(7.60788679, 4.83902693, -9.53541756)
  1533. Part101.Orientation = Vector3.new(14.9299994, 90, 0)
  1534. Part101.Color = Color3.new(1, 0.4, 0.8)
  1535. Part102.Parent = Model87
  1536. Part102.BrickColor = BrickColor.new("Pink")
  1537. Part102.Transparency = 1
  1538. Part102.Rotation = Vector3.new(90, 75.0699997, -90)
  1539. Part102.Anchored = true
  1540. Part102.FormFactor = Enum.FormFactor.Symmetric
  1541. Part102.Size = Vector3.new(5.71999979, 2.86999989, 2.56999993)
  1542. Part102.CFrame = CFrame.new(7.60788679, 4.83902693, -9.53541756, 1.99999249e-06, 0.2575652, 0.966253757, -4.85227292e-06, 0.966258824, -0.257570326, -0.999992549, -4.1477474e-06, 3.16715523e-06)
  1543. Part102.BottomSurface = Enum.SurfaceType.Smooth
  1544. Part102.TopSurface = Enum.SurfaceType.Smooth
  1545. Part102.Color = Color3.new(1, 0.4, 0.8)
  1546. Part102.Position = Vector3.new(7.60788679, 4.83902693, -9.53541756)
  1547. Part102.Orientation = Vector3.new(14.9299994, 90, 0)
  1548. Part102.Color = Color3.new(1, 0.4, 0.8)
  1549. Part103.Parent = Model87
  1550. Part103.BrickColor = BrickColor.new("Pink")
  1551. Part103.Transparency = 1
  1552. Part103.Rotation = Vector3.new(90, 75.0699997, -90)
  1553. Part103.Anchored = true
  1554. Part103.FormFactor = Enum.FormFactor.Symmetric
  1555. Part103.Size = Vector3.new(5.71999979, 2.86999989, 2.56999993)
  1556. Part103.CFrame = CFrame.new(7.60788679, 4.83902693, -9.53541756, 1.99999249e-06, 0.2575652, 0.966253757, -4.85227292e-06, 0.966258824, -0.257570326, -0.999992549, -4.1477474e-06, 3.16715523e-06)
  1557. Part103.BottomSurface = Enum.SurfaceType.Smooth
  1558. Part103.TopSurface = Enum.SurfaceType.Smooth
  1559. Part103.Color = Color3.new(1, 0.4, 0.8)
  1560. Part103.Position = Vector3.new(7.60788679, 4.83902693, -9.53541756)
  1561. Part103.Orientation = Vector3.new(14.9299994, 90, 0)
  1562. Part103.Color = Color3.new(1, 0.4, 0.8)
  1563. Part104.Parent = Model87
  1564. Part104.BrickColor = BrickColor.new("Pink")
  1565. Part104.Transparency = 1
  1566. Part104.Rotation = Vector3.new(90, 75.0699997, -90)
  1567. Part104.Anchored = true
  1568. Part104.FormFactor = Enum.FormFactor.Symmetric
  1569. Part104.Size = Vector3.new(5.71999979, 2.86999989, 2.56999993)
  1570. Part104.CFrame = CFrame.new(7.60788679, 4.83902693, -9.53541756, 1.99999249e-06, 0.2575652, 0.966253757, -4.85227292e-06, 0.966258824, -0.257570326, -0.999992549, -4.1477474e-06, 3.16715523e-06)
  1571. Part104.BottomSurface = Enum.SurfaceType.Smooth
  1572. Part104.TopSurface = Enum.SurfaceType.Smooth
  1573. Part104.Color = Color3.new(1, 0.4, 0.8)
  1574. Part104.Position = Vector3.new(7.60788679, 4.83902693, -9.53541756)
  1575. Part104.Orientation = Vector3.new(14.9299994, 90, 0)
  1576. Part104.Color = Color3.new(1, 0.4, 0.8)
  1577. Part105.Parent = Model87
  1578. Part105.BrickColor = BrickColor.new("Pink")
  1579. Part105.Transparency = 1
  1580. Part105.Rotation = Vector3.new(90, 75.0699997, -90)
  1581. Part105.Anchored = true
  1582. Part105.FormFactor = Enum.FormFactor.Symmetric
  1583. Part105.Size = Vector3.new(5.71999979, 2.86999989, 2.56999993)
  1584. Part105.CFrame = CFrame.new(7.60788679, 4.83902693, -9.53541756, 1.99999249e-06, 0.2575652, 0.966253757, -4.85227292e-06, 0.966258824, -0.257570326, -0.999992549, -4.1477474e-06, 3.16715523e-06)
  1585. Part105.BottomSurface = Enum.SurfaceType.Smooth
  1586. Part105.TopSurface = Enum.SurfaceType.Smooth
  1587. Part105.Color = Color3.new(1, 0.4, 0.8)
  1588. Part105.Position = Vector3.new(7.60788679, 4.83902693, -9.53541756)
  1589. Part105.Orientation = Vector3.new(14.9299994, 90, 0)
  1590. Part105.Color = Color3.new(1, 0.4, 0.8)
  1591. Part106.Name = "Flat Brick"
  1592. Part106.Parent = Model6
  1593. Part106.BrickColor = BrickColor.new("Pink")
  1594. Part106.Rotation = Vector3.new(-180, -1.89999998, -180)
  1595. Part106.Anchored = true
  1596. Part106.FormFactor = Enum.FormFactor.Plate
  1597. Part106.Size = Vector3.new(2.64000034, 0.879999995, 4.43000078)
  1598. Part106.CFrame = CFrame.new(9.63145638, 2.55042696, -8.60208225, -0.999451816, 5.54630901e-07, -0.0331009291, 5.31142575e-07, 1, 7.18383831e-07, 0.0331009291, 7.0040835e-07, -0.999451816)
  1599. Part106.TopSurface = Enum.SurfaceType.Smooth
  1600. Part106.Color = Color3.new(1, 0.4, 0.8)
  1601. Part106.Position = Vector3.new(9.63145638, 2.55042696, -8.60208225)
  1602. Part106.Orientation = Vector3.new(0, -178.099991, 0)
  1603. Part106.Color = Color3.new(1, 0.4, 0.8)
  1604. Decal107.Parent = Part106
  1605. Decal107.Texture = "http://www.roblox.com/asset/?id=214083825"
  1606. Part108.Name = "Flat Brick"
  1607. Part108.Parent = Model6
  1608. Part108.BrickColor = BrickColor.new("Pink")
  1609. Part108.Rotation = Vector3.new(0, 90, 0)
  1610. Part108.Anchored = true
  1611. Part108.FormFactor = Enum.FormFactor.Plate
  1612. Part108.Size = Vector3.new(6.4000001, 0.879999995, 7.32999992)
  1613. Part108.CFrame = CFrame.new(9.70201397, 3.27042294, -9.53845406, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  1614. Part108.TopSurface = Enum.SurfaceType.Smooth
  1615. Part108.Color = Color3.new(1, 0.4, 0.8)
  1616. Part108.Position = Vector3.new(9.70201397, 3.27042294, -9.53845406)
  1617. Part108.Orientation = Vector3.new(0, 90, 0)
  1618. Part108.Color = Color3.new(1, 0.4, 0.8)
  1619. ManualWeld109.Name = "Flat Brick-to-flag Strong Joint"
  1620. ManualWeld109.Parent = Part108
  1621. ManualWeld109.C0 = CFrame.new(-3.20000005, 0.439999998, 3.66499996, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  1622. ManualWeld109.C1 = CFrame.new(0.633117676, -2.39999914, -5.66584015, 1.04308128e-07, -0.99999994, -4.7074078e-09, 4.31472608e-10, 1.4881345e-08, 1, -1, -8.19563866e-08, -2.99283052e-08)
  1623. ManualWeld109.Part0 = Part108
  1624. ManualWeld109.Part1 = Part124
  1625. ManualWeld110.Name = "Flat Brick-to-flag Strong Joint"
  1626. ManualWeld110.Parent = Part108
  1627. ManualWeld110.C0 = CFrame.new(-3.20000005, 0.439999998, 3.66499996, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  1628. ManualWeld110.C1 = CFrame.new(0.633117676, -2.39999914, -0.425827026, 1.04308128e-07, -0.99999994, -4.7074078e-09, 4.31472608e-10, 1.4881345e-08, 1, -1, -8.19563866e-08, -2.99283052e-08)
  1629. ManualWeld110.Part0 = Part108
  1630. ManualWeld110.Part1 = Part127
  1631. Model111.Name = "Steering Wheel"
  1632. Model111.Parent = Model6
  1633. Part112.Parent = Model111
  1634. Part112.BrickColor = BrickColor.new("Dark orange")
  1635. Part112.Rotation = Vector3.new(90, -75.659996, 90)
  1636. Part112.Anchored = true
  1637. Part112.CanCollide = false
  1638. Part112.FormFactor = Enum.FormFactor.Custom
  1639. Part112.Size = Vector3.new(1.20000005, 2.88000011, 1.20000005)
  1640. Part112.CFrame = CFrame.new(9.95524597, 6.03875923, -9.35285378, 4.86215367e-06, -0.247723415, -0.968831182, 1.4280771e-06, 0.968831182, -0.247723028, 1.00000024, -2.16348852e-07, 5.06470042e-06)
  1641. Part112.BottomSurface = Enum.SurfaceType.Smooth
  1642. Part112.TopSurface = Enum.SurfaceType.Smooth
  1643. Part112.Color = Color3.new(0.627451, 0.372549, 0.207843)
  1644. Part112.Position = Vector3.new(9.95524597, 6.03875923, -9.35285378)
  1645. Part112.Orientation = Vector3.new(14.3400002, -90, 0)
  1646. Part112.Color = Color3.new(0.627451, 0.372549, 0.207843)
  1647. CylinderMesh113.Parent = Part112
  1648. CylinderMesh113.Scale = Vector3.new(0.200000003, 1, 1)
  1649. CylinderMesh113.Scale = Vector3.new(0.200000003, 1, 1)
  1650. Part114.Parent = Model111
  1651. Part114.BrickColor = BrickColor.new("Dark orange")
  1652. Part114.Rotation = Vector3.new(90, -75.659996, 0)
  1653. Part114.Anchored = true
  1654. Part114.CanCollide = false
  1655. Part114.FormFactor = Enum.FormFactor.Custom
  1656. Part114.Size = Vector3.new(1.20000005, 2.6400001, 1.20000005)
  1657. Part114.CFrame = CFrame.new(9.95524597, 6.03876591, -9.35285378, 0.247724146, 4.86215367e-06, -0.96883142, -0.968830884, 1.4280771e-06, -0.247722387, 2.16345072e-07, 1.00000024, 5.07028835e-06)
  1658. Part114.BottomSurface = Enum.SurfaceType.Smooth
  1659. Part114.TopSurface = Enum.SurfaceType.Smooth
  1660. Part114.Color = Color3.new(0.627451, 0.372549, 0.207843)
  1661. Part114.Position = Vector3.new(9.95524597, 6.03876591, -9.35285378)
  1662. Part114.Orientation = Vector3.new(14.3400002, -90, -90)
  1663. Part114.Color = Color3.new(0.627451, 0.372549, 0.207843)
  1664. CylinderMesh115.Parent = Part114
  1665. CylinderMesh115.Scale = Vector3.new(0.200000003, 1.10000002, 1)
  1666. CylinderMesh115.Scale = Vector3.new(0.200000003, 1.10000002, 1)
  1667. Part116.Parent = Model111
  1668. Part116.BrickColor = BrickColor.new("Dark orange")
  1669. Part116.Rotation = Vector3.new(90, -75.659996, 40.1100006)
  1670. Part116.Anchored = true
  1671. Part116.FormFactor = Enum.FormFactor.Custom
  1672. Part116.Size = Vector3.new(1.20000005, 2.6400001, 1.20000005)
  1673. Part116.CFrame = CFrame.new(9.95524597, 6.03877401, -9.352808, 0.189474598, -0.159585938, -0.968831778, -0.741001487, 0.624138951, -0.247720242, 0.644218087, 0.764842272, 5.072151e-06)
  1674. Part116.BottomSurface = Enum.SurfaceType.Smooth
  1675. Part116.TopSurface = Enum.SurfaceType.Smooth
  1676. Part116.Color = Color3.new(0.627451, 0.372549, 0.207843)
  1677. Part116.Position = Vector3.new(9.95524597, 6.03877401, -9.352808)
  1678. Part116.Orientation = Vector3.new(14.3400002, -90, -49.8899994)
  1679. Part116.Color = Color3.new(0.627451, 0.372549, 0.207843)
  1680. CylinderMesh117.Parent = Part116
  1681. CylinderMesh117.Scale = Vector3.new(0.200000003, 1.10000002, 1)
  1682. CylinderMesh117.Scale = Vector3.new(0.200000003, 1.10000002, 1)
  1683. Part118.Parent = Model111
  1684. Part118.BrickColor = BrickColor.new("Dark orange")
  1685. Part118.Rotation = Vector3.new(90, -75.659996, -40.1100006)
  1686. Part118.Anchored = true
  1687. Part118.FormFactor = Enum.FormFactor.Custom
  1688. Part118.Size = Vector3.new(1.20000005, 2.6400001, 1.20000005)
  1689. Part118.CFrame = CFrame.new(9.95524597, 6.03880978, -9.352808, 0.189471483, 0.159596041, -0.968829155, -0.741002321, -0.624135971, -0.247730657, -0.64421773, 0.76484257, 5.06842571e-06)
  1690. Part118.BottomSurface = Enum.SurfaceType.Smooth
  1691. Part118.TopSurface = Enum.SurfaceType.Smooth
  1692. Part118.Color = Color3.new(0.627451, 0.372549, 0.207843)
  1693. Part118.Position = Vector3.new(9.95524597, 6.03880978, -9.352808)
  1694. Part118.Orientation = Vector3.new(14.3400002, -90, -130.110001)
  1695. Part118.Color = Color3.new(0.627451, 0.372549, 0.207843)
  1696. CylinderMesh119.Parent = Part118
  1697. CylinderMesh119.Scale = Vector3.new(0.200000003, 1.10000002, 1)
  1698. CylinderMesh119.Scale = Vector3.new(0.200000003, 1.10000002, 1)
  1699. Part120.Name = "Wheel"
  1700. Part120.Parent = Model111
  1701. Part120.BrickColor = BrickColor.new("Dark orange")
  1702. Part120.Rotation = Vector3.new(90, -75.659996, 90)
  1703. Part120.Anchored = true
  1704. Part120.CanCollide = false
  1705. Part120.FormFactor = Enum.FormFactor.Custom
  1706. Part120.Size = Vector3.new(1.20000005, 1.20000005, 1.20000005)
  1707. Part120.CFrame = CFrame.new(9.95524597, 6.03875923, -9.35285378, 4.86215367e-06, -0.247724146, -0.96883142, 1.4280771e-06, 0.968830884, -0.247722387, 1.00000024, -2.16345072e-07, 5.07028835e-06)
  1708. Part120.BottomSurface = Enum.SurfaceType.Smooth
  1709. Part120.TopSurface = Enum.SurfaceType.Smooth
  1710. Part120.Color = Color3.new(0.627451, 0.372549, 0.207843)
  1711. Part120.Position = Vector3.new(9.95524597, 6.03875923, -9.35285378)
  1712. Part120.Orientation = Vector3.new(14.3400002, -90, 0)
  1713. Part120.Color = Color3.new(0.627451, 0.372549, 0.207843)
  1714. SpecialMesh121.Parent = Part120
  1715. SpecialMesh121.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1716. SpecialMesh121.Scale = Vector3.new(2.10000014, 2.10000014, 1.20000005)
  1717. SpecialMesh121.MeshType = Enum.MeshType.FileMesh
  1718. SpecialMesh121.Scale = Vector3.new(2.10000014, 2.10000014, 1.20000005)
  1719. Part122.Parent = Model111
  1720. Part122.BrickColor = BrickColor.new("Dark orange")
  1721. Part122.Rotation = Vector3.new(144.819992, 16.6800003, 78.1999969)
  1722. Part122.Anchored = true
  1723. Part122.FormFactor = Enum.FormFactor.Custom
  1724. Part122.Size = Vector3.new(1.20000005, 1.71000004, 1.20000005)
  1725. Part122.CFrame = CFrame.new(9.33122158, 5.84176779, -9.44081402, 0.195880026, -0.937675238, 0.28705281, -0.766248703, -0.329021275, -0.55191195, 0.611960769, -0.111845151, -0.782940149)
  1726. Part122.BottomSurface = Enum.SurfaceType.Smooth
  1727. Part122.TopSurface = Enum.SurfaceType.Smooth
  1728. Part122.Color = Color3.new(0.627451, 0.372549, 0.207843)
  1729. Part122.Position = Vector3.new(9.33122158, 5.84176779, -9.44081402)
  1730. Part122.Orientation = Vector3.new(33.5, 159.869995, -113.239998)
  1731. Part122.Color = Color3.new(0.627451, 0.372549, 0.207843)
  1732. CylinderMesh123.Parent = Part122
  1733. CylinderMesh123.Scale = Vector3.new(0.200000003, 1.10000002, 1)
  1734. CylinderMesh123.Scale = Vector3.new(0.200000003, 1.10000002, 1)
  1735. Part124.Name = "flag"
  1736. Part124.Parent = Model6
  1737. Part124.BrickColor = BrickColor.new("Really red")
  1738. Part124.Reflectance = 0.10000000149012
  1739. Part124.Rotation = Vector3.new(180, 0, -180)
  1740. Part124.Anchored = true
  1741. Part124.Size = Vector3.new(3, 4.80000019, 1)
  1742. Part124.CFrame = CFrame.new(14.000042, 6.11034679, -12.0042877, -0.99999994, 1.4881345e-08, -8.19563866e-08, -4.7074078e-09, 1, -2.99283052e-08, 1.04308128e-07, 4.31472608e-10, -1)
  1743. Part124.BottomSurface = Enum.SurfaceType.Smooth
  1744. Part124.TopSurface = Enum.SurfaceType.Smooth
  1745. Part124.Color = Color3.new(1, 0, 0)
  1746. Part124.Position = Vector3.new(14.000042, 6.11034679, -12.0042877)
  1747. Part124.Orientation = Vector3.new(0, -180, 0)
  1748. Part124.Color = Color3.new(1, 0, 0)
  1749. SpecialMesh125.Parent = Part124
  1750. SpecialMesh125.MeshId = "http://www.roblox.com/asset/?id=1038492"
  1751. SpecialMesh125.MeshType = Enum.MeshType.FileMesh
  1752. Decal126.Parent = Part124
  1753. Decal126.Texture = "http://www.roblox.com/asset/?id=163241930"
  1754. Decal126.Face = Enum.NormalId.Back
  1755. Part127.Name = "flag"
  1756. Part127.Parent = Model6
  1757. Part127.BrickColor = BrickColor.new("Really red")
  1758. Part127.Reflectance = 0.10000000149012
  1759. Part127.Rotation = Vector3.new(180, 0, -180)
  1760. Part127.Anchored = true
  1761. Part127.Size = Vector3.new(3, 4.80000019, 1)
  1762. Part127.CFrame = CFrame.new(14.000042, 6.11034679, -6.76424694, -0.99999994, 1.4881345e-08, -8.19563866e-08, -4.7074078e-09, 1, -2.99283052e-08, 1.04308128e-07, 4.31472608e-10, -1)
  1763. Part127.BottomSurface = Enum.SurfaceType.Smooth
  1764. Part127.TopSurface = Enum.SurfaceType.Smooth
  1765. Part127.Color = Color3.new(1, 0, 0)
  1766. Part127.Position = Vector3.new(14.000042, 6.11034679, -6.76424694)
  1767. Part127.Orientation = Vector3.new(0, -180, 0)
  1768. Part127.Color = Color3.new(1, 0, 0)
  1769. SpecialMesh128.Parent = Part127
  1770. SpecialMesh128.MeshId = "http://www.roblox.com/asset/?id=1038492"
  1771. SpecialMesh128.MeshType = Enum.MeshType.FileMesh
  1772. Decal129.Parent = Part127
  1773. Decal129.Texture = "http://www.roblox.com/asset/?id=163242594"
  1774. Part130.Name = "Flat Brick"
  1775. Part130.Parent = Model6
  1776. Part130.BrickColor = BrickColor.new("Pink")
  1777. Part130.Rotation = Vector3.new(0, -0.439999998, 0)
  1778. Part130.Anchored = true
  1779. Part130.FormFactor = Enum.FormFactor.Plate
  1780. Part130.Size = Vector3.new(2.64000034, 0.879999995, 4.43000078)
  1781. Part130.CFrame = CFrame.new(9.63145638, 2.55042696, -10.502058, 0.999969661, 3.11528055e-07, -0.00774804037, -3.23673333e-07, 1, -1.56634064e-06, 0.00774804037, 1.56880014e-06, 0.999969661)
  1782. Part130.TopSurface = Enum.SurfaceType.Smooth
  1783. Part130.Color = Color3.new(1, 0.4, 0.8)
  1784. Part130.Position = Vector3.new(9.63145638, 2.55042696, -10.502058)
  1785. Part130.Orientation = Vector3.new(0, -0.439999998, 0)
  1786. Part130.Color = Color3.new(1, 0.4, 0.8)
  1787. Decal131.Parent = Part130
  1788. Decal131.Texture = "http://www.roblox.com/asset/?id=214083825"
  1789. Part132.Name = "Flat Brick"
  1790. Part132.Parent = Model6
  1791. Part132.BrickColor = BrickColor.new("Pink")
  1792. Part132.Rotation = Vector3.new(90, 66.5800018, -90)
  1793. Part132.Anchored = true
  1794. Part132.FormFactor = Enum.FormFactor.Plate
  1795. Part132.Size = Vector3.new(1, 0.879999995, 2.29999971)
  1796. Part132.CFrame = CFrame.new(13.9770336, 2.97042489, -9.4784584, 0, 0.397441953, 0.917627394, 0, 0.917627394, -0.397441953, -1, 0, 0)
  1797. Part132.TopSurface = Enum.SurfaceType.Smooth
  1798. Part132.Color = Color3.new(1, 0.4, 0.8)
  1799. Part132.Position = Vector3.new(13.9770336, 2.97042489, -9.4784584)
  1800. Part132.Orientation = Vector3.new(23.4200001, 90, 0)
  1801. Part132.Color = Color3.new(1, 0.4, 0.8)
  1802. Model133.Name = "Wheels"
  1803. Model133.Parent = Model5
  1804. Part134.Name = "Wheel"
  1805. Part134.Parent = Model133
  1806. Part134.Material = Enum.Material.Concrete
  1807. Part134.BrickColor = BrickColor.new("Really black")
  1808. Part134.Rotation = Vector3.new(-90, 0, 180)
  1809. Part134.Anchored = true
  1810. Part134.Elasticity = 0
  1811. Part134.FormFactor = Enum.FormFactor.Symmetric
  1812. Part134.Friction = 1.7999999523163
  1813. Part134.Shape = Enum.PartType.Ball
  1814. Part134.Size = Vector3.new(2, 2, 2)
  1815. Part134.CFrame = CFrame.new(6.66264009, 1.57736695, -6.78659391, -1, -4.37113883e-08, 4.37113883e-08, 4.37113883e-08, 1.91068547e-15, 1, -4.37113883e-08, 1, 0)
  1816. Part134.BackSurface = Enum.SurfaceType.Unjoinable
  1817. Part134.BottomSurface = Enum.SurfaceType.Unjoinable
  1818. Part134.FrontSurface = Enum.SurfaceType.Unjoinable
  1819. Part134.LeftSurface = Enum.SurfaceType.Unjoinable
  1820. Part134.RightSurface = Enum.SurfaceType.Unjoinable
  1821. Part134.TopSurface = Enum.SurfaceType.Unjoinable
  1822. Part134.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1823. Part134.Position = Vector3.new(6.66264009, 1.57736695, -6.78659391)
  1824. Part134.Orientation = Vector3.new(-90, 180, 0)
  1825. Part134.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1826. BoolValue135.Name = "Steer"
  1827. BoolValue135.Parent = Part134
  1828. BoolValue135.Value = true
  1829. CylinderMesh136.Parent = Part134
  1830. CylinderMesh136.Scale = Vector3.new(1.03680015, 0.342144072, 1.03680015)
  1831. CylinderMesh136.Scale = Vector3.new(1.03680015, 0.342144072, 1.03680015)
  1832. BoolValue137.Name = "Powered"
  1833. BoolValue137.Parent = Part134
  1834. BoolValue137.Value = true
  1835. Part138.Parent = Part134
  1836. Part138.Material = Enum.Material.SmoothPlastic
  1837. Part138.Transparency = 1
  1838. Part138.Rotation = Vector3.new(0, -90, 0)
  1839. Part138.Anchored = true
  1840. Part138.CanCollide = false
  1841. Part138.FormFactor = Enum.FormFactor.Custom
  1842. Part138.Size = Vector3.new(0.384000033, 1.38240004, 1.38240004)
  1843. Part138.CFrame = CFrame.new(6.66264009, 1.57736695, -6.5178709, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1844. Part138.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1845. Part138.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1846. Part138.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1847. Part138.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1848. Part138.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1849. Part138.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1850. Part138.Position = Vector3.new(6.66264009, 1.57736695, -6.5178709)
  1851. Part138.Orientation = Vector3.new(0, -90, 0)
  1852. Decal139.Parent = Part138
  1853. Decal139.Texture = "http://www.roblox.com/asset/?id=290762904"
  1854. Decal139.Face = Enum.NormalId.Right
  1855. BlockMesh140.Parent = Part138
  1856. BlockMesh140.Scale = Vector3.new(0.400000036, 1, 1)
  1857. BlockMesh140.Scale = Vector3.new(0.400000036, 1, 1)
  1858. Part141.Name = "Wheel"
  1859. Part141.Parent = Model133
  1860. Part141.Material = Enum.Material.Concrete
  1861. Part141.BrickColor = BrickColor.new("Really black")
  1862. Part141.Rotation = Vector3.new(-90, 0, 180)
  1863. Part141.Anchored = true
  1864. Part141.Elasticity = 0
  1865. Part141.FormFactor = Enum.FormFactor.Symmetric
  1866. Part141.Friction = 1.7999999523163
  1867. Part141.Shape = Enum.PartType.Ball
  1868. Part141.Size = Vector3.new(2, 2, 2)
  1869. Part141.CFrame = CFrame.new(6.66264009, 1.57736695, -12.3185225, -1, -4.37113883e-08, 4.37113883e-08, 4.37113883e-08, 1.91068547e-15, 1, -4.37113883e-08, 1, 0)
  1870. Part141.BackSurface = Enum.SurfaceType.Unjoinable
  1871. Part141.BottomSurface = Enum.SurfaceType.Unjoinable
  1872. Part141.FrontSurface = Enum.SurfaceType.Unjoinable
  1873. Part141.LeftSurface = Enum.SurfaceType.Unjoinable
  1874. Part141.RightSurface = Enum.SurfaceType.Unjoinable
  1875. Part141.TopSurface = Enum.SurfaceType.Unjoinable
  1876. Part141.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1877. Part141.Position = Vector3.new(6.66264009, 1.57736695, -12.3185225)
  1878. Part141.Orientation = Vector3.new(-90, 180, 0)
  1879. Part141.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1880. BoolValue142.Name = "Steer"
  1881. BoolValue142.Parent = Part141
  1882. BoolValue142.Value = true
  1883. CylinderMesh143.Parent = Part141
  1884. CylinderMesh143.Scale = Vector3.new(1.03680015, 0.342144072, 1.03680015)
  1885. CylinderMesh143.Scale = Vector3.new(1.03680015, 0.342144072, 1.03680015)
  1886. BoolValue144.Name = "Powered"
  1887. BoolValue144.Parent = Part141
  1888. BoolValue144.Value = true
  1889. Part145.Parent = Part141
  1890. Part145.Material = Enum.Material.SmoothPlastic
  1891. Part145.Transparency = 1
  1892. Part145.Rotation = Vector3.new(0, 89.9599991, 0)
  1893. Part145.Anchored = true
  1894. Part145.CanCollide = false
  1895. Part145.FormFactor = Enum.FormFactor.Custom
  1896. Part145.Size = Vector3.new(0.384000033, 1.38240004, 1.38240004)
  1897. Part145.CFrame = CFrame.new(6.66264009, 1.57736695, -12.5875664, 5.96046448e-08, 0, 0.999999702, 0, 1, 0, -0.999999702, 0, 5.96046448e-08)
  1898. Part145.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1899. Part145.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1900. Part145.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1901. Part145.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1902. Part145.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1903. Part145.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1904. Part145.Position = Vector3.new(6.66264009, 1.57736695, -12.5875664)
  1905. Part145.Orientation = Vector3.new(0, 90, 0)
  1906. Decal146.Parent = Part145
  1907. Decal146.Texture = "http://www.roblox.com/asset/?id=290762904"
  1908. Decal146.Face = Enum.NormalId.Right
  1909. BlockMesh147.Parent = Part145
  1910. BlockMesh147.Scale = Vector3.new(0.400000036, 1, 1)
  1911. BlockMesh147.Scale = Vector3.new(0.400000036, 1, 1)
  1912. Part148.Name = "Wheel"
  1913. Part148.Parent = Model133
  1914. Part148.Material = Enum.Material.Concrete
  1915. Part148.BrickColor = BrickColor.new("Really black")
  1916. Part148.Rotation = Vector3.new(-90, 0, 180)
  1917. Part148.Anchored = true
  1918. Part148.Elasticity = 0
  1919. Part148.FormFactor = Enum.FormFactor.Symmetric
  1920. Part148.Friction = 1.7999999523163
  1921. Part148.Shape = Enum.PartType.Ball
  1922. Part148.Size = Vector3.new(2, 2, 2)
  1923. Part148.CFrame = CFrame.new(12.160512, 1.57736695, -6.78659391, -1, -4.37113883e-08, 4.37113883e-08, 4.37113883e-08, 1.91068547e-15, 1, -4.37113883e-08, 1, 0)
  1924. Part148.BackSurface = Enum.SurfaceType.Unjoinable
  1925. Part148.BottomSurface = Enum.SurfaceType.Unjoinable
  1926. Part148.FrontSurface = Enum.SurfaceType.Unjoinable
  1927. Part148.LeftSurface = Enum.SurfaceType.Unjoinable
  1928. Part148.RightSurface = Enum.SurfaceType.Unjoinable
  1929. Part148.TopSurface = Enum.SurfaceType.Unjoinable
  1930. Part148.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1931. Part148.Position = Vector3.new(12.160512, 1.57736695, -6.78659391)
  1932. Part148.Orientation = Vector3.new(-90, 180, 0)
  1933. Part148.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1934. BodyGyro149.Name = "EBrake"
  1935. BodyGyro149.Parent = Part148
  1936. BodyGyro149.maxTorque = Vector3.new(0, 0, 0)
  1937. BodyGyro149.P = 15000
  1938. BodyGyro149.D = 5000
  1939. BodyGyro149.MaxTorque = Vector3.new(0, 0, 0)
  1940. CylinderMesh150.Parent = Part148
  1941. CylinderMesh150.Scale = Vector3.new(1.03680015, 0.342144072, 1.03680015)
  1942. CylinderMesh150.Scale = Vector3.new(1.03680015, 0.342144072, 1.03680015)
  1943. BoolValue151.Name = "Powered"
  1944. BoolValue151.Parent = Part148
  1945. BoolValue151.Value = true
  1946. Part152.Parent = Part148
  1947. Part152.Material = Enum.Material.SmoothPlastic
  1948. Part152.Transparency = 1
  1949. Part152.Rotation = Vector3.new(0, -90, 0)
  1950. Part152.Anchored = true
  1951. Part152.CanCollide = false
  1952. Part152.FormFactor = Enum.FormFactor.Custom
  1953. Part152.Size = Vector3.new(0.384000033, 1.38240004, 1.38240004)
  1954. Part152.CFrame = CFrame.new(12.160512, 1.57736695, -6.5178709, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1955. Part152.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  1956. Part152.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  1957. Part152.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  1958. Part152.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  1959. Part152.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  1960. Part152.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  1961. Part152.Position = Vector3.new(12.160512, 1.57736695, -6.5178709)
  1962. Part152.Orientation = Vector3.new(0, -90, 0)
  1963. Decal153.Parent = Part152
  1964. Decal153.Texture = "http://www.roblox.com/asset/?id=290762904"
  1965. Decal153.Face = Enum.NormalId.Right
  1966. BlockMesh154.Parent = Part152
  1967. BlockMesh154.Scale = Vector3.new(0.400000036, 1, 1)
  1968. BlockMesh154.Scale = Vector3.new(0.400000036, 1, 1)
  1969. Part155.Name = "Wheel"
  1970. Part155.Parent = Model133
  1971. Part155.Material = Enum.Material.Concrete
  1972. Part155.BrickColor = BrickColor.new("Really black")
  1973. Part155.Rotation = Vector3.new(-90, 0, 180)
  1974. Part155.Anchored = true
  1975. Part155.Elasticity = 0
  1976. Part155.FormFactor = Enum.FormFactor.Symmetric
  1977. Part155.Friction = 1.7999999523163
  1978. Part155.Shape = Enum.PartType.Ball
  1979. Part155.Size = Vector3.new(2, 2, 2)
  1980. Part155.CFrame = CFrame.new(12.160512, 1.57736695, -12.3185225, -1, -4.37113883e-08, 4.37113883e-08, 4.37113883e-08, 1.91068547e-15, 1, -4.37113883e-08, 1, 0)
  1981. Part155.BackSurface = Enum.SurfaceType.Unjoinable
  1982. Part155.BottomSurface = Enum.SurfaceType.Unjoinable
  1983. Part155.FrontSurface = Enum.SurfaceType.Unjoinable
  1984. Part155.LeftSurface = Enum.SurfaceType.Unjoinable
  1985. Part155.RightSurface = Enum.SurfaceType.Unjoinable
  1986. Part155.TopSurface = Enum.SurfaceType.Unjoinable
  1987. Part155.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1988. Part155.Position = Vector3.new(12.160512, 1.57736695, -12.3185225)
  1989. Part155.Orientation = Vector3.new(-90, 180, 0)
  1990. Part155.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  1991. BodyGyro156.Name = "EBrake"
  1992. BodyGyro156.Parent = Part155
  1993. BodyGyro156.maxTorque = Vector3.new(0, 0, 0)
  1994. BodyGyro156.P = 15000
  1995. BodyGyro156.D = 5000
  1996. BodyGyro156.MaxTorque = Vector3.new(0, 0, 0)
  1997. CylinderMesh157.Parent = Part155
  1998. CylinderMesh157.Scale = Vector3.new(1.03680015, 0.342144072, 1.03680015)
  1999. CylinderMesh157.Scale = Vector3.new(1.03680015, 0.342144072, 1.03680015)
  2000. BoolValue158.Name = "Powered"
  2001. BoolValue158.Parent = Part155
  2002. BoolValue158.Value = true
  2003. Part159.Parent = Part155
  2004. Part159.Material = Enum.Material.SmoothPlastic
  2005. Part159.Transparency = 1
  2006. Part159.Rotation = Vector3.new(0, 89.9599991, 0)
  2007. Part159.Anchored = true
  2008. Part159.CanCollide = false
  2009. Part159.FormFactor = Enum.FormFactor.Custom
  2010. Part159.Size = Vector3.new(0.384000033, 1.38240004, 1.38240004)
  2011. Part159.CFrame = CFrame.new(12.160512, 1.57736695, -12.5875664, 5.96046448e-08, 0, 0.999999702, 0, 1, 0, -0.999999702, 0, 5.96046448e-08)
  2012. Part159.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  2013. Part159.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  2014. Part159.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  2015. Part159.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  2016. Part159.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  2017. Part159.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  2018. Part159.Position = Vector3.new(12.160512, 1.57736695, -12.5875664)
  2019. Part159.Orientation = Vector3.new(0, 90, 0)
  2020. Decal160.Parent = Part159
  2021. Decal160.Texture = "http://www.roblox.com/asset/?id=290762904"
  2022. Decal160.Face = Enum.NormalId.Right
  2023. BlockMesh161.Parent = Part159
  2024. BlockMesh161.Scale = Vector3.new(0.400000036, 1, 1)
  2025. BlockMesh161.Scale = Vector3.new(0.400000036, 1, 1)
  2026. Part162.Name = "Wheel"
  2027. Part162.Parent = Model133
  2028. Part162.Material = Enum.Material.Concrete
  2029. Part162.BrickColor = BrickColor.new("Really black")
  2030. Part162.Rotation = Vector3.new(-90, 0, 180)
  2031. Part162.Anchored = true
  2032. Part162.Elasticity = 0
  2033. Part162.FormFactor = Enum.FormFactor.Symmetric
  2034. Part162.Friction = 1.7999999523163
  2035. Part162.Shape = Enum.PartType.Ball
  2036. Part162.Size = Vector3.new(2, 2, 2)
  2037. Part162.CFrame = CFrame.new(16.1006756, 2.00736904, -9.45659828, -1, -4.37113883e-08, 4.37113883e-08, 4.37113883e-08, 1.91068547e-15, 1, -4.37113883e-08, 1, 0)
  2038. Part162.BackSurface = Enum.SurfaceType.Unjoinable
  2039. Part162.BottomSurface = Enum.SurfaceType.Unjoinable
  2040. Part162.FrontSurface = Enum.SurfaceType.Unjoinable
  2041. Part162.LeftSurface = Enum.SurfaceType.Unjoinable
  2042. Part162.RightSurface = Enum.SurfaceType.Unjoinable
  2043. Part162.TopSurface = Enum.SurfaceType.Unjoinable
  2044. Part162.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  2045. Part162.Position = Vector3.new(16.1006756, 2.00736904, -9.45659828)
  2046. Part162.Orientation = Vector3.new(-90, 180, 0)
  2047. Part162.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  2048. BodyGyro163.Name = "EBrake"
  2049. BodyGyro163.Parent = Part162
  2050. BodyGyro163.maxTorque = Vector3.new(0, 0, 0)
  2051. BodyGyro163.P = 15000
  2052. BodyGyro163.D = 5000
  2053. BodyGyro163.MaxTorque = Vector3.new(0, 0, 0)
  2054. CylinderMesh164.Parent = Part162
  2055. CylinderMesh164.Scale = Vector3.new(1.03680015, 0.342144072, 1.03680015)
  2056. CylinderMesh164.Scale = Vector3.new(1.03680015, 0.342144072, 1.03680015)
  2057. BoolValue165.Name = "Powered"
  2058. BoolValue165.Parent = Part162
  2059. BoolValue165.Value = true
  2060. Part166.Parent = Part162
  2061. Part166.Material = Enum.Material.SmoothPlastic
  2062. Part166.Transparency = 1
  2063. Part166.Rotation = Vector3.new(0, -90, 0)
  2064. Part166.Anchored = true
  2065. Part166.CanCollide = false
  2066. Part166.FormFactor = Enum.FormFactor.Custom
  2067. Part166.Size = Vector3.new(0.384000033, 1.38240004, 1.38240004)
  2068. Part166.CFrame = CFrame.new(16.1006756, 2.00736904, -9.18787575, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  2069. Part166.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  2070. Part166.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  2071. Part166.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  2072. Part166.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  2073. Part166.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  2074. Part166.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  2075. Part166.Position = Vector3.new(16.1006756, 2.00736904, -9.18787575)
  2076. Part166.Orientation = Vector3.new(0, -90, 0)
  2077. Decal167.Parent = Part166
  2078. Decal167.Texture = "http://www.roblox.com/asset/?id=290762904"
  2079. Decal167.Face = Enum.NormalId.Right
  2080. BlockMesh168.Parent = Part166
  2081. BlockMesh168.Scale = Vector3.new(0.400000036, 1, 1)
  2082. BlockMesh168.Scale = Vector3.new(0.400000036, 1, 1)
  2083. Script169.Name = "ATSWelder"
  2084. Script169.Parent = Model5
  2085. table.insert(cors,sandbox(Script169,function()
  2086. -- ATS 1.3.1
  2087. --------------------------------------------------------------------------------------------------
  2088. local P = script.Parent
  2089. local Run = game:GetService('RunService')
  2090. local wheels = P.Wheels
  2091. local seat = P.Body.VehicleSeat
  2092. local vars = seat.ATSVariables
  2093.  
  2094. local exclude = {"Wheels"}
  2095.  
  2096. function WeldPair(x, y)
  2097. local weld = Instance.new("Weld",x)
  2098. weld.Part0 = x
  2099. weld.Part1 = y
  2100. weld.C1 = y.CFrame:toObjectSpace(x.CFrame);
  2101. end
  2102.  
  2103. function WeldAll(model, main) -- model can be anything
  2104. for i,v in pairs(exclude) do if (model.Name == v) then return end end
  2105. if model:IsA("BasePart") then WeldPair(main, model) end
  2106. for _,v in pairs(model:GetChildren()) do WeldAll(v, main) end
  2107. end
  2108.  
  2109. function UnanchorAll(model) -- model can be anything
  2110. if (model:IsA("BasePart")) then model.Anchored = false end
  2111. for _,v in pairs(model:GetChildren()) do UnanchorAll(v) end
  2112. end
  2113.  
  2114. function Joint(x,y, c0, c1, type)
  2115. local W = Instance.new(type, x)
  2116. W.Part0 = x
  2117. W.Part1 = y
  2118. W.C0 = c0
  2119. W.C1 = c1
  2120. return W
  2121. end
  2122.  
  2123. function CreateWheelPart()
  2124. local p = Instance.new("Part")
  2125. p.FormFactor = Enum.FormFactor.Custom
  2126. p.Transparency = 1
  2127. p.Anchored = true
  2128. p.CanCollide = false
  2129. p.TopSurface = Enum.SurfaceType.Unjoinable
  2130. p.BottomSurface = Enum.SurfaceType.Unjoinable
  2131. p.LeftSurface = Enum.SurfaceType.Unjoinable
  2132. p.RightSurface = Enum.SurfaceType.Unjoinable
  2133. p.FrontSurface = Enum.SurfaceType.Unjoinable
  2134. p.BackSurface = Enum.SurfaceType.Unjoinable
  2135. return p
  2136. end
  2137.  
  2138. for i,v in pairs(wheels:GetChildren()) do
  2139. if (v:IsA("BasePart")) then
  2140. local diameter = v.Size.x
  2141. local M = Instance.new("Model",wheels)
  2142. M.Name = v.Name
  2143. v.Parent = M
  2144. v.Name = "Wheel"
  2145. for j,w in pairs(v:GetChildren()) do
  2146. if (w:IsA("BasePart")) then
  2147. w.Parent = M
  2148. WeldPair(v,w)
  2149. w.CanCollide = false
  2150. end
  2151. end
  2152. if (v:FindFirstChild("Steer")) then
  2153. local A = CreateWheelPart()
  2154. A.Name = "Steer"
  2155. A.Size = Vector3.new(diameter, 1, 0.6)
  2156. A.CFrame = v.CFrame
  2157. A.Parent = M
  2158. end
  2159. local B = CreateWheelPart()
  2160. B.Name = "Suspension"
  2161. B.Size = Vector3.new(0.8, 1, diameter)
  2162. B.CFrame = v.CFrame * CFrame.new(-1,0,0)
  2163. B.Parent = M
  2164. local BB = Instance.new("BodyGyro")
  2165. BB.Name = "BG"
  2166. BB.D = vars.SuspensionDampening.Value
  2167. BB.P = vars.SuspensionPower.Value
  2168. BB.maxTorque = Vector3.new()
  2169. BB.Parent = B
  2170. local C = CreateWheelPart()
  2171. C.Name = "BodyHinge"
  2172. C.Size = Vector3.new(0.8, 1, diameter)
  2173. C.CFrame = v.CFrame * CFrame.new(1,0,0)
  2174. C.Parent = M
  2175. if (v:FindFirstChild("Powered")) then
  2176. local CC = Instance.new("BodyAngularVelocity")
  2177. CC.Name = "BAV"
  2178. CC.angularvelocity = Vector3.new()
  2179. CC.maxTorque = Vector3.new(60000, 0, 60000)
  2180. CC.P = 300
  2181. CC.Parent = v
  2182. end
  2183. end
  2184. end
  2185.  
  2186. for i,v in pairs(wheels:GetChildren()) do
  2187. if (v:FindFirstChild("Wheel")) and (v:FindFirstChild("Suspension")) then
  2188. local isSteeringWheel = (v:FindFirstChild("Steer") ~= nil)
  2189. if (v:FindFirstChild("Mesh")) then
  2190. WeldAll(v.Mesh, v.Wheel)
  2191. end
  2192. if (isSteeringWheel) then
  2193. Joint(v.Wheel, v.Steer, CFrame.Angles(math.pi / 2,0,0), v.Steer.CFrame:toObjectSpace(v.Wheel.CFrame) * CFrame.Angles(math.pi / 2,0,0), "Rotate")
  2194. local M = Joint(v.Steer, v.Suspension, CFrame.Angles(math.pi,0,0), v.Suspension.CFrame:toObjectSpace(v.Steer.CFrame) * CFrame.Angles(math.pi,0,0), "Motor")
  2195. M.MaxVelocity = 0.03
  2196. else
  2197. Joint(v.Wheel, v.Suspension, CFrame.Angles(math.pi / 2,0,0), v.Suspension.CFrame:toObjectSpace(v.Wheel.CFrame) * CFrame.Angles(math.pi / 2,0,0), "Rotate")
  2198. end
  2199. Joint(v.Suspension, v.BodyHinge, CFrame.new(Vector3.new(2,0,0)) * CFrame.Angles(math.pi/2,0,0), v.BodyHinge.CFrame:toObjectSpace(v.Suspension.CFrame) * CFrame.new(Vector3.new(2,0,0)) * CFrame.Angles(math.pi/2,0,0), "Rotate")
  2200. Joint(v.BodyHinge, seat, CFrame.new(), seat.CFrame:toObjectSpace(v.BodyHinge.CFrame), "Weld")
  2201. else
  2202. print("Invalid wheel: Missing Wheel or Suspension part!")
  2203. end
  2204. end
  2205.  
  2206. WeldAll(P, seat)
  2207.  
  2208. wait(0.5)
  2209.  
  2210. UnanchorAll(P)
  2211.  
  2212. function UpdateWheels()
  2213. if (not wheels) or (not seat) or (not vars) then return end
  2214. for i,v in pairs(wheels:GetChildren()) do
  2215. if (v:FindFirstChild("Suspension")) then
  2216. v.Suspension.BG.cframe = seat.CFrame * CFrame.Angles(-math.pi/2,-math.rad(vars.SuspensionAngle.Value),0)
  2217. end
  2218. end
  2219. end
  2220.  
  2221. UpdateWheels()
  2222. for i,v in pairs(wheels:GetChildren()) do
  2223. if (v:FindFirstChild("Suspension")) then
  2224. v.Suspension.BG.maxTorque = Vector3.new(0,1,0)
  2225. end
  2226. end
  2227.  
  2228. Run.Heartbeat:connect(UpdateWheels)
  2229.  
  2230. end))
  2231. LocalScript170.Name = "README"
  2232. LocalScript170.Parent = Model5
  2233. table.insert(cors,sandbox(LocalScript170,function()
  2234. --[[
  2235. - Pieces in Body will be welded together.
  2236. - You can change things like top speed etc. in the VehicleSeat
  2237. - Put something called "Steer" in your wheel if you want it to steer
  2238. - If you want to weld parts to the wheel, put it IN the wheel part! (Use the explorer, there is currently no easier way, sorry!)
  2239. --]]
  2240. --You are using ATS 1.3.1 with DynDS 1.2.0 with Neon lighting from DynDS 1.4, modified by iiDerpX--
  2241. end))
  2242. for i,v in pairs(mas:GetChildren()) do
  2243. v.Parent = workspace
  2244. pcall(function() v:MakeJoints() end)
  2245. end
  2246. mas:Destroy()
  2247. for i,v in pairs(cors) do
  2248. spawn(function()
  2249. pcall(v)
  2250. end)
  2251. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement