Advertisement
billwa

M2 Flamethrower

Nov 7th, 2015
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 57.86 KB | None | 0 0
  1. flamethrower = Instance.new("Tool",game.Workspace)
  2. flamethrower.GripPos = Vector3.new(-0.10000000149012,0.30000001192093,-0.69999998807907)
  3. flamethrower.Grip = CFrame.new(-0.10000000149012,0.30000001192093,-0.69999998807907) * CFrame.Angles(0, 0.29145678877831, -0)
  4. flamethrower.GripForward = Vector3.new(-0.28734788298607,0,-0.95782625675201)
  5. flamethrower.Name = "FlameThrower"
  6. flamethrower.GripRight = Vector3.new(0.95782625675201,0,-0.28734788298607)
  7.  
  8. part = Instance.new("Part",flamethrower)
  9. part.FormFactor = Enum.FormFactor.Custom
  10. part.CanCollide = true
  11. part.TopSurface = Enum.SurfaceType.Smooth
  12. part.Anchored = false
  13. part.Size = Vector3.new(0.20000000298023,1.9142858982086,0.20000000298023)
  14. part.CFrame = CFrame.new(-4.2800130844116,0.13002200424671,12.409997940063) * CFrame.Angles(1.5707963705063, 0, 1.5707963705063)
  15. part.Friction = 0.30000001192093
  16. part.BottomSurface = Enum.SurfaceType.Smooth
  17.  
  18. mesh = Instance.new("CylinderMesh",part)
  19. mesh.Scale = Vector3.new(0.28571429848671,1,0.28571429848671)
  20.  
  21. spin = Instance.new("NumberValue",flamethrower)
  22. spin.Name = "Spin"
  23.  
  24. recoil = Instance.new("NumberValue",flamethrower)
  25. recoil.Name = "Recoil"
  26. recoil.Value = 5
  27.  
  28. rarm = Instance.new("SpecialMesh",flamethrower)
  29. rarm.MeshId = "http://www.roblox.com/asset/?id=27111864"
  30. rarm.Name = "Rarm"
  31. rarm.MeshType = Enum.MeshType.FileMesh
  32.  
  33. part = Instance.new("Part",flamethrower)
  34. part.FormFactor = Enum.FormFactor.Custom
  35. part.CanCollide = true
  36. part.TopSurface = Enum.SurfaceType.Smooth
  37. part.Anchored = false
  38. part.Size = Vector3.new(0.20000000298023,1.9142858982086,0.20000000298023)
  39. part.CFrame = CFrame.new(-4.2800130844116,0.33003598451614,12.409997940063) * CFrame.Angles(1.5707963705063, 0, 1.5707963705063)
  40. part.Friction = 0.30000001192093
  41. part.BottomSurface = Enum.SurfaceType.Smooth
  42.  
  43. mesh = Instance.new("CylinderMesh",part)
  44. mesh.Scale = Vector3.new(0.28571429848671,1,0.28571429848671)
  45.  
  46. larm = Instance.new("SpecialMesh",flamethrower)
  47. larm.MeshId = "http://www.roblox.com/asset/?id=27111419"
  48. larm.Name = "Larm"
  49. larm.MeshType = Enum.MeshType.FileMesh
  50.  
  51. heat = Instance.new("NumberValue",flamethrower)
  52. heat.Name = "Heat"
  53.  
  54. overheatbar = Instance.new("ScreenGui",flamethrower)
  55. overheatbar.Name = "OverheatBar"
  56.  
  57. heatred = Instance.new("Frame",overheatbar)
  58. heatred.ZIndex = 3
  59. heatred.Size = UDim2.new(0, 0, 0, 10)
  60. heatred.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  61. heatred.Name = "HeatRed"
  62. heatred.Position = UDim2.new(0, 15, 0, 15)
  63. heatred.BackgroundColor3 = Color3.new(1, 0, 0)
  64.  
  65. heatback = Instance.new("Frame",overheatbar)
  66. heatback.ZIndex = 2
  67. heatback.Size = UDim2.new(0, 100, 0, 10)
  68. heatback.BorderColor3 = Color3.new(0, 0, 0)
  69. heatback.Name = "HeatBack"
  70. heatback.Position = UDim2.new(0, 15, 0, 15)
  71. heatback.BackgroundColor3 = Color3.new(1, 1, 1)
  72.  
  73. heatlabel = Instance.new("TextLabel",heatback)
  74. heatlabel.ZIndex = 4
  75. heatlabel.TextColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  76. heatlabel.BorderColor3 = Color3.new(0, 0, 0)
  77. heatlabel.Text = "Heat"
  78. heatlabel.Position = UDim2.new(0, 50, 0, 5)
  79. heatlabel.Name = "HeatLabel"
  80. heatlabel.BackgroundColor3 = Color3.new(0, 0, 0)
  81.  
  82. heatframe = Instance.new("Frame",overheatbar)
  83. heatframe.Size = UDim2.new(0, 110, 0, 20)
  84. heatframe.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  85. heatframe.Name = "HeatFrame"
  86. heatframe.Position = UDim2.new(0, 10, 0, 10)
  87. heatframe.BackgroundColor3 = Color3.new(0.639216, 0.635294, 0.647059)
  88.  
  89. part = Instance.new("Part",flamethrower)
  90. part.FormFactor = Enum.FormFactor.Custom
  91. part.CanCollide = true
  92. part.TopSurface = Enum.SurfaceType.Smooth
  93. part.Anchored = false
  94. part.Size = Vector3.new(0.57142859697342,0.20000000298023,0.57142859697342)
  95. part.CFrame = CFrame.new(-3.4079999923706,2.0140249729156,9.5740003585815) * CFrame.Angles(1.570796251297, -1.941710365827e-007, 3.141592502594)
  96. part.BrickColor = BrickColor.new("Brick yellow")
  97. part.Friction = 0.30000001192093
  98. part.BottomSurface = Enum.SurfaceType.Smooth
  99.  
  100. mesh = Instance.new("CylinderMesh",part)
  101. mesh.Scale = Vector3.new(1,0.57142823934555,1)
  102.  
  103. part = Instance.new("Part",flamethrower)
  104. part.FormFactor = Enum.FormFactor.Custom
  105. part.CanCollide = true
  106. part.TopSurface = Enum.SurfaceType.Smooth
  107. part.Anchored = false
  108. part.Size = Vector3.new(0.57142859697342,0.34285709261894,0.5142856836319)
  109. part.CFrame = CFrame.new(-3.4079999923706,2.0140249729156,9.3449983596802) * CFrame.Angles(1.570796251297, -1.941710365827e-007, 3.141592502594)
  110. part.BrickColor = BrickColor.new("Brick yellow")
  111. part.Friction = 0.30000001192093
  112. part.BottomSurface = Enum.SurfaceType.Smooth
  113.  
  114. mesh = Instance.new("CylinderMesh",part)
  115.  
  116. part = Instance.new("Part",flamethrower)
  117. part.FormFactor = Enum.FormFactor.Custom
  118. part.CanCollide = true
  119. part.TopSurface = Enum.SurfaceType.Smooth
  120. part.Anchored = false
  121. part.Size = Vector3.new(0.22857142984867,1.0571428537369,0.22857142984867)
  122. part.CFrame = CFrame.new(-3.4079999923706,2.0140249729156,10.167001724243) * CFrame.Angles(1.570796251297, -1.941710365827e-007, 3.141592502594)
  123. part.BrickColor = BrickColor.new("Brick yellow")
  124. part.Friction = 0.30000001192093
  125. part.BottomSurface = Enum.SurfaceType.Smooth
  126.  
  127. mesh = Instance.new("CylinderMesh",part)
  128.  
  129. part = Instance.new("Part",flamethrower)
  130. part.FormFactor = Enum.FormFactor.Custom
  131. part.CanCollide = true
  132. part.TopSurface = Enum.SurfaceType.Smooth
  133. part.Anchored = false
  134. part.Size = Vector3.new(0.20000000298023,0.37142857909203,0.48571422696114)
  135. part.CFrame = CFrame.new(-3.4079999923706,1.8570439815521,10.444999694824) * CFrame.Angles(-0, 0, -0)
  136. part.BrickColor = BrickColor.new("Dark stone grey")
  137. part.Friction = 0.30000001192093
  138. part.BottomSurface = Enum.SurfaceType.Smooth
  139.  
  140. mesh = Instance.new("BlockMesh",part)
  141. mesh.Scale = Vector3.new(0.99999797344208,1,1)
  142.  
  143. flame = Instance.new("Part",flamethrower)
  144. flame.FormFactor = Enum.FormFactor.Custom
  145. flame.CanCollide = true
  146. flame.TopSurface = Enum.SurfaceType.Smooth
  147. flame.Anchored = false
  148. flame.Size = Vector3.new(0.57142859697342,0.48571422696114,0.45714282989502)
  149. flame.Name = "Flame"
  150. flame.CFrame = CFrame.new(-3.4079999923706,2.0140249729156,8.9309959411621) * CFrame.Angles(1.570796251297, -1.941710365827e-007, 3.141592502594)
  151. flame.BrickColor = BrickColor.new("Brick yellow")
  152. flame.Friction = 0.30000001192093
  153. flame.BottomSurface = Enum.SurfaceType.Smooth
  154.  
  155. decal = Instance.new("Decal",flame)
  156. decal.Face = Enum.NormalId.Top
  157. decal.Texture = "http://www.roblox.com/asset/?id=47760372"
  158.  
  159. mesh = Instance.new("CylinderMesh",flame)
  160.  
  161. part = Instance.new("Part",flamethrower)
  162. part.FormFactor = Enum.FormFactor.Custom
  163. part.CanCollide = true
  164. part.TopSurface = Enum.SurfaceType.Smooth
  165. part.Anchored = false
  166. part.Size = Vector3.new(0.20000000298023,0.37142857909203,0.34285709261894)
  167. part.CFrame = CFrame.new(-3.4079999923706,1.885027050972,10.030994415283) * CFrame.Angles(-0, 0, -0)
  168. part.BrickColor = BrickColor.new("Dark stone grey")
  169. part.Friction = 0.30000001192093
  170. part.BottomSurface = Enum.SurfaceType.Smooth
  171.  
  172. mesh = Instance.new("BlockMesh",part)
  173. mesh.Scale = Vector3.new(0.71428370475769,1,1)
  174.  
  175. part = Instance.new("Part",flamethrower)
  176. part.FormFactor = Enum.FormFactor.Custom
  177. part.CanCollide = true
  178. part.TopSurface = Enum.SurfaceType.Smooth
  179. part.Anchored = false
  180. part.Size = Vector3.new(0.20000000298023,0.34285715222359,0.22857138514519)
  181. part.CFrame = CFrame.new(-3.4079999923706,1.9280279874802,9.7450017929077) * CFrame.Angles(-0, 0, -0)
  182. part.BrickColor = BrickColor.new("Dark stone grey")
  183. part.Friction = 0.30000001192093
  184. part.BottomSurface = Enum.SurfaceType.Smooth
  185.  
  186. mesh = Instance.new("BlockMesh",part)
  187. mesh.Scale = Vector3.new(0.5714265704155,1,1)
  188.  
  189. part = Instance.new("Part",flamethrower)
  190. part.FormFactor = Enum.FormFactor.Custom
  191. part.CanCollide = true
  192. part.TopSurface = Enum.SurfaceType.Smooth
  193. part.Anchored = false
  194. part.Size = Vector3.new(0.20000000298023,0.20000000298023,0.20000000298023)
  195. part.CFrame = CFrame.new(-3.4079999923706,1.6710369586945,10.144997596741) * CFrame.Angles(-0, 0, -0)
  196. part.Friction = 0.30000001192093
  197. part.BottomSurface = Enum.SurfaceType.Smooth
  198.  
  199. mesh = Instance.new("BlockMesh",part)
  200. mesh.Scale = Vector3.new(0.4285694360733,0.28571426868439,0.85714262723923)
  201.  
  202. part = Instance.new("Part",flamethrower)
  203. part.FormFactor = Enum.FormFactor.Custom
  204. part.CanCollide = true
  205. part.TopSurface = Enum.SurfaceType.Smooth
  206. part.Anchored = false
  207. part.Size = Vector3.new(0.2857138812542,1,0.20000000298023)
  208. part.CFrame = CFrame.new(-4.56702709198,1.3360480070114,11.725985527039) * CFrame.Angles(-0.24479968845844, -0.0011411907617003, -0.13407015800476)
  209. part.BrickColor = BrickColor.new("Sand green")
  210. part.Friction = 0.30000001192093
  211. part.BottomSurface = Enum.SurfaceType.Smooth
  212.  
  213. mesh = Instance.new("BlockMesh",part)
  214. mesh.Scale = Vector3.new(1,1,0.28571426868439)
  215.  
  216. part = Instance.new("Part",flamethrower)
  217. part.FormFactor = Enum.FormFactor.Custom
  218. part.CanCollide = true
  219. part.TopSurface = Enum.SurfaceType.Smooth
  220. part.Anchored = false
  221. part.Size = Vector3.new(0.2857138812542,1,0.20000000298023)
  222. part.CFrame = CFrame.new(-4.4750051498413,2.0280339717865,12.022999763489) * CFrame.Angles(1.0620777606964, -0.12977336347103, -0.033784154802561)
  223. part.BrickColor = BrickColor.new("Sand green")
  224. part.Friction = 0.30000001192093
  225. part.BottomSurface = Enum.SurfaceType.Smooth
  226.  
  227. mesh = Instance.new("BlockMesh",part)
  228. mesh.Scale = Vector3.new(1,1,0.28571426868439)
  229.  
  230. part = Instance.new("Part",flamethrower)
  231. part.FormFactor = Enum.FormFactor.Custom
  232. part.CanCollide = true
  233. part.TopSurface = Enum.SurfaceType.Smooth
  234. part.Anchored = false
  235. part.Size = Vector3.new(0.20000000298023,2.1428570747375,0.20000000298023)
  236. part.CFrame = CFrame.new(-5.064995765686,1.1440290212631,12.437999725342) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  237. part.Friction = 0.30000001192093
  238. part.BottomSurface = Enum.SurfaceType.Smooth
  239.  
  240. mesh = Instance.new("CylinderMesh",part)
  241. mesh.Scale = Vector3.new(0.4285714328289,1,0.57142853736877)
  242.  
  243. part = Instance.new("Part",flamethrower)
  244. part.FormFactor = Enum.FormFactor.Custom
  245. part.CanCollide = true
  246. part.TopSurface = Enum.SurfaceType.Smooth
  247. part.Anchored = false
  248. part.Size = Vector3.new(1,2.1428570747375,1)
  249. part.CFrame = CFrame.new(-4.7510199546814,1.2870349884033,12.909997940063) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  250. part.BrickColor = BrickColor.new("Brick yellow")
  251. part.Friction = 0.30000001192093
  252. part.BottomSurface = Enum.SurfaceType.Smooth
  253.  
  254. mesh = Instance.new("SpecialMesh",part)
  255.  
  256. part = Instance.new("Part",flamethrower)
  257. part.FormFactor = Enum.FormFactor.Custom
  258. part.CanCollide = true
  259. part.TopSurface = Enum.SurfaceType.Smooth
  260. part.Anchored = false
  261. part.Size = Vector3.new(0.20000000298023,1.0857142210007,0.20000000298023)
  262. part.CFrame = CFrame.new(-3.4079999923706,2.0140249729156,11.238001823425) * CFrame.Angles(1.570796251297, -1.941710365827e-007, 3.141592502594)
  263. part.BrickColor = BrickColor.new("Black")
  264. part.Friction = 0.30000001192093
  265. part.BottomSurface = Enum.SurfaceType.Smooth
  266.  
  267. mesh = Instance.new("CylinderMesh",part)
  268.  
  269. part = Instance.new("Part",flamethrower)
  270. part.FormFactor = Enum.FormFactor.Custom
  271. part.CanCollide = true
  272. part.TopSurface = Enum.SurfaceType.Smooth
  273. part.Anchored = false
  274. part.Size = Vector3.new(0.34285712242126,0.2857141494751,0.22857138514519)
  275. part.CFrame = CFrame.new(-3.3580160140991,1.9560420513153,12.095999717712) * CFrame.Angles(2.0795116424561, -0.12977237999439, 2.6517770290375)
  276. part.BrickColor = BrickColor.new("Brick yellow")
  277. part.Friction = 0.30000001192093
  278. part.BottomSurface = Enum.SurfaceType.Smooth
  279.  
  280. mesh = Instance.new("CylinderMesh",part)
  281.  
  282. part = Instance.new("Part",flamethrower)
  283. part.FormFactor = Enum.FormFactor.Custom
  284. part.CanCollide = true
  285. part.TopSurface = Enum.SurfaceType.Smooth
  286. part.Anchored = false
  287. part.Size = Vector3.new(0.22857142984867,0.85714286565781,0.22857142984867)
  288. part.CFrame = CFrame.new(-3.4079999923706,2.0140249729156,12.352997779846) * CFrame.Angles(1.570796251297, -1.941710365827e-007, 3.141592502594)
  289. part.BrickColor = BrickColor.new("Brick yellow")
  290. part.Friction = 0.30000001192093
  291. part.BottomSurface = Enum.SurfaceType.Smooth
  292.  
  293. mesh = Instance.new("CylinderMesh",part)
  294.  
  295. part = Instance.new("Part",flamethrower)
  296. part.FormFactor = Enum.FormFactor.Custom
  297. part.CanCollide = true
  298. part.TopSurface = Enum.SurfaceType.Smooth
  299. part.Anchored = false
  300. part.Size = Vector3.new(0.20000000298023,0.80000001192093,0.20000000298023)
  301. part.CFrame = CFrame.new(-3.4079999923706,1.2320439815521,12.049996376038) * CFrame.Angles(0.052359882742167, 0, -0)
  302. part.BrickColor = BrickColor.new("Dark stone grey")
  303. part.Friction = 0.30000001192093
  304. part.BottomSurface = Enum.SurfaceType.Smooth
  305.  
  306. mesh = Instance.new("BlockMesh",part)
  307. mesh.Scale = Vector3.new(0.5,1,0.14285713434219)
  308.  
  309. part = Instance.new("Part",flamethrower)
  310. part.FormFactor = Enum.FormFactor.Custom
  311. part.CanCollide = true
  312. part.TopSurface = Enum.SurfaceType.Smooth
  313. part.Anchored = false
  314. part.Size = Vector3.new(0.20000000298023,0.71428573131561,0.20000000298023)
  315. part.CFrame = CFrame.new(-3.4079999923706,1.2700370550156,12.137997627258) * CFrame.Angles(0.052359882742167, 0, -0)
  316. part.BrickColor = BrickColor.new("Dark stone grey")
  317. part.Friction = 0.30000001192093
  318. part.BottomSurface = Enum.SurfaceType.Smooth
  319.  
  320. mesh = Instance.new("BlockMesh",part)
  321. mesh.Scale = Vector3.new(0.35714286565781,1,0.71428543329239)
  322.  
  323. part = Instance.new("Part",flamethrower)
  324. part.FormFactor = Enum.FormFactor.Custom
  325. part.CanCollide = true
  326. part.TopSurface = Enum.SurfaceType.Smooth
  327. part.Anchored = false
  328. part.Size = Vector3.new(0.20000000298023,0.20000000298023,0.42857128381729)
  329. part.CFrame = CFrame.new(-3.4079999923706,1.714035987854,12.28099155426) * CFrame.Angles(-0, 0, -0)
  330. part.BrickColor = BrickColor.new("Brick yellow")
  331. part.Friction = 0.30000001192093
  332. part.BottomSurface = Enum.SurfaceType.Smooth
  333.  
  334. mesh = Instance.new("BlockMesh",part)
  335. mesh.Scale = Vector3.new(0.71428370475769,0.85714292526245,1)
  336.  
  337. part = Instance.new("Part",flamethrower)
  338. part.FormFactor = Enum.FormFactor.Custom
  339. part.CanCollide = true
  340. part.TopSurface = Enum.SurfaceType.Smooth
  341. part.Anchored = false
  342. part.Size = Vector3.new(0.20000000298023,0.20000000298023,0.20000000298023)
  343. part.CFrame = CFrame.new(-3.4079999923706,1.614030957222,9.8739995956421) * CFrame.Angles(-2.9802325940409e-008, 0, -0)
  344. part.BrickColor = BrickColor.new("Dark stone grey")
  345. part.Friction = 0.30000001192093
  346. part.BottomSurface = Enum.SurfaceType.Smooth
  347.  
  348. mesh = Instance.new("BlockMesh",part)
  349. mesh.Scale = Vector3.new(0.71428370475769,0.85714304447174,0.14285713434219)
  350.  
  351. part = Instance.new("Part",flamethrower)
  352. part.FormFactor = Enum.FormFactor.Custom
  353. part.CanCollide = true
  354. part.TopSurface = Enum.SurfaceType.Smooth
  355. part.Anchored = false
  356. part.Size = Vector3.new(0.20000000298023,0.20000000298023,0.20000000298023)
  357. part.CFrame = CFrame.new(-3.4079999923706,1.5550420284271,10.047003746033) * CFrame.Angles(-0.78539818525314, 0, -0)
  358. part.Friction = 0.30000001192093
  359. part.BottomSurface = Enum.SurfaceType.Smooth
  360.  
  361. mesh = Instance.new("SpecialMesh",part)
  362. mesh.Scale = Vector3.new(0.4285694360733,0.28571426868439,0.71428573131561)
  363. mesh.MeshType = Enum.MeshType.Wedge
  364.  
  365. part = Instance.new("Part",flamethrower)
  366. part.FormFactor = Enum.FormFactor.Custom
  367. part.CanCollide = true
  368. part.TopSurface = Enum.SurfaceType.Smooth
  369. part.Anchored = false
  370. part.Size = Vector3.new(0.20000000298023,0.20000000298023,0.57142859697342)
  371. part.CFrame = CFrame.new(-3.4079999923706,1.8570439815521,12.20999622345) * CFrame.Angles(-0, 0, -0)
  372. part.BrickColor = BrickColor.new("Brick yellow")
  373. part.Friction = 0.30000001192093
  374. part.BottomSurface = Enum.SurfaceType.Smooth
  375.  
  376. mesh = Instance.new("BlockMesh",part)
  377. mesh.Scale = Vector3.new(0.71428573131561,0.57142853736877,1)
  378.  
  379. handle = Instance.new("Part",flamethrower)
  380. handle.FormFactor = Enum.FormFactor.Custom
  381. handle.CanCollide = true
  382. handle.TopSurface = Enum.SurfaceType.Smooth
  383. handle.Anchored = false
  384. handle.Size = Vector3.new(0.20000000298023,0.74285709857941,0.31428569555283)
  385. handle.Name = "Handle"
  386. handle.CFrame = CFrame.new(-3.4079999923706,1.2570379972458,12.337998390198) * CFrame.Angles(-0, 0, -0)
  387. handle.BrickColor = BrickColor.new("Dark stone grey")
  388. handle.Friction = 0.30000001192093
  389. handle.BottomSurface = Enum.SurfaceType.Smooth
  390.  
  391. mesh = Instance.new("BlockMesh",handle)
  392. mesh.Scale = Vector3.new(0.64285707473755,1,1)
  393.  
  394. start = Instance.new("Sound",handle)
  395. start.Name = "Start"
  396. start.Volume = 1
  397. start.SoundId = "http://roblox.com/asset/?id=104562155"
  398.  
  399. part = Instance.new("Part",flamethrower)
  400. part.FormFactor = Enum.FormFactor.Custom
  401. part.CanCollide = true
  402. part.TopSurface = Enum.SurfaceType.Smooth
  403. part.Anchored = false
  404. part.Size = Vector3.new(0.20000000298023,0.20000000298023,0.20000000298023)
  405. part.CFrame = CFrame.new(-3.4079999923706,1.614030957222,10.087998390198) * CFrame.Angles(-0, 0, -0)
  406. part.Friction = 0.30000001192093
  407. part.BottomSurface = Enum.SurfaceType.Smooth
  408.  
  409. mesh = Instance.new("BlockMesh",part)
  410. mesh.Scale = Vector3.new(0.4285694360733,0.28571426868439,0.28571426868439)
  411.  
  412. part = Instance.new("Part",flamethrower)
  413. part.FormFactor = Enum.FormFactor.Custom
  414. part.CanCollide = true
  415. part.TopSurface = Enum.SurfaceType.Smooth
  416. part.Anchored = false
  417. part.Size = Vector3.new(0.71428537368774,0.20000000298023,0.20000000298023)
  418. part.CFrame = CFrame.new(-4.9190139770508,1.058030962944,12.090002059937) * CFrame.Angles(-0.050667706876993, 1.0471969842911, -3.691319916399e-009)
  419. part.BrickColor = BrickColor.new("Sand green")
  420. part.Friction = 0.30000001192093
  421. part.BottomSurface = Enum.SurfaceType.Smooth
  422.  
  423. mesh = Instance.new("BlockMesh",part)
  424. mesh.Scale = Vector3.new(1,1,0.28571426868439)
  425.  
  426. part = Instance.new("Part",flamethrower)
  427. part.FormFactor = Enum.FormFactor.Custom
  428. part.CanCollide = true
  429. part.TopSurface = Enum.SurfaceType.Smooth
  430. part.Anchored = false
  431. part.Size = Vector3.new(0.2857138812542,1,0.20000000298023)
  432. part.CFrame = CFrame.new(-3.6480219364166,1.3360480070114,11.725985527039) * CFrame.Angles(-0.24480056762695, 0.0011409821454436, 0.13406972587109)
  433. part.BrickColor = BrickColor.new("Sand green")
  434. part.Friction = 0.30000001192093
  435. part.BottomSurface = Enum.SurfaceType.Smooth
  436.  
  437. mesh = Instance.new("BlockMesh",part)
  438. mesh.Scale = Vector3.new(1,1,0.28571426868439)
  439.  
  440. part = Instance.new("Part",flamethrower)
  441. part.FormFactor = Enum.FormFactor.Custom
  442. part.CanCollide = true
  443. part.TopSurface = Enum.SurfaceType.Smooth
  444. part.Anchored = false
  445. part.Size = Vector3.new(0.2857138812542,1,0.20000000298023)
  446. part.CFrame = CFrame.new(-3.7399930953979,2.0280339717865,12.022999763489) * CFrame.Angles(1.0620777606964, 0.129773452878, 0.033784095197916)
  447. part.BrickColor = BrickColor.new("Sand green")
  448. part.Friction = 0.30000001192093
  449. part.BottomSurface = Enum.SurfaceType.Smooth
  450.  
  451. mesh = Instance.new("BlockMesh",part)
  452. mesh.Scale = Vector3.new(1,1,0.28571429848671)
  453.  
  454. part = Instance.new("Part",flamethrower)
  455. part.FormFactor = Enum.FormFactor.Custom
  456. part.CanCollide = true
  457. part.TopSurface = Enum.SurfaceType.Smooth
  458. part.Anchored = false
  459. part.Size = Vector3.new(0.20000000298023,1.9142858982086,0.20000000298023)
  460. part.CFrame = CFrame.new(-4.2800130844116,1.9300420284271,12.409997940063) * CFrame.Angles(1.5707963705063, 0, 1.5707963705063)
  461. part.Friction = 0.30000001192093
  462. part.BottomSurface = Enum.SurfaceType.Smooth
  463.  
  464. mesh = Instance.new("CylinderMesh",part)
  465. mesh.Scale = Vector3.new(0.28571429848671,1,0.28571429848671)
  466.  
  467. part = Instance.new("Part",flamethrower)
  468. part.FormFactor = Enum.FormFactor.Custom
  469. part.CanCollide = true
  470. part.TopSurface = Enum.SurfaceType.Smooth
  471. part.Anchored = false
  472. part.Size = Vector3.new(0.20000000298023,1.9142858982086,0.20000000298023)
  473. part.CFrame = CFrame.new(-4.2800130844116,1.7300299406052,12.409997940063) * CFrame.Angles(1.5707963705063, 0, 1.5707963705063)
  474. part.Friction = 0.30000001192093
  475. part.BottomSurface = Enum.SurfaceType.Smooth
  476.  
  477. mesh = Instance.new("CylinderMesh",part)
  478. mesh.Scale = Vector3.new(0.28571429848671,1,0.28571429848671)
  479.  
  480. part = Instance.new("Part",flamethrower)
  481. part.FormFactor = Enum.FormFactor.Custom
  482. part.CanCollide = true
  483. part.TopSurface = Enum.SurfaceType.Smooth
  484. part.Anchored = false
  485. part.Size = Vector3.new(0.20000000298023,1.9142858982086,0.20000000298023)
  486. part.CFrame = CFrame.new(-4.2800130844116,1.5300480127335,12.409997940063) * CFrame.Angles(1.5707963705063, 0, 1.5707963705063)
  487. part.Friction = 0.30000001192093
  488. part.BottomSurface = Enum.SurfaceType.Smooth
  489.  
  490. mesh = Instance.new("CylinderMesh",part)
  491. mesh.Scale = Vector3.new(0.28571429848671,1,0.28571429848671)
  492.  
  493. part = Instance.new("Part",flamethrower)
  494. part.FormFactor = Enum.FormFactor.Custom
  495. part.CanCollide = true
  496. part.TopSurface = Enum.SurfaceType.Smooth
  497. part.Anchored = false
  498. part.Size = Vector3.new(0.20000000298023,1.9142858982086,0.20000000298023)
  499. part.CFrame = CFrame.new(-4.2800130844116,1.3300360441208,12.409997940063) * CFrame.Angles(1.5707963705063, 0, 1.5707963705063)
  500. part.Friction = 0.30000001192093
  501. part.BottomSurface = Enum.SurfaceType.Smooth
  502.  
  503. mesh = Instance.new("CylinderMesh",part)
  504. mesh.Scale = Vector3.new(0.28571429848671,1,0.28571429848671)
  505.  
  506. part = Instance.new("Part",flamethrower)
  507. part.FormFactor = Enum.FormFactor.Custom
  508. part.CanCollide = true
  509. part.TopSurface = Enum.SurfaceType.Smooth
  510. part.Anchored = false
  511. part.Size = Vector3.new(0.20000000298023,1.9142858982086,0.20000000298023)
  512. part.CFrame = CFrame.new(-4.2800130844116,1.1300230026245,12.409997940063) * CFrame.Angles(1.5707963705063, 0, 1.5707963705063)
  513. part.Friction = 0.30000001192093
  514. part.BottomSurface = Enum.SurfaceType.Smooth
  515.  
  516. mesh = Instance.new("CylinderMesh",part)
  517. mesh.Scale = Vector3.new(0.28571429848671,1,0.28571429848671)
  518.  
  519. part = Instance.new("Part",flamethrower)
  520. part.FormFactor = Enum.FormFactor.Custom
  521. part.CanCollide = true
  522. part.TopSurface = Enum.SurfaceType.Smooth
  523. part.Anchored = false
  524. part.Size = Vector3.new(0.20000000298023,1.9142858982086,0.20000000298023)
  525. part.CFrame = CFrame.new(-4.2800130844116,2.1300230026245,12.409997940063) * CFrame.Angles(1.5707963705063, 0, 1.5707963705063)
  526. part.Friction = 0.30000001192093
  527. part.BottomSurface = Enum.SurfaceType.Smooth
  528.  
  529. mesh = Instance.new("CylinderMesh",part)
  530. mesh.Scale = Vector3.new(0.28571429848671,1,0.28571429848671)
  531.  
  532. part = Instance.new("Part",flamethrower)
  533. part.FormFactor = Enum.FormFactor.Custom
  534. part.CanCollide = true
  535. part.TopSurface = Enum.SurfaceType.Smooth
  536. part.Anchored = false
  537. part.Size = Vector3.new(1.4285709857941,2.1428570747375,0.20000000298023)
  538. part.CFrame = CFrame.new(-4.1080160140991,1.1440290212631,12.437999725342) * CFrame.Angles(-0, 0, -0)
  539. part.BrickColor = BrickColor.new("Dark stone grey")
  540. part.Friction = 0.30000001192093
  541. part.BottomSurface = Enum.SurfaceType.Smooth
  542.  
  543. mesh = Instance.new("BlockMesh",part)
  544. mesh.Scale = Vector3.new(1,1,0.57142853736877)
  545.  
  546. part = Instance.new("Part",flamethrower)
  547. part.FormFactor = Enum.FormFactor.Custom
  548. part.CanCollide = true
  549. part.TopSurface = Enum.SurfaceType.Smooth
  550. part.Anchored = false
  551. part.Size = Vector3.new(0.85714286565781,0.57142841815948,0.85714286565781)
  552. part.CFrame = CFrame.new(-4.1080160140991,1.5300480127335,13.467000007629) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  553. part.BrickColor = BrickColor.new("Brick yellow")
  554. part.Friction = 0.30000001192093
  555. part.BottomSurface = Enum.SurfaceType.Smooth
  556.  
  557. mesh = Instance.new("CylinderMesh",part)
  558.  
  559. part = Instance.new("Part",flamethrower)
  560. part.FormFactor = Enum.FormFactor.Custom
  561. part.CanCollide = true
  562. part.TopSurface = Enum.SurfaceType.Smooth
  563. part.Anchored = false
  564. part.Size = Vector3.new(0.45714285969734,0.22857141494751,0.45714288949966)
  565. part.CFrame = CFrame.new(-3.4930250644684,1.7850209474564,12.238001823425) * CFrame.Angles(-2.0861722305199e-007, 1.5707963705063, 0)
  566. part.BrickColor = BrickColor.new("Brick yellow")
  567. part.Friction = 0.30000001192093
  568. part.BottomSurface = Enum.SurfaceType.Smooth
  569.  
  570. mesh = Instance.new("CylinderMesh",part)
  571.  
  572. part = Instance.new("Part",flamethrower)
  573. part.FormFactor = Enum.FormFactor.Custom
  574. part.CanCollide = true
  575. part.TopSurface = Enum.SurfaceType.Smooth
  576. part.Anchored = false
  577. part.Size = Vector3.new(0.85714286565781,0.85714286565781,0.85714286565781)
  578. part.CFrame = CFrame.new(-4.1080160140991,1.2440340518951,13.467000007629) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  579. part.BrickColor = BrickColor.new("Brick yellow")
  580. part.Friction = 0.30000001192093
  581. part.BottomSurface = Enum.SurfaceType.Smooth
  582.  
  583. mesh = Instance.new("SpecialMesh",part)
  584. mesh.MeshType = Enum.MeshType.Sphere
  585.  
  586. part = Instance.new("Part",flamethrower)
  587. part.FormFactor = Enum.FormFactor.Custom
  588. part.CanCollide = true
  589. part.TopSurface = Enum.SurfaceType.Smooth
  590. part.Anchored = false
  591. part.Size = Vector3.new(0.85714286565781,0.85714286565781,0.85714286565781)
  592. part.CFrame = CFrame.new(-4.1080160140991,1.8150190114975,13.467000007629) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  593. part.BrickColor = BrickColor.new("Brick yellow")
  594. part.Friction = 0.30000001192093
  595. part.BottomSurface = Enum.SurfaceType.Smooth
  596.  
  597. mesh = Instance.new("SpecialMesh",part)
  598. mesh.MeshType = Enum.MeshType.Sphere
  599.  
  600. part = Instance.new("Part",flamethrower)
  601. part.FormFactor = Enum.FormFactor.Custom
  602. part.CanCollide = true
  603. part.TopSurface = Enum.SurfaceType.Smooth
  604. part.Anchored = false
  605. part.Size = Vector3.new(0.25714281201363,0.20000000298023,0.25714281201363)
  606. part.CFrame = CFrame.new(-3.4079999923706,2.0140249729156,11.852997779846) * CFrame.Angles(1.570796251297, -1.941710365827e-007, 3.141592502594)
  607. part.BrickColor = BrickColor.new("Brick yellow")
  608. part.Friction = 0.30000001192093
  609. part.BottomSurface = Enum.SurfaceType.Smooth
  610.  
  611. mesh = Instance.new("CylinderMesh",part)
  612. mesh.Scale = Vector3.new(1,0.71428573131561,1)
  613.  
  614. part = Instance.new("Part",flamethrower)
  615. part.FormFactor = Enum.FormFactor.Custom
  616. part.CanCollide = true
  617. part.TopSurface = Enum.SurfaceType.Smooth
  618. part.Anchored = false
  619. part.Size = Vector3.new(0.85714286565781,0.20000000298023,0.85714286565781)
  620. part.CFrame = CFrame.new(-4.122013092041,1.6010320186615,13.480998039246) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  621. part.BrickColor = BrickColor.new("Dark stone grey")
  622. part.Friction = 0.30000001192093
  623. part.BottomSurface = Enum.SurfaceType.Smooth
  624.  
  625. mesh = Instance.new("CylinderMesh",part)
  626. mesh.Scale = Vector3.new(1,0.99999940395355,1)
  627.  
  628. part = Instance.new("Part",flamethrower)
  629. part.FormFactor = Enum.FormFactor.Custom
  630. part.CanCollide = true
  631. part.TopSurface = Enum.SurfaceType.Smooth
  632. part.Anchored = false
  633. part.Size = Vector3.new(0.3714285492897,0.22857128083706,0.37142848968506)
  634. part.CFrame = CFrame.new(-3.4079999923706,2.0140249729156,12.894997596741) * CFrame.Angles(1.570796251297, -1.941710365827e-007, 3.141592502594)
  635. part.BrickColor = BrickColor.new("Brick yellow")
  636. part.Friction = 0.30000001192093
  637. part.BottomSurface = Enum.SurfaceType.Smooth
  638.  
  639. mesh = Instance.new("CylinderMesh",part)
  640.  
  641. part = Instance.new("Part",flamethrower)
  642. part.FormFactor = Enum.FormFactor.Custom
  643. part.CanCollide = true
  644. part.TopSurface = Enum.SurfaceType.Smooth
  645. part.Anchored = false
  646. part.Size = Vector3.new(0.34285712242126,0.2857141494751,0.28571423888206)
  647. part.CFrame = CFrame.new(-3.2240118980408,1.8180409669876,12.307997703552) * CFrame.Angles(2.0795116424561, -0.12977237999439, 2.6517770290375)
  648. part.BrickColor = BrickColor.new("Brick yellow")
  649. part.Friction = 0.30000001192093
  650. part.BottomSurface = Enum.SurfaceType.Smooth
  651.  
  652. mesh = Instance.new("CylinderMesh",part)
  653.  
  654. part = Instance.new("Part",flamethrower)
  655. part.FormFactor = Enum.FormFactor.Custom
  656. part.CanCollide = true
  657. part.TopSurface = Enum.SurfaceType.Smooth
  658. part.Anchored = false
  659. part.Size = Vector3.new(0.3714285492897,0.20000000298023,0.20000000298023)
  660. part.CFrame = CFrame.new(-3.4079999923706,2.0140249729156,13.037998199463) * CFrame.Angles(1.570796251297, -1.941710365827e-007, 3.141592502594)
  661. part.BrickColor = BrickColor.new("Brick yellow")
  662. part.Friction = 0.30000001192093
  663. part.BottomSurface = Enum.SurfaceType.Smooth
  664.  
  665. mesh = Instance.new("CylinderMesh",part)
  666. mesh.Scale = Vector3.new(1,0.28571349382401,0.99999940395355)
  667.  
  668. part = Instance.new("Part",flamethrower)
  669. part.FormFactor = Enum.FormFactor.Custom
  670. part.CanCollide = true
  671. part.TopSurface = Enum.SurfaceType.Smooth
  672. part.Anchored = false
  673. part.Size = Vector3.new(0.22857142984867,0.31428572535515,0.22857142984867)
  674. part.CFrame = CFrame.new(-3.0840289592743,1.6730220317841,12.529997825623) * CFrame.Angles(2.0795147418976, -0.12977154552937, -0.48981505632401)
  675. part.BrickColor = BrickColor.new("Mid gray")
  676. part.Friction = 0.30000001192093
  677. part.BottomSurface = Enum.SurfaceType.Smooth
  678.  
  679. mesh = Instance.new("CylinderMesh",part)
  680.  
  681. part = Instance.new("Part",flamethrower)
  682. part.FormFactor = Enum.FormFactor.Custom
  683. part.CanCollide = true
  684. part.TopSurface = Enum.SurfaceType.Smooth
  685. part.Anchored = false
  686. part.Size = Vector3.new(0.20000000298023,0.20000000298023,0.20000000298023)
  687. part.CFrame = CFrame.new(-3.4079999923706,1.4970279932022,9.91100025177) * CFrame.Angles(0.78539818525314, 0, -0)
  688. part.BrickColor = BrickColor.new("Dark stone grey")
  689. part.Friction = 0.30000001192093
  690. part.BottomSurface = Enum.SurfaceType.Smooth
  691.  
  692. mesh = Instance.new("BlockMesh",part)
  693. mesh.Scale = Vector3.new(0.71428370475769,0.14285713434219,0.57142853736877)
  694.  
  695. part = Instance.new("Part",flamethrower)
  696. part.FormFactor = Enum.FormFactor.Custom
  697. part.CanCollide = true
  698. part.TopSurface = Enum.SurfaceType.Smooth
  699. part.Anchored = false
  700. part.Size = Vector3.new(0.20000000298023,0.20000000298023,0.31428572535515)
  701. part.CFrame = CFrame.new(-3.4079999923706,1.4610480070114,10.097003936768) * CFrame.Angles(-2.9802325940409e-008, 0, -0)
  702. part.BrickColor = BrickColor.new("Dark stone grey")
  703. part.Friction = 0.30000001192093
  704. part.BottomSurface = Enum.SurfaceType.Smooth
  705.  
  706. mesh = Instance.new("BlockMesh",part)
  707. mesh.Scale = Vector3.new(0.71428370475769,0.14285713434219,1)
  708.  
  709. part = Instance.new("Part",flamethrower)
  710. part.FormFactor = Enum.FormFactor.Custom
  711. part.CanCollide = true
  712. part.TopSurface = Enum.SurfaceType.Smooth
  713. part.Anchored = false
  714. part.Size = Vector3.new(0.20000000298023,0.31428572535515,0.20000000298023)
  715. part.CFrame = CFrame.new(-2.9379858970642,1.5210429430008,12.762997627258) * CFrame.Angles(2.0795147418976, -0.12977154552937, -0.48981505632401)
  716. part.BrickColor = BrickColor.new("Black")
  717. part.Friction = 0.30000001192093
  718. part.BottomSurface = Enum.SurfaceType.Smooth
  719.  
  720. mesh = Instance.new("CylinderMesh",part)
  721.  
  722. part = Instance.new("Part",flamethrower)
  723. part.FormFactor = Enum.FormFactor.Custom
  724. part.CanCollide = true
  725. part.TopSurface = Enum.SurfaceType.Smooth
  726. part.Anchored = false
  727. part.Size = Vector3.new(0.20000000298023,2.1428570747375,0.20000000298023)
  728. part.CFrame = CFrame.new(-3.1510000228882,1.1440290212631,12.437999725342) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  729. part.Friction = 0.30000001192093
  730. part.BottomSurface = Enum.SurfaceType.Smooth
  731.  
  732. mesh = Instance.new("CylinderMesh",part)
  733. mesh.Scale = Vector3.new(0.4285714328289,1,0.57142853736877)
  734.  
  735. part = Instance.new("Part",flamethrower)
  736. part.FormFactor = Enum.FormFactor.Custom
  737. part.CanCollide = true
  738. part.TopSurface = Enum.SurfaceType.Smooth
  739. part.Anchored = false
  740. part.Size = Vector3.new(1,2.1428570747375,1)
  741. part.CFrame = CFrame.new(-3.4650011062622,1.2870349884033,12.909997940063) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  742. part.BrickColor = BrickColor.new("Brick yellow")
  743. part.Friction = 0.30000001192093
  744. part.BottomSurface = Enum.SurfaceType.Smooth
  745.  
  746. mesh = Instance.new("SpecialMesh",part)
  747.  
  748. part = Instance.new("Part",flamethrower)
  749. part.FormFactor = Enum.FormFactor.Custom
  750. part.CanCollide = true
  751. part.TopSurface = Enum.SurfaceType.Smooth
  752. part.Anchored = false
  753. part.Size = Vector3.new(0.20000000298023,0.57142859697342,0.20000000298023)
  754. part.CFrame = CFrame.new(-4.1080160140991,0.8150190114975,13.467000007629) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  755. part.Friction = 0.30000001192093
  756. part.BottomSurface = Enum.SurfaceType.Smooth
  757.  
  758. mesh = Instance.new("CylinderMesh",part)
  759. mesh.Scale = Vector3.new(0.57142853736877,1,0.57142853736877)
  760.  
  761. part = Instance.new("Part",flamethrower)
  762. part.FormFactor = Enum.FormFactor.Custom
  763. part.CanCollide = true
  764. part.TopSurface = Enum.SurfaceType.Smooth
  765. part.Anchored = false
  766. part.Size = Vector3.new(0.20000000298023,0.20000000298023,0.20000000298023)
  767. part.CFrame = CFrame.new(-4.3649930953979,0.73003000020981,13.467000007629) * CFrame.Angles(-0, -0, -1.5707963705063)
  768. part.Friction = 0.30000001192093
  769. part.BottomSurface = Enum.SurfaceType.Smooth
  770.  
  771. mesh = Instance.new("CylinderMesh",part)
  772. mesh.Scale = Vector3.new(0.85714286565781,0.57142853736877,0.85714286565781)
  773.  
  774. part = Instance.new("Part",flamethrower)
  775. part.FormFactor = Enum.FormFactor.Custom
  776. part.CanCollide = true
  777. part.TopSurface = Enum.SurfaceType.Smooth
  778. part.Anchored = false
  779. part.Size = Vector3.new(0.20000000298023,0.80000007152557,0.34285709261894)
  780. part.CFrame = CFrame.new(-3.4079999923706,1.3320159912109,10.472997665405) * CFrame.Angles(-0.26179939508438, 0, -0)
  781. part.BrickColor = BrickColor.new("Dark stone grey")
  782. part.Friction = 0.30000001192093
  783. part.BottomSurface = Enum.SurfaceType.Smooth
  784.  
  785. mesh = Instance.new("BlockMesh",part)
  786. mesh.Scale = Vector3.new(0.99999797344208,1,1)
  787.  
  788. part = Instance.new("Part",flamethrower)
  789. part.FormFactor = Enum.FormFactor.Custom
  790. part.CanCollide = true
  791. part.TopSurface = Enum.SurfaceType.Smooth
  792. part.Anchored = false
  793. part.Size = Vector3.new(0.20000000298023,1.3428571224213,0.20000000298023)
  794. part.CFrame = CFrame.new(-2.5810070037842,0.98003000020981,12.946997642517) * CFrame.Angles(2.5029129981995, -0.6476423740387, -0.6336373090744)
  795. part.BrickColor = BrickColor.new("Black")
  796. part.Friction = 0.30000001192093
  797. part.BottomSurface = Enum.SurfaceType.Smooth
  798.  
  799. mesh = Instance.new("CylinderMesh",part)
  800. mesh.Scale = Vector3.new(0.85714286565781,1,0.85714286565781)
  801.  
  802. part = Instance.new("Part",flamethrower)
  803. part.FormFactor = Enum.FormFactor.Custom
  804. part.CanCollide = true
  805. part.TopSurface = Enum.SurfaceType.Smooth
  806. part.Anchored = false
  807. part.Size = Vector3.new(0.31428572535515,0.21428571641445,0.20000000298023)
  808. part.CFrame = CFrame.new(-4.1080160140991,1.0430459976196,11.795999526978) * CFrame.Angles(-0.050667710602283, -3.4458185638186e-008, -1.8456595141103e-009)
  809. part.BrickColor = BrickColor.new("Mid gray")
  810. part.Friction = 0.30000001192093
  811. part.BottomSurface = Enum.SurfaceType.Smooth
  812.  
  813. mesh = Instance.new("BlockMesh",part)
  814. mesh.Scale = Vector3.new(1,1,0.35714286565781)
  815.  
  816. part = Instance.new("Part",flamethrower)
  817. part.FormFactor = Enum.FormFactor.Custom
  818. part.CanCollide = true
  819. part.TopSurface = Enum.SurfaceType.Smooth
  820. part.Anchored = false
  821. part.Size = Vector3.new(0.71428537368774,0.20000000298023,0.20000000298023)
  822. part.CFrame = CFrame.new(-3.2959899902344,1.058030962944,12.090002059937) * CFrame.Angles(-0.050667718052864, -1.0471973419189, -3.6913196943544e-009)
  823. part.BrickColor = BrickColor.new("Sand green")
  824. part.Friction = 0.30000001192093
  825. part.BottomSurface = Enum.SurfaceType.Smooth
  826.  
  827. mesh = Instance.new("BlockMesh",part)
  828. mesh.Scale = Vector3.new(1,1,0.28571426868439)
  829.  
  830. part = Instance.new("Part",flamethrower)
  831. part.FormFactor = Enum.FormFactor.Custom
  832. part.CanCollide = true
  833. part.TopSurface = Enum.SurfaceType.Smooth
  834. part.Anchored = false
  835. part.Size = Vector3.new(1.3142853975296,0.20000000298023,0.20000000298023)
  836. part.CFrame = CFrame.new(-4.1080160140991,1.0430459976196,11.795999526978) * CFrame.Angles(-0.050667710602283, -3.4458185638186e-008, -1.8456595141103e-009)
  837. part.BrickColor = BrickColor.new("Sand green")
  838. part.Friction = 0.30000001192093
  839. part.BottomSurface = Enum.SurfaceType.Smooth
  840.  
  841. mesh = Instance.new("BlockMesh",part)
  842. mesh.Scale = Vector3.new(1,1,0.28571426868439)
  843.  
  844. part = Instance.new("Part",flamethrower)
  845. part.FormFactor = Enum.FormFactor.Custom
  846. part.CanCollide = true
  847. part.TopSurface = Enum.SurfaceType.Smooth
  848. part.Anchored = false
  849. part.Size = Vector3.new(0.20000000298023,1.9142858982086,0.20000000298023)
  850. part.CFrame = CFrame.new(-4.2800130844116,0.93004196882248,12.409997940063) * CFrame.Angles(1.5707963705063, 0, 1.5707963705063)
  851. part.Friction = 0.30000001192093
  852. part.BottomSurface = Enum.SurfaceType.Smooth
  853.  
  854. mesh = Instance.new("CylinderMesh",part)
  855. mesh.Scale = Vector3.new(0.28571429848671,1,0.28571429848671)
  856.  
  857. part = Instance.new("Part",flamethrower)
  858. part.FormFactor = Enum.FormFactor.Custom
  859. part.CanCollide = true
  860. part.TopSurface = Enum.SurfaceType.Smooth
  861. part.Anchored = false
  862. part.Size = Vector3.new(0.20000000298023,0.37142857909203,0.20000000298023)
  863. part.CFrame = CFrame.new(-4.122013092041,0.73003000020981,13.467000007629) * CFrame.Angles(-0, -0, -1.5707963705063)
  864. part.Friction = 0.30000001192093
  865. part.BottomSurface = Enum.SurfaceType.Smooth
  866.  
  867. mesh = Instance.new("CylinderMesh",part)
  868. mesh.Scale = Vector3.new(0.71428573131561,1,0.71428573131561)
  869.  
  870. part = Instance.new("Part",flamethrower)
  871. part.FormFactor = Enum.FormFactor.Custom
  872. part.CanCollide = true
  873. part.TopSurface = Enum.SurfaceType.Smooth
  874. part.Anchored = false
  875. part.Size = Vector3.new(0.20000000298023,0.20000000298023,0.20000000298023)
  876. part.CFrame = CFrame.new(-3.8930189609528,0.73003000020981,13.467000007629) * CFrame.Angles(-0, -0, -1.5707963705063)
  877. part.Friction = 0.30000001192093
  878. part.BottomSurface = Enum.SurfaceType.Smooth
  879.  
  880. mesh = Instance.new("CylinderMesh",part)
  881. mesh.Scale = Vector3.new(0.78571432828903,0.4285714328289,0.78571432828903)
  882.  
  883. part = Instance.new("Part",flamethrower)
  884. part.FormFactor = Enum.FormFactor.Custom
  885. part.CanCollide = true
  886. part.TopSurface = Enum.SurfaceType.Smooth
  887. part.Anchored = false
  888. part.Size = Vector3.new(0.20000000298023,0.85714286565781,0.20000000298023)
  889. part.CFrame = CFrame.new(-3.4220089912415,0.73003000020981,13.467000007629) * CFrame.Angles(-0, -0, -1.5707963705063)
  890. part.Friction = 0.30000001192093
  891. part.BottomSurface = Enum.SurfaceType.Smooth
  892.  
  893. mesh = Instance.new("CylinderMesh",part)
  894. mesh.Scale = Vector3.new(0.57142853736877,1,0.57142853736877)
  895.  
  896. part = Instance.new("Part",flamethrower)
  897. part.FormFactor = Enum.FormFactor.Custom
  898. part.CanCollide = true
  899. part.TopSurface = Enum.SurfaceType.Smooth
  900. part.Anchored = false
  901. part.Size = Vector3.new(0.20000000298023,0.20000000298023,0.20000000298023)
  902. part.CFrame = CFrame.new(-2.9790019989014,0.73003000020981,13.467000007629) * CFrame.Angles(-0, -0, -1.5707963705063)
  903. part.Friction = 0.30000001192093
  904. part.BottomSurface = Enum.SurfaceType.Smooth
  905.  
  906. mesh = Instance.new("CylinderMesh",part)
  907. mesh.Scale = Vector3.new(0.92857134342194,0.14285713434219,0.92857134342194)
  908.  
  909. part = Instance.new("Part",flamethrower)
  910. part.FormFactor = Enum.FormFactor.Custom
  911. part.CanCollide = true
  912. part.TopSurface = Enum.SurfaceType.Smooth
  913. part.Anchored = false
  914. part.Size = Vector3.new(0.20000000298023,0.20000000298023,0.20000000298023)
  915. part.CFrame = CFrame.new(-4.1080160140991,0.73003000020981,13.467000007629) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  916. part.BrickColor = BrickColor.new("Brick yellow")
  917. part.Friction = 0.30000001192093
  918. part.BottomSurface = Enum.SurfaceType.Smooth
  919.  
  920. mesh = Instance.new("BlockMesh",part)
  921. mesh.Scale = Vector3.new(0.78571432828903,0.78571432828903,0.78571432828903)
  922.  
  923. part = Instance.new("Part",flamethrower)
  924. part.FormFactor = Enum.FormFactor.Custom
  925. part.CanCollide = true
  926. part.TopSurface = Enum.SurfaceType.Smooth
  927. part.Anchored = false
  928. part.Size = Vector3.new(0.20000000298023,1.9142858982086,0.20000000298023)
  929. part.CFrame = CFrame.new(-4.2800130844116,0.73003000020981,12.409997940063) * CFrame.Angles(1.5707963705063, 0, 1.5707963705063)
  930. part.Friction = 0.30000001192093
  931. part.BottomSurface = Enum.SurfaceType.Smooth
  932.  
  933. mesh = Instance.new("CylinderMesh",part)
  934. mesh.Scale = Vector3.new(0.28571429848671,1,0.28571429848671)
  935.  
  936. part = Instance.new("Part",flamethrower)
  937. part.FormFactor = Enum.FormFactor.Custom
  938. part.CanCollide = true
  939. part.TopSurface = Enum.SurfaceType.Smooth
  940. part.Anchored = false
  941. part.Size = Vector3.new(0.2857138812542,1,0.20000000298023)
  942. part.CFrame = CFrame.new(-4.8149991035461,0.54603999853134,12.165995597839) * CFrame.Angles(-0.76446539163589, 0.065893858671188, -0.37864917516708)
  943. part.BrickColor = BrickColor.new("Sand green")
  944. part.Friction = 0.30000001192093
  945. part.BottomSurface = Enum.SurfaceType.Smooth
  946.  
  947. mesh = Instance.new("BlockMesh",part)
  948. mesh.Scale = Vector3.new(1,1,0.28571426868439)
  949.  
  950. part = Instance.new("Part",flamethrower)
  951. part.FormFactor = Enum.FormFactor.Custom
  952. part.CanCollide = true
  953. part.TopSurface = Enum.SurfaceType.Smooth
  954. part.Anchored = false
  955. part.Size = Vector3.new(0.20000000298023,1.9142858982086,0.20000000298023)
  956. part.CFrame = CFrame.new(-4.2800130844116,0.53004801273346,12.409997940063) * CFrame.Angles(1.5707963705063, 0, 1.5707963705063)
  957. part.Friction = 0.30000001192093
  958. part.BottomSurface = Enum.SurfaceType.Smooth
  959.  
  960. mesh = Instance.new("CylinderMesh",part)
  961. mesh.Scale = Vector3.new(0.28571429848671,1,0.28571429848671)
  962.  
  963. part = Instance.new("Part",flamethrower)
  964. part.FormFactor = Enum.FormFactor.Custom
  965. part.CanCollide = true
  966. part.TopSurface = Enum.SurfaceType.Smooth
  967. part.Anchored = false
  968. part.Size = Vector3.new(0.20000000298023,0.20000000298023,0.20000000298023)
  969. part.CFrame = CFrame.new(-4.1080160140991,0.47203299403191,13.467000007629) * CFrame.Angles(-3.1415927410126, 0, -3.1415927410126)
  970. part.BrickColor = BrickColor.new("Brick yellow")
  971. part.Friction = 0.30000001192093
  972. part.BottomSurface = Enum.SurfaceType.Smooth
  973.  
  974. mesh = Instance.new("BlockMesh",part)
  975. mesh.Scale = Vector3.new(0.71428573131561,0.57142853736877,0.71428573131561)
  976.  
  977. part = Instance.new("Part",flamethrower)
  978. part.FormFactor = Enum.FormFactor.Custom
  979. part.CanCollide = true
  980. part.TopSurface = Enum.SurfaceType.Smooth
  981. part.Anchored = false
  982. part.Size = Vector3.new(0.22857142984867,0.28571429848671,0.22857142984867)
  983. part.CFrame = CFrame.new(-2.7260270118713,0.3150210082531,13.412991523743) * CFrame.Angles(1.5707963705063, 0, 1.5707963705063)
  984. part.BrickColor = BrickColor.new("Brick yellow")
  985. part.Friction = 0.30000001192093
  986. part.BottomSurface = Enum.SurfaceType.Smooth
  987.  
  988. mesh = Instance.new("CylinderMesh",part)
  989.  
  990. part = Instance.new("Part",flamethrower)
  991. part.FormFactor = Enum.FormFactor.Custom
  992. part.CanCollide = true
  993. part.TopSurface = Enum.SurfaceType.Smooth
  994. part.Anchored = false
  995. part.Size = Vector3.new(0.2857138812542,1,0.20000000298023)
  996. part.CFrame = CFrame.new(-3.4000089168549,0.54603999853134,12.165995597839) * CFrame.Angles(-0.76446670293808, -0.06589387357235, 0.37864872813225)
  997. part.BrickColor = BrickColor.new("Sand green")
  998. part.Friction = 0.30000001192093
  999. part.BottomSurface = Enum.SurfaceType.Smooth
  1000.  
  1001. mesh = Instance.new("BlockMesh",part)
  1002. mesh.Scale = Vector3.new(1,1,0.28571426868439)
  1003.  
  1004. part = Instance.new("Part",flamethrower)
  1005. part.FormFactor = Enum.FormFactor.Custom
  1006. part.CanCollide = true
  1007. part.TopSurface = Enum.SurfaceType.Smooth
  1008. part.Anchored = false
  1009. part.Size = Vector3.new(0.20000000298023,0.28571429848671,0.20000000298023)
  1010. part.CFrame = CFrame.new(-2.441015958786,0.3150210082531,13.412991523743) * CFrame.Angles(1.5707963705063, 0, 1.5707963705063)
  1011. part.BrickColor = BrickColor.new("Mid gray")
  1012. part.Friction = 0.30000001192093
  1013. part.BottomSurface = Enum.SurfaceType.Smooth
  1014.  
  1015. mesh = Instance.new("CylinderMesh",part)
  1016.  
  1017. part = Instance.new("Part",flamethrower)
  1018. part.FormFactor = Enum.FormFactor.Custom
  1019. part.CanCollide = true
  1020. part.TopSurface = Enum.SurfaceType.Smooth
  1021. part.Anchored = false
  1022. part.Size = Vector3.new(0.20000001788139,0.71428573131561,0.20000001788139)
  1023. part.CFrame = CFrame.new(-4.0570211410522,0.3150210082531,13.188998222351) * CFrame.Angles(1.5707963705063, 0, 2.3561944961548)
  1024. part.Friction = 0.30000001192093
  1025. part.BottomSurface = Enum.SurfaceType.Smooth
  1026.  
  1027. mesh = Instance.new("CylinderMesh",part)
  1028.  
  1029. part = Instance.new("Part",flamethrower)
  1030. part.FormFactor = Enum.FormFactor.Custom
  1031. part.CanCollide = true
  1032. part.TopSurface = Enum.SurfaceType.Smooth
  1033. part.Anchored = false
  1034. part.Size = Vector3.new(0.20000001788139,1,0.20000001788139)
  1035. part.CFrame = CFrame.new(-3.3689930438995,0.3150210082531,13.412991523743) * CFrame.Angles(1.5707963705063, 0, 1.5707963705063)
  1036. part.Friction = 0.30000001192093
  1037. part.BottomSurface = Enum.SurfaceType.Smooth
  1038.  
  1039. mesh = Instance.new("CylinderMesh",part)
  1040.  
  1041. part = Instance.new("Part",flamethrower)
  1042. part.FormFactor = Enum.FormFactor.Custom
  1043. part.CanCollide = true
  1044. part.TopSurface = Enum.SurfaceType.Smooth
  1045. part.Anchored = false
  1046. part.Size = Vector3.new(0.20000000298023,0.44285708665848,0.20000000298023)
  1047. part.CFrame = CFrame.new(-2.2980129718781,0.360033005476,13.24199962616) * CFrame.Angles(1.8240576982498, 0.06703770160675, 0.25326147675514)
  1048. part.BrickColor = BrickColor.new("Dark stone grey")
  1049. part.Friction = 0.30000001192093
  1050. part.BottomSurface = Enum.SurfaceType.Smooth
  1051.  
  1052. mesh = Instance.new("CylinderMesh",part)
  1053. mesh.Scale = Vector3.new(0.92857134342194,1,0.92857134342194)
  1054.  
  1055. fire = Instance.new("Sound",game.Workspace.FlameThrower)
  1056. fire.Pitch = 1.2000000476837
  1057. fire.Name = "Fire"
  1058. fire.Volume = 0.30000001192093
  1059. fire.SoundId = "rbxasset://sounds/hit.wav"
  1060.  
  1061.  
  1062. local prev
  1063. local parts = flamethrower:GetChildren()
  1064.  
  1065. for i = 1,#parts do
  1066.         if (parts[i].className == "Part") then
  1067.                 if (prev ~= nil)then
  1068.                         local weld = Instance.new("Weld")
  1069.                         weld.Part0 = prev
  1070.                         weld.Part1 = parts[i]
  1071.                         weld.C0 = prev.CFrame:inverse()
  1072.                         weld.C1 = parts[i].CFrame:inverse()
  1073.                         weld.Parent = prev
  1074.                 end
  1075.                 prev = parts[i]
  1076.         end
  1077. end
  1078.  
  1079. -- Thanks for Meanwhile & XaXa for this script.
  1080. -- Remember this was designed for Meanwhile weapons so any other weapons might not work.
  1081. -- You have no permission to repubish this in you model even if it edited.
  1082. -- If your found then you will be ban from my place.
  1083. -- original Manofthelol Script
  1084.  
  1085. -- M2-2 Flamethrower Made by Meanwhile
  1086.  
  1087. Tool = flamethrower
  1088. local Mouse = true
  1089. local Spin = flamethrower.Spin.Value
  1090. local Heat = flamethrower.Heat.Value
  1091. local chamber = true
  1092. local Player = Tool.Parent
  1093. local Dist = 0.20
  1094. local firing = false
  1095. local enabled = true
  1096. local reloading = false
  1097.  
  1098. local arms = nil
  1099. local torso = nil
  1100. local weld33 = nil -- right arm
  1101. local weld55 = nil -- left arm
  1102. local welds = {}
  1103.  
  1104. function Takeout()
  1105. weld33.C1 = CFrame.new(-0.75, -0.6, 0.55) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-16), -0.05)
  1106. weld55.C1 = CFrame.new(0.96, 0.45, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(250), 0.8, math.rad(10))
  1107. wait(.04)
  1108. weld33.C1 = CFrame.new(-0.75, -0.6, 0.55) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-16), -0.1)
  1109. weld55.C1 = CFrame.new(0.92, 0.35, 0.2) * CFrame.fromEulerAnglesXYZ(math.rad(235), 0.65, math.rad(20))
  1110. wait(.04)
  1111. weld33.C1 = CFrame.new(-0.75, -0.6, 0.55) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-16), -0.15)
  1112. weld55.C1 = CFrame.new(0.88, 0.25, 0) * CFrame.fromEulerAnglesXYZ(math.rad(210), 0.5, math.rad(30))
  1113. wait(.04)
  1114. weld33.C1 = CFrame.new(-0.75, -0.6, 0.55) * CFrame.fromEulerAnglesXYZ(math.rad(-90.1), math.rad(-16), -0.2)
  1115. weld55.C1 = CFrame.new(0.84, 0.15, -0.2) * CFrame.fromEulerAnglesXYZ(math.rad(195), 0.35, math.rad(40))
  1116. wait(.04)
  1117. weld33.C1 = CFrame.new(-0.75, -0.6, 0.55) * CFrame.fromEulerAnglesXYZ(math.rad(-90.2), math.rad(-16), -0.2)
  1118. weld55.C1 = CFrame.new(0.8, 0.05, -0.4) * CFrame.fromEulerAnglesXYZ(math.rad(175), 0.25, math.rad(50))
  1119. Tool.Handle.Start:play()
  1120. wait(.04)
  1121. weld33.C1 = CFrame.new(-0.75, -0.6, 0.55) * CFrame.fromEulerAnglesXYZ(math.rad(-90.3), math.rad(-16), -0.2)
  1122. weld55.C1 = CFrame.new(0.76, -0.15, -0.6) * CFrame.fromEulerAnglesXYZ(math.rad(155), 0.15, math.rad(60))
  1123. wait(.04)
  1124. weld33.C1 = CFrame.new(-0.75, -0.62, 0.55) * CFrame.fromEulerAnglesXYZ(math.rad(-90.4), math.rad(-16), -0.2)
  1125. weld55.C1 = CFrame.new(0.66, -0.25, -0.8) * CFrame.fromEulerAnglesXYZ(math.rad(150), 0, math.rad(70))
  1126. wait(.04)
  1127. weld33.C1 = CFrame.new(-0.75, -0.64, 0.55) * CFrame.fromEulerAnglesXYZ(math.rad(-90.5), math.rad(-16), -0.2)
  1128. weld55.C1 = CFrame.new(0.56, -0.25, -0.8) * CFrame.fromEulerAnglesXYZ(math.rad(150), 0, math.rad(60))
  1129. wait(.04)
  1130. weld33.C1 = CFrame.new(-0.75, -0.63, 0.55) * CFrame.fromEulerAnglesXYZ(math.rad(-90.5), math.rad(-16), -0.2)
  1131. weld55.C1 = CFrame.new(0.46, -0.25, -0.8) * CFrame.fromEulerAnglesXYZ(math.rad(175), 0, math.rad(50))
  1132. wait(.04)
  1133. weld33.C1 = CFrame.new(-0.75, -0.62, 0.55) * CFrame.fromEulerAnglesXYZ(math.rad(-90.4), math.rad(-16), -0.2)
  1134. weld55.C1 = CFrame.new(0.36, -0.25, -0.4) * CFrame.fromEulerAnglesXYZ(math.rad(195), 0, math.rad(40))
  1135. wait(.04)
  1136. weld33.C1 = CFrame.new(-0.75, -0.62, 0.55) * CFrame.fromEulerAnglesXYZ(math.rad(-90.3), math.rad(-16), -0.15)
  1137. weld55.C1 = CFrame.new(0.46, -0.15, -0) * CFrame.fromEulerAnglesXYZ(math.rad(215), 0.2, math.rad(30))
  1138. wait(.04)
  1139. weld33.C1 = CFrame.new(-0.75, -0.62, 0.55) * CFrame.fromEulerAnglesXYZ(math.rad(-90.2), math.rad(-16), -0.1)
  1140. weld55.C1 = CFrame.new(0.66, 0.15, 0.2) * CFrame.fromEulerAnglesXYZ(math.rad(235), 0.4, math.rad(20))
  1141. wait(.04)
  1142. weld33.C1 = CFrame.new(-0.75, -0.62, 0.55) * CFrame.fromEulerAnglesXYZ(math.rad(-90.1), math.rad(-16), -0.05)
  1143. weld55.C1 = CFrame.new(0.86, 0.35, 0.4) * CFrame.fromEulerAnglesXYZ(math.rad(255), 0.6, math.rad(10))
  1144. wait(.04)
  1145. weld33.C1 = CFrame.new(-0.75, -0.6, 0.55) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-16), 0)
  1146. weld55.C1 = CFrame.new(1, 0.55, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(275), 0.85, math.rad(-0))
  1147. end
  1148.  
  1149. function Equip(mouse)
  1150. wait(.1)
  1151.  
  1152.     print("Equipped")
  1153.     if game.Players.LocalPlayer ~= nil then
  1154.         Gui = Tool.OverheatBar:clone()
  1155.         Gui.Parent = game.Players.LocalPlayer.PlayerGui
  1156.             end
  1157.  
  1158. wait(0.01)
  1159. arms = {Tool.Parent:FindFirstChild("Left Arm"), Tool.Parent:FindFirstChild("Right Arm")}
  1160. torso = Tool.Parent:FindFirstChild("Torso")
  1161. if arms ~= nil and torso ~= nil then
  1162. local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
  1163. if sh ~= nil then
  1164. local yes = true
  1165. if yes then
  1166. yes = false
  1167. sh[1].Part1 = nil
  1168. sh[2].Part1 = nil
  1169. falsearm1 = arms[1]:clone()
  1170. local mesh1 = Tool.Larm:clone()
  1171. mesh1.Parent = falsearm1
  1172. local armweld1 = Instance.new("Weld")
  1173. falsearm1.BrickColor = BrickColor.new("Light orange") -- this is the arm colour incase u want to change it
  1174. falsearm1.Parent = Tool
  1175. armweld1.Parent = falsearm1
  1176. armweld1.Part0 = falsearm1
  1177. armweld1.Part1 = arms[1]
  1178. falsearm2 = arms[2]:clone()
  1179. local mesh2 = Tool.Rarm:clone()
  1180. mesh2.Parent = falsearm2
  1181. local armweld2 = Instance.new("Weld")
  1182. falsearm2.BrickColor = BrickColor.new("Light orange") -- this is the 2nd arm colour incase u want to change it
  1183. falsearm2.Parent = Tool
  1184. armweld2.Parent = falsearm2
  1185. armweld2.Part0 = falsearm2
  1186. armweld2.Part1 = arms[2]
  1187. local weld1 = Instance.new("Weld") -- left arm
  1188. weld55 = weld1
  1189. weld1.Part0 = torso
  1190. weld1.Parent = torso
  1191. weld1.Part1 = arms[1]
  1192. weld1.C1 = CFrame.new(1, 0.55, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(275), 0.85, math.rad(-0))
  1193. welds[1] = weld1
  1194. local weld2 = Instance.new("Weld") -- right arm
  1195. weld33 = weld2
  1196. weld2.Part0 = torso
  1197. weld2.Parent = torso
  1198. weld2.Part1 = arms[2]
  1199. weld2.C1 = CFrame.new(-0.75, -0.6, 0.55) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-16), 0)
  1200. welds[2] = weld2
  1201. Takeout()
  1202. end
  1203. else
  1204. print("sh")
  1205. end
  1206. else
  1207. print("arms")
  1208. end
  1209. end
  1210.  
  1211. function Unequip(mouse)
  1212. Gui:Remove()
  1213. if arms ~= nil and torso ~= nil then
  1214. local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
  1215. if sh ~= nil then
  1216. local yes = true
  1217. if yes then
  1218. yes = false
  1219. sh[1].Part1 = arms[1]
  1220. sh[2].Part1 = arms[2]
  1221. welds[1].Parent = nil
  1222. welds[2].Parent = nil
  1223. falsearm1:remove()
  1224. falsearm2:remove()
  1225. end
  1226. else
  1227. print("sh")
  1228. end
  1229. else
  1230. print("arms")
  1231. end
  1232. end
  1233.  
  1234.  
  1235. Tool.Equipped:connect(function(mouse)
  1236.  
  1237. function fire(v)
  1238. if enabled == true then
  1239. Spin = Spin + 1
  1240. if Spin < 40 then
  1241. Heat = Heat + 1
  1242. return
  1243. else
  1244. end
  1245. if Spin >= 45 then
  1246. Spin = 45
  1247. end
  1248. Heat = Heat + 1
  1249. firing = true
  1250.  
  1251.     script.Fire:Play()
  1252.  
  1253.     local vCharacter = Tool.Parent
  1254.     local vPlayer = game.Players:playerFromCharacter(vCharacter)
  1255.  
  1256.     local missile = Instance.new("Part")
  1257.  
  1258.        
  1259.  
  1260.     local spawnPos = vCharacter.PrimaryPart.Position
  1261.    
  1262.  
  1263.  
  1264.     spawnPos  = spawnPos + (v * 8)
  1265.  
  1266.     missile.Position = spawnPos
  1267.     missile.Transparency = 1
  1268.     missile.Size = Vector3.new(2,2,2)
  1269.     missile.Velocity = v * 50
  1270.     missile.BrickColor = BrickColor.new(24)
  1271.     missile.Shape = 0
  1272.     missile.BottomSurface = 0
  1273.     missile.TopSurface = 0
  1274.     missile.Name = "Bullet"
  1275.     missile.Elasticity = 0
  1276.     missile.Reflectance = .3
  1277.     missile.Friction = .9
  1278.    missile.CanCollide = false
  1279.  
  1280.     local force = Instance.new("BodyForce")
  1281.     force.force = Vector3.new(0,missile:getMass() * 196,0)
  1282.     force.Parent = missile
  1283.  
  1284.     local mesh = Instance.new("SpecialMesh")
  1285.     mesh.Scale = Vector3.new(.1,.1,.1)
  1286.     mesh.MeshType = "Sphere"
  1287.     mesh.Parent = missile
  1288.  
  1289.     local creator_tag = Instance.new("ObjectValue")
  1290.     creator_tag.Value = vPlayer
  1291.     creator_tag.Name = "creator"
  1292.     creator_tag.Parent = missile
  1293.    
  1294.     for i = 1,10 do
  1295.     f = Instance.new("Fire")
  1296.     f.Heat = 5
  1297.     f.Size = 10
  1298.     f.Parent = missile
  1299.     end
  1300.    
  1301.     missile.Parent = game.Workspace
  1302.  
  1303.     cam = game.Workspace.CurrentCamera
  1304.     local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p
  1305.     local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1306.     local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(0.01, 0, 0)
  1307.     cam.CoordinateFrame = ncf*CFrame.new(0, 0, cam_scroll)
  1308.     wait()
  1309. elseif enabled == false then
  1310.    
  1311. end
  1312. end
  1313. end)
  1314.  
  1315. function KeyDownFunctions(key)
  1316.     if key == "r" then
  1317.         Reload()
  1318.     end
  1319. end
  1320.  
  1321. function computeDirection(pos)
  1322.     local invrtDir = 1 / math.sqrt((pos.magnitude * pos.magnitude))
  1323.     local dir = Vector3.new(pos.x * invrtDir, pos.y * invrtDir, pos.z * invrtDir)
  1324.     return dir
  1325. end
  1326.  
  1327.  
  1328. function check(en)
  1329. if not Tool.Enabled then
  1330. return false
  1331. end
  1332. if Tool.Enabled then
  1333. return true
  1334. end
  1335. if not enabled then
  1336. return false
  1337. end
  1338. if enabled then
  1339. return true
  1340. end
  1341. end
  1342.  
  1343.  
  1344. function onActivated()
  1345.  
  1346.     if (not Tool.Enabled) or (not enabled) then
  1347.         return
  1348.     end
  1349.  
  1350.     --Tool.Enabled = false
  1351.  
  1352.     local character = Tool.Parent;
  1353.     local humanoid = character.Humanoid
  1354.     if humanoid == nil or humanoid.Health <= 0 then
  1355.         Tool:Remove()
  1356.         return
  1357.     end
  1358.  
  1359.  
  1360.  
  1361.     local targetPos = humanoid.TargetPoint
  1362.     local lookAt = (targetPos - character.Head.Position).unit
  1363.  
  1364. if (check()) then
  1365.  
  1366. end
  1367.     fire(lookAt)
  1368. wait()
  1369.     onActivated()
  1370.  
  1371.     return
  1372.     --Tool.Enabled = true
  1373. end
  1374.  
  1375.  
  1376. function onButton1Up(mouse)
  1377. firing = false
  1378. enabled = false
  1379. Tool.Enabled = false
  1380. wait(.2)
  1381. firing = false
  1382. enabled = true
  1383. Tool.Enabled = true
  1384. end
  1385.  
  1386. function onEquippedLocal(mouse)
  1387.  
  1388.     if mouse == nil then
  1389.         print("Mouse not found")
  1390.         return
  1391.     end
  1392.  
  1393.     mouse.Button1Down:connect(function() onButton1Down(mouse) end) 
  1394.     mouse.Button1Up:connect(function() onButton1Up(mouse)end)
  1395.     mouse.KeyDown:connect(KeyDownFunctions)
  1396. end
  1397.  
  1398. function onEquippedLocal2(mouse)
  1399. wait(.2)
  1400. while Mouse == true do
  1401.  
  1402. Spin = Spin - .5
  1403. if not firing then
  1404. Heat = Heat - 1
  1405. Part = Tool.Flame:getChildren()
  1406.  for i=1, #Part do
  1407.   if Part[i].className == "Fire" then
  1408.     wait()
  1409.     cam = game.Workspace.CurrentCamera
  1410. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p
  1411. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1412. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(-0.001, 0, 0)
  1413. cam.CoordinateFrame = ncf*CFrame.new(0, 0, cam_scroll)
  1414.   Part[i]:remove()
  1415.   end
  1416.  end
  1417. end
  1418.  
  1419.     mouse.Icon = "http://www.roblox.com/asset/?id=45003129"
  1420.  
  1421. --Spin Limit
  1422. if Spin <= 0 then
  1423. Spin = 0
  1424. end
  1425. if Spin > 10 then
  1426. f = Instance.new("Fire")
  1427. f.Heat = 1
  1428. f.Size = 2
  1429. f.Parent = Tool.Flame
  1430. cam = game.Workspace.CurrentCamera
  1431. local cam_rot = cam.CoordinateFrame - cam.CoordinateFrame.p
  1432. local cam_scroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude
  1433. local ncf = CFrame.new(cam.Focus.p)*cam_rot*CFrame.fromEulerAnglesXYZ(0.001, 0, 0)
  1434. cam.CoordinateFrame = ncf*CFrame.new(0, 0, cam_scroll)
  1435. script.Ding.Pitch = .6 + (.3 * (Spin/40))
  1436. script.Ding:Play()
  1437. end
  1438. if Spin > 45 then
  1439. Spin = 45
  1440. end
  1441.  
  1442. --Heat Limit
  1443. if Heat <= 0 then
  1444. enabled = true
  1445. Heat = 0
  1446. end
  1447.  
  1448. if Heat >= 100 then
  1449. enabled = false
  1450. Heat = 100
  1451. end
  1452.  
  1453. game.Players.LocalPlayer.PlayerGui.OverheatBar.HeatRed.Size = UDim2.new(0, Heat, 0, 10)
  1454. Tool.Heat.Value = Heat
  1455. wait()
  1456.  
  1457. end
  1458. end
  1459.  
  1460.  
  1461. --Update XAXA Version: V2
  1462.  
  1463.  
  1464.  
  1465. Tool.Equipped:connect(onEquippedLocal)
  1466. Tool.Equipped:connect(onEquippedLocal2)
  1467. Tool.Equipped:connect(Equip)
  1468. Tool.Unequipped:connect(Unequip)
  1469. flamethrower.Activated:connect(onActivated)
  1470. flamethrower.Equipped:connect(equip1)
  1471. flamethrower.Unequipped:connect(unequip1)
  1472.  
  1473. -- Thanks for SonicUnleashedXY & Manofthelol for this script.
  1474. -- To remove the orginial script just go into shooter & right at the bottem you will see something like this:
  1475. -- flamethrower.Tool.Name = ""..flamethrower.Ammo.Value.."|"..flamethrower.StoredAmmo.Value..""
  1476. -- Remove only that & add this to the tool.
  1477. -- Remember this was designed for Manofthelol weapons so any other weapons might not work.
  1478. -- You have no permission to repubish this in you model even if it edited.
  1479. -- If your found then you will be ban from my place.
  1480.  
  1481. local Tool = flamethrower
  1482. local Ammo = Tool.Heat
  1483.  
  1484. local vPlayer
  1485. local Gui
  1486. local Text
  1487.  
  1488. function onChanged(value)
  1489.     if value == "Value" or value == Ammo.Value then
  1490.         if Gui ~= nil and Text ~= nil then
  1491.             if Ammo.Value >= 1 then
  1492.                 Text.Text = "Heat: "..flamethrower.Heat.Value.."%"
  1493.             elseif math.floor(Ammo.Value) == 0 then
  1494.                 Text.Text = "Heat: "..flamethrower.Heat.Value.."%"
  1495.             elseif Ammo.Value < 0 then
  1496.                 for i = 0, 1, 0.03 / 2 do
  1497.  
  1498.                     Text.Text = "Heat: "..flamethrower.Heat.Value.."%"
  1499.                     wait()
  1500.                 end
  1501.             end
  1502.         end
  1503.     end
  1504. end
  1505.  
  1506. function on2Changed()
  1507.     if Gui ~= nil and Text ~= nil then
  1508.  
  1509.         Text.Text = "Heat: "..flamethrower.Heat.Value.."%"
  1510.         wait()
  1511.     end
  1512. end
  1513.  
  1514. function setUpGui()
  1515.     if vPlayer == nil or vPlayer:findFirstChild("PlayerGui") == nil then
  1516.         return
  1517.     end
  1518.  
  1519.     Gui = Instance.new("ScreenGui")
  1520.     Text = Instance.new("TextLabel")
  1521.  
  1522.     Gui.Name = "DEDisplay"
  1523.     Gui.Parent = vPlayer.PlayerGui
  1524.  
  1525.     Text.BackgroundColor3 = BrickColor.Black().Color
  1526.    Text.BackgroundTransparency = 1
  1527.     Text.BorderColor3 = BrickColor.White().Color
  1528.    Text.BorderSizePixel = 0
  1529.     Text.Name = "Ammo"
  1530.     Text.Parent = Gui
  1531.     Text.Position = UDim2.new(0.15, 0, 0.825, 0)
  1532.     Text.Size = UDim2.new(0, -60, 0, 64)
  1533.    Text.FontSize = "Size18"
  1534.     Text.Text = "Heat: "..flamethrower.Heat.Value.."%"
  1535.     Text.TextColor3 = BrickColor.Red().Color
  1536. end
  1537.  
  1538. function onEquippedLocal(mouse)
  1539.     vPlayer = game.Players.LocalPlayer
  1540.  
  1541.     setUpGui()
  1542. end
  1543.  
  1544. function onUnequippedLocal(mouse)
  1545.     if Gui then
  1546.         Gui:remove()
  1547.     end
  1548.  
  1549.     Gui = nil
  1550.     Text = nil
  1551.     vPlayer = nil
  1552. end
  1553.  
  1554. Tool.Equipped:connect(onEquippedLocal)
  1555. Tool.Unequipped:connect(onUnequippedLocal)
  1556.  
  1557. Ammo.Changed:connect(onChanged)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement