Advertisement
yougotoof

ad

Dec 29th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 51.96 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do
  6. print("FE Compatibility code by Mokiros")
  7. local rp = RealPlayer
  8. script.Parent = rp.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent then
  34. for _,f in pairs(t.Functions) do
  35. f(...)
  36. end
  37. end
  38. end
  39. m.TrigEvent = te
  40. UIS.TrigEvent = te
  41.  
  42. Event.OnServerEvent:Connect(function(plr,io)
  43. if plr~=rp then return end
  44. m.Target = io.Target
  45. m.Hit = io.Hit
  46. if not io.isMouse then
  47. local b = io.UserInputState == Enum.UserInputState.Begin
  48. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  49. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  50. end
  51. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  52. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  53. end
  54. for _,t in pairs(CAS.Actions) do
  55. for _,k in pairs(t.Keys) do
  56. if k==io.KeyCode then
  57. t.Function(t.Name,io.UserInputState,io)
  58. end
  59. end
  60. end
  61. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  62. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  63. end
  64. end)
  65. Event.Parent = NLS([==[
  66. local Player = game:GetService("Players").LocalPlayer
  67. local Event = script:WaitForChild("UserInput_Event")
  68.  
  69. local Mouse = Player:GetMouse()
  70. local UIS = game:GetService("UserInputService")
  71. local input = function(io,a)
  72. if a then return end
  73. --Since InputObject is a client-side instance, we create and pass table instead
  74. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  75. end
  76. UIS.InputBegan:Connect(input)
  77. UIS.InputEnded:Connect(input)
  78.  
  79. local h,t
  80. --Give the server mouse data 30 times every second, but only if the values changed
  81. --If player is not moving their mouse, client won't fire events
  82. while wait(1/30) do
  83. if h~=Mouse.Hit or t~=Mouse.Target then
  84. h,t=Mouse.Hit,Mouse.Target
  85. Event:FireServer({isMouse=true,Target=t,Hit=h})
  86. end
  87. end]==],Player.Character)
  88.  
  89. ----Sandboxed game object that allows the usage of client-side methods and services
  90. --Real game object
  91. local _rg = game
  92.  
  93. --Metatable for fake service
  94. local fsmt = {
  95. __index = function(self,k)
  96. local s = rawget(self,"_RealService")
  97. if s then
  98. return typeof(s[k])=="function"
  99. and function(_,...)return s[k](s,...)end or s[k]
  100. end
  101. end,
  102. __newindex = function(self,k,v)
  103. local s = rawget(self,"_RealService")
  104. if s then s[k]=v end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return rawget(self,s) or _rg:GetService(s)
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. RunService = FakeService({
  123. _btrs = {},
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126. self._btrs[name] = self.Heartbeat:Connect(fun)
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132. }
  133. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  134. g.service = g.GetService
  135. FakeService(g,game)
  136. --Changing owner to fake player object to support owner:GetMouse()
  137. game,owner = g,g.Players.LocalPlayer
  138. end
  139.  
  140. _G.mantisReload = function()
  141.  
  142. local plr = game:service'Players'.LocalPlayer
  143. local pg = plr:WaitForChild("PlayerGui")
  144. local mouse = plr:GetMouse()
  145. local char = plr.Character
  146. local root = char:WaitForChild'HumanoidRootPart'
  147. local head = char:WaitForChild'Head'
  148. local tor = char:WaitForChild'Torso'
  149. local la,ra = char["Left Arm"],char["Right Arm"]
  150. local ll,rl = char["Left Leg"],char["Right Leg"]
  151. tor.CFrame = tor.CFrame + Vector3.new(0,5,0)
  152.  
  153. local hum = char.Humanoid
  154. local step = game:GetService("RunService").RenderStepped
  155.  
  156. pcall(function() workspace["vmodel"..plr.Name]:Destroy() end)
  157. pcall(function() pg.bgui:Destroy() end)
  158. if not script:IsA("ModuleScript") then
  159. pcall(function() script.Parent.vehicularScript:Destroy() end)
  160. script.Name = "vehicularScript"
  161. end
  162.  
  163. local sg = Instance.new("ScreenGui",pg)
  164. sg.Name = "bgui"
  165. local p = Instance.new("ImageLabel",sg)
  166. p.Size = UDim2.new(0,6,0,6)
  167. p.Position = UDim2.new(.5,-3,.5,-3)
  168. p.BackgroundColor3 = Color3.new(1,1,1)
  169. p.BackgroundTransparency = .6
  170. local p2 = p:Clone()
  171. p2.Parent = sg
  172. p2.Rotation = 45
  173. local m = Instance.new("Model",workspace)
  174. m.Name = "vmodel"..plr.Name
  175. Instance.new("Humanoid",m).Name = "Shadow"
  176. local hval = Instance.new("NumberValue",m)
  177. hval.Value = 100
  178. hval.Name = "hp"
  179.  
  180. function weld(a,b,c,d)
  181. local w = Instance.new("Motor6D",a)
  182. w.Part0,w.Part1,w.C0,w.C1 = a,b,c or CFrame.new(),d or CFrame.new()
  183. return w
  184. end
  185.  
  186. do
  187. local function QuaternionFromCFrame(cf)
  188. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  189. local trace = m00 + m11 + m22
  190. if trace > 0 then
  191. local s = math.sqrt(1 + trace)
  192. local recip = 0.5/s
  193. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  194. else
  195. local i = 0
  196. if m11 > m00 then
  197. i = 1
  198. end
  199. if m22 > (i == 0 and m00 or m11) then
  200. i = 2
  201. end
  202. if i == 0 then
  203. local s = math.sqrt(m00-m11-m22+1)
  204. local recip = 0.5/s
  205. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  206. elseif i == 1 then
  207. local s = math.sqrt(m11-m22-m00+1)
  208. local recip = 0.5/s
  209. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  210. elseif i == 2 then
  211. local s = math.sqrt(m22-m00-m11+1)
  212. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  213. end
  214. end
  215. end
  216. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  217. local xs, ys, zs = x + x, y + y, z + z
  218. local wx, wy, wz = w*xs, w*ys, w*zs
  219. local xx = x*xs
  220. local xy = x*ys
  221. local xz = x*zs
  222. local yy = y*ys
  223. local yz = y*zs
  224. local zz = z*zs
  225. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  226. end
  227. local function QuaternionSlerp(a, b, t)
  228. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  229. local startInterp, finishInterp;
  230. if cosTheta >= 0.0001 then
  231. if (1 - cosTheta) > 0.0001 then
  232. local theta = math.acos(cosTheta)
  233. local invSinTheta = 1/math.sin(theta)
  234. startInterp = math.sin((1-t)*theta)*invSinTheta
  235. finishInterp = math.sin(t*theta)*invSinTheta
  236. else
  237. startInterp = 1-t
  238. finishInterp = t
  239. end
  240. else
  241. if (1+cosTheta) > 0.0001 then
  242. local theta = math.acos(-cosTheta)
  243. local invSinTheta = 1/math.sin(theta)
  244. startInterp = math.sin((t-1)*theta)*invSinTheta
  245. finishInterp = math.sin(t*theta)*invSinTheta
  246. else
  247. startInterp = t-1
  248. finishInterp = t
  249. end
  250. end
  251. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  252. end
  253. function clerp(a,b,t)
  254. local qa = {QuaternionFromCFrame(a)}
  255. local qb = {QuaternionFromCFrame(b)}
  256. local ax, ay, az = a.x, a.y, a.z
  257. local bx, by, bz = b.x, b.y, b.z
  258. local _t = 1-t
  259. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  260. end
  261. end
  262.  
  263. function lerp(a,b,t)
  264. return a+(b-a)*t
  265. end
  266.  
  267. local cancollide = true
  268. local par = m
  269. function Part(Part0,C0,C1,Size,Color,Ref,Trans,Mesh,Material)
  270. local p = Instance.new("Part",par)
  271. p.FormFactor = "Custom"
  272. p.TopSurface,p.BottomSurface,p.BackSurface,p.FrontSurface,p.RightSurface,p.LeftSurface = 10,10,10,10,10,10
  273. p.Size = Size or Vector3.new()
  274. p.Material = "SmoothPlastic"
  275. p.CanCollide = cancollide
  276. p.Locked = true
  277. if p.Size ~= Size or Mesh then
  278. local bm = Mesh or Instance.new("BlockMesh")
  279. bm.Parent = p
  280. bm.Scale = Size/p.Size*bm.Scale
  281. bm.Parent = p
  282. end
  283. p.BrickColor = Color or BrickColor.new(1001)
  284. p.Reflectance = Ref or 0
  285. p.Transparency = Trans or 0
  286. p.Material = Material or p.Material
  287. local w;
  288. if Part0 then
  289. w = weld(Part0,p,C0,C1)
  290. end
  291. return p,w
  292. end
  293.  
  294. function Mesh(type,scale,arg1,arg2,arg3,arg4,arg5)
  295. local m = Instance.new(type)
  296. m.Scale = scale or Vector3.new(1,1,1)
  297. if type == "SpecialMesh" then
  298. m.MeshType = arg1
  299. if arg1=="FileMesh" then
  300. m.MeshId = arg2 or m.MeshId
  301. m.TextureId = arg3 or m.TextureId
  302. m.Offset = arg4 or m.Offset
  303. m.VertexColor = arg5 or m.VertexColor
  304. else
  305. m.VertexColor = arg3 or m.VertexColor
  306. m.Offset = arg2 or m.Offset
  307. end
  308. else
  309. m.Offset = arg1 or m.Offset
  310. m.VertexColor = arg2 or m.VertexColor
  311. end
  312. return m
  313. end
  314.  
  315. local b = BrickColor.new
  316. local cols = {b(21),b(23),b(141),b(104),b(106),b(24),b(9),b(5)}
  317. function gcol(plr)
  318. if teamColorsEnabled and pcall(function() assert(plr.AccountAge ~= nil) end) and not plr.Neutral then
  319. return plr.TeamColor.Color
  320. else
  321. local v=0;
  322. local n=tostring(plr);
  323. local a=#n;
  324. for i in n:gmatch(".") do
  325. v = v + ((a+(#n%2==1 and -1 or 0))%4 > 1 and -1 or 1)*i:byte()
  326. a = a - 1
  327. end
  328. return cols[(v%8)+1].Color
  329. end
  330. end
  331.  
  332.  
  333. local body = BrickColor.new("Really Lime green")
  334. local body2 = BrickColor.new("Institutional white")
  335. local body3 = BrickColor.new("Really Lime green")
  336. local bodyref = .2
  337. local body2ref = .2
  338. local body3ref = .5
  339.  
  340. local pipe = BrickColor.new("Dark stone grey")
  341. local pipe2 = body2--BrickColor.new("Institutional white")
  342. local pipe3 = body--BrickColor.new("Really Lime green")
  343. local piperef = .25
  344. local pipe2ref = .2
  345. local pipe3ref = .25
  346.  
  347. hum.Sit = true
  348.  
  349.  
  350. local fc = Instance.new("Model",m)
  351. par = fc
  352. local tr = Part(tor,CFrame.new(),CFrame.new(),Vector3.new(),BrickColor.new(),0,1)
  353. tr.Name = "Torso"
  354. Part(tr,CFrame.new(),CFrame.new(),Vector3.new(),BrickColor.new(),0,1).Name = "Head"
  355. Part(ra,CFrame.new(),CFrame.new(),Vector3.new(),ra.BrickColor,0,0).Name = "Right Arm"
  356. Part(la,CFrame.new(),CFrame.new(),Vector3.new(),la.BrickColor,0,0).Name = "Left Arm"
  357. Part(rl,CFrame.new(),CFrame.new(),Vector3.new(),rl.BrickColor,0,0).Name = "Right Leg"
  358. Part(ll,CFrame.new(),CFrame.new(),Vector3.new(),ll.BrickColor,0,0).Name = "Left Leg"
  359. local hm = Instance.new("Humanoid",fc)
  360. hm.MaxHealth = math.huge
  361. hm.PlatformStand = true
  362. for i,v in pairs(char:GetChildren()) do
  363. if v:IsA("Clothing") or v:IsA("CharacterMesh") then
  364. v:Clone().Parent = fc
  365. if v:IsA("Shirt") then
  366. pcall(game.Destroy,tr:FindFirstChild("Mesh"))
  367. pcall(game.Destroy,fc["Right Arm"]:FindFirstChild("Mesh"))
  368. pcall(game.Destroy,fc["Left Arm"]:FindFirstChild("Mesh"))
  369. elseif v:IsA("Pants") then
  370. pcall(game.Destroy,tr:FindFirstChild("Mesh"))
  371. pcall(game.Destroy,fc["Right Leg"]:FindFirstChild("Mesh"))
  372. pcall(game.Destroy,fc["Left Leg"]:FindFirstChild("Mesh"))
  373. end
  374. end
  375. end
  376. local h = Instance.new("Hat",fc)
  377. par = h
  378. Part(tr,CFrame.new(),CFrame.new(),Vector3.new(),BrickColor.new(),0,1).Name = "Handle"
  379. par = m
  380.  
  381. local main,mainweld = Part(tor,CFrame.new(0,-2.25,0)*CFrame.Angles(0,0,0),CFrame.new(0,0,0),Vector3.new(3,1,2),body,bodyref,0)
  382. Part(main,CFrame.new(0,.5,-.4),CFrame.new(),Vector3.new(2.3,.2,1.3),body2,0,0)
  383. local p = Part(main,CFrame.new(0,-.5,1)*CFrame.Angles(-1.4,0,0)*CFrame.new(0,.5,1.25),CFrame.new(),Vector3.new(2.3,.75,2.5),body,bodyref)
  384. Part(p,CFrame.new(0,.375,0),CFrame.new(),Vector3.new(2.2,.2,1.4),body2,0,0)
  385. p = Part(p,CFrame.new(0,-.375,1.25)*CFrame.Angles(-.15,0,0)*CFrame.new(0,.375,.8),CFrame.new(),Vector3.new(2.3,.75,1.6),body,bodyref)
  386. p.CanCollide = false
  387. Part(p,CFrame.new(0,.375,0),CFrame.new(),Vector3.new(2.2,.2,1.2),body2,0,0).CanCollide = false
  388. local back = Part(main,CFrame.new(0,1.4,1)*CFrame.Angles(.15,math.pi,0),CFrame.new(),Vector3.new(2,2,3),body,bodyref,0,Mesh("SpecialMesh",Vector3.new(3,3.8,6.5),"FileMesh","rbxassetid://9944765"))
  389. Part(main,CFrame.new(0,-.5,1.75)*CFrame.Angles(-1.1,0,0)*CFrame.new(0,.5,1.25),CFrame.new(),Vector3.new(1.75,1.5,2.25),body,bodyref)
  390. Part(main,CFrame.new(0,0,1.25),CFrame.new(),Vector3.new(1.75,1.1,1.5),body,bodyref)
  391. local p = Part(main,CFrame.new(0,.5,-1)*CFrame.Angles(-.2,0,0)*CFrame.new(0,-.375,-.5),CFrame.new(),Vector3.new(2.75,.75,1),body,bodyref)
  392. Part(p,CFrame.new(0,.375,.05),CFrame.new(),Vector3.new(2.3,.2,.95),body2,0,0)
  393. Part(p,CFrame.new(0,.8,-.45),CFrame.new(),Vector3.new(2.3,1,.3),body2,0,0)
  394. Part(p,CFrame.new(0,1.5,-.4)*CFrame.Angles(.2,0,0),CFrame.new(),Vector3.new(2.3,.5,.3),body2,0,0)
  395. local p = Part(main,CFrame.new(0,2.1,-2.9)*CFrame.Angles(.9,0,0),CFrame.new(),Vector3.new(1.5,2.5,1),body,bodyref,0)
  396. local p = Part(p,CFrame.new(0,1.25,.5)*CFrame.Angles(-.9,0,0)*CFrame.new(0,.5,-.7),CFrame.new(),Vector3.new(1.501,1,1.4),body,bodyref,0)
  397. local h = Part(p,CFrame.new(.4,-.2,.7)*CFrame.Angles(0,1.425,0)*CFrame.new(.175,0,.9),CFrame.new(),Vector3.new(.35,.35,1.8),body,bodyref,0)
  398. Part(h,CFrame.new(0,0,.225),CFrame.new(),Vector3.new(.4,.4,1.3),body2,body2ref,0)
  399. Part(h,CFrame.new(0,0,.9),CFrame.new(),Vector3.new(.45,.45,.1),body3,body3ref,0)
  400. Part(h,CFrame.new(0,0,-.45),CFrame.new(),Vector3.new(.425,.425,.1),body3,body3ref,0)
  401. Part(h,CFrame.new(0,0,.75),CFrame.new(),Vector3.new(.415,.415,.025),body3,body3ref,0)
  402. Part(h,CFrame.new(0,0,.6),CFrame.new(),Vector3.new(.415,.415,.025),body3,body3ref,0)
  403. Part(h,CFrame.new(0,0,.45),CFrame.new(),Vector3.new(.415,.415,.025),body3,body3ref,0)
  404. Part(h,CFrame.new(0,0,.3),CFrame.new(),Vector3.new(.415,.415,.025),body3,body3ref,0)
  405. Part(h,CFrame.new(0,0,.15),CFrame.new(),Vector3.new(.415,.415,.025),body3,body3ref,0)
  406. Part(h,CFrame.new(0,0,0),CFrame.new(),Vector3.new(.415,.415,.025),body3,body3ref,0)
  407. Part(h,CFrame.new(0,0,-.15),CFrame.new(),Vector3.new(.415,.415,.025),body3,body3ref,0)
  408. Part(h,CFrame.new(0,0,-.3),CFrame.new(),Vector3.new(.415,.415,.025),body3,body3ref,0)
  409. local h = Part(p,CFrame.new(-.4,-.2,.7)*CFrame.Angles(0,-1.425,0)*CFrame.new(-.175,0,.9),CFrame.new(),Vector3.new(.35,.35,1.8),body,bodyref,0)
  410. Part(h,CFrame.new(0,0,.225),CFrame.new(),Vector3.new(.4,.4,1.3),body2,body2ref,0)
  411. Part(h,CFrame.new(0,0,.9),CFrame.new(),Vector3.new(.45,.45,.1),body3,body3ref,0)
  412. Part(h,CFrame.new(0,0,-.45),CFrame.new(),Vector3.new(.425,.425,.1),body3,body3ref,0)
  413. Part(h,CFrame.new(0,0,.75),CFrame.new(),Vector3.new(.415,.415,.025),body3,body3ref,0)
  414. Part(h,CFrame.new(0,0,.6),CFrame.new(),Vector3.new(.415,.415,.025),body3,body3ref,0)
  415. Part(h,CFrame.new(0,0,.45),CFrame.new(),Vector3.new(.415,.415,.025),body3,body3ref,0)
  416. Part(h,CFrame.new(0,0,.3),CFrame.new(),Vector3.new(.415,.415,.025),body3,body3ref,0)
  417. Part(h,CFrame.new(0,0,.15),CFrame.new(),Vector3.new(.415,.415,.025),body3,body3ref,0)
  418. Part(h,CFrame.new(0,0,0),CFrame.new(),Vector3.new(.415,.415,.025),body3,body3ref,0)
  419. Part(h,CFrame.new(0,0,-.15),CFrame.new(),Vector3.new(.415,.415,.025),body3,body3ref,0)
  420. Part(h,CFrame.new(0,0,-.3),CFrame.new(),Vector3.new(.415,.415,.025),body3,body3ref,0)
  421.  
  422. local e = Part(main,CFrame.new(0,1,-4.6)*CFrame.Angles(-.2,-math.pi/2,0)*CFrame.new(0,-.2,0),CFrame.new(),Vector3.new(5,5,5),body,bodyref,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Cylinder"))
  423. p = Part(e,CFrame.new(-2.25,2.25,0)*CFrame.Angles(0,-math.pi/2,0)*CFrame.Angles(-.05,0,0),CFrame.new(),Vector3.new(2,2,3),body,bodyref,0,Mesh("SpecialMesh",Vector3.new(2,1.75,9.5),"FileMesh","rbxassetid://9944765"))
  424. p = Part(p,CFrame.new(0,-.2,.4)*CFrame.Angles(0,0,0)*CFrame.Angles(-.175,0,0),CFrame.new(),Vector3.new(1,1,1),body2,body2ref,0,Mesh("SpecialMesh",Vector3.new(2.3,2.3,2),"FileMesh","rbxassetid://9944765"))
  425.  
  426. p = Part(e,CFrame.new(2,.25,2)*CFrame.Angles(1.35,math.pi/2,0)*CFrame.Angles(0,0,0),CFrame.new(),Vector3.new(2,2,3),body,bodyref,0,Mesh("SpecialMesh",Vector3.new(2.5,2.5,9.5),"FileMesh","rbxassetid://9944765"))
  427. p = Part(p,CFrame.new(0,.2,-4.55)*CFrame.Angles(0,math.pi,-.1),CFrame.new(),Vector3.new(1,1,1),body,bodyref,0,Mesh("SpecialMesh",Vector3.new(1.6,1.1,9),"FileMesh","rbxassetid://9944765"))
  428.  
  429. p = Part(e,CFrame.new(2,.25,-2)*CFrame.Angles(-1.35,math.pi/2,0)*CFrame.Angles(0,0,0),CFrame.new(),Vector3.new(2,2,3),body,bodyref,0,Mesh("SpecialMesh",Vector3.new(2.5,2.5,9.5),"FileMesh","rbxassetid://9944765"))
  430. p = Part(p,CFrame.new(0,.2,-4.55)*CFrame.Angles(0,math.pi,-.1),CFrame.new(),Vector3.new(1,1,1),body,bodyref,0,Mesh("SpecialMesh",Vector3.new(1.6,1.1,9),"FileMesh","rbxassetid://9944765"))
  431.  
  432.  
  433.  
  434. local e2 = Part(e,CFrame.new(-2.5,0,0)*CFrame.Angles(0,math.pi/2,0),CFrame.new(),Vector3.new(5,5,1),body,bodyref,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Sphere"))
  435. local et = Part(e2,CFrame.new(0,.05,-.6)*CFrame.Angles(-math.pi/2+.05,0,0),CFrame.new(),Vector3.new(5,5,1),body,bodyref,0,Mesh("SpecialMesh",Vector3.new(3.45,5,3.45),"FileMesh","rbxassetid://16659502"))
  436. local g1 = Part(et,CFrame.new(0,-.5,0)*CFrame.Angles(math.pi/2,0,0),CFrame.new(),Vector3.new(2.5,2.5,2.5),body2,body2ref,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Sphere"))
  437. local g2 = Part(g1,CFrame.new(0,0,-1)*CFrame.Angles(.15,math.pi/2,0),CFrame.new(),Vector3.new(.75,.6,.6),body2,body2ref,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Cylinder"))
  438. local t1 = Part(g2,CFrame.new(.9,.05,0)*CFrame.Angles(0,0,0),CFrame.new(),Vector3.new(1,.4,.4),body3,body3ref,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Cylinder"))
  439. local t1s = Instance.new("Sound",t1)
  440. t1s.SoundId = "rbxassetid://78498351"
  441. t1s.Volume = 0.5
  442. t1s.Pitch = 1.5
  443.  
  444. Part(t1,CFrame.Angles(.75,0,0)*CFrame.new(.3,.2,0)*CFrame.Angles(0,0,math.pi/2),CFrame.new(),Vector3.new(.025,.15,.15),BrickColor.new(1003),0,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Cylinder"))
  445. Part(t1,CFrame.Angles(.75,0,0)*CFrame.new(0,.2,0)*CFrame.Angles(0,0,math.pi/2),CFrame.new(),Vector3.new(.025,.15,.15),BrickColor.new(1003),0,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Cylinder"))
  446. Part(t1,CFrame.Angles(.75,0,0)*CFrame.new(-.3,.2,0)*CFrame.Angles(0,0,math.pi/2),CFrame.new(),Vector3.new(.025,.15,.15),BrickColor.new(1003),0,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Cylinder"))
  447. Part(t1,CFrame.Angles(-.75,0,0)*CFrame.new(.3,.2,0)*CFrame.Angles(0,0,math.pi/2),CFrame.new(),Vector3.new(.025,.15,.15),BrickColor.new(1003),0,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Cylinder"))
  448. Part(t1,CFrame.Angles(-.75,0,0)*CFrame.new(0,.2,0)*CFrame.Angles(0,0,math.pi/2),CFrame.new(),Vector3.new(.025,.15,.15),BrickColor.new(1003),0,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Cylinder"))
  449. Part(t1,CFrame.Angles(-.75,0,0)*CFrame.new(-.3,.2,0)*CFrame.Angles(0,0,math.pi/2),CFrame.new(),Vector3.new(.025,.15,.15),BrickColor.new(1003),0,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Cylinder"))
  450. Part(t1,CFrame.new(.5,0,0),CFrame.new(),Vector3.new(.01,.225,.225),BrickColor.new(1003),0,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Cylinder"))
  451.  
  452. local b = Part(main,CFrame.new(0,-.65,-2.9),CFrame.new(),Vector3.new(2.8,2,7.9),body,bodyref,0)
  453. local b2 = Part(b,CFrame.new(0,-.5,-2.5),CFrame.new(),Vector3.new(7,1,2),body,bodyref,0)
  454.  
  455. local w = Part(b2,CFrame.new(-3.5,0,0),CFrame.new(),Vector3.new(1.2,1.05,2),body,bodyref,0)
  456. local w = Part(w,CFrame.new(.6,0,-1)*CFrame.Angles(0,.5,0)*CFrame.new(-.6,0,-1),CFrame.new(),Vector3.new(1.2,1.049,2),body,bodyref,0)
  457. Part(w,CFrame.new(.6,0,0),CFrame.new(),Vector3.new(.5,1.1,2.07),body2,body2ref,0)
  458. local w = Part(w,CFrame.new(.6,0,-1)*CFrame.Angles(0,.5,0)*CFrame.new(-.6,0,-.95),CFrame.new(),Vector3.new(1.2,1.05,1.9),body,bodyref,0)
  459. Part(w,CFrame.new(.6,0,0),CFrame.new(),Vector3.new(.5,1.095,2.05),body2,body2ref,0)
  460. local w = Part(w,CFrame.new(.6,0,-.95)*CFrame.Angles(0,.57,0)*CFrame.new(-.65,0,-1.2),CFrame.new(),Vector3.new(1.3,1.049,2.4),body,bodyref,0)
  461. Part(w,CFrame.new(.65,0,.8),CFrame.new(),Vector3.new(.5,1.1,.95),body2,body2ref,0)
  462. local w = Part(w,CFrame.new(-.6,0,-1.2)*CFrame.Angles(0,-1.57,0)*CFrame.new(.8,0,-1.25),CFrame.new(),Vector3.new(1.6,1.05,2.5),body,bodyref,0)
  463. local w = Part(w,CFrame.new(-.8,0,-1.25)*CFrame.Angles(0,-.4,0)*CFrame.new(.7,0,1.25),CFrame.new(),Vector3.new(1.4,1.049,2.5),body,bodyref,0)
  464. local w = Part(w,CFrame.new(.7,0,1.25)*CFrame.Angles(0,-.45,0)*CFrame.new(-.7,0,1),CFrame.new(),Vector3.new(1.4,1.05,2),body,bodyref,0)
  465. local w = Part(w,CFrame.new(-.7,0,1)*CFrame.Angles(0,.6,0)*CFrame.new(.7,0,1),CFrame.new(),Vector3.new(1.4,1.049,2),body,bodyref,0)
  466. local w = Part(w,CFrame.new(-.7,0,1)*CFrame.Angles(0,.55,0)*CFrame.new(.7,0,1),CFrame.new(),Vector3.new(1.4,1.05,2),body,bodyref,0)
  467. local w = Part(w,CFrame.new(-.7,0,1)*CFrame.Angles(0,.5,0)*CFrame.new(.7,0,1),CFrame.new(),Vector3.new(1.4,1.049,2),body,bodyref,0)
  468. local w = Part(w,CFrame.new(-.7,0,1)*CFrame.Angles(0,.45,0)*CFrame.new(.6,0,.5),CFrame.new(),Vector3.new(1.5,1.05,1),body,bodyref,0)
  469. local w = Part(w,CFrame.new(-.75,0,.5)*CFrame.Angles(0,.325,0)*CFrame.new(.5,0,1.3),CFrame.new(),Vector3.new(1.6,1.049,2.6),body,bodyref,0)
  470. local w = Part(w,CFrame.new(-.2,0,1.3)*CFrame.Angles(0,.65,0)*CFrame.new(.5,0,.8),CFrame.new(),Vector3.new(1,1.05,1.6),body,bodyref,0)
  471. local w = Part(w,CFrame.new(-.5,0,.8)*CFrame.Angles(0,.45,0)*CFrame.new(.5,0,1),CFrame.new(),Vector3.new(1,1.05,2),body,bodyref,0)
  472.  
  473.  
  474. cancollide = false
  475. Part(b2,CFrame.new(-3.5-3,.125,0)*CFrame.Angles(-math.pi/2,0,0),CFrame.new(),Vector3.new(3,3,1),body2,body2ref,0,Mesh("SpecialMesh",Vector3.new(5,5,6),"FileMesh","rbxassetid://3270017"),"DiamondPlate")
  476. Part(b2,CFrame.new(-3.5-3,-.125,0)*CFrame.Angles(-math.pi/2,0,0),CFrame.new(),Vector3.new(3,3,1),body2,body2ref,0,Mesh("SpecialMesh",Vector3.new(5,5,6),"FileMesh","rbxassetid://3270017"))
  477. cancollide = true
  478.  
  479. local propl,proplw = Part(b2,CFrame.new(-6.5,0,0),CFrame.new(),Vector3.new(.4,.75,.4),body2,body2ref,0,Mesh("CylinderMesh",Vector3.new(1,1,1)),"DiamondPlate")
  480. Part(propl,CFrame.new(0,.35,0),CFrame.new(),Vector3.new(.6,.25,.6),body3,body3ref,0,Mesh("CylinderMesh",Vector3.new(1,1,1)),"DiamondPlate")
  481. Part(propl,CFrame.new(0,-.35,0),CFrame.new(),Vector3.new(.5,.15,.5),body3,body3ref,0,Mesh("CylinderMesh",Vector3.new(1,1,1)),"DiamondPlate")
  482. Part(propl,CFrame.Angles(0,0*math.pi*2/3,0)*CFrame.new(0,0,.3),CFrame.new(),Vector3.new(.15,.65,.3),body3,body3ref,0,nil,"DiamondPlate")
  483. Part(propl,CFrame.Angles(0,1*math.pi*2/3,0)*CFrame.new(0,0,.3),CFrame.new(),Vector3.new(.15,.65,.3),body3,body3ref,0,nil,"DiamondPlate")
  484. Part(propl,CFrame.Angles(0,2*math.pi*2/3,0)*CFrame.new(0,0,.3),CFrame.new(),Vector3.new(.15,.65,.3),body3,body3ref,0,nil,"DiamondPlate")
  485. propl.Name = "SoundPlayer1"
  486. local ps2 = Instance.new("Sound",propl)
  487. ps2.SoundId = "rbxassetid://134145308"
  488. ps2.Pitch = 2
  489. ps2.Volume = 1
  490. ps2.Looped = true
  491. ps2:Play()
  492.  
  493.  
  494. local p = Part(propl,CFrame.Angles(0,0*math.pi*2/3,0)*CFrame.new(0,0,.35+.8)*CFrame.Angles(0,0,-1.3),CFrame.new(),Vector3.new(.05,.5,1.7),body2,body2ref,0,nil,"Plastic")
  495. Part(p,CFrame.Angles(0,0,1.3)*CFrame.new(-.125,0,.85),CFrame.new(),Vector3.new(.7,.25,.05),body2,body2ref,0,nil,"Plastic")
  496. local p = Part(propl,CFrame.Angles(0,1*math.pi*2/3,0)*CFrame.new(0,0,.35+.8)*CFrame.Angles(0,0,-1.3),CFrame.new(),Vector3.new(.05,.5,1.7),body2,body2ref,0,nil,"Plastic")
  497. Part(p,CFrame.Angles(0,0,1.3)*CFrame.new(-.125,0,.85),CFrame.new(),Vector3.new(.7,.25,.05),body2,body2ref,0,nil,"Plastic")
  498. local p = Part(propl,CFrame.Angles(0,2*math.pi*2/3,0)*CFrame.new(0,0,.35+.8)*CFrame.Angles(0,0,-1.3),CFrame.new(),Vector3.new(.05,.5,1.7),body2,body2ref,0,nil,"Plastic")
  499. Part(p,CFrame.Angles(0,0,1.3)*CFrame.new(-.125,0,.85),CFrame.new(),Vector3.new(.7,.25,.05),body2,body2ref,0,nil,"Plastic")
  500.  
  501.  
  502. local w = Part(b2,CFrame.new(3.5,0,0),CFrame.new(),Vector3.new(1.2,1.05,2),body,bodyref,0)
  503. local w = Part(w,CFrame.new(-.6,0,-1)*CFrame.Angles(0,-.5,0)*CFrame.new(.6,0,-1),CFrame.new(),Vector3.new(1.2,1.049,2),body,bodyref,0)
  504. Part(w,CFrame.new(-.6,0,0),CFrame.new(),Vector3.new(.5,1.1,2.07),body2,body2ref,0)
  505. local w = Part(w,CFrame.new(-.6,0,-1)*CFrame.Angles(0,-.5,0)*CFrame.new(.6,0,-.95),CFrame.new(),Vector3.new(1.2,1.05,1.9),body,bodyref,0)
  506. Part(w,CFrame.new(-.6,0,0),CFrame.new(),Vector3.new(.5,1.095,2.05),body2,body2ref,0)
  507. local w = Part(w,CFrame.new(-.6,0,-.95)*CFrame.Angles(0,-.57,0)*CFrame.new(.65,0,-1.2),CFrame.new(),Vector3.new(1.3,1.049,2.4),body,bodyref,0)
  508. Part(w,CFrame.new(-.65,0,.8),CFrame.new(),Vector3.new(.5,1.1,.95),body2,body2ref,0)
  509. local w = Part(w,CFrame.new(.6,0,-1.2)*CFrame.Angles(0,1.57,0)*CFrame.new(-.8,0,-1.25),CFrame.new(),Vector3.new(1.6,1.05,2.5),body,bodyref,0)
  510. local w = Part(w,CFrame.new(.8,0,-1.25)*CFrame.Angles(0,.4,0)*CFrame.new(-.7,0,1.25),CFrame.new(),Vector3.new(1.4,1.049,2.5),body,bodyref,0)
  511. local w = Part(w,CFrame.new(-.7,0,1.25)*CFrame.Angles(0,.45,0)*CFrame.new(.7,0,1),CFrame.new(),Vector3.new(1.4,1.05,2),body,bodyref,0)
  512. local w = Part(w,CFrame.new(.7,0,1)*CFrame.Angles(0,-.6,0)*CFrame.new(-.7,0,1),CFrame.new(),Vector3.new(1.4,1.049,2),body,bodyref,0)
  513. local w = Part(w,CFrame.new(.7,0,1)*CFrame.Angles(0,-.55,0)*CFrame.new(-.7,0,1),CFrame.new(),Vector3.new(1.4,1.05,2),body,bodyref,0)
  514. local w = Part(w,CFrame.new(.7,0,1)*CFrame.Angles(0,-.5,0)*CFrame.new(-.7,0,1),CFrame.new(),Vector3.new(1.4,1.049,2),body,bodyref,0)
  515. local w = Part(w,CFrame.new(.7,0,1)*CFrame.Angles(0,-.45,0)*CFrame.new(-.6,0,.5),CFrame.new(),Vector3.new(1.5,1.05,1),body,bodyref,0)
  516. local w = Part(w,CFrame.new(.75,0,.5)*CFrame.Angles(0,-.325,0)*CFrame.new(-.5,0,1.3),CFrame.new(),Vector3.new(1.6,1.049,2.6),body,bodyref,0)
  517. local w = Part(w,CFrame.new(.2,0,1.3)*CFrame.Angles(0,-.65,0)*CFrame.new(-.5,0,.8),CFrame.new(),Vector3.new(1,1.05,1.6),body,bodyref,0)
  518. local w = Part(w,CFrame.new(.5,0,.8)*CFrame.Angles(0,-.45,0)*CFrame.new(-.5,0,1),CFrame.new(),Vector3.new(1,1.05,2),body,bodyref,0)
  519.  
  520.  
  521. cancollide = false
  522. Part(b2,CFrame.new(3.5+3,.125,0)*CFrame.Angles(-math.pi/2,0,0),CFrame.new(),Vector3.new(3,3,1),body2,body2ref,0,Mesh("SpecialMesh",Vector3.new(5,5,6),"FileMesh","rbxassetid://3270017"),"DiamondPlate")
  523. Part(b2,CFrame.new(3.5+3,-.125,0)*CFrame.Angles(-math.pi/2,0,0),CFrame.new(),Vector3.new(3,3,1),body2,body2ref,0,Mesh("SpecialMesh",Vector3.new(5,5,6),"FileMesh","rbxassetid://3270017"))
  524. cancollide = true
  525.  
  526. local propr,proprw = Part(b2,CFrame.new(6.5,0,0),CFrame.new(),Vector3.new(.4,.75,.4),body2,body2ref,0,Mesh("CylinderMesh",Vector3.new(1,1,1)),"DiamondPlate")
  527. Part(propr,CFrame.new(0,.35,0),CFrame.new(),Vector3.new(.6,.25,.6),body3,body3ref,0,Mesh("CylinderMesh",Vector3.new(1,1,1)),"DiamondPlate")
  528. Part(propr,CFrame.new(0,-.35,0),CFrame.new(),Vector3.new(.5,.15,.5),body3,body3ref,0,Mesh("CylinderMesh",Vector3.new(1,1,1)),"DiamondPlate")
  529. Part(propr,CFrame.Angles(0,0*math.pi*2/3,0)*CFrame.new(0,0,.3),CFrame.new(),Vector3.new(.15,.65,.3),body3,body3ref,0,nil,"DiamondPlate")
  530. Part(propr,CFrame.Angles(0,1*math.pi*2/3,0)*CFrame.new(0,0,.3),CFrame.new(),Vector3.new(.15,.65,.3),body3,body3ref,0,nil,"DiamondPlate")
  531. Part(propr,CFrame.Angles(0,2*math.pi*2/3,0)*CFrame.new(0,0,.3),CFrame.new(),Vector3.new(.15,.65,.3),body3,body3ref,0,nil,"DiamondPlate")
  532. propr.Name = "SoundPlayer2"
  533. local ps = Instance.new("Sound",propr)
  534. ps.SoundId = "rbxassetid://134145308"
  535. ps.Pitch = 2
  536. ps.Volume = 1
  537. ps.Looped = true
  538. ps:Play()
  539.  
  540. local p = Part(propr,CFrame.Angles(0,0*math.pi*2/3,0)*CFrame.new(0,0,.35+.8)*CFrame.Angles(0,0,1.3),CFrame.new(),Vector3.new(.05,.5,1.7),body2,body2ref,0,nil,"Plastic")
  541. Part(p,CFrame.Angles(0,0,-1.3)*CFrame.new(.125,0,.85),CFrame.new(),Vector3.new(.7,.25,.05),body2,body2ref,0,nil,"Plastic")
  542. local p = Part(propr,CFrame.Angles(0,1*math.pi*2/3,0)*CFrame.new(0,0,.35+.8)*CFrame.Angles(0,0,1.3),CFrame.new(),Vector3.new(.05,.5,1.7),body2,body2ref,0,nil,"Plastic")
  543. Part(p,CFrame.Angles(0,0,-1.3)*CFrame.new(.125,0,.85),CFrame.new(),Vector3.new(.7,.25,.05),body2,body2ref,0,nil,"Plastic")
  544. local p = Part(propr,CFrame.Angles(0,2*math.pi*2/3,0)*CFrame.new(0,0,.35+.8)*CFrame.Angles(0,0,1.3),CFrame.new(),Vector3.new(.05,.5,1.7),body2,body2ref,0,nil,"Plastic")
  545. Part(p,CFrame.Angles(0,0,-1.3)*CFrame.new(.125,0,.85),CFrame.new(),Vector3.new(.7,.25,.05),body2,body2ref,0,nil,"Plastic")
  546.  
  547.  
  548.  
  549. local p1 = Part(main,CFrame.new(-1.85,.35,-1.1)*CFrame.Angles(0,math.pi/2,0),CFrame.new(),Vector3.new(1.25,.7,.7),pipe,piperef,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Cylinder"))
  550. Part(p1,CFrame.new(.5,0,.025),CFrame.new(),Vector3.new(1.5,1,1),pipe2,pipe2ref,0,Mesh("SpecialMesh",Vector3.new(.7,.85,.85),"Cylinder"),"DiamondPlate")
  551. Part(p1,CFrame.new(-.625,0,0),CFrame.new(),Vector3.new(.7,.7,.7),pipe,piperef,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Sphere"))
  552. local p1 = Part(p1,CFrame.new(-.625,0,0)*CFrame.Angles(0,0,-1)*CFrame.new(-.95,0,0),CFrame.new(),Vector3.new(1.9,.7,.7),pipe,piperef,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Cylinder"))
  553. Part(p1,CFrame.new(-.95,0,0),CFrame.new(),Vector3.new(.7,.7,.7),pipe,piperef,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Sphere"))
  554. local p1 = Part(p1,CFrame.new(-.95,0,0)*CFrame.Angles(0,0,1)*CFrame.new(-1.25,0,0),CFrame.new(),Vector3.new(2.5,.7,.7),pipe,piperef,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Cylinder"))
  555. local p = Part(p1,CFrame.new(-.3,0,.01),CFrame.new(),Vector3.new(1.5,1,1),pipe2,pipe2ref,0,Mesh("SpecialMesh",Vector3.new(1,.8,.8),"Cylinder"),"DiamondPlate")
  556. Part(p,CFrame.new(.6,0,0),CFrame.new(),Vector3.new(.15,.9,.9),pipe3,pipe3ref,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Cylinder"))
  557. Part(p,CFrame.new(-.6,0,0),CFrame.new(),Vector3.new(.15,.9,.9),pipe3,pipe3ref,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Cylinder"))
  558. Part(p,CFrame.new(0,0,.65),CFrame.new(),Vector3.new(1.3,.3,.5),pipe3,pipe3ref,0)
  559. Part(p1,CFrame.new(-1.25,0,0),CFrame.new(),Vector3.new(.15,.65,.65),pipe3,pipe3ref,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Cylinder"))
  560. local p = Part(p1,CFrame.new(-1.35,0,0)*CFrame.Angles(math.pi/2,0,math.pi/2),CFrame.new(),Vector3.new(1,1,1),pipe3,pipe3ref,0,Mesh("SpecialMesh",Vector3.new(.5,2,.5),"FileMesh","rbxassetid://16659502"))
  561. local firel = Instance.new("Fire",p)
  562. local lightl = Instance.new("PointLight",p)
  563.  
  564. local p1 = Part(main,CFrame.new(1.85,.35,-1.1)*CFrame.Angles(0,math.pi/2,0),CFrame.new(),Vector3.new(1.25,.7,.7),pipe,piperef,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Cylinder"))
  565. Part(p1,CFrame.new(.5,0,-.025),CFrame.new(),Vector3.new(1.5,1,1),pipe2,pipe2ref,0,Mesh("SpecialMesh",Vector3.new(.7,.85,.85),"Cylinder"),"DiamondPlate")
  566. Part(p1,CFrame.new(-.625,0,0),CFrame.new(),Vector3.new(.7,.7,.7),pipe,piperef,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Sphere"))
  567. local p1 = Part(p1,CFrame.new(-.625,0,0)*CFrame.Angles(0,0,-1)*CFrame.new(-.95,0,0),CFrame.new(),Vector3.new(1.9,.7,.7),pipe,piperef,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Cylinder"))
  568. Part(p1,CFrame.new(-.95,0,0),CFrame.new(),Vector3.new(.7,.7,.7),pipe,piperef,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Sphere"))
  569. local p1 = Part(p1,CFrame.new(-.95,0,0)*CFrame.Angles(0,0,1)*CFrame.new(-1.25,0,0),CFrame.new(),Vector3.new(2.5,.7,.7),pipe,piperef,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Cylinder"))
  570. local p = Part(p1,CFrame.new(-.3,0,-.01),CFrame.new(),Vector3.new(1.5,1,1),pipe2,pipe2ref,0,Mesh("SpecialMesh",Vector3.new(1,.8,.8),"Cylinder"),"DiamondPlate")
  571. Part(p,CFrame.new(.6,0,0),CFrame.new(),Vector3.new(.15,.9,.9),pipe3,pipe3ref,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Cylinder"))
  572. Part(p,CFrame.new(-.6,0,0),CFrame.new(),Vector3.new(.15,.9,.9),pipe3,pipe3ref,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Cylinder"))
  573. Part(p,CFrame.new(0,0,-.65),CFrame.new(),Vector3.new(1.3,.3,.5),pipe3,pipe3ref,0)
  574. Part(p1,CFrame.new(-1.25,0,0),CFrame.new(),Vector3.new(.15,.65,.65),pipe3,pipe3ref,0,Mesh("SpecialMesh",Vector3.new(1,1,1),"Cylinder"))
  575. local p = Part(p1,CFrame.new(-1.35,0,0)*CFrame.Angles(math.pi/2,0,math.pi/2),CFrame.new(),Vector3.new(1,1,1),pipe3,pipe3ref,0,Mesh("SpecialMesh",Vector3.new(.5,2,.5),"FileMesh","rbxassetid://16659502"))
  576. local firer = Instance.new("Fire",p)
  577. local lightr = Instance.new("PointLight",p)
  578.  
  579. cancollide = false
  580. local s = Part(main,CFrame.new(1.05,3,-2.7)*CFrame.Angles(-.5,0,0)*CFrame.new(0,0,.75),CFrame.new(),Vector3.new(.3,.3,1.5),body,bodyref,0)
  581. local s = Part(s,CFrame.new(0,.15,.75)*CFrame.Angles(.55,0,0)*CFrame.new(0,-.15,1.5),CFrame.new(),Vector3.new(.299,.3,3),body,bodyref,0)
  582. local s = Part(s,CFrame.new(0,.15,1.5)*CFrame.Angles(1.05,0,0)*CFrame.new(0,-.15,1),CFrame.new(),Vector3.new(.3,.3,2),body,bodyref,0)
  583. Part(s,CFrame.new(0,0,.75),CFrame.new(),Vector3.new(.4,.4,.4),pipe3,pipe3ref,0)
  584.  
  585. local s = Part(main,CFrame.new(-1.05,3,-2.7)*CFrame.Angles(-.5,0,0)*CFrame.new(0,0,.75),CFrame.new(),Vector3.new(.3,.3,1.5),body,bodyref,0)
  586. local s = Part(s,CFrame.new(0,.15,.75)*CFrame.Angles(.55,0,0)*CFrame.new(0,-.15,1.5),CFrame.new(),Vector3.new(.299,.3,3),body,bodyref,0)
  587. local s = Part(s,CFrame.new(0,.15,1.5)*CFrame.Angles(1.05,0,0)*CFrame.new(0,-.15,1),CFrame.new(),Vector3.new(.3,.3,2),body,bodyref,0)
  588. Part(s,CFrame.new(0,0,.75),CFrame.new(),Vector3.new(.4,.4,.4),pipe3,pipe3ref,0)
  589. cancollide = true
  590.  
  591. local hp = Instance.new("Part",m)
  592. hp.Anchored = true
  593. hp.TopSurface,hp.BottomSurface =0,0
  594. hp.BrickColor = BrickColor.new("Dark red")
  595. hp.FormFactor = "Custom"
  596. hp.CanCollide = false
  597. hp.Size = Vector3.new(8,1.5,.5)
  598.  
  599. local hptop = hp:Clone()
  600. hptop.Parent = m
  601. hptop.BrickColor = BrickColor.new("Dark green")
  602.  
  603. firer.Size = .01
  604. firer.Heat = 1000
  605. firel.Size = .01
  606. firel.Heat = 1000
  607.  
  608. local hm = Instance.new("Sound",sg)
  609. hm.SoundId = "rbxassetid://131864673"
  610. hm.Pitch = .8
  611.  
  612. --[[coroutine.wrap(function()
  613. wait(.2)
  614. while wait(.6) do
  615. ps.Pitch = -ps.Pitch
  616. ps2.Pitch = -ps2.Pitch
  617. end
  618. end)()]]
  619.  
  620. local bvel = Instance.new("BodyVelocity",main)
  621. bvel.maxForce = Vector3.new()
  622. bvel.velocity = Vector3.new()
  623. bvel.P = 5000
  624.  
  625. local bgyro = Instance.new("BodyGyro",main)
  626. bgyro.maxTorque = Vector3.new()
  627. bgyro.cframe = main.CFrame
  628. bgyro.D = 800
  629.  
  630. do
  631. local vecs = {}
  632. for i,v in pairs(Enum.NormalId:GetEnumItems()) do
  633. table.insert(vecs,Vector3.FromNormalId(v))
  634. end
  635. function getSide(h,r)
  636.  
  637. local ob = h.CFrame:pointToObjectSpace(r)
  638. if h:IsA("Part") and h.Shape == Enum.PartType.Ball then
  639. return (r-h.Position).unit
  640. elseif h:IsA("Part") and h.Shape == Enum.PartType.Cylinder then
  641. if isClose(math.abs(ob.y),h.Size.Y/2) then -- top
  642. return h.CFrame:vectorToWorldSpace((ob*Vector3.new(0,1,0)).unit)
  643. else
  644. return h.CFrame:vectorToWorldSpace(CFrame.new(Vector3.new(),ob*Vector3.new(1,0,1)).lookVector)
  645. end
  646. elseif h:IsA("WedgePart") then
  647. vecs = {Vector3.new(0,-1,0),Vector3.new(1,0,0),Vector3.new(-1,0,0),Vector3.new(0,0,1)}
  648. end
  649. for i,v in pairs(vecs) do
  650. if (ob*v/(h.Size/2)*v):isClose(v) then
  651. return h.CFrame:vectorToWorldSpace(v)
  652. end
  653. end
  654. if h:IsA("WedgePart") then
  655. return h.CFrame:vectorToWorldSpace(Vector3.new(0,h.Size.Z,h.Size.Y).unit)
  656. end
  657. end
  658. end
  659.  
  660. local function Raycast(ray,ign)
  661. local ign = ign or {m,char}
  662. local h,p = workspace:FindPartOnRayWithIgnoreList(ray,ign)
  663. if h and not h.CanCollide then
  664. table.insert(ign,h)
  665. return Raycast(ray,ign)
  666. else
  667. return h,p
  668. end
  669. end
  670.  
  671. local cam = workspace.CurrentCamera
  672. local vehicleOn = true
  673. local lastVehicleOn = false
  674. local acc = 0
  675. local maxSpeed = 180
  676. local spd = 0
  677. local jump = false
  678.  
  679. local kd = {}
  680. local function isDown(k)
  681. return kd[k:byte()] and 1 or 0
  682. end
  683. mouse.KeyDown:connect(function(k)
  684. kd[k:byte()] = true
  685. if k == "f" then
  686. vehicleOn = not vehicleOn
  687. elseif k == "r" then
  688. -- hval.Value = 0
  689. end
  690. end)
  691. mouse.KeyUp:connect(function(k)
  692. kd[k:byte()] = false
  693. end)
  694.  
  695. mouse.Button1Down:connect(function()
  696. b1d = true
  697. end)
  698. mouse.Button1Up:connect(function()
  699. b1d = false
  700. end)
  701. mouse.Button2Down:connect(function()
  702. b2d = true
  703. end)
  704. mouse.Button2Up:connect(function()
  705. b2d = false
  706. end)
  707.  
  708.  
  709. hum.Changed:connect(function()
  710. if hum.Jump then
  711. jump = true
  712. hum.Jump = false
  713. hum.Sit = true
  714. end
  715. end)
  716.  
  717. local fire = {}
  718.  
  719. mouse.TargetFilter = m
  720.  
  721. local t,delta = tick(),0
  722. local smokers = {}
  723.  
  724. local guntimer = 0
  725. local scon;
  726. local lastjump = 0
  727. scon = step:connect(function()
  728.  
  729. local now = tick()
  730. delta,t = now-t,now
  731.  
  732. if hval.Value <= 0 then
  733. game:service'Debris':AddItem(m,5)
  734. coroutine.wrap(function()
  735. bvel:Destroy()
  736. local parts = {}
  737. local function a(b)
  738. for i,v in pairs(b:GetChildren()) do
  739. if v:IsA("BasePart") then
  740. table.insert(parts,v)
  741. end
  742. a(v)
  743. end
  744. end
  745. a(m)
  746. bvel:Destroy()
  747. bgyro:Destroy()
  748. local aTouched = false
  749. for i,v in pairs(parts) do
  750. v.Touched:connect(function()
  751. if aTouched then return end
  752. aTouched = true
  753. local exp = Instance.new("Explosion",workspace)
  754. exp.Position = v.Position
  755. exp.BlastRadius = 0
  756. exp.BlastPressure = .5
  757. m:BreakJoints()
  758. char:BreakJoints()
  759. for i,x in pairs(m:GetChildren()) do
  760. if x:IsA("BasePart") and v ~= x then
  761. local diff = (x.Position-v.Position)
  762. x.Velocity = x.Velocity + diff.unit * diff.magnitude/0.25/v:GetMass()
  763. end
  764. end
  765. script.Disabled = true
  766. end)
  767. end
  768. wait(5)
  769. script.Disabled = true
  770. end)()
  771. scon:disconnect()
  772. return
  773. else
  774. hp.Transparency = hval.Value == 100 and math.min(1,hp.Transparency+.05) or math.max(0,hp.Transparency-.05)
  775. hptop.Transparency = hp.Transparency
  776. hp.CFrame = CFrame.new(head.Position+Vector3.new(0,9,0))*CFrame.Angles(0,(tick()/2)%(math.pi*2),0)
  777. hptop.Size = Vector3.new(hval.Value/100*(hp.Size.X+.05),hp.Size.Y+.1,hp.Size.Z+.1)
  778. hptop.CFrame = hp.CFrame * CFrame.new(-hp.Size.X/2-.025+hptop.Size.X/2,0,0)
  779. end
  780.  
  781. if b1d and vehicleOn then
  782. guntimer = guntimer + delta
  783. if guntimer > .1 then
  784. t1s:Play()
  785. t1s.Pitch = 1.5 + (math.random()-.5)*.1
  786. guntimer = guntimer - .1
  787. local b = Instance.new("Part",m)
  788. b.Anchored = true
  789. b.FormFactor = "Custom"
  790. b.TopSurface,b.BottomSurface = 0,0
  791. b.CanCollide = false
  792. b.BrickColor = BrickColor.new("Bright yellow")
  793. b.Size = Vector3.new(.2,.2,.8)
  794. local sm = Instance.new("SpecialMesh",b)
  795. sm.MeshId = "rbxassetid://2697549"
  796. sm.Scale = Vector3.new(.5,.5,.25)
  797. local orig = t1.CFrame*CFrame.new(.5,0,0)*CFrame.Angles(0,-math.pi/2,0)
  798. local vel = (mouse.Hit.p-orig.p).unit*250 + main.Velocity*delta
  799. b.CFrame = orig
  800. coroutine.wrap(function()
  801. local t = tick()
  802. while true do
  803. step:wait()
  804. local n = tick()
  805. local d,t = n-t,n
  806. local ocf = b.CFrame
  807. local h,r = Raycast(Ray.new(ocf.p,vel*d),{char,m})
  808. if h then
  809. b:Destroy()
  810. local hit = false
  811. local hp = h.Parent:FindFirstChild("hp") or h.Parent.Parent:FindFirstChild("hp")
  812. if hp and hp:IsA("NumberValue") then
  813. hp.Value = hp.Value - 3
  814. hit = "rbxassetid://142082170"
  815. end
  816. local hp = h.Parent:FindFirstChild("Humanoid") or h.Parent.Parent:FindFirstChild("Humanoid")
  817. if hp and hp:IsA("Humanoid") then
  818. hp.Health = hp.Health - 3
  819. hit = "rbxassetid://133758570"
  820. end
  821. if hit then
  822. hm:Play()
  823. local sp = Instance.new("Part",m)
  824. sp.FormFactor = "Custom"
  825. sp.Size = Vector3.new()
  826. sp.Transparency = 1
  827. sp.Anchored = true
  828. sp.CanCollide = false
  829. sp.CFrame = CFrame.new(r)
  830. local s = Instance.new("Sound",sp)
  831. s.SoundId = hit
  832. s.Volume = 1
  833. s.Pitch = 1.1+math.random()*.2
  834. wait()
  835. s:Play()
  836. game:service'Debris':AddItem(sp,5)
  837. end
  838. break
  839. end
  840. b.CFrame = CFrame.new(ocf.p+vel*d,ocf.p+vel*d*2)
  841. sm.Scale = Vector3.new(.5-vel.magnitude*d/100,.5-vel.magnitude*d/100,vel.magnitude*d/3)
  842. vel = vel - Vector3.new(0,4*d,0)
  843. if ocf.Y < -100 then
  844. b:Destroy()
  845. break
  846. end
  847. end
  848. end)()
  849. end
  850. else
  851. guntimer = 0
  852. end
  853.  
  854. local mcfr = main.CFrame
  855. local mpos = mcfr.p
  856.  
  857. local raydir = Vector3.new(0,-100,0)--mcfr:vectorToWorldSpace(Vector3.new(0,-100,0))
  858.  
  859. local dhit,dray = Raycast(Ray.new(mpos,raydir),{char,m})
  860. local diff = dray-mpos
  861.  
  862. local rays = {
  863. tip = Ray.new((mcfr*CFrame.new(0,0,-11.5)).p,raydir),
  864. Ray.new((mcfr*CFrame.new(7,0,-11)).p,raydir),
  865. Ray.new((mcfr*CFrame.new(-7,0,-11)).p,raydir),
  866. Ray.new((mcfr*CFrame.new(1,0,-10.5)).p,raydir),
  867. Ray.new((mcfr*CFrame.new(-1,0,-10.5)).p,raydir),
  868. Ray.new((mcfr*CFrame.new(2.5,0,-6)).p,raydir),
  869. Ray.new((mcfr*CFrame.new(-2.5,0,-6)).p,raydir),
  870. rtip = Ray.new((mcfr*CFrame.new(10.5,0,-3)).p,raydir),
  871. ltip = Ray.new((mcfr*CFrame.new(-10.5,0,-3)).p,raydir),
  872. rprop = Ray.new((mcfr*CFrame.new(6.5,0,-3)).p,raydir),
  873. lprop = Ray.new((mcfr*CFrame.new(-6.5,0,-3)).p,raydir),
  874. Ray.new((mcfr*CFrame.new(2.5,0,-3)).p,raydir),
  875. Ray.new((mcfr*CFrame.new(-2.5,0,-3)).p,raydir),
  876. Ray.new((mcfr*CFrame.new(6.5,0,-1)).p,raydir),
  877. Ray.new((mcfr*CFrame.new(-6.5,0,-1)).p,raydir),
  878. Ray.new((mcfr*CFrame.new(2.5,0,4)).p,raydir),
  879. Ray.new((mcfr*CFrame.new(-2.5,0,4)).p,raydir),
  880. Ray.new((mcfr*CFrame.new(2.5,0,2)).p,raydir),
  881. Ray.new((mcfr*CFrame.new(-2.5,0,2)).p,raydir),
  882. }
  883. for i,v in pairs(rays) do
  884. local h,r = Raycast(v,{char,m})
  885. local df = r-v.Origin
  886. if df.Y > diff.Y then
  887. diff = df
  888. end
  889. rays[i] = {r=r,d=df,h=h}
  890. end
  891.  
  892. local moving = false
  893. local movdir = Vector3.new()
  894. local hoverHeight = 7 + math.sin(now)/2
  895. local vel = Vector3.new(0,(hoverHeight+diff.Y)*3,0)
  896. if isDown'w'+isDown's'+isDown'd'+isDown'a' > 0 then
  897. moving = true
  898. movdir = Vector3.new(isDown'd'-isDown'a',0,isDown's'-isDown'w')
  899. if movdir.magnitude < .001 then
  900. moving = false
  901. else
  902. movdir = movdir.unit
  903. end
  904. end
  905. bgyro.maxTorque = Vector3.new(1,1,1)*1e5
  906.  
  907. if vehicleOn then
  908. if not lastVehicleOn or not lastDown then
  909. lastDown = tick()
  910. end
  911. if not lastVehicleOn then
  912. local ray = rays.rprop
  913. for a,ray in pairs({rays.rprop,rays.lprop}) do
  914. if ray.h and -ray.d.Y < 5 then
  915. local x = a==1 and 1 or -1
  916. local am = 0
  917. for i=math.pi/4*x,x*(-math.pi-math.pi/4),x*-math.pi/8 do
  918. local p = Instance.new("Part",m)
  919. p.Anchored = true
  920. p.Transparency = 1
  921. p.CanCollide = false
  922. p.FormFactor = "Custom"
  923. p.Size = Vector3.new()
  924. local smoke = Instance.new("Smoke",p)
  925. smoke.Color = Color3.new(.5,.5,.5)--Color3.new(lerp(.5,ray.h.Color.r,.8),lerp(.5,ray.h.Color.g,.8),lerp(.5,ray.h.Color.b,.8))
  926. smoke.Size = .1
  927. smoke.Opacity = .04
  928. smoke.RiseVelocity = 10
  929. p.CFrame = CFrame.new(ray.r,ray.r+mcfr.lookVector*Vector3.new(1,0,1))*CFrame.Angles(math.pi/2,0,i+.2*x)*CFrame.new(0,2.5,0)
  930. local add = am/13
  931. if add > .5 then
  932. add = 1-add
  933. end
  934. am = am + 1
  935. game.Debris:AddItem(p,.75+add*14)
  936. end
  937. end
  938. end
  939. end
  940. local ovel = main.CFrame:vectorToObjectSpace(main.Velocity)
  941.  
  942. local xrot = math.max(-1,math.min(1,ovel.Z/maxSpeed*2))*.25
  943. local zrot = math.max(-1,math.min(1,-ovel.X/maxSpeed*2))*.25
  944. local xadd,zadd = 0,0
  945. if rays.tip.h and dhit and (-rays.tip.d.Y < hoverHeight+10 or -diff.Y < hoverHeight+10) then
  946. local ydiff = rays.tip.r.Y-dray.Y
  947. --print(ydiff)
  948. xadd = math.max(-.75,math.min(.75,math.asin(ydiff/11.5)))
  949. xrot = xrot*math.cos(xadd) + xadd
  950. --print("x",movdir,xadd)
  951. movdir = CFrame.Angles(xadd,0,0)*movdir
  952. --print("x2",movdir)
  953. end
  954.  
  955. if rays.lprop.h and rays.rprop.h and rays.lprop.h == rays.rprop.h and (-rays.lprop.d.Y < hoverHeight+10 or -rays.rprop.d.Y < hoverHeight+10) then
  956. local xdiff = rays.rprop.r.Y-rays.lprop.r.Y
  957. zadd = math.max(-.75,math.min(.75,math.asin(xdiff/22)))
  958. zrot = zrot*math.cos(zadd) + zadd
  959. --print("z",movdir,zadd)
  960. movdir = CFrame.Angles(0,0,zadd)*movdir
  961. --print("z2",movdir)
  962. end
  963. --[[
  964. if movdir.magnitude > .001 then
  965. local p = Instance.new("Part",m)
  966. p.Anchored = true
  967. p.FormFactor = "Custom"
  968. p.CanCollide = false
  969. p.FrontSurface = "Hinge"
  970. p.Size = Vector3.new(1,1,3)
  971. p.CFrame = CFrame.new(head.Position+Vector3.new(0,5,0),head.Position+Vector3.new(0,5,0)+CFrame.new(cam.CoordinateFrame.p,cam.CoordinateFrame.p+cam.CoordinateFrame.lookVector*Vector3.new(1,0,1)):vectorToWorldSpace(movdir))
  972. game.Debris:AddItem(p,.1)
  973. end
  974. ]]
  975. local windup = math.min(1,(tick()-lastDown))
  976.  
  977. if windup < .25 then
  978. moving = false
  979. elseif windup < 1 then
  980. bgyro.maxTorque = Vector3.new(1,1,1)*50000
  981. end
  982. local ldir = windup >= .25 and cam.CoordinateFrame.lookVector*Vector3.new(1,0,1) or main.CFrame.lookVector*Vector3.new(1,0,1)
  983. bgyro.cframe = CFrame.new(main.CFrame.p,main.CFrame.p+ldir)*CFrame.Angles(xrot,0,zrot)
  984. proplw.C1 = proplw.C1 * CFrame.Angles(0,windup*-(.8+main.Velocity.magnitude/maxSpeed*.75)*(moving and 1.5 or 1)+math.random()*.05,0)
  985. proprw.C1 = proprw.C1 * CFrame.Angles(0,windup*(.8+main.Velocity.magnitude/maxSpeed*.75)*(moving and 1.5 or 1)+math.random()*.05,0)
  986.  
  987. local odir = main.CFrame:vectorToObjectSpace(bgyro.cframe.lookVector)
  988. firer.Enabled = ovel.Z < -1 or odir.X < -.1
  989. firel.Enabled = ovel.Z < -1 or odir.X > .1
  990. bvel.maxForce = Vector3.new(70000,-diff.Y < hoverHeight+1+math.max(0,-main.Velocity.Y*delta*40) and 400000 or 40000,70000)
  991.  
  992. windup = windup + main.Velocity.magnitude/maxSpeed*.35*(moving and 1.5 or 1)
  993. ps.Volume = windup*.07
  994. ps2.Volume = ps.Volume
  995. ps.Pitch = ps.Pitch
  996. ps2.Pitch = ps2.Pitch
  997. else
  998. if lastVehicleOn or not lastUp then
  999. lastUp = tick()
  1000. end
  1001. firel.Enabled,firer.Enabled = false,false
  1002. bvel.maxForce = Vector3.new(40000,-diff.Y > 1 and 1e5 or 0,40000)
  1003. vel = Vector3.new(0,-100-((tick()-lastUp)*9.81*10)^2,0)
  1004. bgyro.cframe = clerp(bgyro.cframe,CFrame.new(mpos,mpos+mcfr.lookVector*Vector3.new(1,0,1)),.2)
  1005.  
  1006. local windup = 1-math.min(1,(tick()-lastUp)/5)
  1007. vel = Vector3.new(0,(1-windup)*-25,0)
  1008. proplw.C1 = proplw.C1 * CFrame.Angles(0,-.8*windup,0)
  1009. proprw.C1 = proprw.C1 * CFrame.Angles(0,.8*windup,0)
  1010. ps.Volume = windup*.07
  1011. ps2.Volume = ps.Volume
  1012. ps.Pitch = ps.Pitch
  1013. ps2.Pitch = ps2.Pitch
  1014.  
  1015. moving = false
  1016.  
  1017. if tick()-lastUp > 2 then
  1018. hval.Value = math.min(100,hval.Value + .1)
  1019. end
  1020. end
  1021.  
  1022. if moving then
  1023. local od = movdir
  1024. movdir = CFrame.new(cam.CoordinateFrame.p,cam.CoordinateFrame.p+cam.CoordinateFrame.lookVector*Vector3.new(1,0,1)):vectorToWorldSpace(movdir*Vector3.new(1,.25,1))
  1025.  
  1026. if movdir.magnitude < 0.001 or tostring(movdir):lower():find("nan") then
  1027. moving = false
  1028. --print(od)
  1029. else
  1030. movdir = movdir.unit
  1031. acc = acc + delta*70
  1032. spd = math.min(maxSpeed,spd + acc)
  1033. vel = vel + movdir*spd
  1034. end
  1035. end
  1036. if not moving then
  1037. spd = 0
  1038. acc = 0
  1039. end
  1040.  
  1041. bvel.velocity = vel
  1042. if jump then
  1043. if vehicleOn and -diff.Y < hoverHeight + 1 and tick()-lastjump > 2 then
  1044. tor.Velocity = tor.Velocity + Vector3.new(0,110,0)
  1045. lastjump = tick()
  1046. end
  1047. jump = false
  1048. end
  1049. lightr.Range = 5+math.sin(tick()*50)
  1050. lightl.Range = 5+math.cos(tick()*50)
  1051.  
  1052. lightr.Color = firer.Color
  1053. lightl.Color = firel.Color
  1054.  
  1055. lightr.Enabled = firer.Enabled
  1056. lightl.Enabled = firel.Enabled
  1057. lastVehicleOn = vehicleOn
  1058. end)
  1059.  
  1060. char.AncestryChanged:connect(function()
  1061. m:Destroy()
  1062. scon:disconnect()
  1063. end)
  1064.  
  1065. end
  1066. return _G.mantisReload()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement