Zach_rookie_editor3

Not normal car

Jan 29th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.50 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  2. do
  3. script.Parent = owner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5. local function NewFakeEvent()
  6. local Bind = Instance.new("BindableEvent")
  7. local Fake;Fake = {Connections = {},
  8. fakeEvent=true;
  9. Connect=function(self,Func)
  10. Bind.Event:connect(Func)
  11. self.Connections[Bind] = true
  12. return setmetatable({Connected = true},{
  13. __index = function (self,Index)
  14. if Index:lower() == "disconnect" then
  15. return function() Fake.Connections[Bind] = false;self.Connected = false end
  16. end
  17. return Fake[Index]
  18. end;
  19. __tostring = function() return "Connection" end;
  20. })
  21. end}
  22. Fake.connect = Fake.Connect;return Fake;
  23. end
  24. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25. local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28. end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29. local function TriggerEvent(self,Event,...)
  30. local Trigger = Mouse[Event]
  31. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33. end
  34. end
  35. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36. Event.OnServerEvent:Connect(function(FiredBy,Input)
  37. if FiredBy.Name ~= owner.Name then return end
  38. if Input.MouseEvent then
  39. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40. else
  41. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43. for _,Action in pairs(ContextActionService.Actions) do
  44. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45. end
  46. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47. UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48. end
  49. end)
  50. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51. Event.Parent = NLS([[
  52. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53. local Input = function(Input,gameProcessedEvent)
  54. if gameProcessedEvent then return end
  55. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56. end
  57. UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58. local Hit,Target
  59. while wait(1/30) do
  60. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62. end
  63. end
  64. ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67. __index = function (self,Index)
  68. local Sandbox = function (Thing)
  69. if Thing:IsA("Player") then
  70. local RealPlayer = Thing
  71. return setmetatable({},{
  72. __index = function (self,Index)
  73. local Type = type(RealPlayer[Index])
  74. if Type == "function" then
  75. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76. return function (self)return InternalData["Mouse"] end
  77. end
  78. return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79. end
  80. return RealPlayer[Index]
  81. end;
  82. __tostring = function(self) return RealPlayer.Name end
  83. })
  84. end
  85. end
  86. if RealGame[Index] then
  87. local Type = type(RealGame[Index])
  88. if Type == "function" then
  89. if Index:lower() == "getservice" or Index:lower() == "service" then
  90. return function (self,Service)
  91. local FakeServices = {
  92. ["players"] = function()
  93. return setmetatable({},{
  94. __index = function (self2,Index2)
  95. local RealService = RealGame:GetService(Service)
  96. local Type2 = type(Index2)
  97. if Type2 == "function" then
  98. return function (self,...) return RealService[Index2](RealService,...)end
  99. else
  100. if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101. return RealService[Index2]
  102. end
  103. end;
  104. __tostring = function(self) return RealGame:GetService(Service).Name end
  105. })
  106. end;
  107. ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108. ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109. ["runservice"] = function()
  110. return setmetatable({},{
  111. __index = function(self2,Index2)
  112. local RealService = RealGame:GetService(Service)
  113. local Type2 = type(Index2)
  114. if Type2 == "function" then
  115. return function (self,...) return RealService[Index2](RealService,...) end
  116. else
  117. local RunServices = {
  118. ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119. ["renderstepped"] = function() return RealService["Stepped"] end
  120. }
  121. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122. return RealService[Index2]
  123. end
  124. end
  125. })
  126. end
  127. }
  128. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129. return RealGame:GetService(Service)
  130. end
  131. end
  132. return function (self,...) return RealGame[Index](RealGame,...) end
  133. else
  134. if game:GetService(Index) then return game:GetService(Index) end
  135. return RealGame[Index]
  136. end
  137. end
  138. return nil
  139. end
  140. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  141.  
  142.  
  143. local runDummyScript = function(f,scri)
  144. local oldenv = getfenv(f)
  145. local newenv = setmetatable({}, {
  146. __index = function(_, k)
  147. if k:lower() == 'script' then
  148. return scri
  149. else
  150. return oldenv[k]
  151. end
  152. end
  153. })
  154. setfenv(f, newenv)
  155. ypcall(function() f() end)
  156. end
  157. cors = {}
  158. mas = Instance.new("Model",game:GetService("Lighting"))
  159. mas.Name = "CompiledModel"
  160. o1 = Instance.new("Model")
  161. o2 = Instance.new("Part")
  162. o3 = Instance.new("Weld")
  163. o4 = Instance.new("Weld")
  164. o6 = Instance.new("Weld")
  165. o7 = Instance.new("Sound")
  166. o8 = Instance.new("Part")
  167. o9 = Instance.new("Weld")
  168. o10 = Instance.new("Part")
  169. o11 = Instance.new("Weld")
  170. o12 = Instance.new("Weld")
  171. o14 = Instance.new("Weld")
  172. o15 = Instance.new("ManualWeld")
  173. o16 = Instance.new("Part")
  174. o17 = Instance.new("Weld")
  175. o18 = Instance.new("Weld")
  176. o19 = Instance.new("Part")
  177. o20 = Instance.new("ManualWeld")
  178. o21 = Instance.new("BodyPosition")
  179. o22 = Instance.new("BodyGyro")
  180. o23 = Instance.new("ManualWeld")
  181. o24 = Instance.new("Part")
  182. o25 = Instance.new("Weld")
  183. o26 = Instance.new("ManualWeld")
  184. o28 = Instance.new("Weld")
  185. o30 = Instance.new("Weld")
  186. o31 = Instance.new("Part")
  187. o32 = Instance.new("Weld")
  188. o33 = Instance.new("Weld")
  189. o35 = Instance.new("Weld")
  190. o36 = Instance.new("ManualWeld")
  191. o37 = Instance.new("Part")
  192. o38 = Instance.new("Part")
  193. o39 = Instance.new("Weld")
  194. o40 = Instance.new("ManualWeld")
  195. o42 = Instance.new("Weld")
  196. o44 = Instance.new("Texture")
  197. o45 = Instance.new("Texture")
  198. o46 = Instance.new("Texture")
  199. o47 = Instance.new("Texture")
  200. o48 = Instance.new("ParticleEmitter")
  201. o49 = Instance.new("ManualWeld")
  202. o50 = Instance.new("Part")
  203. o51 = Instance.new("SurfaceGui")
  204. o52 = Instance.new("Frame")
  205. o53 = Instance.new("SurfaceLight")
  206. o54 = Instance.new("Weld")
  207. o55 = Instance.new("Part")
  208. o56 = Instance.new("SurfaceGui")
  209. o57 = Instance.new("Frame")
  210. o58 = Instance.new("SurfaceLight")
  211. o59 = Instance.new("Weld")
  212. o60 = Instance.new("Configuration")
  213. o61 = Instance.new("NumberValue")
  214. o62 = Instance.new("NumberValue")
  215. o63 = Instance.new("NumberValue")
  216. o64 = Instance.new("NumberValue")
  217. o65 = Instance.new("NumberValue")
  218. o66 = Instance.new("Script")
  219. o67 = Instance.new("LocalScript")
  220. o68 = Instance.new("ObjectValue")
  221. o71 = Instance.new("Texture")
  222. o72 = Instance.new("Texture")
  223. o73 = Instance.new("Texture")
  224. o74 = Instance.new("Texture")
  225. o75 = Instance.new("ParticleEmitter")
  226. o77 = Instance.new("Texture")
  227. o78 = Instance.new("Texture")
  228. o79 = Instance.new("Texture")
  229. o80 = Instance.new("Texture")
  230. o81 = Instance.new("ParticleEmitter")
  231. o82 = Instance.new("ManualWeld")
  232. o84 = Instance.new("Texture")
  233. o85 = Instance.new("Texture")
  234. o86 = Instance.new("Texture")
  235. o87 = Instance.new("Texture")
  236. o88 = Instance.new("ParticleEmitter")
  237. o89 = Instance.new("VehicleSeat")
  238. o90 = Instance.new("Part")
  239. o91 = Instance.new("SpecialMesh")
  240. o92 = Instance.new("Weld")
  241. o93 = Instance.new("Weld")
  242. o94 = Instance.new("Weld")
  243. o95 = Instance.new("Script")
  244. o96 = Instance.new("Sound")
  245. o1.Name = "Jeep"
  246. o1.Parent = mas
  247. o2.Name = "Thruster"
  248. o2.Parent = o1
  249. o2.BrickColor = BrickColor.new("Institutional white")
  250. o2.Transparency = 1
  251. o2.Position = Vector3.new(-91.4021301, 4.64119577, -7.87524652)
  252. o2.Rotation = Vector3.new(0.00999999978, -90, 0)
  253. o2.CanCollide = false
  254. o2.FormFactor = Enum.FormFactor.Custom
  255. o2.Size = Vector3.new(1, 1, 2)
  256. o2.CFrame = CFrame.new(-91.4021301, 4.64119577, -7.87524652, -2.86847353e-07, -2.06167097e-05, -1.00000834, -0.0001286724, 1, -2.17053821e-05, 1.00000834, 0.000128673739, 2.57045031e-07)
  257. o2.BottomSurface = Enum.SurfaceType.Smooth
  258. o2.TopSurface = Enum.SurfaceType.Smooth
  259. o2.Color = Color3.new(1, 1, 1)
  260. o2.Position = Vector3.new(-91.4021301, 4.64119577, -7.87524652)
  261. o3.Parent = o2
  262. o3.C0 = CFrame.new(-2.5, 0, -4, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  263. o3.Part0 = o19
  264. o3.Part1 = o2
  265. o4.Name = "WheelWeld"
  266. o4.Parent = o2
  267. o4.C0 = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  268. o4.Part0 = o2
  269. o4.Part1 = mas
  270. o6.Parent = mas
  271. o6.C0 = CFrame.new(0, 1.25, -3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  272. o6.Part0 = o19
  273. o6.Part1 = mas
  274. o7.Name = "Running"
  275. o7.Parent = mas
  276. o7.Pitch = 0
  277. o7.SoundId = "rbxassetid://358280695"
  278. o7.Volume = 10
  279. o7.Looped = true
  280. o8.Parent = o1
  281. o8.BrickColor = BrickColor.new("Institutional white")
  282. o8.Position = Vector3.new(-90.1521149, 4.39090109, -5.37525797)
  283. o8.Rotation = Vector3.new(0.00999999978, -90, 0)
  284. o8.FormFactor = Enum.FormFactor.Custom
  285. o8.Size = Vector3.new(5, 0.5, 0.5)
  286. o8.CFrame = CFrame.new(-90.1521149, 4.39090109, -5.37525797, -2.86847353e-07, -2.06167097e-05, -1.00000834, -0.0001286724, 1, -2.17053821e-05, 1.00000834, 0.000128673739, 2.57045031e-07)
  287. o8.BottomSurface = Enum.SurfaceType.Smooth
  288. o8.TopSurface = Enum.SurfaceType.Smooth
  289. o8.Color = Color3.new(1, 1, 1)
  290. o8.Position = Vector3.new(-90.1521149, 4.39090109, -5.37525797)
  291. o9.Parent = o8
  292. o9.C0 = CFrame.new(0, -0.25, -5.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  293. o9.Part0 = o19
  294. o9.Part1 = o8
  295. o10.Name = "Thruster"
  296. o10.Parent = o1
  297. o10.BrickColor = BrickColor.new("Institutional white")
  298. o10.Transparency = 1
  299. o10.Position = Vector3.new(-91.4021301, 4.64055204, -2.87520456)
  300. o10.Rotation = Vector3.new(0.00999999978, -90, 0)
  301. o10.CanCollide = false
  302. o10.FormFactor = Enum.FormFactor.Custom
  303. o10.Size = Vector3.new(1, 1, 2)
  304. o10.CFrame = CFrame.new(-91.4021301, 4.64055204, -2.87520456, -2.86847353e-07, -2.06167097e-05, -1.00000834, -0.0001286724, 1, -2.17053821e-05, 1.00000834, 0.000128673739, 2.57045031e-07)
  305. o10.BottomSurface = Enum.SurfaceType.Smooth
  306. o10.TopSurface = Enum.SurfaceType.Smooth
  307. o10.Color = Color3.new(1, 1, 1)
  308. o10.Position = Vector3.new(-91.4021301, 4.64055204, -2.87520456)
  309. o11.Parent = o10
  310. o11.C0 = CFrame.new(2.5, 0, -4, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  311. o11.Part0 = o19
  312. o11.Part1 = o10
  313. o12.Name = "WheelWeld"
  314. o12.Parent = o10
  315. o12.C0 = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  316. o12.Part0 = o10
  317. o12.Part1 = mas
  318. o14.Parent = mas
  319. o14.C0 = CFrame.new(2.25, 1.25000048, 3.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  320. o14.Part0 = o19
  321. o14.Part1 = mas
  322. o15.Name = "Union-to-Part Strong Joint"
  323. o15.Parent = mas
  324. o15.C0 = CFrame.new(-0.250000417, -1.25000048, -1.75000012, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  325. o15.C1 = CFrame.new(2.00003052, -1.24999809, -3.25, 1.99786854e-11, 4.10487968e-13, -1, -3.67035682e-08, 1, -4.09731737e-13, 1, -3.67035682e-08, -1.99786854e-11)
  326. o15.Part0 = mas
  327. o15.Part1 = o37
  328. o16.Name = "Thruster"
  329. o16.Parent = o1
  330. o16.BrickColor = BrickColor.new("Institutional white")
  331. o16.Transparency = 1
  332. o16.Position = Vector3.new(-98.9021912, 4.64038944, -2.87520266)
  333. o16.Rotation = Vector3.new(0.00999999978, -90, 0)
  334. o16.CanCollide = false
  335. o16.FormFactor = Enum.FormFactor.Custom
  336. o16.Size = Vector3.new(1, 1, 2)
  337. o16.CFrame = CFrame.new(-98.9021912, 4.64038944, -2.87520266, -2.86847353e-07, -2.06167097e-05, -1.00000834, -0.0001286724, 1, -2.17053821e-05, 1.00000834, 0.000128673739, 2.57045031e-07)
  338. o16.BottomSurface = Enum.SurfaceType.Smooth
  339. o16.TopSurface = Enum.SurfaceType.Smooth
  340. o16.Color = Color3.new(1, 1, 1)
  341. o16.Position = Vector3.new(-98.9021912, 4.64038944, -2.87520266)
  342. o17.Parent = o16
  343. o17.C0 = CFrame.new(2.5, 0, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  344. o17.Part0 = o19
  345. o17.Part1 = o16
  346. o18.Name = "WheelWeld"
  347. o18.Parent = o16
  348. o18.C0 = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  349. o18.Part0 = o16
  350. o18.Part1 = mas
  351. o19.Name = "Chassis"
  352. o19.Parent = o1
  353. o19.BrickColor = BrickColor.new("Institutional white")
  354. o19.Position = Vector3.new(-95.4021606, 4.64078712, -5.37522459)
  355. o19.Rotation = Vector3.new(0.00999999978, -90, 0)
  356. o19.FormFactor = Enum.FormFactor.Custom
  357. o19.Size = Vector3.new(4, 1, 10)
  358. o19.CFrame = CFrame.new(-95.4021606, 4.64078712, -5.37522459, -2.86847353e-07, -2.06167097e-05, -1.00000834, -0.0001286724, 1, -2.17053821e-05, 1.00000834, 0.000128673739, 2.57045031e-07)
  359. o19.BottomSurface = Enum.SurfaceType.Smooth
  360. o19.TopSurface = Enum.SurfaceType.Smooth
  361. o19.Color = Color3.new(1, 1, 1)
  362. o19.Position = Vector3.new(-95.4021606, 4.64078712, -5.37522459)
  363. o20.Name = "Chassis-to-DriveSeat Strong Joint"
  364. o20.Parent = o19
  365. o20.C0 = CFrame.new(-2, 0.5, 5, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  366. o20.C1 = CFrame.new(-2, -0.0999660492, 4.6000061, -1, -1.142093e-08, -1.2423443e-06, -1.2423443e-06, 1.00420866e-05, 1, -1.14084546e-08, 1, -1.00420866e-05)
  367. o20.Part0 = o19
  368. o20.Part1 = o89
  369. o21.Parent = o19
  370. o22.Parent = o19
  371. o22.maxTorque = Vector3.new(0, 0, 0)
  372. o22.MaxTorque = Vector3.new(0, 0, 0)
  373. o23.Name = "Chassis-to-Part Strong Joint"
  374. o23.Parent = o19
  375. o23.C0 = CFrame.new(-2, -0.5, 5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  376. o23.C1 = CFrame.new(-1.99993896, -1.74999809, -0.25, 1, 4.10487968e-13, 1.99786854e-11, 4.09731737e-13, 1, -3.67035682e-08, 1.99786854e-11, -3.67035682e-08, 1)
  377. o23.Part0 = o19
  378. o23.Part1 = o37
  379. o24.Parent = o1
  380. o24.BrickColor = BrickColor.new("Institutional white")
  381. o24.Position = Vector3.new(-98.9022141, 5.89071131, -5.37506294)
  382. o24.Rotation = Vector3.new(0.00999999978, -90, 0)
  383. o24.FormFactor = Enum.FormFactor.Custom
  384. o24.Size = Vector3.new(4, 1.5, 3)
  385. o24.CFrame = CFrame.new(-98.9022141, 5.89071131, -5.37506294, -2.86847353e-07, -2.06167097e-05, -1.00000834, -0.0001286724, 1, -2.17053821e-05, 1.00000834, 0.000128673739, 2.57045031e-07)
  386. o24.BottomSurface = Enum.SurfaceType.Smooth
  387. o24.TopSurface = Enum.SurfaceType.Smooth
  388. o24.Color = Color3.new(1, 1, 1)
  389. o24.Position = Vector3.new(-98.9022141, 5.89071131, -5.37506294)
  390. o25.Parent = o24
  391. o25.C0 = CFrame.new(0, 1.25, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  392. o25.Part0 = o19
  393. o25.Part1 = o24
  394. o26.Name = "Part-to-Part Strong Joint"
  395. o26.Parent = o24
  396. o26.C0 = CFrame.new(-2, -0.75, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  397. o26.C1 = CFrame.new(-1.99996948, -0.749999046, -0.25, 1, 4.10347076e-13, 1.33191236e-11, 4.09968961e-13, 1, -2.44690455e-08, 1.33191236e-11, -2.44690455e-08, 1)
  398. o26.Part0 = o24
  399. o26.Part1 = o37
  400. o28.Parent = mas
  401. o28.C0 = CFrame.new(-2.25, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  402. o28.Part0 = o19
  403. o28.Part1 = mas
  404. o30.Parent = mas
  405. o30.C0 = CFrame.new(2.25, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  406. o30.Part0 = o19
  407. o30.Part1 = mas
  408. o31.Name = "Thruster"
  409. o31.Parent = o1
  410. o31.BrickColor = BrickColor.new("Institutional white")
  411. o31.Transparency = 1
  412. o31.Position = Vector3.new(-98.9021912, 4.6410327, -7.87524462)
  413. o31.Rotation = Vector3.new(0.00999999978, -90, 0)
  414. o31.CanCollide = false
  415. o31.FormFactor = Enum.FormFactor.Custom
  416. o31.Size = Vector3.new(1, 1, 2)
  417. o31.CFrame = CFrame.new(-98.9021912, 4.6410327, -7.87524462, -2.86847353e-07, -2.06167097e-05, -1.00000834, -0.0001286724, 1, -2.17053821e-05, 1.00000834, 0.000128673739, 2.57045031e-07)
  418. o31.BottomSurface = Enum.SurfaceType.Smooth
  419. o31.TopSurface = Enum.SurfaceType.Smooth
  420. o31.Color = Color3.new(1, 1, 1)
  421. o31.Position = Vector3.new(-98.9021912, 4.6410327, -7.87524462)
  422. o32.Parent = o31
  423. o32.C0 = CFrame.new(-2.5, 0, 3.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  424. o32.Part0 = o19
  425. o32.Part1 = o31
  426. o33.Name = "WheelWeld"
  427. o33.Parent = o31
  428. o33.C0 = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  429. o33.Part0 = o31
  430. o33.Part1 = mas
  431. o35.Parent = mas
  432. o35.C0 = CFrame.new(-2.25, 1.25000048, 3.75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  433. o35.Part0 = o19
  434. o35.Part1 = mas
  435. o36.Name = "Union-to-Part Strong Joint"
  436. o36.Parent = mas
  437. o36.C0 = CFrame.new(0.250000417, -1.25000048, 1.75000012, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  438. o36.C1 = CFrame.new(-1.99993896, -1.24999714, 0.25, -2.66382472e-11, 4.10628833e-13, 1, 4.89380909e-08, 1, 4.09494487e-13, -1, -4.89380909e-08, 2.66382472e-11)
  439. o36.Part0 = mas
  440. o36.Part1 = o37
  441. o37.Parent = o1
  442. o37.BrickColor = BrickColor.new("Institutional white")
  443. o37.Position = Vector3.new(-100.652229, 5.89067125, -5.3751235)
  444. o37.Rotation = Vector3.new(0.00999999978, -90, 0)
  445. o37.FormFactor = Enum.FormFactor.Custom
  446. o37.Size = Vector3.new(4, 2.5, 0.5)
  447. o37.CFrame = CFrame.new(-100.652229, 5.89067125, -5.3751235, -2.86867333e-07, -2.05800061e-05, -1.00000834, -0.0001286724, 1, -2.17420857e-05, 1.00000834, 0.000128673739, 2.57060293e-07)
  448. o37.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  449. o37.BottomSurface = Enum.SurfaceType.Smooth
  450. o37.TopSurface = Enum.SurfaceType.Smooth
  451. o37.Color = Color3.new(1, 1, 1)
  452. o37.Position = Vector3.new(-100.652229, 5.89067125, -5.3751235)
  453. o38.Parent = o1
  454. o38.BrickColor = BrickColor.new("Institutional white")
  455. o38.Position = Vector3.new(-100.652199, 4.39067316, -5.37525558)
  456. o38.Rotation = Vector3.new(0.00999999978, -90, 0)
  457. o38.FormFactor = Enum.FormFactor.Custom
  458. o38.Size = Vector3.new(5, 0.5, 0.5)
  459. o38.CFrame = CFrame.new(-100.652199, 4.39067316, -5.37525558, -2.86847353e-07, -2.06167097e-05, -1.00000834, -0.0001286724, 1, -2.17053821e-05, 1.00000834, 0.000128673739, 2.57045031e-07)
  460. o38.BottomSurface = Enum.SurfaceType.Smooth
  461. o38.TopSurface = Enum.SurfaceType.Smooth
  462. o38.Color = Color3.new(1, 1, 1)
  463. o38.Position = Vector3.new(-100.652199, 4.39067316, -5.37525558)
  464. o39.Parent = o38
  465. o39.C0 = CFrame.new(0, -0.25, 5.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  466. o39.Part0 = o19
  467. o39.Part1 = o38
  468. o40.Name = "Part-to-Part Strong Joint"
  469. o40.Parent = o38
  470. o40.C0 = CFrame.new(-2.5, 0.25, 0.25, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  471. o40.C1 = CFrame.new(-2.49996948, -1.24999809, 0.25, -1, 1.99786854e-11, 4.10487968e-13, -4.09731737e-13, -3.67035682e-08, 1, -1.99786854e-11, 1, -3.67035682e-08)
  472. o40.Part0 = o38
  473. o40.Part1 = o37
  474. o42.Parent = mas
  475. o42.C0 = CFrame.new(-1.90734863e-06, 3.62779188, -1.35728073, -1, 0, 0, 0, 0.970142543, 0.242535442, 0, 0.242535442, -0.970142543)
  476. o42.Part0 = o19
  477. o42.Part1 = mas
  478. o44.Parent = mas
  479. o44.Transparency = 0.5
  480. o44.Texture = "http://www.roblox.com/asset/?id=259149256"
  481. o44.Face = Enum.NormalId.Top
  482. o44.StudsPerTileU = 3
  483. o44.StudsPerTileV = 3
  484. o45.Parent = mas
  485. o45.Transparency = 0.5
  486. o45.Texture = "http://www.roblox.com/asset/?id=259149256"
  487. o45.StudsPerTileU = 3
  488. o45.StudsPerTileV = 3
  489. o46.Parent = mas
  490. o46.Transparency = 0.5
  491. o46.Texture = "http://www.roblox.com/asset/?id=259149256"
  492. o46.Face = Enum.NormalId.Back
  493. o46.StudsPerTileU = 3
  494. o46.StudsPerTileV = 3
  495. o47.Parent = mas
  496. o47.Transparency = 0.5
  497. o47.Texture = "http://www.roblox.com/asset/?id=259149256"
  498. o47.Face = Enum.NormalId.Bottom
  499. o47.StudsPerTileU = 3
  500. o47.StudsPerTileV = 3
  501. o48.Parent = mas
  502. o48.Transparency = NumberSequence.new(1,0.80000001192093,0.66874998807907,0.67500001192093,0.8125,1)
  503. o48.Rotation = NumberRange.new(0,360)
  504. o48.Size = NumberSequence.new(0,0.53763401508331,0.80645102262497,0.91397798061371)
  505. o48.Color = ColorSequence.new(Color3.new(0.121569, 0.121569, 0.121569),Color3.new(0.121569, 0.121569, 0.121569))
  506. o48.Enabled = false
  507. o48.LightEmission = 0.20000000298023
  508. o48.Texture = "rbxassetid://287259619"
  509. o48.Acceleration = Vector3.new(0, -5, 0)
  510. o48.Lifetime = NumberRange.new(0.80000001192093,1.2000000476837)
  511. o48.Rate = 50
  512. o48.RotSpeed = NumberRange.new(-200,200)
  513. o48.Speed = NumberRange.new(0,0)
  514. o48.VelocitySpread = 40
  515. o49.Name = "BackLeftWheel-to-Part Strong Joint"
  516. o49.Parent = mas
  517. o49.C0 = CFrame.new(-0.75, -1.5, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  518. o49.C1 = CFrame.new(-3.24990845, -3.74999619, -0.25, 1, 4.10628833e-13, 2.66382472e-11, 4.09494487e-13, 1, -4.89380909e-08, 2.66382472e-11, -4.89380909e-08, 1)
  519. o49.Part0 = mas
  520. o49.Part1 = o37
  521. o50.Name = "Light"
  522. o50.Parent = o1
  523. o50.BrickColor = BrickColor.new("Institutional white")
  524. o50.Position = Vector3.new(-90.0521469, 6.14071035, -3.8750205)
  525. o50.Rotation = Vector3.new(-44.9900017, -90, 0)
  526. o50.FormFactor = Enum.FormFactor.Custom
  527. o50.Size = Vector3.new(1, 1, 0.5)
  528. o50.CFrame = CFrame.new(-90.0521469, 6.14071035, -3.8750205, -1.48057388e-05, -1.44349951e-05, -1.00000834, 0.707015812, 0.707197726, -2.17649958e-05, 0.707203627, -0.707021713, 2.81729399e-07)
  529. o50.BottomSurface = Enum.SurfaceType.Smooth
  530. o50.TopSurface = Enum.SurfaceType.Smooth
  531. o50.Color = Color3.new(1, 1, 1)
  532. o50.Position = Vector3.new(-90.0521469, 6.14071035, -3.8750205)
  533. o51.Parent = o50
  534. o51.CanvasSize = Vector2.new(100, 100)
  535. o52.Parent = o51
  536. o52.Position = UDim2.new(0.10000000149012,0,0.10000000149012,0)
  537. o52.Size = UDim2.new(0.80000001192093,0,0.80000001192093,0)
  538. o52.Position = UDim2.new(0.10000000149012,0,0.10000000149012,0)
  539. o52.BackgroundColor3 = Color3.new(1, 1, 1)
  540. o52.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  541. o52.BorderSizePixel = 0
  542. o53.Parent = o50
  543. o53.Brightness = 0.5
  544. o53.Range = 32
  545. o53.Angle = 60
  546. o54.Parent = o50
  547. o54.C0 = CFrame.new(1.5, 1.5, -5.35000038, 0.707106769, -0.707106769, 2.46918255e-08, 0.707106769, 0.707106769, -5.96113381e-08, 2.46918255e-08, 5.96113381e-08, 1)
  548. o54.Part0 = o19
  549. o54.Part1 = o50
  550. o55.Name = "Light"
  551. o55.Parent = o1
  552. o55.BrickColor = BrickColor.new("Institutional white")
  553. o55.Position = Vector3.new(-90.0521469, 6.14109612, -6.87504578)
  554. o55.Rotation = Vector3.new(-44.9900017, -90, 0)
  555. o55.FormFactor = Enum.FormFactor.Custom
  556. o55.Size = Vector3.new(1, 1, 0.5)
  557. o55.CFrame = CFrame.new(-90.0521469, 6.14109612, -6.87504578, -1.47527098e-05, -1.43069728e-05, -1.00000834, 0.707015812, 0.707197726, -2.16369681e-05, 0.707203627, -0.707021713, 2.28717141e-07)
  558. o55.BottomSurface = Enum.SurfaceType.Smooth
  559. o55.TopSurface = Enum.SurfaceType.Smooth
  560. o55.Color = Color3.new(1, 1, 1)
  561. o55.Position = Vector3.new(-90.0521469, 6.14109612, -6.87504578)
  562. o56.Parent = o55
  563. o56.CanvasSize = Vector2.new(100, 100)
  564. o57.Parent = o56
  565. o57.Position = UDim2.new(0.10000000149012,0,0.10000000149012,0)
  566. o57.Size = UDim2.new(0.80000001192093,0,0.80000001192093,0)
  567. o57.Position = UDim2.new(0.10000000149012,0,0.10000000149012,0)
  568. o57.BackgroundColor3 = Color3.new(1, 1, 1)
  569. o57.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  570. o57.BorderSizePixel = 0
  571. o58.Parent = o55
  572. o58.Brightness = 0.5
  573. o58.Range = 32
  574. o58.Angle = 60
  575. o59.Parent = o55
  576. o59.C0 = CFrame.new(-1.5, 1.5, -5.35000038, 0.707106769, -0.707106769, -2.83364479e-08, 0.707106769, 0.707106769, 6.84102304e-08, -2.83364479e-08, -6.84102304e-08, 1)
  577. o59.Part0 = o19
  578. o59.Part1 = o55
  579. o60.Name = "Configurations"
  580. o60.Parent = o1
  581. o61.Name = "Bounce"
  582. o61.Parent = o60
  583. o61.Value = 100
  584. o62.Name = "Height"
  585. o62.Parent = o60
  586. o62.Value = 3
  587. o63.Name = "Speed"
  588. o63.Parent = o60
  589. o63.Value = 80
  590. o64.Name = "Suspension"
  591. o64.Parent = o60
  592. o64.Value = 4
  593. o65.Name = "TurnSpeed"
  594. o65.Parent = o60
  595. o65.Value = 2
  596. o66.Name = "CarScript"
  597. o66.Parent = o1
  598. table.insert(cors,coroutine.create(function()
  599. wait()
  600. runDummyScript(function()
  601. --Scripted by DermonDarble
  602.  
  603. local car = script.Parent
  604. local stats = car.Configurations
  605. local Raycast = require(script.RaycastModule)
  606.  
  607. local mass = 0
  608.  
  609. for i, v in pairs(car:GetChildren()) do
  610. if v:IsA("BasePart") then
  611. mass = mass + (v:GetMass() * 196.2)
  612. end
  613. end
  614.  
  615. local bodyPosition = car.Chassis.BodyPosition
  616. local bodyGyro = car.Chassis.BodyGyro
  617.  
  618. --local bodyPosition = Instance.new("BodyPosition", car.Chassis)
  619. --bodyPosition.MaxForce = Vector3.new()
  620. --local bodyGyro = Instance.new("BodyGyro", car.Chassis)
  621. --bodyGyro.MaxTorque = Vector3.new()
  622.  
  623. local function UpdateThruster(thruster)
  624. -- Raycasting
  625. local hit, position = Raycast.new(thruster.Position, thruster.CFrame:vectorToWorldSpace(Vector3.new(0, -1, 0)) * stats.Height.Value) --game.Workspace:FindPartOnRay(ray, car)
  626. local thrusterHeight = (position - thruster.Position).magnitude
  627.  
  628. -- Wheel
  629. local wheelWeld = thruster:FindFirstChild("WheelWeld")
  630. wheelWeld.C0 = CFrame.new(0, -math.min(thrusterHeight, stats.Height.Value * 0.8) + (wheelWeld.Part1.Size.Y / 2), 0)
  631. -- Wheel turning
  632. local offset = car.Chassis.CFrame:inverse() * thruster.CFrame
  633. local speed = car.Chassis.CFrame:vectorToObjectSpace(car.Chassis.Velocity)
  634. if offset.Z < 0 then
  635. local direction = 1
  636. if speed.Z > 0 then
  637. direction = -1
  638. end
  639. wheelWeld.C0 = wheelWeld.C0 * CFrame.Angles(0, (car.Chassis.RotVelocity.Y / 2) * direction, 0)
  640. end
  641.  
  642. -- Particles
  643. if hit and thruster.Velocity.magnitude >= 5 then
  644. wheelWeld.Part1.ParticleEmitter.Enabled = true
  645. else
  646. wheelWeld.Part1.ParticleEmitter.Enabled = false
  647. end
  648. end
  649.  
  650. car.DriveSeat.Changed:connect(function(property)
  651. if property == "Occupant" then
  652. if car.DriveSeat.Occupant then
  653. car.EngineBlock.Running.Pitch = 1
  654. car.EngineBlock.Running:Play()
  655. local player = game.Players:GetPlayerFromCharacter(car.DriveSeat.Occupant.Parent)
  656. if player then
  657. car.DriveSeat:SetNetworkOwner(player)
  658. local localCarScript = script.LocalCarScript:Clone()
  659. localCarScript.Parent = player.PlayerGui
  660. localCarScript.Car.Value = car
  661. localCarScript.Disabled = false
  662. end
  663. else
  664. car.EngineBlock.Running:Stop()
  665. end
  666. end
  667. end)
  668.  
  669. --spawn(function()
  670. while true do
  671. game:GetService("RunService").Stepped:wait()
  672. for i, part in pairs(car:GetChildren()) do
  673. if part.Name == "Thruster" then
  674. UpdateThruster(part)
  675. end
  676. end
  677. if car.DriveSeat.Occupant then
  678. local ratio = car.DriveSeat.Velocity.magnitude / stats.Speed.Value
  679. car.EngineBlock.Running.Pitch = 1 + ratio / 4
  680. bodyPosition.MaxForce = Vector3.new()
  681. bodyGyro.MaxTorque = Vector3.new()
  682. else
  683. local hit, position, normal = Raycast.new(car.Chassis.Position, car.Chassis.CFrame:vectorToWorldSpace(Vector3.new(0, -1, 0)) * stats.Height.Value)
  684. if hit and hit.CanCollide then
  685. bodyPosition.MaxForce = Vector3.new(mass / 5, math.huge, mass / 5)
  686. bodyPosition.Position = (CFrame.new(position, position + normal) * CFrame.new(0, 0, -stats.Height.Value + 0.5)).p
  687. bodyGyro.MaxTorque = Vector3.new(math.huge, 0, math.huge)
  688. bodyGyro.CFrame = CFrame.new(position, position + normal) * CFrame.Angles(-math.pi/2, 0, 0)
  689. else
  690. bodyPosition.MaxForce = Vector3.new()
  691. bodyGyro.MaxTorque = Vector3.new()
  692. end
  693. end
  694. end
  695. --end)
  696. end,o66)
  697. end))
  698. o67.Name = "LocalCarScript"
  699. o67.Parent = o66
  700. o67.Disabled = true
  701. table.insert(cors,coroutine.create(function()
  702. wait()
  703. runDummyScript(function()
  704. --local camera = game.Workspace.CurrentCamera
  705. local player = game.Players.LocalPlayer
  706. local character = player.Character
  707. local humanoidRootPart = character.HumanoidRootPart
  708. local car = script:WaitForChild("Car").Value
  709. local stats = car:WaitForChild("Configurations")
  710. local Raycast = require(car.CarScript.RaycastModule)
  711.  
  712. --local cameraType = Enum.CameraType.Follow
  713.  
  714. local movement = Vector2.new()
  715. local gamepadDeadzone = 0.14
  716.  
  717. car.DriveSeat.Changed:connect(function(property)
  718. if property == "Steer" then
  719. movement = Vector2.new(car.DriveSeat.Steer, movement.Y)
  720. elseif property == "Throttle" then
  721. movement = Vector2.new(movement.X, car.DriveSeat.Throttle)
  722. end
  723. end)
  724.  
  725. -- Input begin
  726. --game:GetService("UserInputService").InputBegan:connect(function(inputObject, gameProcessedEvent)
  727. -- if not gameProcessedEvent then
  728. -- if inputObject.KeyCode == Enum.KeyCode.W then
  729. -- movement = Vector2.new(movement.X, 1)
  730. -- elseif inputObject.KeyCode == Enum.KeyCode.A then
  731. -- movement = Vector2.new(-1, movement.Y)
  732. -- elseif inputObject.KeyCode == Enum.KeyCode.S then
  733. -- movement = Vector2.new(movement.X, -1)
  734. -- elseif inputObject.KeyCode == Enum.KeyCode.D then
  735. -- movement = Vector2.new(1, movement.Y)
  736. -- end
  737. -- end
  738. --end)
  739. --
  740. --game:GetService("UserInputService").InputChanged:connect(function(inputObject, gameProcessedEvent)
  741. -- --if not gameProcessedEvent then
  742. -- if inputObject.KeyCode == Enum.KeyCode.Thumbstick1 then
  743. -- --Gamepad support because yay
  744. -- if inputObject.Position.magnitude >= gamepadDeadzone then
  745. -- movement = Vector2.new(movement.X, inputObject.Position.Y)
  746. -- else
  747. -- movement = Vector2.new(movement.X, 0)
  748. -- end
  749. -- elseif inputObject.KeyCode == Enum.KeyCode.Thumbstick2 then
  750. -- if inputObject.Position.magnitude >= gamepadDeadzone then
  751. -- movement = Vector2.new(inputObject.Position.X, movement.Y)
  752. -- else
  753. -- movement = Vector2.new(0, movement.Y)
  754. -- end
  755. -- end
  756. -- --end
  757. --end)
  758. --
  759. ---- Input end
  760. --game:GetService("UserInputService").InputEnded:connect(function(inputObject, gameProcessedEvent)
  761. -- if inputObject.KeyCode == Enum.KeyCode.W then
  762. -- if movement.Y == 1 then
  763. -- movement = Vector2.new(movement.X, 0)
  764. -- end
  765. -- elseif inputObject.KeyCode == Enum.KeyCode.A then
  766. -- if movement.X == -1 then
  767. -- movement = Vector2.new(0, movement.Y)
  768. -- end
  769. -- elseif inputObject.KeyCode == Enum.KeyCode.S then
  770. -- if movement.Y == -1 then
  771. -- movement = Vector2.new(movement.X, 0)
  772. -- end
  773. -- elseif inputObject.KeyCode == Enum.KeyCode.D then
  774. -- if movement.X == 1 then
  775. -- movement = Vector2.new(0, movement.Y)
  776. -- end
  777. -- end
  778. --end)
  779.  
  780. local force = 0
  781. local damping = 0
  782.  
  783. local mass = 0
  784.  
  785. for i, v in pairs(car:GetChildren()) do
  786. if v:IsA("BasePart") then
  787. mass = mass + (v:GetMass() * 196.2)
  788. end
  789. end
  790.  
  791. force = mass * stats.Suspension.Value
  792. damping = force / stats.Bounce.Value
  793.  
  794. local bodyVelocity = Instance.new("BodyVelocity", car.Chassis)
  795. bodyVelocity.velocity = Vector3.new(0, 0, 0)
  796. bodyVelocity.maxForce = Vector3.new(0, 0, 0)
  797.  
  798. local bodyAngularVelocity = Instance.new("BodyAngularVelocity", car.Chassis)
  799. bodyAngularVelocity.angularvelocity = Vector3.new(0, 0, 0)
  800. bodyAngularVelocity.maxTorque = Vector3.new(0, 0, 0)
  801.  
  802. local rotation = 0
  803.  
  804. local function UpdateThruster(thruster)
  805. --Make sure we have a bodythrust to move the wheel
  806. local bodyThrust = thruster:FindFirstChild("BodyThrust")
  807. if not bodyThrust then
  808. bodyThrust = Instance.new("BodyThrust", thruster)
  809. end
  810. --Do some raycasting to get the height of the wheel
  811. local hit, position = Raycast.new(thruster.Position, thruster.CFrame:vectorToWorldSpace(Vector3.new(0, -1, 0)) * stats.Height.Value)
  812. local thrusterHeight = (position - thruster.Position).magnitude
  813. if hit and hit.CanCollide then
  814. --If we're on the ground, apply some forces to push the wheel up
  815. bodyThrust.force = Vector3.new(0, ((stats.Height.Value - thrusterHeight)^2) * (force / stats.Height.Value^2), 0)
  816. local thrusterDamping = thruster.CFrame:toObjectSpace(CFrame.new(thruster.Velocity + thruster.Position)).p * damping
  817. bodyThrust.force = bodyThrust.force - Vector3.new(0, thrusterDamping.Y, 0)
  818. else
  819. bodyThrust.force = Vector3.new(0, 0, 0)
  820. end
  821.  
  822. --Wheels
  823. local wheelWeld = thruster:FindFirstChild("WheelWeld")
  824. if wheelWeld then
  825. wheelWeld.C0 = CFrame.new(0, -math.min(thrusterHeight, stats.Height.Value * 0.8) + (wheelWeld.Part1.Size.Y / 2), 0)
  826. -- Wheel turning
  827. local offset = car.Chassis.CFrame:inverse() * thruster.CFrame
  828. local speed = car.Chassis.CFrame:vectorToObjectSpace(car.Chassis.Velocity)
  829. if offset.Z < 0 then
  830. local direction = 1
  831. if speed.Z > 0 then
  832. direction = -1
  833. end
  834. wheelWeld.C0 = wheelWeld.C0 * CFrame.Angles(0, (car.Chassis.RotVelocity.Y / 2) * direction, 0)
  835. end
  836. wheelWeld.C0 = wheelWeld.C0 * CFrame.Angles(rotation, 0, 0)
  837. end
  838. end
  839.  
  840. --A simple function to check if the car is grounded
  841. local function IsGrounded()
  842. local hit, position = Raycast.new((car.Chassis.CFrame * CFrame.new(0, 0, (car.Chassis.Size.Z / 2) - 1)).p, car.Chassis.CFrame:vectorToWorldSpace(Vector3.new(0, -1, 0)) * (stats.Height.Value + 0.2))
  843. if hit and hit.CanCollide then
  844. return(true)
  845. end
  846. return(false)
  847. end
  848.  
  849. --local oldCameraType = camera.CameraType
  850. --camera.CameraType = cameraType
  851.  
  852. --spawn(function()
  853. while game:GetService("RunService").Heartbeat:wait() and car:FindFirstChild("DriveSeat") and character.Humanoid.SeatPart == car.DriveSeat do
  854. --game:GetService("RunService").RenderStepped:wait()
  855. if IsGrounded() then
  856. if movement.Y ~= 0 then
  857. local velocity = humanoidRootPart.CFrame.lookVector * movement.Y * stats.Speed.Value
  858. humanoidRootPart.Velocity = humanoidRootPart.Velocity:Lerp(velocity, 0.1)
  859. bodyVelocity.maxForce = Vector3.new(0, 0, 0)
  860. else
  861. bodyVelocity.maxForce = Vector3.new(mass / 2, mass / 4, mass / 2)
  862. end
  863. local rotVelocity = humanoidRootPart.CFrame:vectorToWorldSpace(Vector3.new(movement.Y * stats.Speed.Value / 50, 0, -humanoidRootPart.RotVelocity.Y * 5 * movement.Y))
  864. local speed = -humanoidRootPart.CFrame:vectorToObjectSpace(humanoidRootPart.Velocity).unit.Z
  865. rotation = rotation + math.rad((-stats.Speed.Value / 5) * movement.Y)
  866. if math.abs(speed) > 0.1 then
  867. rotVelocity = rotVelocity + humanoidRootPart.CFrame:vectorToWorldSpace((Vector3.new(0, -movement.X * speed * stats.TurnSpeed.Value, 0)))
  868. bodyAngularVelocity.maxTorque = Vector3.new(0, 0, 0)
  869. else
  870. bodyAngularVelocity.maxTorque = Vector3.new(mass / 4, mass / 2, mass / 4)
  871. end
  872. humanoidRootPart.RotVelocity = humanoidRootPart.RotVelocity:Lerp(rotVelocity, 0.1)
  873.  
  874. --bodyVelocity.maxForce = Vector3.new(mass / 3, mass / 6, mass / 3)
  875. --bodyAngularVelocity.maxTorque = Vector3.new(mass / 6, mass / 3, mass / 6)
  876. else
  877. bodyVelocity.maxForce = Vector3.new(0, 0, 0)
  878. bodyAngularVelocity.maxTorque = Vector3.new(0, 0, 0)
  879. end
  880.  
  881. for i, part in pairs(car:GetChildren()) do
  882. if part.Name == "Thruster" then
  883. UpdateThruster(part)
  884. end
  885. end
  886. end
  887. for i, v in pairs(car:GetChildren()) do
  888. if v:FindFirstChild("BodyThrust") then
  889. v.BodyThrust:Destroy()
  890. end
  891. end
  892. bodyVelocity:Destroy()
  893. bodyAngularVelocity:Destroy()
  894. --camera.CameraType = oldCameraType
  895. script:Destroy()
  896. --end)
  897. end,o67)
  898. end))
  899. o68.Name = "Car"
  900. o68.Parent = o67
  901. o71.Parent = mas
  902. o71.Transparency = 0.5
  903. o71.Texture = "http://www.roblox.com/asset/?id=259149256"
  904. o71.Face = Enum.NormalId.Top
  905. o71.StudsPerTileU = 3
  906. o71.StudsPerTileV = 3
  907. o72.Parent = mas
  908. o72.Transparency = 0.5
  909. o72.Texture = "http://www.roblox.com/asset/?id=259149256"
  910. o72.StudsPerTileU = 3
  911. o72.StudsPerTileV = 3
  912. o73.Parent = mas
  913. o73.Transparency = 0.5
  914. o73.Texture = "http://www.roblox.com/asset/?id=259149256"
  915. o73.Face = Enum.NormalId.Back
  916. o73.StudsPerTileU = 3
  917. o73.StudsPerTileV = 3
  918. o74.Parent = mas
  919. o74.Transparency = 0.5
  920. o74.Texture = "http://www.roblox.com/asset/?id=259149256"
  921. o74.Face = Enum.NormalId.Bottom
  922. o74.StudsPerTileU = 3
  923. o74.StudsPerTileV = 3
  924. o75.Parent = mas
  925. o75.Transparency = NumberSequence.new(1,0.80000001192093,0.66874998807907,0.67500001192093,0.8125,1)
  926. o75.Rotation = NumberRange.new(0,360)
  927. o75.Size = NumberSequence.new(0,0.53763401508331,0.80645102262497,0.91397798061371)
  928. o75.Color = ColorSequence.new(Color3.new(0.121569, 0.121569, 0.121569),Color3.new(0.121569, 0.121569, 0.121569))
  929. o75.Enabled = false
  930. o75.LightEmission = 0.20000000298023
  931. o75.Texture = "rbxassetid://287259619"
  932. o75.Acceleration = Vector3.new(0, -5, 0)
  933. o75.Lifetime = NumberRange.new(0.80000001192093,1.2000000476837)
  934. o75.Rate = 50
  935. o75.RotSpeed = NumberRange.new(-200,200)
  936. o75.Speed = NumberRange.new(0,0)
  937. o75.VelocitySpread = 40
  938. o77.Parent = mas
  939. o77.Transparency = 0.5
  940. o77.Texture = "http://www.roblox.com/asset/?id=259149256"
  941. o77.Face = Enum.NormalId.Top
  942. o77.StudsPerTileU = 3
  943. o77.StudsPerTileV = 3
  944. o78.Parent = mas
  945. o78.Transparency = 0.5
  946. o78.Texture = "http://www.roblox.com/asset/?id=259149256"
  947. o78.StudsPerTileU = 3
  948. o78.StudsPerTileV = 3
  949. o79.Parent = mas
  950. o79.Transparency = 0.5
  951. o79.Texture = "http://www.roblox.com/asset/?id=259149256"
  952. o79.Face = Enum.NormalId.Back
  953. o79.StudsPerTileU = 3
  954. o79.StudsPerTileV = 3
  955. o80.Parent = mas
  956. o80.Transparency = 0.5
  957. o80.Texture = "http://www.roblox.com/asset/?id=259149256"
  958. o80.Face = Enum.NormalId.Bottom
  959. o80.StudsPerTileU = 3
  960. o80.StudsPerTileV = 3
  961. o81.Parent = mas
  962. o81.Transparency = NumberSequence.new(1,0.80000001192093,0.66874998807907,0.67500001192093,0.8125,1)
  963. o81.Rotation = NumberRange.new(0,360)
  964. o81.Size = NumberSequence.new(0,0.53763401508331,0.80645102262497,0.91397798061371)
  965. o81.Color = ColorSequence.new(Color3.new(0.121569, 0.121569, 0.121569),Color3.new(0.121569, 0.121569, 0.121569))
  966. o81.Enabled = false
  967. o81.LightEmission = 0.20000000298023
  968. o81.Texture = "rbxassetid://287259619"
  969. o81.Acceleration = Vector3.new(0, -5, 0)
  970. o81.Lifetime = NumberRange.new(0.80000001192093,1.2000000476837)
  971. o81.Rate = 50
  972. o81.RotSpeed = NumberRange.new(-200,200)
  973. o81.Speed = NumberRange.new(0,0)
  974. o81.VelocitySpread = 40
  975. o82.Name = "BackRightWheel-to-Part Strong Joint"
  976. o82.Parent = mas
  977. o82.C0 = CFrame.new(-0.75, -1.5, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  978. o82.C1 = CFrame.new(1.75003052, -3.75, -0.25, 1, 4.10206211e-13, 6.65956179e-12, 4.10206211e-13, 1, -1.22345227e-08, 6.65956179e-12, -1.22345227e-08, 1)
  979. o82.Part0 = mas
  980. o82.Part1 = o37
  981. o84.Parent = mas
  982. o84.Transparency = 0.5
  983. o84.Texture = "http://www.roblox.com/asset/?id=259149256"
  984. o84.Face = Enum.NormalId.Top
  985. o84.StudsPerTileU = 3
  986. o84.StudsPerTileV = 3
  987. o85.Parent = mas
  988. o85.Transparency = 0.5
  989. o85.Texture = "http://www.roblox.com/asset/?id=259149256"
  990. o85.StudsPerTileU = 3
  991. o85.StudsPerTileV = 3
  992. o86.Parent = mas
  993. o86.Transparency = 0.5
  994. o86.Texture = "http://www.roblox.com/asset/?id=259149256"
  995. o86.Face = Enum.NormalId.Back
  996. o86.StudsPerTileU = 3
  997. o86.StudsPerTileV = 3
  998. o87.Parent = mas
  999. o87.Transparency = 0.5
  1000. o87.Texture = "http://www.roblox.com/asset/?id=259149256"
  1001. o87.Face = Enum.NormalId.Bottom
  1002. o87.StudsPerTileU = 3
  1003. o87.StudsPerTileV = 3
  1004. o88.Parent = mas
  1005. o88.Transparency = NumberSequence.new(1,0.80000001192093,0.66874998807907,0.67500001192093,0.8125,1)
  1006. o88.Rotation = NumberRange.new(0,360)
  1007. o88.Size = NumberSequence.new(0,0.53763401508331,0.80645102262497,0.91397798061371)
  1008. o88.Color = ColorSequence.new(Color3.new(0.121569, 0.121569, 0.121569),Color3.new(0.121569, 0.121569, 0.121569))
  1009. o88.Enabled = false
  1010. o88.LightEmission = 0.20000000298023
  1011. o88.Texture = "rbxassetid://287259619"
  1012. o88.Acceleration = Vector3.new(0, -5, 0)
  1013. o88.Lifetime = NumberRange.new(0.80000001192093,1.2000000476837)
  1014. o88.Rate = 50
  1015. o88.RotSpeed = NumberRange.new(-200,200)
  1016. o88.Speed = NumberRange.new(0,0)
  1017. o88.VelocitySpread = 40
  1018. o89.Name = "DriveSeat"
  1019. o89.Parent = o1
  1020. o89.BrickColor = BrickColor.new("Institutional white")
  1021. o89.Position = Vector3.new(-95.8021698, 5.24078846, -5.37514734)
  1022. o89.Rotation = Vector3.new(0.00999999978, -90, 0)
  1023. o89.Size = Vector3.new(2, 0.200000003, 2)
  1024. o89.CFrame = CFrame.new(-95.8021698, 5.24078846, -5.37514734, -2.75400708e-07, -3.06588809e-05, -1.00000834, -0.000129914741, 1, -3.17474696e-05, 1.00000834, 0.000129916094, 2.67161425e-07)
  1025. o89.TopSurface = Enum.SurfaceType.Smooth
  1026. o89.Color = Color3.new(1, 1, 1)
  1027. o89.Position = Vector3.new(-95.8021698, 5.24078846, -5.37514734)
  1028. o90.Name = "Snas"
  1029. o90.Parent = o1
  1030. o90.BrickColor = BrickColor.new("Institutional white")
  1031. o90.Position = Vector3.new(-89.2642441, 5.96799755, -5.44099283)
  1032. o90.Rotation = Vector3.new(0, -87.2300034, 0)
  1033. o90.CanCollide = false
  1034. o90.Size = Vector3.new(3.16999841, 2.61999774, 2.21000051)
  1035. o90.CFrame = CFrame.new(-89.2642441, 5.96799755, -5.44099283, 0.0487278476, 1.96560723e-06, -0.998828769, 9.64708988e-08, 1, -2.07737685e-07, 0.998828709, -8.5687482e-08, 0.0487289354)
  1036. o90.BottomSurface = Enum.SurfaceType.Smooth
  1037. o90.TopSurface = Enum.SurfaceType.Smooth
  1038. o90.Color = Color3.new(1, 1, 1)
  1039. o90.Position = Vector3.new(-89.2642441, 5.96799755, -5.44099283)
  1040. o91.Parent = o90
  1041. o91.MeshId = "rbxassetid://430073345"
  1042. o91.TextureId = "rbxassetid://430073362"
  1043. o91.MeshType = Enum.MeshType.FileMesh
  1044. o92.Parent = o90
  1045. o92.C0 = CFrame.new(0, -0.25, 5.25, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1046. o93.Parent = o90
  1047. o93.C0 = CFrame.new(0.789992809, -1.53996801, 1.53996801, -0, 0, 0.99999994, 0, 1, 0, -0.99999994, 0, -0)
  1048. o93.C1 = CFrame.new(-1.82180977, -3.86690402, 3.59323883, 0.0487277359, 0.000127559426, 0.998820424, 2.25820932e-05, 1, -0.000128758358, -0.998820484, 2.77420258e-05, 0.0487282723)
  1049. o93.Part0 = mas
  1050. o93.Part1 = o90
  1051. o94.Parent = o90
  1052. o94.C0 = CFrame.new(-2.5, 0.25, 0.25, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  1053. o94.C1 = CFrame.new(-2.48677921, -1.32677698, 1.01785278, -0.998820424, -0.0487277284, 0.000127559411, 0.000128758358, -2.25820913e-05, 1, -0.048728276, 0.998820484, 2.77420295e-05)
  1054. o94.Part0 = o8
  1055. o94.Part1 = o90
  1056. o95.Name = "End life"
  1057. o95.Parent = o90
  1058. table.insert(cors,coroutine.create(function()
  1059. wait()
  1060. runDummyScript(function()
  1061. script.Parent.Touched:Connect(function(hit)
  1062. if hit.Parent:FindFirstChild("Humanoid") then
  1063. hit.Parent:BreakJoints()
  1064. end
  1065. end)
  1066.  
  1067. end,o95)
  1068. end))
  1069. o96.Parent = o90
  1070. o96.SoundId = "rbxassetid://358280695"
  1071. o96.Volume = 5
  1072. o96.Looped = true
  1073. mas.Parent = workspace
  1074. mas:MakeJoints()
  1075. local mas1 = mas:GetChildren()
  1076. for i=1,#mas1 do
  1077. mas1[i].Parent = workspace
  1078. ypcall(function() mas1[i]:MakeJoints() end)
  1079. end
  1080. mas:Destroy()
  1081. for i=1,#cors do
  1082. coroutine.resume(cors[i])
  1083. end
Add Comment
Please, Sign In to add comment