Advertisement
Thefrozen106

Bubble Bike

Jun 10th, 2017
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 75.74 KB | None | 0 0
  1. --yee
  2.  
  3. do --CFrame lerp (stravant, clerp by AntiBoomz0r)
  4. local function QuaternionFromCFrame(cf) -- y u no axis angle interpolation?
  5. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  6. local trace = m00 + m11 + m22
  7. if trace > 0 then
  8. local s = math.sqrt(1 + trace)
  9. local recip = 0.5/s
  10. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  11. else
  12. local i = 0
  13. if m11 > m00 then
  14. i = 1
  15. end
  16. if m22 > (i == 0 and m00 or m11) then
  17. i = 2
  18. end
  19. if i == 0 then
  20. local s = math.sqrt(m00-m11-m22+1)
  21. local recip = 0.5/s
  22. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  23. elseif i == 1 then
  24. local s = math.sqrt(m11-m22-m00+1)
  25. local recip = 0.5/s
  26. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  27. elseif i == 2 then
  28. local s = math.sqrt(m22-m00-m11+1)
  29. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  30. end
  31. end
  32. end
  33. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  34. local xs, ys, zs = x + x, y + y, z + z
  35. local wx, wy, wz = w*xs, w*ys, w*zs
  36. local xx = x*xs
  37. local xy = x*ys
  38. local xz = x*zs
  39. local yy = y*ys
  40. local yz = y*zs
  41. local zz = z*zs
  42. 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))
  43. end
  44. function QuaternionSlerp(a, b, t)
  45. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  46. local startInterp, finishInterp;
  47. if cosTheta >= 0.0001 then
  48. if (1 - cosTheta) > 0.0001 then
  49. local theta = math.acos(cosTheta)
  50. local invSinTheta = 1/math.sin(theta)
  51. startInterp = math.sin((1-t)*theta)*invSinTheta
  52. finishInterp = math.sin(t*theta)*invSinTheta
  53. else
  54. startInterp = 1-t
  55. finishInterp = t
  56. end
  57. else
  58. if (1+cosTheta) > 0.0001 then
  59. local theta = math.acos(-cosTheta)
  60. local invSinTheta = 1/math.sin(theta)
  61. startInterp = math.sin((t-1)*theta)*invSinTheta
  62. finishInterp = math.sin(t*theta)*invSinTheta
  63. else
  64. startInterp = t-1
  65. finishInterp = t
  66. end
  67. end
  68. 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
  69. end
  70. function clerp(a,b,t)
  71. local qa = {QuaternionFromCFrame(a)}
  72. local qb = {QuaternionFromCFrame(b)}
  73. local ax, ay, az = a.x, a.y, a.z
  74. local bx, by, bz = b.x, b.y, b.z
  75. local _t = 1-t
  76. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  77. end
  78. end
  79.  
  80. local plr = game:service'Players'.LocalPlayer
  81. local char = plr.Character
  82. local mouse = plr:GetMouse()
  83. local humanoid = char:findFirstChild("Humanoid")
  84. local torso = char:findFirstChild("Torso")
  85. local head = char.Head
  86. local ra = char:findFirstChild("Right Arm")
  87. local la = char:findFirstChild("Left Arm")
  88. local rl = char:findFirstChild("Right Leg")
  89. local ll = char:findFirstChild("Left Leg")
  90. local rs = torso:findFirstChild("Right Shoulder")
  91. local ls = torso:findFirstChild("Left Shoulder")
  92. local rh = torso:findFirstChild("Right Hip")
  93. local lh = torso:findFirstChild("Left Hip")
  94. local neck = torso:findFirstChild("Neck")
  95. local rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  96. local rootpart = char:findFirstChild("HumanoidRootPart")
  97. local camera = workspace.CurrentCamera
  98. local anim = char:findFirstChild("Animate")
  99.  
  100. if humanoid.Animator then
  101. humanoid.Animator:Destroy()
  102. end
  103.  
  104. local ABS = math.abs;
  105. local SIN = math.sin;
  106. local ASIN = math.asin;
  107. local COS = math.cos;
  108.  
  109. local new = Instance.new;
  110.  
  111. local rm = new('Weld', torso)
  112. rm.C0 = CFrame.new(1.5, 0.5, 0)
  113. rm.C1 = CFrame.new(0, 0.5, 0)
  114. rm.Part0 = torso
  115. rm.Part1 = ra
  116. rm.Name = 'Right Shoulder'
  117.  
  118. local lm = new("Weld", torso)
  119. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  120. lm.C1 = CFrame.new(0, 0.5, 0)
  121. lm.Part0 = torso
  122. lm.Part1 = la
  123. lm.Name = 'Left Shoulder'
  124.  
  125. local rlegm = new("Weld", torso)
  126. rlegm.C0 = CFrame.new(0.5, -1, 0)
  127. rlegm.C1 = CFrame.new(0, 1, 0)
  128. rlegm.Part0 = torso
  129. rlegm.Part1 = rl
  130.  
  131. local llegm = new("Weld", torso)
  132. llegm.C0 = CFrame.new(-0.5, -1, 0)
  133. llegm.C1 = CFrame.new(0, 1, 0)
  134. llegm.Part0 = torso
  135. llegm.Part1 = ll
  136.  
  137. rj.C0 = CFrame.new()
  138. rj.C1 = CFrame.new()
  139.  
  140. neck.C0 = CFrame.new(0, 1, 0)
  141. neck.C1 = CFrame.new(0, -0.5, 0)
  142.  
  143.  
  144. local speed = 0.3
  145. local angle = 0
  146. local anglespeed = 1
  147. rsc0 = rm.C0
  148. lsc0 = lm.C0
  149. llc0 = llegm.C0
  150. rlc0 = rlegm.C0
  151. rootc0 = rj.C0
  152. neckc0 = neck.C0
  153.  
  154. function math_pos(float)
  155. if float < 0 then float = 0 end
  156. return float
  157. end
  158. function math_neg(float)
  159. if float > 0 then float = 0 end
  160. return float
  161. end
  162. function math_max(float, max)
  163. if float > max then float = max end
  164. return float
  165. end
  166. function math_min(float, min)
  167. if float < min then float = min end
  168. return float
  169. end
  170.  
  171. function SharpSin(double_p1)
  172. return ASIN(SIN(double_p1));
  173. end
  174.  
  175.  
  176.  
  177. function WeldP(part0, part1, C0, C1)
  178. local W = new("Weld", char);
  179. W.Part0 = part0;
  180. W.Part1 = part1;
  181. W.C0 = C0 or CFrame.new();
  182. W.C1 = C1 or CFrame.new();
  183. return W;
  184. end
  185.  
  186. function Bevel(part, sizeV3)
  187. local BvlMesh = new("SpecialMesh", part)
  188. BvlMesh.MeshId = "rbxasset://fonts/torso.mesh";
  189. if (sizeV3 ~= nil) then
  190. BvlMesh.Scale = Vector3.new(sizeV3.x/2, sizeV3.y/2, sizeV3.z);
  191. else
  192. BvlMesh.Scale = Vector3.new(part.Size.x/2, part.Size.y/2, part.Size.z);
  193. end
  194. end
  195.  
  196. do
  197. local Possible_Colors = {"Lavender", "Bright blue", "White", "Really black", "Dusty Rose"};
  198. local parts,last = {};
  199. local ColorToPaint = Possible_Colors[math.random(#Possible_Colors)];
  200. function WeldChildren(parent)
  201. for _,v in pairs(parent:GetChildren()) do
  202. if (v:IsA("BasePart")) then
  203. v.Anchored = true
  204. if (v.BrickColor == BrickColor.new("Medium stone grey")) then
  205. v.BrickColor = BrickColor.new(ColorToPaint);
  206. end
  207. if (last) then
  208. local w = new("Weld")
  209. w.Name = ("%s_Weld"):format(v.Name)
  210. w.Part0,w.Part1 = last,v
  211. w.C0 = last.CFrame:inverse()
  212. w.C1 = v.CFrame:inverse()
  213. w.Parent = last
  214. end
  215. last = v
  216. table.insert(parts,v)
  217. end
  218. WeldChildren(v)
  219. end
  220. for _,v in pairs(parts) do
  221. v.Anchored = false
  222. v.Locked = true
  223. end
  224. end
  225. end
  226.  
  227.  
  228. local Particles = {
  229.  
  230. AirRing = function(CF, Distance, Color, Opac, Size, Velocity)
  231. local StoredParticles = {};
  232.  
  233. for Angle = 0, 360, 20 do
  234. local EffectDirection = new("Part", char);
  235. EffectDirection.Anchored = true;
  236. EffectDirection.CanCollide = false;
  237. EffectDirection.CFrame = CF
  238. * CFrame.Angles(math.pi/2, 0, 0)
  239. * CFrame.Angles(0, 0, math.rad(Angle))
  240. * CFrame.new(0, Distance, 0);
  241. EffectDirection.Transparency = 1;
  242. local Smoke = new("Smoke", EffectDirection);
  243. Smoke.Color = Color3.new(Color.r/255, Color.g/255, Color.b/255) or Color3.new(1,1,1);
  244. Smoke.Opacity = Opac or 0.05;
  245. Smoke.Size = Size or 0;
  246. Smoke.RiseVelocity = Velocity or 2;
  247. table.insert(StoredParticles, Smoke);
  248. game:service'Debris':AddItem(EffectDirection, 10);
  249. end
  250.  
  251. wait(.2);
  252.  
  253. for Index,Value in next,StoredParticles do
  254. if Value:IsA'Smoke' then
  255. Value.Enabled = false;
  256. end
  257. end
  258. end;
  259.  
  260. BulletholeParticles = function(Part, hitPart)
  261. do --material splash
  262. local Particle = new("ParticleEmitter", Part);
  263. Particle.VelocitySpread = 30;
  264. Particle.LightEmission = 200;
  265.  
  266.  
  267. Particle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.1, 0), NumberSequenceKeypoint.new(1, 0.25, 0)})
  268. Particle.Color = ColorSequence.new(Color3.new(hitPart.BrickColor.r, hitPart.BrickColor.g, hitPart.BrickColor.b));
  269. Particle.Texture = "rbxassetid://272031379";
  270. Particle.Rotation = NumberRange.new(0,90);
  271. Particle.Rate = 25;
  272. Particle.Acceleration = Vector3.new(0, -100, 0)
  273. Particle.Speed = NumberRange.new(35);
  274. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(1, 1, 0)});
  275. Particle.Lifetime = NumberRange.new(2);
  276. coroutine.wrap(function()
  277. wait(.2)
  278. Particle.Enabled = false;
  279. Particle.Rate = 0;
  280. wait(2)
  281. Particle:Destroy()
  282. end)()
  283. end
  284.  
  285. do --smoke effect
  286. local Particle = new("ParticleEmitter", Part);
  287. Particle.VelocitySpread = 10;
  288.  
  289.  
  290. Particle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0), NumberSequenceKeypoint.new(1, 0.9, 0)})
  291.  
  292. Particle.Color = ColorSequence.new(Color3.new(hitPart.BrickColor.r, hitPart.BrickColor.g, hitPart.BrickColor.b));
  293. Particle.Texture = "rbxassetid://272031958"; -- replace id
  294. Particle.Rotation = NumberRange.new(0,90);
  295. Particle.Rate = 10;
  296. Particle.Acceleration = Vector3.new(0, -1, 0)
  297. Particle.Speed = NumberRange.new(5);
  298. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(1, 1, 0)});
  299. Particle.Lifetime = NumberRange.new(1);
  300. coroutine.wrap(function()
  301. wait(.2)
  302. Particle.Enabled = false;
  303. Particle.Rate = 0;
  304. wait(1)
  305. Particle:Destroy()
  306. end)()
  307. end
  308. end;
  309. };
  310.  
  311.  
  312. local Storage = new("Model", char);
  313.  
  314. local BasePart = new("Part");
  315. BasePart.FormFactor = "Custom";
  316. BasePart.TopSurface = 10;
  317. BasePart.BottomSurface = 10;
  318. BasePart.LeftSurface = 10;
  319. BasePart.RightSurface = 10;
  320. BasePart.FrontSurface = 10;
  321. BasePart.BackSurface = 10;
  322.  
  323. local CylPart = new("Part");
  324. CylPart.FormFactor = "Custom";
  325. CylPart.TopSurface = 10;
  326. CylPart.BottomSurface = 10;
  327. CylPart.LeftSurface = 10;
  328. CylPart.RightSurface = 10;
  329. CylPart.FrontSurface = 10;
  330. CylPart.BackSurface = 10;
  331. new("CylinderMesh", CylPart);
  332.  
  333. local m = new("Model")
  334. m.Name = "HOVERBIKE"
  335. Instance.new("Humanoid", m);
  336. m1 = new("Model")
  337. m1.Name = "Front"
  338. m1.Parent = m
  339. m2 = new("Model")
  340. m2.Name = "Middle"
  341. m2.Parent = m
  342. m3 = new("Model")
  343. m3.Name = "Pedals"
  344. m3.Parent = m2
  345. m4 = new("Model")
  346. m4.Name = "Back"
  347. m4.Parent = m
  348. p1 = new("Part", m1)
  349. p1.BrickColor = BrickColor.new("Institutional white")
  350. p1.Material = "SmoothPlastic"
  351. p1.FormFactor = 3
  352. p1.Size = Vector3.new(2.5999999, 2.4000001, 0.800000131)
  353. p1.CFrame = CFrame.new(-70.3000031, 1.79999804, -5.20002365, 0.999993324, 3.57207313e-008, 6.01311001e-008, 3.29292398e-008, -4.47034836e-007, -0.999996185, 5.16903889e-008, 0.999995708, -5.66244125e-007)
  354. p1.BackSurface = 10
  355. p1.BottomSurface = 10
  356. p1.FrontSurface = 10
  357. p1.LeftSurface = 10
  358. p1.RightSurface = 10
  359. p1.TopSurface = 10
  360. b1 = new("CylinderMesh", p1)
  361. b1.Name = "Mesh"
  362. p2 = new("Part", m1)
  363. p2.BrickColor = BrickColor.new("Institutional white")
  364. p2.Material = "SmoothPlastic"
  365. p2.FormFactor = 3
  366. p2.Size = Vector3.new(0.800000012, 1.00000012, 0.800000012)
  367. p2.CFrame = CFrame.new(-71, 1.60000002, -4.69999981, 0.707106769, 0.707106769, 0, -0.49999997, 0.49999997, -0.707106769, -0.49999997, 0.49999997, 0.707106769)
  368. p2.BackSurface = 10
  369. p2.BottomSurface = 10
  370. p2.FrontSurface = 10
  371. p2.LeftSurface = 10
  372. p2.RightSurface = 10
  373. p2.TopSurface = 10
  374. b2 = new("CylinderMesh", p2)
  375. b2.Name = "Mesh"
  376. p3 = new("Part", m1)
  377. p3.BrickColor = BrickColor.new("Medium stone grey")
  378. p3.Material = "SmoothPlastic"
  379. p3.FormFactor = 3
  380. p3.Size = Vector3.new(0.200000033, 1.80000007, 2.26000023)
  381. p3.CFrame = CFrame.new(-69.32798, 2.85687518, -5.29115105, -0.933012664, -0.249999866, -0.258819103, -0.166480377, 0.937541068, -0.305452108, 0.319016516, -0.241902426, -0.916357815)
  382. p3.BackSurface = 10
  383. p3.BottomSurface = 10
  384. p3.FrontSurface = 10
  385. p3.LeftSurface = 10
  386. p3.RightSurface = 10
  387. p3.TopSurface = 10
  388. p4 = new("Part", m1)
  389. p4.BrickColor = BrickColor.new("Medium stone grey")
  390. p4.Material = "SmoothPlastic"
  391. p4.FormFactor = 3
  392. p4.Size = Vector3.new(1.80000007, 0.200000003, 2.31000018)
  393. p4.CFrame = CFrame.new(-71.2271042, 2.84331346, -5.26954222, 0.25000003, 0.933012784, 0.258818537, 0.937540889, -0.166480452, -0.305452794, -0.241903126, 0.319016159, -0.916357756)
  394. p4.BackSurface = 10
  395. p4.BottomSurface = 10
  396. p4.FrontSurface = 10
  397. p4.LeftSurface = 10
  398. p4.RightSurface = 10
  399. p4.TopSurface = 10
  400. p5 = new("Part", m1)
  401. p5.BrickColor = BrickColor.new("Medium stone grey")
  402. p5.Material = "SmoothPlastic"
  403. p5.FormFactor = 3
  404. p5.Size = Vector3.new(0.200000033, 0.570000052, 2.31000018)
  405. p5.CFrame = CFrame.new(-70.7262497, 3.63176894, -5.52089834, 9.7468944e-010, 0.965925813, 0.258819014, 0.948683262, 0.08184582, -0.305452794, -0.316228002, 0.245537266, -0.916357636)
  406. p5.BackSurface = 10
  407. p5.BottomSurface = 10
  408. p5.FrontSurface = 10
  409. p5.LeftSurface = 10
  410. p5.RightSurface = 10
  411. p5.TopSurface = 10
  412. p6 = new("WedgePart", m1)
  413. p6.BrickColor = BrickColor.new("Dark stone grey")
  414. p6.Material = "SmoothPlastic"
  415. p6.Name = "Wedge"
  416. p6.FormFactor = 3
  417. p6.Size = Vector3.new(0.600000024, 1, 1.19999981)
  418. p6.CFrame = CFrame.new(-70.3000031, 3.39999628, -4.99999666, 0.999990463, 4.89541385e-008, 1.56179951e-007, -3.44916629e-008, 0.999993563, -1.0771722e-007, -1.27013777e-007, 1.82223147e-007, 0.999994636)
  419. p6.BackSurface = 10
  420. p6.BottomSurface = 10
  421. p6.FrontSurface = 10
  422. p6.LeftSurface = 10
  423. p6.RightSurface = 10
  424. p6.TopSurface = 10
  425. p7 = new("WedgePart", m1)
  426. p7.BrickColor = BrickColor.new("Dark stone grey")
  427. p7.Material = "SmoothPlastic"
  428. p7.Name = "Wedge"
  429. p7.FormFactor = 3
  430. p7.Size = Vector3.new(0.600000024, 1.9000001, 1.60000014)
  431. p7.CFrame = CFrame.new(-70.3000031, 1.94999981, -4.79999971, -0.999999285, -4.22459312e-009, -4.42287984e-009, -8.71322658e-009, -0.999999583, -4.27401368e-008, -3.42251809e-008, -5.01331741e-008, 0.999999523)
  432. p7.BackSurface = 10
  433. p7.BottomSurface = 10
  434. p7.FrontSurface = 10
  435. p7.LeftSurface = 10
  436. p7.RightSurface = 10
  437. p7.TopSurface = 10
  438. p8 = new("Part", m1)
  439. p8.BrickColor = BrickColor.new("Institutional white")
  440. p8.Material = "SmoothPlastic"
  441. p8.FormFactor = 3
  442. p8.Size = Vector3.new(0.200000003, 1.00000012, 2.46000028)
  443. p8.CFrame = CFrame.new(-70.6999893, 2.70000029, -5.36999369, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  444. p8.BackSurface = 10
  445. p8.BottomSurface = 10
  446. p8.FrontSurface = 10
  447. p8.LeftSurface = 10
  448. p8.RightSurface = 10
  449. p8.TopSurface = 10
  450. p9 = new("Part", m1)
  451. p9.BrickColor = BrickColor.new("Medium stone grey")
  452. p9.Material = "SmoothPlastic"
  453. p9.FormFactor = 3
  454. p9.Size = Vector3.new(0.200000033, 1, 2.24000001)
  455. p9.CFrame = CFrame.new(-70.3000031, 3.65261483, -5.4583602, -2.94648261e-009, 1, -2.40095073e-008, 0.948683262, -4.79719953e-009, -0.316227973, -0.316227973, -2.37091786e-008, -0.948683262)
  456. p9.BackSurface = 10
  457. p9.BottomSurface = 10
  458. p9.FrontSurface = 10
  459. p9.LeftSurface = 10
  460. p9.RightSurface = 10
  461. p9.TopSurface = 10
  462. p10 = new("Part", m1)
  463. p10.BrickColor = BrickColor.new("Institutional white")
  464. p10.Material = "SmoothPlastic"
  465. p10.FormFactor = 3
  466. p10.Size = Vector3.new(2.5999999, 2.20000005, 0.800000131)
  467. p10.CFrame = CFrame.new(-70.3000031, 1.75333345, -4.62936497, 0.999993324, 6.73471092e-008, 9.66288383e-008, 9.03622777e-008, -0.620700181, -0.784043133, 9.45857366e-008, 0.784042716, -0.620700002)
  468. p10.BackSurface = 10
  469. p10.BottomSurface = 10
  470. p10.FrontSurface = 10
  471. p10.LeftSurface = 10
  472. p10.RightSurface = 10
  473. p10.TopSurface = 10
  474. b3 = new("CylinderMesh", p10)
  475. b3.Name = "Mesh"
  476. p11 = new("Part", m1)
  477. p11.BrickColor = BrickColor.new("Medium stone grey")
  478. p11.Material = "SmoothPlastic"
  479. p11.FormFactor = 3
  480. p11.Size = Vector3.new(2.5999999, 1.60000002, 1.40000021)
  481. p11.CFrame = CFrame.new(-70.3000031, 2.79999661, -5.20002317, 0.999993324, 3.57207313e-008, 6.01311001e-008, 3.29292398e-008, -4.47034836e-007, -0.999996185, 5.16903889e-008, 0.999995708, -5.66244125e-007)
  482. p11.BackSurface = 10
  483. p11.BottomSurface = 10
  484. p11.FrontSurface = 10
  485. p11.LeftSurface = 10
  486. p11.RightSurface = 10
  487. p11.TopSurface = 10
  488. b4 = new("CylinderMesh", p11)
  489. b4.Name = "Mesh"
  490. p12 = new("Part", m1)
  491. p12.BrickColor = BrickColor.new("Institutional white")
  492. p12.Material = "SmoothPlastic"
  493. p12.FormFactor = 3
  494. p12.Size = Vector3.new(0.200000003, 1.00000012, 2.46000028)
  495. p12.CFrame = CFrame.new(-69.9000015, 2.70000029, -5.37000704, -0.99999994, 6.17772677e-009, 2.98023224e-008, 8.16360668e-009, 1, -1.0658141e-014, -5.96046448e-008, -2.73676903e-008, -1)
  496. p12.BackSurface = 10
  497. p12.BottomSurface = 10
  498. p12.FrontSurface = 10
  499. p12.LeftSurface = 10
  500. p12.RightSurface = 10
  501. p12.TopSurface = 10
  502. p13 = new("Part", m1)
  503. p13.BrickColor = BrickColor.new("Institutional white")
  504. p13.Material = "SmoothPlastic"
  505. p13.FormFactor = 3
  506. p13.Size = Vector3.new(0.800000012, 1.00000012, 0.800000012)
  507. p13.CFrame = CFrame.new(-69.8000031, 1.59999776, -4.70001411, 0.70710206, -0.70710212, 4.05156406e-008, 0.499997437, 0.499997407, -0.707104921, 0.49999854, 0.499998391, 0.707102716)
  508. p13.BackSurface = 10
  509. p13.BottomSurface = 10
  510. p13.FrontSurface = 10
  511. p13.LeftSurface = 10
  512. p13.RightSurface = 10
  513. p13.TopSurface = 10
  514. b5 = new("CylinderMesh", p13)
  515. b5.Name = "Mesh"
  516. p14 = new("Part", m1)
  517. p14.BrickColor = BrickColor.new("Institutional white")
  518. p14.Material = "SmoothPlastic"
  519. p14.FormFactor = 3
  520. p14.Size = Vector3.new(1, 0.200000003, 2.66000032)
  521. p14.CFrame = CFrame.new(-70.3000031, 2.10000038, -5.27000713, -0.99999994, 6.17772677e-009, 2.98023224e-008, 8.16360668e-009, 1, -1.0658141e-014, -5.96046448e-008, -2.73676903e-008, -1)
  522. p14.BackSurface = 10
  523. p14.BottomSurface = 10
  524. p14.FrontSurface = 10
  525. p14.LeftSurface = 10
  526. p14.RightSurface = 10
  527. p14.TopSurface = 10
  528. p15 = new("Part", m1)
  529. p15.BrickColor = BrickColor.new("Medium stone grey")
  530. p15.Material = "SmoothPlastic"
  531. p15.FormFactor = 3
  532. p15.Size = Vector3.new(0.200000033, 0.600000024, 2.27000022)
  533. p15.CFrame = CFrame.new(-69.8331375, 3.6373589, -5.50412893, 1.58114908e-008, 0.965925813, -0.258819073, 0.948683321, -0.081845805, -0.305452615, -0.316227823, -0.245537326, -0.916357696)
  534. p15.BackSurface = 10
  535. p15.BottomSurface = 10
  536. p15.FrontSurface = 10
  537. p15.LeftSurface = 10
  538. p15.RightSurface = 10
  539. p15.TopSurface = 10
  540. p16 = new("Part", m1)
  541. p16.BrickColor = BrickColor.new("Black")
  542. p16.Material = "SmoothPlastic"
  543. p16.FormFactor = 3
  544. p16.Size = Vector3.new(0.200000033, 1, 0.200000003)
  545. p16.CFrame = CFrame.new(-71.1000061, 3.86704206, -3.96570897, -2.07027329e-009, 0.965925753, -0.258819044, 0.928476572, -0.0961230621, -0.358736128, -0.371390998, -0.240307435, -0.896839499)
  546. p16.BackSurface = 10
  547. p16.BottomSurface = 10
  548. p16.FrontSurface = 10
  549. p16.LeftSurface = 10
  550. p16.RightSurface = 10
  551. p16.TopSurface = 10
  552. b6 = new("CylinderMesh", p16)
  553. b6.Name = "Mesh"
  554. p17 = new("WedgePart", m1)
  555. p17.BrickColor = BrickColor.new("Medium stone grey")
  556. p17.Material = "SmoothPlastic"
  557. p17.Name = "Wedge"
  558. p17.FormFactor = 3
  559. p17.Size = Vector3.new(0.600000024, 0.900000095, 0.200000033)
  560. p17.CFrame = CFrame.new(-70.9000015, 2.54999876, -4.0999999, -0.999994278, -1.74263892e-008, 6.84501131e-008, -1.74263928e-008, 0.999997139, 1.84370062e-015, -6.84501131e-008, 6.50858793e-016, -0.999997139)
  561. p17.BackSurface = 10
  562. p17.BottomSurface = 10
  563. p17.FrontSurface = 10
  564. p17.LeftSurface = 10
  565. p17.RightSurface = 10
  566. p17.TopSurface = 10
  567. p18 = new("Part", m1)
  568. p18.BrickColor = BrickColor.new("Institutional white")
  569. p18.Material = "SmoothPlastic"
  570. p18.FormFactor = 3
  571. p18.Size = Vector3.new(1.80000007, 1, 0.200000003)
  572. p18.CFrame = CFrame.new(-70.3000107, 3.40137672, -4.09284878, -1, -4.58120741e-009, -2.37882976e-008, 4.58120741e-009, 0.928476691, -0.371390671, 2.37882976e-008, -0.371390671, -0.928476691)
  573. p18.BackSurface = 10
  574. p18.BottomSurface = 10
  575. p18.FrontSurface = 10
  576. p18.LeftSurface = 10
  577. p18.RightSurface = 10
  578. p18.TopSurface = 10
  579. b7 = new("BlockMesh", p18)
  580. b7.Name = "Mesh"
  581. b7.Offset = Vector3.new(0, 0, 0.100000001)
  582. b7.Scale = Vector3.new(0.899999976, 0.899999976, 0.200000003)
  583. p19 = new("Part", m1)
  584. p19.BrickColor = BrickColor.new("Dark stone grey")
  585. p19.Material = "SmoothPlastic"
  586. p19.FormFactor = 3
  587. p19.Size = Vector3.new(0.200000003, 0.399999976, 0.200000003)
  588. p19.CFrame = CFrame.new(-70.3000259, 2.59999895, -3.9000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  589. p19.BackSurface = 10
  590. p19.BottomSurface = 10
  591. p19.FrontSurface = 10
  592. p19.LeftSurface = 10
  593. p19.RightSurface = 10
  594. p19.TopSurface = 10
  595. p20 = new("WedgePart", m1)
  596. p20.BrickColor = BrickColor.new("Institutional white")
  597. p20.Material = "SmoothPlastic"
  598. p20.Name = "Wedge"
  599. p20.FormFactor = 3
  600. p20.Size = Vector3.new(1.79999995, 0.699999988, 0.400000066)
  601. p20.CFrame = CFrame.new(-70.2999954, 1.75000012, -3.80001855, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  602. p20.BackSurface = 10
  603. p20.BottomSurface = 10
  604. p20.FrontSurface = 10
  605. p20.LeftSurface = 10
  606. p20.RightSurface = 10
  607. p20.TopSurface = 10
  608. p21 = new("WedgePart", m1)
  609. p21.BrickColor = BrickColor.new("Dark stone grey")
  610. p21.Material = "SmoothPlastic"
  611. p21.Name = "Wedge"
  612. p21.FormFactor = 3
  613. p21.Size = Vector3.new(0.600000024, 0.700000107, 0.600000024)
  614. p21.CFrame = CFrame.new(-69.7000046, 2.55000138, -4.50000286, -0.999991119, 2.1650715e-008, 1.73532499e-007, -8.25170332e-008, -0.999993801, -6.07012907e-007, 1.13927797e-007, -6.07009156e-007, 0.999990523)
  615. p21.BackSurface = 10
  616. p21.BottomSurface = 10
  617. p21.FrontSurface = 10
  618. p21.LeftSurface = 10
  619. p21.RightSurface = 10
  620. p21.TopSurface = 10
  621. p22 = new("Part", m1)
  622. p22.BrickColor = BrickColor.new("Black")
  623. p22.Material = "SmoothPlastic"
  624. p22.FormFactor = 3
  625. p22.Size = Vector3.new(0.200000033, 1, 0.200000003)
  626. p22.CFrame = CFrame.new(-69.5000076, 3.86704469, -3.96570921, 1.70448082e-008, 0.965925813, 0.258819014, 0.928476632, 0.096122995, -0.358735979, -0.37139082, 0.24030742, -0.896839559)
  627. p22.BackSurface = 10
  628. p22.BottomSurface = 10
  629. p22.FrontSurface = 10
  630. p22.LeftSurface = 10
  631. p22.RightSurface = 10
  632. p22.TopSurface = 10
  633. b8 = new("CylinderMesh", p22)
  634. b8.Name = "Mesh"
  635. p23 = new("WedgePart", m1)
  636. p23.BrickColor = BrickColor.new("Medium stone grey")
  637. p23.Material = "SmoothPlastic"
  638. p23.Name = "Wedge"
  639. p23.FormFactor = 3
  640. p23.Size = Vector3.new(1.79999995, 1, 0.400000006)
  641. p23.CFrame = CFrame.new(-70.3000031, 3.3999989, -4.20000076, -0.999997854, -1.84590085e-008, -3.30043548e-008, -3.13968336e-008, 0.999998927, 2.98023224e-008, 3.20212834e-009, 8.94069672e-008, -0.999998868)
  642. p23.BackSurface = 10
  643. p23.BottomSurface = 10
  644. p23.FrontSurface = 10
  645. p23.LeftSurface = 10
  646. p23.RightSurface = 10
  647. p23.TopSurface = 10
  648. p24 = new("WedgePart", m1)
  649. p24.BrickColor = BrickColor.new("Dark stone grey")
  650. p24.Material = "SmoothPlastic"
  651. p24.Name = "Wedge"
  652. p24.FormFactor = 3
  653. p24.Size = Vector3.new(0.600000024, 0.700000107, 0.600000024)
  654. p24.CFrame = CFrame.new(-70.9000015, 2.55000186, -4.49999714, -0.999991119, 2.1650715e-008, 1.73532499e-007, -8.25170332e-008, -0.999993801, -6.07012907e-007, 1.13927797e-007, -6.07009156e-007, 0.999990523)
  655. p24.BackSurface = 10
  656. p24.BottomSurface = 10
  657. p24.FrontSurface = 10
  658. p24.LeftSurface = 10
  659. p24.RightSurface = 10
  660. p24.TopSurface = 10
  661. p25 = new("Part", m1)
  662. p25.BrickColor = BrickColor.new("Medium blue")
  663. p25.Material = "SmoothPlastic"
  664. p25.Transparency = 0.5
  665. p25.FormFactor = 3
  666. p25.Size = Vector3.new(0.600000024, 1.79999995, 0.400000006)
  667. p25.CFrame = CFrame.new(-70.3000031, 4.25511837, -4.3927331, 3.93155108e-009, 1, -2.34442759e-008, 0.979697764, 8.48380366e-010, 0.200480163, 0.200480163, -2.37565061e-008, -0.979697764)
  668. p25.BackSurface = 10
  669. p25.BottomSurface = 10
  670. p25.FrontSurface = 10
  671. p25.LeftSurface = 10
  672. p25.RightSurface = 10
  673. p25.TopSurface = 10
  674. b9 = new("BlockMesh", p25)
  675. b9.Name = "Mesh"
  676. b9.Scale = Vector3.new(1, 0.850000024, 0.0500000007)
  677. p26 = new("Part", m1)
  678. p26.BrickColor = BrickColor.new("Black")
  679. p26.Material = "SmoothPlastic"
  680. p26.FormFactor = 3
  681. p26.Size = Vector3.new(0.400000006, 0.200000003, 0.600000024)
  682. p26.CFrame = CFrame.new(-69.8000107, 3.40137601, -4.0928483, -1, 2.37882976e-008, -4.58120741e-009, 4.58120741e-009, 0.371390671, 0.928476691, 2.37882976e-008, 0.928476691, -0.371390671)
  683. p26.BackSurface = 10
  684. p26.BottomSurface = 10
  685. p26.FrontSurface = 10
  686. p26.LeftSurface = 10
  687. p26.RightSurface = 10
  688. p26.TopSurface = 10
  689. b10 = new("CylinderMesh", p26)
  690. b10.Name = "Mesh"
  691. b10.Offset = Vector3.new(0, -0.150000006, 0)
  692. p27 = new("Part", m1)
  693. p27.BrickColor = BrickColor.new("Black")
  694. p27.Material = "SmoothPlastic"
  695. p27.FormFactor = 3
  696. p27.Size = Vector3.new(0.200000033, 1, 0.200000003)
  697. p27.CFrame = CFrame.new(-70.3000107, 3.84704471, -4.05570936, -4.58120741e-009, 1, -2.37882976e-008, 0.928476691, -4.58120741e-009, -0.371390671, -0.371390671, -2.37882976e-008, -0.928476691)
  698. p27.BackSurface = 10
  699. p27.BottomSurface = 10
  700. p27.FrontSurface = 10
  701. p27.LeftSurface = 10
  702. p27.RightSurface = 10
  703. p27.TopSurface = 10
  704. b11 = new("CylinderMesh", p27)
  705. b11.Name = "Mesh"
  706. b11.Scale = Vector3.new(1.39999998, 1, 1.39999998)
  707. p28 = new("WedgePart", m1)
  708. p28.BrickColor = BrickColor.new("Medium stone grey")
  709. p28.Material = "SmoothPlastic"
  710. p28.Name = "Wedge"
  711. p28.FormFactor = 3
  712. p28.Size = Vector3.new(0.600000024, 0.900000095, 0.200000033)
  713. p28.CFrame = CFrame.new(-69.7000046, 2.54999852, -4.0999999, -0.999994278, -1.74263892e-008, 6.84501131e-008, -1.74263928e-008, 0.999997139, 1.84370062e-015, -6.84501131e-008, 6.50858793e-016, -0.999997139)
  714. p28.BackSurface = 10
  715. p28.BottomSurface = 10
  716. p28.FrontSurface = 10
  717. p28.LeftSurface = 10
  718. p28.RightSurface = 10
  719. p28.TopSurface = 10
  720. p29 = new("Part", m1)
  721. p29.BrickColor = BrickColor.new("Black")
  722. p29.Material = "SmoothPlastic"
  723. p29.FormFactor = 3
  724. p29.Size = Vector3.new(0.600000024, 0.200000003, 0.600000024)
  725. p29.CFrame = CFrame.new(-70.7000122, 3.40137601, -4.0928483, -1, 2.37882976e-008, -4.58120741e-009, 4.58120741e-009, 0.371390671, 0.928476691, 2.37882976e-008, 0.928476691, -0.371390671)
  726. p29.BackSurface = 10
  727. p29.BottomSurface = 10
  728. p29.FrontSurface = 10
  729. p29.LeftSurface = 10
  730. p29.RightSurface = 10
  731. p29.TopSurface = 10
  732. b12 = new("CylinderMesh", p29)
  733. b12.Name = "Mesh"
  734. b12.Offset = Vector3.new(0, -0.150000006, 0)
  735. p30 = new("Part", m1)
  736. p30.BrickColor = BrickColor.new("Black")
  737. p30.Material = "SmoothPlastic"
  738. p30.FormFactor = 3
  739. p30.Size = Vector3.new(0.600000024, 0.200000003, 0.200000003)
  740. p30.CFrame = CFrame.new(-70.3000107, 3.77276635, -4.24140453, -1, 2.37882976e-008, -4.58120741e-009, 4.58120741e-009, 0.371390671, 0.928476691, 2.37882976e-008, 0.928476691, -0.371390671)
  741. p30.BackSurface = 10
  742. p30.BottomSurface = 10
  743. p30.FrontSurface = 10
  744. p30.LeftSurface = 10
  745. p30.RightSurface = 10
  746. p30.TopSurface = 10
  747. b13 = new("CylinderMesh", p30)
  748. b13.Name = "Mesh"
  749.  
  750. Barrel = new("Part", m1)
  751. Barrel.BrickColor = BrickColor.new("Black")
  752. Barrel.FormFactor = Enum.FormFactor.Custom
  753. Barrel.Size = Vector3.new(0.200000003, 0.400000006, 0.200000003)
  754. Barrel.CFrame = CFrame.new(-70.3000031, 2.70000052, -7.40000629, -1.20340502e-007, -1.59888529e-008, 1, 1, -3.57627869e-007, 1.20340502e-007, 3.57627869e-007, 1, 1.5988892e-008) * CFrame.Angles(math.pi, 0, 0)
  755. Mb1 = new("CylinderMesh", Barrel)
  756. Mb1.Name = "Mesh"
  757. Mb1.Scale = Vector3.new(0.5, 1, 0.5)
  758. MainBarrel = new("Part", m1)
  759. MainBarrel.BrickColor = BrickColor.new("Black")
  760. MainBarrel.FormFactor = Enum.FormFactor.Custom
  761. MainBarrel.Size = Vector3.new(0.200000003, 2, 0.200000003)
  762. MainBarrel.CFrame = CFrame.new(-70.3000031, 2.70000005, -6.20000648, -1.20340502e-007, -1.59888529e-008, 1, 1, -3.57627869e-007, 1.20340502e-007, 3.57627869e-007, 1, 1.5988892e-008)
  763. Bb2 = new("CylinderMesh", MainBarrel)
  764. Bb2.Name = "Mesh"
  765.  
  766. p31 = new("Part", m2)
  767. p31.BrickColor = BrickColor.new("Dark stone grey")
  768. p31.Material = "SmoothPlastic"
  769. p31.FormFactor = 3
  770. p31.Size = Vector3.new(0.200000003, 0.689999938, 0.200000003)
  771. p31.CFrame = CFrame.new(-70.3000259, 2.56110811, -3.46110916, 1, 0, 0, 0, 0.70710659, 0.70710665, 0, -0.70710665, 0.70710659)
  772. p31.BackSurface = 10
  773. p31.BottomSurface = 10
  774. p31.FrontSurface = 10
  775. p31.LeftSurface = 10
  776. p31.RightSurface = 10
  777. p31.TopSurface = 10
  778. p32 = new("Part", m2)
  779. p32.BrickColor = BrickColor.new("White")
  780. p32.Material = "SmoothPlastic"
  781. p32.FormFactor = 3
  782. p32.Size = Vector3.new(0.600000024, 0.399999976, 0.50000006)
  783. p32.CFrame = CFrame.new(-69.8499985, 1.546, -3.71199989, 0, 0, 1, -0.707106769, 0.707106709, 0, -0.707106709, -0.707106769, 0)
  784. p32.BackSurface = 10
  785. p32.BottomSurface = 10
  786. p32.FrontSurface = 10
  787. p32.LeftSurface = 10
  788. p32.RightSurface = 10
  789. p32.TopSurface = 10
  790. p33 = new("Part", m2)
  791. p33.BrickColor = BrickColor.new("Dark stone grey")
  792. p33.Material = "SmoothPlastic"
  793. p33.FormFactor = 3
  794. p33.Size = Vector3.new(0.200000003, 0.399999976, 0.200000003)
  795. p33.CFrame = CFrame.new(-70.3000259, 2.59999871, -3.0999999, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  796. p33.BackSurface = 10
  797. p33.BottomSurface = 10
  798. p33.FrontSurface = 10
  799. p33.LeftSurface = 10
  800. p33.RightSurface = 10
  801. p33.TopSurface = 10
  802.  
  803. Seat = new("Part", m2)
  804. Seat.BrickColor = BrickColor.new("Black")
  805. Seat.Material = "SmoothPlastic"
  806. Seat.FormFactor = 3
  807. Seat.Size = Vector3.new(0.600000024, 0.200000003, 2.20000005)
  808. Seat.CFrame = CFrame.new(-70.3000259, 2.83298802, -2.92815232, 1, 0, 0, 0, 0.999999762, 1.49011612e-008, 0, -1.49011612e-008, 0.999999762)
  809. Seat.BackSurface = 10
  810. Seat.BottomSurface = 10
  811. Seat.FrontSurface = 10
  812. Seat.LeftSurface = 10
  813. Seat.RightSurface = 10
  814. Seat.TopSurface = 10
  815.  
  816. p35 = new("Part", m2)
  817. p35.BrickColor = BrickColor.new("Dark stone grey")
  818. p35.Material = "SmoothPlastic"
  819. p35.FormFactor = 3
  820. p35.Size = Vector3.new(0.200000003, 1, 3.20000005)
  821. p35.CFrame = CFrame.new(-70.3000259, 1.89999962, -2.4000001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  822. p35.BackSurface = 10
  823. p35.BottomSurface = 10
  824. p35.FrontSurface = 10
  825. p35.LeftSurface = 10
  826. p35.RightSurface = 10
  827. p35.TopSurface = 10
  828. p36 = new("Part", m2)
  829. p36.BrickColor = BrickColor.new("Dark stone grey")
  830. p36.Material = "SmoothPlastic"
  831. p36.FormFactor = 3
  832. p36.Size = Vector3.new(0.200000003, 1.39999998, 2.80000019)
  833. p36.CFrame = CFrame.new(-70.3000259, 2.08612967, -2.02450442, 1, 0, 0, 0, 0.965925813, 0.258819044, 0, -0.258819044, 0.965925813)
  834. p36.BackSurface = 10
  835. p36.BottomSurface = 10
  836. p36.FrontSurface = 10
  837. p36.LeftSurface = 10
  838. p36.RightSurface = 10
  839. p36.TopSurface = 10
  840. p37 = new("Part", m2)
  841. p37.BrickColor = BrickColor.new("Medium stone grey")
  842. p37.Material = "SmoothPlastic"
  843. p37.FormFactor = 3
  844. p37.Size = Vector3.new(1.79999995, 0.400000006, 4)
  845. p37.CFrame = CFrame.new(-70.3000259, 1.19999993, -2, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  846. p37.BackSurface = 10
  847. p37.BottomSurface = 10
  848. p37.FrontSurface = 10
  849. p37.LeftSurface = 10
  850. p37.RightSurface = 10
  851. p37.TopSurface = 10
  852. p38 = new("Part", m2)
  853. p38.BrickColor = BrickColor.new("White")
  854. p38.Material = "SmoothPlastic"
  855. p38.Reflectance = 0.5
  856. p38.FormFactor = 3
  857. p38.Size = Vector3.new(1.79999995, 0.210000003, 4)
  858. p38.CFrame = CFrame.new(-70.3000259, 1.0999999, -2, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  859. p38.BackSurface = 10
  860. p38.BottomSurface = 10
  861. p38.FrontSurface = 10
  862. p38.LeftSurface = 10
  863. p38.RightSurface = 10
  864. p38.TopSurface = 10
  865. b14 = new("BlockMesh", p38)
  866. b14.Name = "Mesh"
  867. b14.Scale = Vector3.new(1.10000002, 1, 0.899999976)
  868. p39 = new("WedgePart", m2)
  869. p39.BrickColor = BrickColor.new("Institutional white")
  870. p39.Material = "SmoothPlastic"
  871. p39.Name = "Wedge"
  872. p39.FormFactor = 3
  873. p39.Size = Vector3.new(1.79999995, 1.5, 1.20000005)
  874. p39.CFrame = CFrame.new(-70.3000259, 1.99999988, -1.75, -1, 8.98468642e-008, 4.68792827e-008, -4.68792862e-008, -2.98022584e-008, -1, -8.98468571e-008, -1, 2.98022638e-008)
  875. p39.BackSurface = 10
  876. p39.BottomSurface = 10
  877. p39.FrontSurface = 10
  878. p39.LeftSurface = 10
  879. p39.RightSurface = 10
  880. p39.TopSurface = 10
  881. p40 = new("WedgePart", m2)
  882. p40.BrickColor = BrickColor.new("Institutional white")
  883. p40.Material = "SmoothPlastic"
  884. p40.Name = "Wedge"
  885. p40.FormFactor = 3
  886. p40.Size = Vector3.new(1.79999995, 1.79999995, 1.00000012)
  887. p40.CFrame = CFrame.new(-70.3000183, 2.29999948, -1.49999976, 0.999998927, 3.44938211e-009, -2.31517916e-010, 4.31985789e-008, 0.999999344, -2.98023117e-008, 2.31518388e-010, 5.96046235e-008, 0.999999344)
  888. p40.BackSurface = 10
  889. p40.BottomSurface = 10
  890. p40.FrontSurface = 10
  891. p40.LeftSurface = 10
  892. p40.RightSurface = 10
  893. p40.TopSurface = 10
  894. p41 = new("Part", m2)
  895. p41.BrickColor = BrickColor.new("Black")
  896. p41.Material = "SmoothPlastic"
  897. p41.FormFactor = 3
  898. p41.Size = Vector3.new(0.600000024, 0.200000003, 0.850000083)
  899. p41.CFrame = CFrame.new(-70.3000259, 2.94887185, -1.44207752, 1, 0, 0, 0, 0.965925574, 0.258818984, 0, -0.258818984, 0.965925574)
  900. p41.BackSurface = 10
  901. p41.BottomSurface = 10
  902. p41.FrontSurface = 10
  903. p41.LeftSurface = 10
  904. p41.RightSurface = 10
  905. p41.TopSurface = 10
  906. p42 = new("WedgePart", m2)
  907. p42.BrickColor = BrickColor.new("Medium stone grey")
  908. p42.Material = "SmoothPlastic"
  909. p42.Name = "Wedge"
  910. p42.FormFactor = 3
  911. p42.Size = Vector3.new(0.200000003, 0.399999976, 0.799999952)
  912. p42.CFrame = CFrame.new(-71.4000244, 1.29999983, -0.799999714, 3.41726647e-013, -1, 4.76835822e-007, 1, 3.41060513e-013, -1.30897582e-009, 1.30897582e-009, 4.76835822e-007, 1)
  913. p42.BackSurface = 10
  914. p42.BottomSurface = 10
  915. p42.FrontSurface = 10
  916. p42.LeftSurface = 10
  917. p42.RightSurface = 10
  918. p42.TopSurface = 10
  919. p43 = new("Part", m2)
  920. p43.BrickColor = BrickColor.new("Institutional white")
  921. p43.Material = "SmoothPlastic"
  922. p43.FormFactor = 3
  923. p43.Size = Vector3.new(1.79999995, 2, 0.600000083)
  924. p43.CFrame = CFrame.new(-70.3000259, 2.29946756, -1.05553186, 1, 0, 0, 0, 0.965925813, -0.258819044, 0, 0.258819044, 0.965925813)
  925. p43.BackSurface = 10
  926. p43.BottomSurface = 10
  927. p43.FrontSurface = 10
  928. p43.LeftSurface = 10
  929. p43.RightSurface = 10
  930. p43.TopSurface = 10
  931. p44 = new("WedgePart", m2)
  932. p44.BrickColor = BrickColor.new("Medium stone grey")
  933. p44.Material = "SmoothPlastic"
  934. p44.Name = "Wedge"
  935. p44.FormFactor = 3
  936. p44.Size = Vector3.new(0.200000003, 0.399999976, 0.799999952)
  937. p44.CFrame = CFrame.new(-69.1999817, 1.29999602, -0.800000191, -3.41060513e-013, 1, -4.76835822e-007, -1, -3.41060513e-013, 1.30920319e-009, 1.30920319e-009, 4.76835822e-007, 1)
  938. p44.BackSurface = 10
  939. p44.BottomSurface = 10
  940. p44.FrontSurface = 10
  941. p44.LeftSurface = 10
  942. p44.RightSurface = 10
  943. p44.TopSurface = 10
  944. p45 = new("Part", m2)
  945. p45.BrickColor = BrickColor.new("White")
  946. p45.Material = "SmoothPlastic"
  947. p45.FormFactor = 3
  948. p45.Size = Vector3.new(0.600000024, 0.399999976, 0.50000006)
  949. p45.CFrame = CFrame.new(-70.7500229, 1.54644656, -3.71213222, 0, 0, 1, -0.707106769, 0.707106709, 0, -0.707106709, -0.707106769, 0)
  950. p45.BackSurface = 10
  951. p45.BottomSurface = 10
  952. p45.FrontSurface = 10
  953. p45.LeftSurface = 10
  954. p45.RightSurface = 10
  955. p45.TopSurface = 10
  956. p46 = new("Part", m3)
  957. p46.BrickColor = BrickColor.new("White")
  958. p46.Material = "SmoothPlastic"
  959. p46.FormFactor = 3
  960. p46.Size = Vector3.new(0.200000003, 0.200000003, 0.50000006)
  961. p46.CFrame = CFrame.new(-70.7500229, 1.89999998, -3.21715736, 0, 0, 1, -0.707106769, 0.707106709, 0, -0.707106709, -0.707106769, 0)
  962. p46.BackSurface = 10
  963. p46.BottomSurface = 10
  964. p46.FrontSurface = 10
  965. p46.LeftSurface = 10
  966. p46.RightSurface = 10
  967. p46.TopSurface = 10
  968. b15 = new("BlockMesh", p46)
  969. b15.Name = "Mesh"
  970. b15.Offset = Vector3.new(0.150000006, 0, 0)
  971. p47 = new("Part", m3)
  972. p47.BrickColor = BrickColor.new("White")
  973. p47.Material = "SmoothPlastic"
  974. p47.FormFactor = 3
  975. p47.Size = Vector3.new(0.200000003, 0.200000003, 0.50000006)
  976. p47.CFrame = CFrame.new(-69.8499985, 2.18284273, -3.5, 0, 0, 1, -0.707106769, 0.707106709, 0, -0.707106709, -0.707106769, 0)
  977. p47.BackSurface = 10
  978. p47.BottomSurface = 10
  979. p47.FrontSurface = 10
  980. p47.LeftSurface = 10
  981. p47.RightSurface = 10
  982. p47.TopSurface = 10
  983. b16 = new("BlockMesh", p47)
  984. b16.Name = "Mesh"
  985. b16.Offset = Vector3.new(0.150000006, 0, 0)
  986. p48 = new("Part", m3)
  987. p48.BrickColor = BrickColor.new("White")
  988. p48.Material = "SmoothPlastic"
  989. p48.FormFactor = 3
  990. p48.Size = Vector3.new(0.200000003, 0.200000003, 0.50000006)
  991. p48.CFrame = CFrame.new(-70.7500229, 2.18284273, -3.5, 0, 0, 1, -0.707106769, 0.707106709, 0, -0.707106709, -0.707106769, 0)
  992. p48.BackSurface = 10
  993. p48.BottomSurface = 10
  994. p48.FrontSurface = 10
  995. p48.LeftSurface = 10
  996. p48.RightSurface = 10
  997. p48.TopSurface = 10
  998. b17 = new("BlockMesh", p48)
  999. b17.Name = "Mesh"
  1000. b17.Offset = Vector3.new(0.150000006, 0, 0)
  1001. p49 = new("Part", m3)
  1002. p49.BrickColor = BrickColor.new("White")
  1003. p49.Material = "SmoothPlastic"
  1004. p49.FormFactor = 3
  1005. p49.Size = Vector3.new(0.200000003, 0.200000003, 0.50000006)
  1006. p49.CFrame = CFrame.new(-69.8499985, 1.89999986, -3.21715689, 0, 0, 1, -0.707106769, 0.707106709, 0, -0.707106709, -0.707106769, 0)
  1007. p49.BackSurface = 10
  1008. p49.BottomSurface = 10
  1009. p49.FrontSurface = 10
  1010. p49.LeftSurface = 10
  1011. p49.RightSurface = 10
  1012. p49.TopSurface = 10
  1013. b18 = new("BlockMesh", p49)
  1014. b18.Name = "Mesh"
  1015. b18.Offset = Vector3.new(0.150000006, 0, 0)
  1016. p50 = new("Part", m3)
  1017. p50.BrickColor = BrickColor.new("White")
  1018. p50.Material = "SmoothPlastic"
  1019. p50.FormFactor = 3
  1020. p50.Size = Vector3.new(0.200000003, 1, 0.700000048)
  1021. p50.CFrame = CFrame.new(-70.7500229, 1.89999998, -3.50000024, 0, 0, 1, -0.707106769, 0.707106709, 0, -0.707106709, -0.707106769, 0)
  1022. p50.BackSurface = 10
  1023. p50.BottomSurface = 10
  1024. p50.FrontSurface = 10
  1025. p50.LeftSurface = 10
  1026. p50.RightSurface = 10
  1027. p50.TopSurface = 10
  1028. p51 = new("Part", m3)
  1029. p51.BrickColor = BrickColor.new("White")
  1030. p51.Material = "SmoothPlastic"
  1031. p51.FormFactor = 3
  1032. p51.Size = Vector3.new(0.200000003, 1, 0.700000048)
  1033. p51.CFrame = CFrame.new(-69.8499985, 1.89999998, -3.5, 0, 0, 1, -0.707106769, 0.707106709, 0, -0.707106709, -0.707106769, 0)
  1034. p51.BackSurface = 10
  1035. p51.BottomSurface = 10
  1036. p51.FrontSurface = 10
  1037. p51.LeftSurface = 10
  1038. p51.RightSurface = 10
  1039. p51.TopSurface = 10
  1040. p52 = new("WedgePart", m4)
  1041. p52.BrickColor = BrickColor.new("Medium stone grey")
  1042. p52.Material = "SmoothPlastic"
  1043. p52.Name = "Wedge"
  1044. p52.FormFactor = 3
  1045. p52.Size = Vector3.new(0.200000003, 0.800000012, 0.200000003)
  1046. p52.CFrame = CFrame.new(-69.8000259, 3.49999952, 1.70000005, 7.61512897e-009, 0.999998808, -3.24887246e-008, 5.96045027e-008, -2.88746271e-008, -0.999997318, -0.99999851, 7.61512275e-009, -5.96045737e-008)
  1047. p52.BackSurface = 10
  1048. p52.BottomSurface = 10
  1049. p52.FrontSurface = 10
  1050. p52.LeftSurface = 10
  1051. p52.RightSurface = 10
  1052. p52.TopSurface = 10
  1053. p53 = new("WedgePart", m4)
  1054. p53.BrickColor = BrickColor.new("Medium stone grey")
  1055. p53.Material = "SmoothPlastic"
  1056. p53.Name = "Wedge"
  1057. p53.FormFactor = 3
  1058. p53.Size = Vector3.new(0.200000003, 0.400000006, 1.19999993)
  1059. p53.CFrame = CFrame.new(-69.2000275, 2.79999828, 1.69999981, 7.61512897e-009, 0.999998808, -3.24887246e-008, 5.96045027e-008, -2.88746271e-008, -0.999997318, -0.99999851, 7.61512275e-009, -5.96045737e-008)
  1060. p53.BackSurface = 10
  1061. p53.BottomSurface = 10
  1062. p53.FrontSurface = 10
  1063. p53.LeftSurface = 10
  1064. p53.RightSurface = 10
  1065. p53.TopSurface = 10
  1066. p54 = new("Part", m4)
  1067. p54.BrickColor = BrickColor.new("Really black")
  1068. p54.Material = "SmoothPlastic"
  1069. p54.FormFactor = 3
  1070. p54.Size = Vector3.new(1, 0.200000003, 1)
  1071. p54.CFrame = CFrame.new(-70.3000031, 2.24118161, 2.26592588, 0.999998331, -6.15425222e-009, -8.94069672e-008, 8.94069672e-008, 0.258818626, 0.965924501, 1.04308128e-007, -0.965924084, 0.258818716)
  1072. p54.BackSurface = 10
  1073. p54.BottomSurface = 10
  1074. p54.FrontSurface = 10
  1075. p54.LeftSurface = 10
  1076. p54.RightSurface = 10
  1077. p54.TopSurface = 10
  1078. b19 = new("CylinderMesh", p54)
  1079. b19.Name = "Mesh"
  1080. b19.Offset = Vector3.new(0, 0.189999998, 0)
  1081. b19.Scale = Vector3.new(0.800000012, 1, 0.800000012)
  1082. p55 = new("Part", m4)
  1083. p55.BrickColor = BrickColor.new("Black")
  1084. p55.Material = "SmoothPlastic"
  1085. p55.Name = "SmokeDispenser"
  1086. p55.FormFactor = 3
  1087. p55.Size = Vector3.new(0.400000036, 0.200000018, 0.400000036)
  1088. p55.CFrame = CFrame.new(-70.3000107, 1.85493112, 1.80191004, 0.999998331, -9.46739078e-008, 6.28408685e-008, 3.76498406e-008, -0.258818597, -0.965924382, 1.94824821e-007, 0.965924025, -0.258818746)
  1089. p55.BackSurface = 10
  1090. p55.BottomSurface = 10
  1091. p55.FrontSurface = 10
  1092. p55.LeftSurface = 10
  1093. p55.RightSurface = 10
  1094. p55.TopSurface = 10
  1095. Smoke = new("Smoke", p55)
  1096. Smoke.RiseVelocity = 5
  1097. p56 = new("WedgePart", m4)
  1098. p56.BrickColor = BrickColor.new("Medium stone grey")
  1099. p56.Material = "SmoothPlastic"
  1100. p56.Name = "Wedge"
  1101. p56.FormFactor = 3
  1102. p56.Size = Vector3.new(0.200000003, 1, 0.600000024)
  1103. p56.CFrame = CFrame.new(-69.6999969, 2.49999714, 1.69999969, -3.74175002e-008, -8.34472871e-007, 1, -1.0425353e-007, -1, -8.34472928e-007, 1, -1.04253559e-007, 3.74174114e-008)
  1104. p56.BackSurface = 10
  1105. p56.BottomSurface = 10
  1106. p56.FrontSurface = 10
  1107. p56.LeftSurface = 10
  1108. p56.RightSurface = 10
  1109. p56.TopSurface = 10
  1110. p57 = new("WedgePart", m4)
  1111. p57.BrickColor = BrickColor.new("Medium stone grey")
  1112. p57.Material = "SmoothPlastic"
  1113. p57.Name = "Wedge"
  1114. p57.FormFactor = 3
  1115. p57.Size = Vector3.new(0.200000003, 0.800000012, 0.200000003)
  1116. p57.CFrame = CFrame.new(-70.8000259, 3.49999976, 1.69999981, -7.61514318e-009, -1, 2.52606362e-008, 5.96046448e-008, -2.88746982e-008, -0.999999702, 0.999999702, -7.61513697e-009, 5.96046448e-008)
  1117. p57.BackSurface = 10
  1118. p57.BottomSurface = 10
  1119. p57.FrontSurface = 10
  1120. p57.LeftSurface = 10
  1121. p57.RightSurface = 10
  1122. p57.TopSurface = 10
  1123. p58 = new("WedgePart", m4)
  1124. p58.BrickColor = BrickColor.new("Medium stone grey")
  1125. p58.Material = "SmoothPlastic"
  1126. p58.Name = "Wedge"
  1127. p58.FormFactor = 3
  1128. p58.Size = Vector3.new(0.200000003, 0.600000024, 1)
  1129. p58.CFrame = CFrame.new(-70.900032, 2.50000024, 1.69999969, 1.01942945e-007, 0.999999702, 3.88858332e-008, -8.42491517e-008, -3.88858332e-008, 0.999999702, 0.999999404, -1.01942902e-007, 8.42490948e-008)
  1130. p58.BackSurface = 10
  1131. p58.BottomSurface = 10
  1132. p58.FrontSurface = 10
  1133. p58.LeftSurface = 10
  1134. p58.RightSurface = 10
  1135. p58.TopSurface = 10
  1136. p59 = new("Part", m4)
  1137. p59.BrickColor = BrickColor.new("Medium stone grey")
  1138. p59.Material = "SmoothPlastic"
  1139. p59.FormFactor = 3
  1140. p59.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1141. p59.CFrame = CFrame.new(-70.3000259, 3.49999976, 1.69999993, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  1142. p59.BackSurface = 10
  1143. p59.BottomSurface = 10
  1144. p59.FrontSurface = 10
  1145. p59.LeftSurface = 10
  1146. p59.RightSurface = 10
  1147. p59.TopSurface = 10
  1148. p60 = new("Seat", m4)
  1149. p60.BrickColor = BrickColor.new("Medium stone grey")
  1150. p60.Material = "SmoothPlastic"
  1151. p60.FormFactor = 3
  1152. p60.Size = Vector3.new(1.79999995, 0.400000006, 0.200000003)
  1153. p60.CFrame = CFrame.new(-70.3000259, 3.20000005, 1.69999993, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1154. p60.BackSurface = 10
  1155. p60.BottomSurface = 10
  1156. p60.FrontSurface = 10
  1157. p60.LeftSurface = 10
  1158. p60.RightSurface = 10
  1159. p60.TopSurface = 10
  1160. p61 = new("WedgePart", m4)
  1161. p61.BrickColor = BrickColor.new("Medium stone grey")
  1162. p61.Material = "SmoothPlastic"
  1163. p61.Name = "Wedge"
  1164. p61.FormFactor = 3
  1165. p61.Size = Vector3.new(0.200000003, 0.400000006, 1.19999993)
  1166. p61.CFrame = CFrame.new(-71.4000244, 2.79999995, 1.69999981, -7.61514318e-009, -1, 2.52606362e-008, 5.96046448e-008, -2.88746982e-008, -0.999999702, 0.999999702, -7.61513697e-009, 5.96046448e-008)
  1167. p61.BackSurface = 10
  1168. p61.BottomSurface = 10
  1169. p61.FrontSurface = 10
  1170. p61.LeftSurface = 10
  1171. p61.RightSurface = 10
  1172. p61.TopSurface = 10
  1173. p62 = new("Part", m4)
  1174. p62.BrickColor = BrickColor.new("Light stone grey")
  1175. p62.Material = "SmoothPlastic"
  1176. p62.FormFactor = 3
  1177. p62.Size = Vector3.new(0.600000024, 1.19999993, 0.600000024)
  1178. p62.CFrame = CFrame.new(-69.6999969, 1.99999833, 1.29999781, 0.70710516, -0.499998629, -0.500000179, 0.707106233, 0.50000006, 0.499998003, 2.01977264e-006, -0.70710516, 0.707105756)
  1179. p62.BackSurface = 10
  1180. p62.BottomSurface = 10
  1181. p62.FrontSurface = 10
  1182. p62.LeftSurface = 10
  1183. p62.RightSurface = 10
  1184. p62.TopSurface = 10
  1185. b20 = new("CylinderMesh", p62)
  1186. b20.Name = "Mesh"
  1187. p63 = new("Part", m4)
  1188. p63.BrickColor = BrickColor.new("Really black")
  1189. p63.Material = "SmoothPlastic"
  1190. p63.FormFactor = 3
  1191. p63.Size = Vector3.new(0.600000024, 0.200000003, 0.600000024)
  1192. p63.CFrame = CFrame.new(-71.1500015, 1.64999378, 1.79497123, 0.499998689, 0.499993622, -0.70710665, 0.499993473, 0.500007987, 0.707100332, 0.707108021, -0.707100868, 9.87303247e-006)
  1193. p63.BackSurface = 10
  1194. p63.BottomSurface = 10
  1195. p63.FrontSurface = 10
  1196. p63.LeftSurface = 10
  1197. p63.RightSurface = 10
  1198. p63.TopSurface = 10
  1199. b21 = new("CylinderMesh", p63)
  1200. b21.Name = "Mesh"
  1201. b21.Offset = Vector3.new(0, 0.189999998, 0)
  1202. b21.Scale = Vector3.new(0.800000012, 1, 0.800000012)
  1203. p64 = new("Part", m4)
  1204. p64.BrickColor = BrickColor.new("Light stone grey")
  1205. p64.Material = "SmoothPlastic"
  1206. p64.FormFactor = 3
  1207. p64.Size = Vector3.new(0.600000024, 1.19999993, 0.600000024)
  1208. p64.CFrame = CFrame.new(-70.8000031, 2, 1.29999995, 0.707110167, 0.499995172, 0.5, -0.707103372, 0.500009596, 0.499995172, -9.62615013e-006, -0.707103372, 0.707110167)
  1209. p64.BackSurface = 10
  1210. p64.BottomSurface = 10
  1211. p64.FrontSurface = 10
  1212. p64.LeftSurface = 10
  1213. p64.RightSurface = 10
  1214. p64.TopSurface = 10
  1215. b22 = new("CylinderMesh", p64)
  1216. b22.Name = "Mesh"
  1217. p65 = new("Part", m4)
  1218. p65.BrickColor = BrickColor.new("Really black")
  1219. p65.Material = "SmoothPlastic"
  1220. p65.FormFactor = 3
  1221. p65.Size = Vector3.new(0.600000024, 0.200000003, 0.600000024)
  1222. p65.CFrame = CFrame.new(-69.3499985, 1.64999819, 1.79497147, 0.707105339, -0.499998659, -0.50000006, 0.707105994, 0.50000006, 0.499998122, 1.90734863e-006, -0.707105279, 0.707105756)
  1223. p65.BackSurface = 10
  1224. p65.BottomSurface = 10
  1225. p65.FrontSurface = 10
  1226. p65.LeftSurface = 10
  1227. p65.RightSurface = 10
  1228. p65.TopSurface = 10
  1229. b23 = new("CylinderMesh", p65)
  1230. b23.Name = "Mesh"
  1231. b23.Offset = Vector3.new(0, 0.189999998, 0)
  1232. b23.Scale = Vector3.new(0.800000012, 1, 0.800000012)
  1233. p66 = new("Part", m4)
  1234. p66.BrickColor = BrickColor.new("Light stone grey")
  1235. p66.Material = "SmoothPlastic"
  1236. p66.FormFactor = 3
  1237. p66.Size = Vector3.new(1, 1.79999995, 1)
  1238. p66.CFrame = CFrame.new(-70.3000031, 2.5, 1.29999995, 1, 0, 0, 0, -0.258819014, -0.965925694, 0, 0.965925694, -0.258819014)
  1239. p66.BackSurface = 10
  1240. p66.BottomSurface = 10
  1241. p66.FrontSurface = 10
  1242. p66.LeftSurface = 10
  1243. p66.RightSurface = 10
  1244. p66.TopSurface = 10
  1245. b24 = new("CylinderMesh", p66)
  1246. b24.Name = "Mesh"
  1247. p67 = new("WedgePart", m4)
  1248. p67.BrickColor = BrickColor.new("Medium stone grey")
  1249. p67.Material = "SmoothPlastic"
  1250. p67.Name = "Wedge"
  1251. p67.FormFactor = 3
  1252. p67.Size = Vector3.new(1.79999995, 0.200000003, 0.799999893)
  1253. p67.CFrame = CFrame.new(-69.8000259, 3.29999948, 0.700003684, -1.3927598e-009, 1.37461228e-007, -0.999995351, 4.02327558e-008, 0.999992132, 9.08137707e-008, 0.999995768, -1.04312008e-008, -1.39276302e-009)
  1254. p67.BackSurface = 10
  1255. p67.BottomSurface = 10
  1256. p67.FrontSurface = 10
  1257. p67.LeftSurface = 10
  1258. p67.RightSurface = 10
  1259. p67.TopSurface = 10
  1260. p68 = new("Part", m4)
  1261. p68.BrickColor = BrickColor.new("Light stone grey")
  1262. p68.Material = "SmoothPlastic"
  1263. p68.FormFactor = 3
  1264. p68.Size = Vector3.new(0.400000036, 1.39999986, 0.200000003)
  1265. p68.CFrame = CFrame.new(-70.3000031, 1.66868114, 1.3378948, 0.999998331, -6.15425222e-009, -8.94069672e-008, 8.94069672e-008, 0.258818626, 0.965924501, 1.04308128e-007, -0.965924084, 0.258818716)
  1266. p68.BackSurface = 10
  1267. p68.BottomSurface = 10
  1268. p68.FrontSurface = 10
  1269. p68.LeftSurface = 10
  1270. p68.RightSurface = 10
  1271. p68.TopSurface = 10
  1272. p69 = new("Part", m4)
  1273. p69.BrickColor = BrickColor.new("Light stone grey")
  1274. p69.Material = "SmoothPlastic"
  1275. p69.FormFactor = 3
  1276. p69.Size = Vector3.new(0.200000003, 1.39999986, 0.600000024)
  1277. p69.CFrame = CFrame.new(-70.0999985, 1.87199998, 1.33899999, 0.965924203, 3.48184663e-008, 0.258818537, -0.249999583, 0.258818626, 0.933011413, -0.0669870749, -0.965924084, 0.249999717)
  1278. p69.BackSurface = 10
  1279. p69.BottomSurface = 10
  1280. p69.FrontSurface = 10
  1281. p69.LeftSurface = 10
  1282. p69.RightSurface = 10
  1283. p69.TopSurface = 10
  1284. p70 = new("Part", m4)
  1285. p70.BrickColor = BrickColor.new("Light stone grey")
  1286. p70.Material = "SmoothPlastic"
  1287. p70.FormFactor = 3
  1288. p70.Size = Vector3.new(0.200000003, 1.39999986, 0.600000024)
  1289. p70.CFrame = CFrame.new(-70.5, 1.87199998, 1.33899999, 0.965924144, -1.15425593e-007, -0.258818656, 0.249999747, 0.258818656, 0.933011293, 0.0669872239, -0.965924084, 0.249999702)
  1290. p70.BackSurface = 10
  1291. p70.BottomSurface = 10
  1292. p70.FrontSurface = 10
  1293. p70.LeftSurface = 10
  1294. p70.RightSurface = 10
  1295. p70.TopSurface = 10
  1296. p71 = new("WedgePart", m4)
  1297. p71.BrickColor = BrickColor.new("Medium stone grey")
  1298. p71.Material = "SmoothPlastic"
  1299. p71.Name = "Wedge"
  1300. p71.FormFactor = 3
  1301. p71.Size = Vector3.new(1.79999995, 0.200000003, 0.999999881)
  1302. p71.CFrame = CFrame.new(-69.2999954, 2.69999695, 0.699999988, 7.61514318e-009, 1, -2.52606362e-008, 5.96046448e-008, -2.88746982e-008, -0.999999702, -0.999999702, 7.61513697e-009, -5.96046448e-008)
  1303. p71.BackSurface = 10
  1304. p71.BottomSurface = 10
  1305. p71.FrontSurface = 10
  1306. p71.LeftSurface = 10
  1307. p71.RightSurface = 10
  1308. p71.TopSurface = 10
  1309. p72 = new("WedgePart", m4)
  1310. p72.BrickColor = BrickColor.new("Medium stone grey")
  1311. p72.Material = "SmoothPlastic"
  1312. p72.Name = "Wedge"
  1313. p72.FormFactor = 3
  1314. p72.Size = Vector3.new(1.79999995, 0.200000003, 0.799999893)
  1315. p72.CFrame = CFrame.new(-70.8000183, 3.29999995, 0.699998677, 1.39279588e-009, 7.78571234e-008, 0.999998033, 1.59443047e-007, 0.999997497, -3.1209364e-008, -0.99999845, 1.8924537e-007, 1.3927921e-009)
  1316. p72.BackSurface = 10
  1317. p72.BottomSurface = 10
  1318. p72.FrontSurface = 10
  1319. p72.LeftSurface = 10
  1320. p72.RightSurface = 10
  1321. p72.TopSurface = 10
  1322. p73 = new("Part", m4)
  1323. p73.BrickColor = BrickColor.new("Medium stone grey")
  1324. p73.Material = "SmoothPlastic"
  1325. p73.FormFactor = 3
  1326. p73.Size = Vector3.new(1.79999995, 0.200000003, 0.200000003)
  1327. p73.CFrame = CFrame.new(-70.3000259, 3.30000019, 0.699999928, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  1328. p73.BackSurface = 10
  1329. p73.BottomSurface = 10
  1330. p73.FrontSurface = 10
  1331. p73.LeftSurface = 10
  1332. p73.RightSurface = 10
  1333. p73.TopSurface = 10
  1334. p74 = new("WedgePart", m4)
  1335. p74.BrickColor = BrickColor.new("Medium stone grey")
  1336. p74.Material = "SmoothPlastic"
  1337. p74.Name = "Wedge"
  1338. p74.FormFactor = 3
  1339. p74.Size = Vector3.new(0.400000006, 2.20000005, 0.799999952)
  1340. p74.CFrame = CFrame.new(-69.1999817, 1.59999597, 0.699998975, -0.999999285, -1.47023982e-009, 5.05212441e-008, 5.05212299e-008, 8.94068108e-008, 0.999998569, -1.4702447e-009, 0.999999285, -8.94069316e-008)
  1341. p74.BackSurface = 10
  1342. p74.BottomSurface = 10
  1343. p74.FrontSurface = 10
  1344. p74.LeftSurface = 10
  1345. p74.RightSurface = 10
  1346. p74.TopSurface = 10
  1347. p75 = new("Part", m4)
  1348. p75.BrickColor = BrickColor.new("Medium stone grey")
  1349. p75.Material = "SmoothPlastic"
  1350. p75.FormFactor = 3
  1351. p75.Size = Vector3.new(0.400000006, 2.20000005, 0.200000018)
  1352. p75.CFrame = CFrame.new(-69.1999893, 2.09999514, 0.69999969, 0.99999994, -1.04632987e-008, -2.52606451e-008, -2.52606469e-008, -2.98023224e-008, -0.999999881, 1.04632969e-008, 0.999999881, -2.98023224e-008)
  1353. p75.BackSurface = 10
  1354. p75.BottomSurface = 10
  1355. p75.FrontSurface = 10
  1356. p75.LeftSurface = 10
  1357. p75.RightSurface = 10
  1358. p75.TopSurface = 10
  1359. p76 = new("WedgePart", m4)
  1360. p76.BrickColor = BrickColor.new("Medium stone grey")
  1361. p76.Material = "SmoothPlastic"
  1362. p76.Name = "Wedge"
  1363. p76.FormFactor = 3
  1364. p76.Size = Vector3.new(0.400000006, 2.20000005, 0.799999952)
  1365. p76.CFrame = CFrame.new(-71.4000244, 1.60000086, 0.700000882, -0.999999285, -1.47023982e-009, 5.05212441e-008, 5.05212299e-008, 8.94068108e-008, 0.999998569, -1.4702447e-009, 0.999999285, -8.94069316e-008)
  1366. p76.BackSurface = 10
  1367. p76.BottomSurface = 10
  1368. p76.FrontSurface = 10
  1369. p76.LeftSurface = 10
  1370. p76.RightSurface = 10
  1371. p76.TopSurface = 10
  1372. p77 = new("Part", m4)
  1373. p77.BrickColor = BrickColor.new("Medium stone grey")
  1374. p77.Material = "SmoothPlastic"
  1375. p77.FormFactor = 3
  1376. p77.Size = Vector3.new(0.400000006, 2.20000005, 0.200000018)
  1377. p77.CFrame = CFrame.new(-71.4000244, 2.10000038, 0.700000405, 0.99999994, -1.04632987e-008, -2.52606451e-008, -2.52606469e-008, -2.98023224e-008, -0.999999881, 1.04632969e-008, 0.999999881, -2.98023224e-008)
  1378. p77.BackSurface = 10
  1379. p77.BottomSurface = 10
  1380. p77.FrontSurface = 10
  1381. p77.LeftSurface = 10
  1382. p77.RightSurface = 10
  1383. p77.TopSurface = 10
  1384. p78 = new("WedgePart", m4)
  1385. p78.BrickColor = BrickColor.new("Medium stone grey")
  1386. p78.Material = "SmoothPlastic"
  1387. p78.Name = "Wedge"
  1388. p78.FormFactor = 3
  1389. p78.Size = Vector3.new(1.79999995, 0.200000003, 0.999999881)
  1390. p78.CFrame = CFrame.new(-71.3000259, 2.70000005, 0.699999928, -7.61514318e-009, -1, 2.52606362e-008, 5.96046448e-008, -2.88746982e-008, -0.999999702, 0.999999702, -7.61513697e-009, 5.96046448e-008)
  1391. p78.BackSurface = 10
  1392. p78.BottomSurface = 10
  1393. p78.FrontSurface = 10
  1394. p78.LeftSurface = 10
  1395. p78.RightSurface = 10
  1396. p78.TopSurface = 10
  1397. p79 = new("Part", m4)
  1398. p79.BrickColor = BrickColor.new("Medium stone grey")
  1399. p79.Material = "SmoothPlastic"
  1400. p79.FormFactor = 3
  1401. p79.Size = Vector3.new(1.79999995, 2, 0.200000018)
  1402. p79.CFrame = CFrame.new(-70.3000259, 1.79999995, 0.500000179, 1, 0, 0, 0, 0.70710659, -0.707106948, 0, 0.707106948, 0.70710659)
  1403. p79.BackSurface = 10
  1404. p79.BottomSurface = 10
  1405. p79.FrontSurface = 10
  1406. p79.LeftSurface = 10
  1407. p79.RightSurface = 10
  1408. p79.TopSurface = 10
  1409. p80 = new("Part", m4)
  1410. p80.BrickColor = BrickColor.new("Institutional white")
  1411. p80.Material = "SmoothPlastic"
  1412. p80.FormFactor = 3
  1413. p80.Size = Vector3.new(0.200000003, 1.79999995, 0.200000003)
  1414. p80.CFrame = CFrame.new(-69.4999847, 2.09999967, -0.100000001, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  1415. p80.BackSurface = 10
  1416. p80.BottomSurface = 10
  1417. p80.FrontSurface = 10
  1418. p80.LeftSurface = 10
  1419. p80.RightSurface = 10
  1420. p80.TopSurface = 10
  1421. p81 = new("WedgePart", m4)
  1422. p81.BrickColor = BrickColor.new("Medium stone grey")
  1423. p81.Material = "SmoothPlastic"
  1424. p81.Name = "Wedge"
  1425. p81.FormFactor = 3
  1426. p81.Size = Vector3.new(0.200000003, 0.800000012, 0.200000003)
  1427. p81.CFrame = CFrame.new(-70.8000412, 3.5, -0.300000012, -7.61514318e-009, -1, 2.52606362e-008, 5.96046448e-008, -2.88746982e-008, -0.999999702, 0.999999702, -7.61513697e-009, 5.96046448e-008)
  1428. p81.BackSurface = 10
  1429. p81.BottomSurface = 10
  1430. p81.FrontSurface = 10
  1431. p81.LeftSurface = 10
  1432. p81.RightSurface = 10
  1433. p81.TopSurface = 10
  1434. p82 = new("Part", m4)
  1435. p82.BrickColor = BrickColor.new("Medium stone grey")
  1436. p82.Material = "SmoothPlastic"
  1437. p82.FormFactor = 3
  1438. p82.Size = Vector3.new(1.79999995, 0.200000003, 0.200000003)
  1439. p82.CFrame = CFrame.new(-70.3000412, 3.29999995, -0.300000012, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1440. p82.BackSurface = 10
  1441. p82.BottomSurface = 10
  1442. p82.FrontSurface = 10
  1443. p82.LeftSurface = 10
  1444. p82.RightSurface = 10
  1445. p82.TopSurface = 10
  1446. p83 = new("Part", m4)
  1447. p83.BrickColor = BrickColor.new("Medium stone grey")
  1448. p83.Material = "SmoothPlastic"
  1449. p83.FormFactor = 3
  1450. p83.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1451. p83.CFrame = CFrame.new(-70.3000412, 3.49999976, -0.300000042, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  1452. p83.BackSurface = 10
  1453. p83.BottomSurface = 10
  1454. p83.FrontSurface = 10
  1455. p83.LeftSurface = 10
  1456. p83.RightSurface = 10
  1457. p83.TopSurface = 10
  1458. p84 = new("WedgePart", m4)
  1459. p84.BrickColor = BrickColor.new("Medium stone grey")
  1460. p84.Material = "SmoothPlastic"
  1461. p84.Name = "Wedge"
  1462. p84.FormFactor = 3
  1463. p84.Size = Vector3.new(0.200000003, 0.800000012, 0.200000003)
  1464. p84.CFrame = CFrame.new(-69.8000412, 3.49999905, -0.300000012, 7.61512897e-009, 0.999998808, -3.24887246e-008, 5.96045027e-008, -2.88746271e-008, -0.999997318, -0.99999851, 7.61512275e-009, -5.96045737e-008)
  1465. p84.BackSurface = 10
  1466. p84.BottomSurface = 10
  1467. p84.FrontSurface = 10
  1468. p84.LeftSurface = 10
  1469. p84.RightSurface = 10
  1470. p84.TopSurface = 10
  1471. p85 = new("Part", m4)
  1472. p85.BrickColor = BrickColor.new("Institutional white")
  1473. p85.Material = "SmoothPlastic"
  1474. p85.FormFactor = 3
  1475. p85.Size = Vector3.new(1.80000007, 1.5999999, 0.400000006)
  1476. p85.CFrame = CFrame.new(-70.2999954, 2.99999976, -0.199999988, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  1477. p85.BackSurface = 10
  1478. p85.BottomSurface = 10
  1479. p85.FrontSurface = 10
  1480. p85.LeftSurface = 10
  1481. p85.RightSurface = 10
  1482. p85.TopSurface = 10
  1483. p86 = new("Part", m4)
  1484. p86.BrickColor = BrickColor.new("Institutional white")
  1485. p86.Material = "SmoothPlastic"
  1486. p86.FormFactor = 3
  1487. p86.Size = Vector3.new(0.200000003, 1.39999998, 0.200000003)
  1488. p86.CFrame = CFrame.new(-69.5000229, 2.5, -0.100000009, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  1489. p86.BackSurface = 10
  1490. p86.BottomSurface = 10
  1491. p86.FrontSurface = 10
  1492. p86.LeftSurface = 10
  1493. p86.RightSurface = 10
  1494. p86.TopSurface = 10
  1495. p87 = new("WedgePart", m4)
  1496. p87.BrickColor = BrickColor.new("Medium stone grey")
  1497. p87.Material = "SmoothPlastic"
  1498. p87.Name = "Wedge"
  1499. p87.FormFactor = 3
  1500. p87.Size = Vector3.new(0.200000003, 0.400000006, 1.19999993)
  1501. p87.CFrame = CFrame.new(-69.1999893, 2.79999495, -0.300000072, 7.61514318e-009, 1, -2.52606362e-008, 5.96046448e-008, -2.88746982e-008, -0.999999702, -0.999999702, 7.61513697e-009, -5.96046448e-008)
  1502. p87.BackSurface = 10
  1503. p87.BottomSurface = 10
  1504. p87.FrontSurface = 10
  1505. p87.LeftSurface = 10
  1506. p87.RightSurface = 10
  1507. p87.TopSurface = 10
  1508. p88 = new("Part", m4)
  1509. p88.BrickColor = BrickColor.new("Institutional white")
  1510. p88.Material = "SmoothPlastic"
  1511. p88.FormFactor = 3
  1512. p88.Size = Vector3.new(0.200000003, 1.79999995, 0.200000003)
  1513. p88.CFrame = CFrame.new(-71.0999985, 2.49999976, -0.300000012, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  1514. p88.BackSurface = 10
  1515. p88.BottomSurface = 10
  1516. p88.FrontSurface = 10
  1517. p88.LeftSurface = 10
  1518. p88.RightSurface = 10
  1519. p88.TopSurface = 10
  1520. p89 = new("Part", m4)
  1521. p89.BrickColor = BrickColor.new("Institutional white")
  1522. p89.Material = "SmoothPlastic"
  1523. p89.FormFactor = 3
  1524. p89.Size = Vector3.new(0.200000003, 1.79999995, 0.200000003)
  1525. p89.CFrame = CFrame.new(-71.0999985, 2.10000014, -0.100000024, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  1526. p89.BackSurface = 10
  1527. p89.BottomSurface = 10
  1528. p89.FrontSurface = 10
  1529. p89.LeftSurface = 10
  1530. p89.RightSurface = 10
  1531. p89.TopSurface = 10
  1532. p90 = new("WedgePart", m4)
  1533. p90.BrickColor = BrickColor.new("Medium stone grey")
  1534. p90.Material = "SmoothPlastic"
  1535. p90.Name = "Wedge"
  1536. p90.FormFactor = 3
  1537. p90.Size = Vector3.new(0.200000003, 0.400000006, 1.19999993)
  1538. p90.CFrame = CFrame.new(-71.4000244, 2.80000019, -0.299999833, -7.61514318e-009, -1, 2.52606362e-008, 5.96046448e-008, -2.88746982e-008, -0.999999702, 0.999999702, -7.61513697e-009, 5.96046448e-008)
  1539. p90.BackSurface = 10
  1540. p90.BottomSurface = 10
  1541. p90.FrontSurface = 10
  1542. p90.LeftSurface = 10
  1543. p90.RightSurface = 10
  1544. p90.TopSurface = 10
  1545. p91 = new("Part", m4)
  1546. p91.BrickColor = BrickColor.new("Institutional white")
  1547. p91.Material = "SmoothPlastic"
  1548. p91.FormFactor = 3
  1549. p91.Size = Vector3.new(0.200000003, 1.39999998, 0.200000003)
  1550. p91.CFrame = CFrame.new(-71.0999985, 1.69999981, -0.299999982, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  1551. p91.BackSurface = 10
  1552. p91.BottomSurface = 10
  1553. p91.FrontSurface = 10
  1554. p91.LeftSurface = 10
  1555. p91.RightSurface = 10
  1556. p91.TopSurface = 10
  1557. p92 = new("Part", m4)
  1558. p92.BrickColor = BrickColor.new("Institutional white")
  1559. p92.Material = "SmoothPlastic"
  1560. p92.FormFactor = 3
  1561. p92.Size = Vector3.new(0.200000003, 1.39999998, 0.200000003)
  1562. p92.CFrame = CFrame.new(-69.5000229, 1.70000005, -0.300000012, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  1563. p92.BackSurface = 10
  1564. p92.BottomSurface = 10
  1565. p92.FrontSurface = 10
  1566. p92.LeftSurface = 10
  1567. p92.RightSurface = 10
  1568. p92.TopSurface = 10
  1569.  
  1570. p1 = Instance.new("Part", m1)
  1571. p1.BrickColor = BrickColor.new("Institutional white")
  1572. p1.Material = Enum.Material.Neon
  1573. p1.FormFactor = Enum.FormFactor.Custom
  1574. p1.Size = Vector3.new(0.800000012, 0.200000003, 0.600000024)
  1575. p1.CFrame = CFrame.new(-70.3000031, 1.80000007, -6.30000687, -2.40267752e-007, -2.98023224e-008, -0.999999642, 1, 6.37415951e-007, -2.40267809e-007, 6.37416065e-007, -0.999999642, 2.98023224e-008)
  1576. b1 = Instance.new("SpecialMesh", p1)
  1577. b1.MeshType = Enum.MeshType.Sphere
  1578. b1.Name = "Mesh"
  1579. b1.Scale = Vector3.new(1, 2, 1.25)
  1580. x1 = Instance.new("SpotLight", p1)
  1581. x1.Angle = 60
  1582. x1.Range = 60
  1583. x1.Face = "Top";
  1584. x1.Enabled = false;
  1585. x2 = Instance.new("PointLight", p1)
  1586. x2.Enabled = false;
  1587.  
  1588. m.Parent = char
  1589. m:MakeJoints()
  1590.  
  1591. WeldChildren(m);
  1592.  
  1593. Smoke.Enabled = false;
  1594. Seat.CFrame = torso.CFrame * CFrame.new(0, -1, 0)
  1595.  
  1596. WeldP(rootpart, Seat, CFrame.new(0, -1, -.75));
  1597.  
  1598. torso.CFrame = torso.CFrame * CFrame.new(0, 1, 0);
  1599. humanoid.Changed:connect(function()
  1600. if (humanoid.Jump) then
  1601. humanoid.Jump = false;
  1602. end
  1603. end)
  1604.  
  1605.  
  1606. local BodyPos = new("BodyPosition", rootpart);
  1607. BodyPos.position = Vector3.new(0, 5, 0);
  1608. BodyPos.maxForce = Vector3.new(0, 7e5, 0)
  1609. BodyPos.D = 120;
  1610.  
  1611. local BodyGyro = new("BodyGyro", rootpart)
  1612. BodyGyro.cframe = rootpart.CFrame;
  1613. BodyGyro.maxTorque = Vector3.new(7e5, 7e5, 7e5);
  1614.  
  1615. local BodyVelo = new("BodyVelocity", rootpart);
  1616. BodyVelo.maxForce = Vector3.new(7e5, 0, 7e5);
  1617. BodyVelo.velocity = Vector3.new();
  1618.  
  1619. local TORQUE, SPEED, ROTSPEED, CHARGE = 0, 0, 0, 0;
  1620. local MAXTORQUE = 1;
  1621. local MAXSPEED = 120;
  1622.  
  1623. local REPAIRMODE = false;
  1624.  
  1625.  
  1626.  
  1627.  
  1628. KEY_HOLD = {}
  1629.  
  1630. local MOUSE_DOWN;
  1631. local MOUSE_UP = true;
  1632.  
  1633. mouse.KeyDown:connect(function(k)
  1634. KEY_HOLD[tostring(k):lower()] = true;
  1635.  
  1636. if (k == "f") then
  1637. x1.Enabled = not x1.Enabled
  1638. x2.Enabled = not x2.Enabled
  1639. end
  1640. if (k == "h") then
  1641. REPAIRMODE = not REPAIRMODE
  1642. end
  1643. end)
  1644. mouse.KeyUp:connect(function(k)
  1645. KEY_HOLD[tostring(k):lower()] = false;
  1646. end)
  1647.  
  1648. mouse.Button1Down:connect(function()
  1649. MOUSE_DOWN = true;
  1650. MOUSE_UP = false;
  1651. end)
  1652. mouse.Button1Up:connect(function()
  1653. MOUSE_DOWN = false;
  1654. MOUSE_UP = true;
  1655. end)
  1656.  
  1657.  
  1658.  
  1659.  
  1660. local OnFire = new("Sound", Barrel);
  1661. OnFire.SoundId = "rbxassetid://10209257"
  1662. OnFire.Volume = .5
  1663.  
  1664. local OnMove = new("Sound", Seat);
  1665. OnMove.SoundId = "rbxassetid://148008221";
  1666. OnMove.Volume = 1
  1667.  
  1668.  
  1669.  
  1670.  
  1671. local Particlus = {}
  1672. for i = 1, 3 do
  1673. local Colors = {Color3.new(1,0,0), Color3.new(1,.5,0), Color3.new(1,.9,0);}
  1674.  
  1675. local Particle = new("ParticleEmitter", Smoke.Parent);
  1676. Particle.VelocitySpread = 30;
  1677. Particle.LightEmission = 200;
  1678. Particle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.3, 0), NumberSequenceKeypoint.new(1, 0.9, 0)})
  1679. --Particle.Color = ColorSequence.new(Colors[i]);
  1680. Particle.Texture = "rbxassetid://262622448";
  1681. Particle.Rate = 100;
  1682. Particle.Speed = NumberRange.new(15);
  1683. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(1, 1, 0)});
  1684. Particle.Lifetime = NumberRange.new(2);
  1685. Particle.Acceleration = Vector3.new(0, 10 + i*5, 0)
  1686. --Particle.Rotation = NumberRange.new(0,90);
  1687. table.insert(Particlus, Particle);
  1688. end
  1689.  
  1690.  
  1691.  
  1692. function RayC(Part, speed, target)
  1693. coroutine.wrap(function()
  1694. local Visual = BasePart:clone();
  1695. Visual.FormFactor = "Custom";
  1696. Visual.BrickColor = BrickColor.Yellow();
  1697. Visual.Size = Vector3.new(.2, 6, .2);
  1698. Visual.CFrame = Part.CFrame * CFrame.new(0, -1, 0);
  1699. Visual.Anchored = true;
  1700. Visual.CanCollide = false;
  1701. Visual.Locked = true
  1702. Visual.Material = "Neon";
  1703.  
  1704. local shell = BasePart:clone()
  1705. shell.Transparency = 0
  1706. shell:ClearAllChildren()
  1707. shell.Anchored = false
  1708. shell.CFrame = Part.CFrame * CFrame.new(.2,0,0)
  1709. shell.Size = Vector3.new(.2,.5,.2)
  1710. shell.Parent = Storage
  1711. shell.BrickColor = BrickColor.new('Bright yellow')
  1712. shell.CanCollide = true
  1713. Instance.new('BlockMesh', shell).Scale = Vector3.new(.2,.4,.2)
  1714. game:service'Debris':AddItem(shell,5)
  1715. shell.Velocity = (Part.CFrame * CFrame.Angles(math.rad(math.random(-10,10)*8), -math.rad(40), math.rad(20))).lookVector * 15
  1716.  
  1717.  
  1718. --FIRE ANIMATION
  1719. --
  1720. local Particle = new("ParticleEmitter", Part);
  1721. Particle.VelocitySpread = 30;
  1722. Particle.LightEmission = 200;
  1723.  
  1724. local Colors = {Color3.new(1,0,0), Color3.new(1,.5,0), Color3.new(1,.9,0);}
  1725.  
  1726. Particle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.1, 0), NumberSequenceKeypoint.new(1, 0.25, 0)})
  1727.  
  1728. Particle.Color = ColorSequence.new(Colors[math.random(#Colors)]);
  1729. Particle.Texture = "rbxassetid://252350680";
  1730. Particle.Rotation = NumberRange.new(0,90);
  1731. Particle.Rate = 100;
  1732. Particle.Speed = NumberRange.new(15);
  1733. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0, 0), NumberSequenceKeypoint.new(1, 1, 0)});
  1734. Particle.Lifetime = NumberRange.new(.1);
  1735. coroutine.wrap(function()
  1736. wait(.2)
  1737. Particle.Enabled = false;
  1738. wait(.4)
  1739. Particle:Destroy()
  1740. end)()
  1741.  
  1742.  
  1743.  
  1744. new("SpecialMesh", Visual).MeshType = "Sphere";
  1745. Visual.Mesh.Scale = Vector3.new(.5, 1, .5);
  1746.  
  1747. local bulletpos = Visual.Position
  1748. local bulletvelocity = (target - bulletpos).unit*speed
  1749. local lastbulletpos = Visual.Position
  1750. while game:service'RunService'.Stepped:wait() do
  1751. lastbulletpos = bulletpos
  1752. bulletpos = bulletpos + bulletvelocity
  1753. Visual.Parent = Storage;
  1754. local RayCast = Ray.new(lastbulletpos, (bulletpos - lastbulletpos))
  1755. local hit, hitpos, normal = workspace:FindPartOnRay(RayCast, char, false, true)
  1756. if (torso.Position - Visual.Position).magnitude > 2000 or Visual.Parent == nil then
  1757. Visual:Destroy();
  1758. break
  1759. end
  1760. Visual.Anchored = true
  1761. Visual.CFrame = CFrame.new(bulletpos, bulletpos+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0);
  1762. if hit then
  1763. if hit.Parent then
  1764. if hit.Parent.Parent:IsA'Model' then
  1765. for x,z in next, hit.Parent.Parent:children() do
  1766. if z:IsA'Humanoid' then
  1767. if (z.MaxHealth == math.huge) then
  1768. z.Parent:breakJoints();
  1769. end
  1770. z:TakeDamage(math.random(8,12));
  1771. Visual:Destroy();
  1772. break;
  1773. end
  1774. end
  1775. end
  1776. end
  1777. if hit.Parent:IsA'Model' then
  1778. for x,z in next, hit.Parent:children() do
  1779. if z:IsA'Humanoid' then
  1780. if (z.MaxHealth == math.huge) then
  1781. z.Parent:breakJoints();
  1782. end
  1783. z.Health = z.Health - (math.random(8,12));
  1784. Visual:Destroy();
  1785. break;
  1786. end
  1787. end
  1788. end
  1789. local BulletHole
  1790. local Dec
  1791. BulletHole = BasePart:clone()
  1792. BulletHole.Anchored = true
  1793. BulletHole.Transparency = 1
  1794. BulletHole.Size = Vector3.new(.8,.2,.8)
  1795. BulletHole.CFrame = CFrame.new(hitpos, hitpos+normal) * CFrame.Angles(-math.pi/2,math.rad(math.random(-90,90)*4), 0)
  1796. BulletHole.Parent = Storage
  1797. Dec = Instance.new("Decal",BulletHole)
  1798. Dec.Face = "Top"
  1799. Dec.Texture = "rbxassetid://64291977"
  1800. Particles.BulletholeParticles(BulletHole, hit)
  1801. if not hit.Anchored then
  1802. BulletHole.Anchored = false
  1803. local Bweld = Instance.new('Weld', BulletHole)
  1804. Bweld.Part0 = hit
  1805. Bweld.Part1 = BulletHole
  1806. Bweld.C0 = hit.CFrame:toObjectSpace(CFrame.new(hitpos, hitpos+normal)) * CFrame.Angles(-math.pi/2,math.rad(math.random(-90,90)*4),0)
  1807. end
  1808. game:service'Debris':AddItem(BulletHole, 25)
  1809. local sound = Instance.new('Sound', Visual)
  1810. if hit:IsA'BasePart' and hit.Transparency >= .1 then
  1811. local id = {176678459,176678487,176678351}
  1812. if Dec then
  1813. Dec.Texture = "rbxassetid://"..id[math.random(1,#id)]
  1814. end
  1815. if BulletHole then
  1816. Particles.BulletholeParticles(BulletHole, hit)
  1817. BulletHole.Size = Vector3.new(1.5,.2,1.5)
  1818. BulletHole.CFrame = CFrame.new(hitpos,hitpos+normal)*CFrame.new(0,0,.1)*CFrame.Angles(-math.pi/2,math.rad(math.random(-90,90)*4),0)
  1819. if not hit.Anchored then
  1820. BulletHole.Anchored = false
  1821. local Bweld = Instance.new('Weld', BulletHole)
  1822. Bweld.Part0 = hit
  1823. Bweld.Part1 = BulletHole
  1824. Bweld.C0 = hit.CFrame:toObjectSpace(CFrame.new(hitpos, hitpos+normal)) * CFrame.Angles(-math.pi/2,math.rad(math.random(-90,90)*4),0)
  1825. end
  1826. end
  1827. sound.SoundId = "rbxassetid://142082167"
  1828. else
  1829. sound.SoundId = "rbxassetid://170538363"
  1830. end
  1831. sound.Pitch = 1.2+math.random()/3
  1832. sound.Volume = .4
  1833. sound:play()
  1834. game:service'Debris':AddItem(sound,4)
  1835. Visual:Destroy();
  1836. break
  1837. end
  1838. end
  1839. end)()
  1840. end
  1841.  
  1842.  
  1843. local db
  1844. local DB2;
  1845.  
  1846.  
  1847. game:service'RunService'.RenderStepped:connect(function()
  1848.  
  1849. --//
  1850. --// BASE VALUES
  1851. --//
  1852. local rscf = rsc0
  1853. local lscf = lsc0
  1854. local rlcf = rlc0
  1855. local llcf = llc0
  1856. local rjcf = rootc0
  1857. local ncf = neckc0
  1858. local ray = Ray.new(rootpart.Position, Vector3.new(0, -9.5 - math.sin(tick()*2)*.15, 0))
  1859. local hitz, enz, norm = workspace:FindPartOnRay(ray, char)
  1860.  
  1861. --//
  1862. --// BODY OBJECTS
  1863. --//
  1864. BodyPos.D = 120;
  1865. BodyPos.maxForce = Vector3.new(0, 7e5, 0)
  1866. BodyGyro.maxTorque = Vector3.new(7e5, 7e5, 7e5);
  1867. BodyVelo.maxForce = Vector3.new(7e5, 0, 7e5);
  1868.  
  1869.  
  1870. if (hitz) then
  1871. BodyPos.position = Vector3.new(0, enz.y + 9.5 + math.sin(tick()*2)*.15 - CHARGE*6 , 0);
  1872. BodyPos.maxForce = Vector3.new(0, 9999e999, 0)
  1873. else
  1874. BodyPos.maxForce = Vector3.new();
  1875. end
  1876. if (norm ~= Vector3.new(0,0,0) and enz) then
  1877. --[[
  1878. THANK YOU ANTI FOR PROPER HACKY MATH WITH THE QUOTE OF...
  1879. "dis r propr vector maths you know!11"
  1880. --]]
  1881. local dir = (camera.CoordinateFrame.lookVector*Vector3.new(1,1,1)).unit
  1882. BodyGyro.cframe = CFrame.new(enz,enz+dir)*CFrame.Angles(-math.asin(dir:Dot(norm)),0,0)*CFrame.Angles(math.abs(TORQUE)*.35, 0, ROTSPEED*.005 + torso.RotVelocity.Y*.15)
  1883. end
  1884.  
  1885. --//
  1886. --// HOVERBIKE JUMPING
  1887. --//
  1888. if (KEY_HOLD[" "] and hitz) then
  1889. CHARGE = math_max(CHARGE + 0.015, 1);
  1890. else
  1891. if (CHARGE) > 0 then
  1892. local LASTCHARGE = CHARGE;
  1893. CHARGE = -0.15 - (LASTCHARGE*0.15);
  1894. Particles.AirRing(CFrame.new(enz.x, enz.y, enz.z)*CFrame.new(0,1,0), 5, Color3.new(255,255,255), 0.15, 0, 3)
  1895. wait()
  1896. CHARGE = 0;
  1897. end
  1898. end
  1899.  
  1900. --//
  1901. --// LOOP THIS TO PREVENT CHARACTERS FROM GETTING OFF.
  1902. --//
  1903. humanoid.Sit = true;
  1904.  
  1905. --//
  1906. --// ANIMATION
  1907. --//
  1908. rjcf = rootc0 * CFrame.Angles(-math.rad(25), 0, 0);
  1909. rscf = rsc0 * CFrame.new(-.1, 0, 0) * CFrame.Angles(math.pi/1.8, .05, -.1);
  1910. lscf = lsc0 * CFrame.new(.1, 0, 0) * CFrame.Angles(math.pi/1.8, -.05, .1);
  1911. rlcf = rlc0 * CFrame.new(0, .6, -.3) * CFrame.Angles(math.pi/3, 0, 0);
  1912. llcf = llc0 * CFrame.new(0, .6, -.3) * CFrame.Angles(math.pi/3, 0, 0);
  1913.  
  1914.  
  1915.  
  1916. --//
  1917. --// MOVEMENT
  1918. --//
  1919. if (KEY_HOLD["w"] == true and hitz) then
  1920. TORQUE = math_max(TORQUE + 1/25, MAXTORQUE);
  1921. SPEED = math_max(SPEED + 1, MAXSPEED);
  1922. end
  1923. if (KEY_HOLD["s"] == true and hitz) then
  1924. TORQUE = math_min(TORQUE - 1/50, -MAXTORQUE/2);
  1925. SPEED = math_max(SPEED + 1, MAXSPEED/2)
  1926. end
  1927. if (KEY_HOLD["a"] == true and hitz) then
  1928. ROTSPEED = math_max(ROTSPEED + 1, MAXSPEED/1.5);
  1929. end
  1930. if (KEY_HOLD["d"] == true and hitz) then
  1931. ROTSPEED = math_min(ROTSPEED - 1, -MAXSPEED/1.5);
  1932. end
  1933.  
  1934. if (SPEED > 0 or ROTSPEED ~= 0 or TORQUE > 0) then
  1935. if not OnMove.IsPlaying then
  1936. OnMove:play();
  1937. end
  1938. --Smoke.Enabled = true;
  1939. --Smoke.RiseVelocity = SPEED;
  1940. for _,v in next,Particlus do
  1941. v.Enabled = true;
  1942. end
  1943. else
  1944. OnMove:stop();
  1945. --Smoke.Enabled = false;
  1946. --Smoke.RiseVelocity = 0;
  1947. for _,v in next,Particlus do
  1948. v.Enabled = false;
  1949. end
  1950. end
  1951. BodyVelo.velocity = (Seat.CFrame).lookVector*(SPEED*TORQUE) + (Seat.CFrame*CFrame.Angles(0, math.pi/2, 0)).lookVector*ROTSPEED
  1952.  
  1953. if (not KEY_HOLD["w"] and not KEY_HOLD["s"] and hitz) then
  1954. if (TORQUE < 0) then
  1955. TORQUE = math_max(TORQUE + 1/25, 0)
  1956. end
  1957. if (TORQUE > 0) then
  1958. TORQUE = math_min(TORQUE - 1/25, 0)
  1959. end
  1960. if (SPEED < 0) then
  1961. SPEED = math_max(SPEED + 5, 0)
  1962. end
  1963. if (SPEED > 0) then
  1964. SPEED = math_min(SPEED - 5, 0)
  1965. end
  1966. end
  1967. if (not KEY_HOLD["a"] and not KEY_HOLD["d"] and hitz) then
  1968. if (ROTSPEED < 0) then
  1969. ROTSPEED = math_max(ROTSPEED + 1, 0)
  1970. end
  1971. if (ROTSPEED > 0) then
  1972. ROTSPEED = math_min(ROTSPEED - 1, 0)
  1973. end
  1974. end
  1975.  
  1976. --//
  1977. --// REPAIR MODE
  1978. --//
  1979. if (REPAIRMODE) then
  1980. DB2 = false;
  1981. BodyPos.D = 5000;
  1982. BodyGyro.maxTorque = Vector3.new();
  1983. BodyVelo.maxForce = Vector3.new();
  1984. if (hitz) then
  1985. BodyPos.position = Vector3.new(0, enz.y + 1 , 0);
  1986. BodyPos.maxForce = Vector3.new(0, 9999e999, 0)
  1987. else
  1988. BodyPos.maxForce = Vector3.new();
  1989. end
  1990. else
  1991. if (not REPAIRMODE and not DB2) then
  1992. DB2 = true;
  1993. Particles.AirRing(CFrame.new(enz.x, enz.y, enz.z)*CFrame.new(0,1,0), 5, Color3.new(255,255,255), 0.15, 0, 3)
  1994. end
  1995. end
  1996.  
  1997.  
  1998.  
  1999. --//
  2000. --// SHOOTING
  2001. --//
  2002. if (MOUSE_DOWN) then
  2003. if db then return end
  2004. db = true
  2005. wait(.1);
  2006. db = false
  2007. OnFire:play();
  2008.  
  2009. local PointLight = Instance.new("PointLight", Barrel);
  2010. PointLight.Color = Color3.new(1,.5,0)
  2011. PointLight.Brightness = 6;
  2012. game:service'Debris':AddItem(PointLight, .05);
  2013.  
  2014.  
  2015.  
  2016. RayC(Barrel, 25, mouse.Hit.p)
  2017. end
  2018. --//
  2019. --// SMOOTHLY SET TARGET CFRAME
  2020. --//
  2021. rm.C0 = clerp(rm.C0,rscf,speed)
  2022. lm.C0 = clerp(lm.C0,lscf,speed)
  2023. rj.C0 = clerp(rj.C0,rjcf,speed)
  2024. neck.C0 = clerp(neck.C0,ncf,speed)
  2025. rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  2026. llegm.C0 = clerp(llegm.C0,llcf,speed)
  2027.  
  2028. end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement