Advertisement
Liu-2

Abusive Laser Gun - [ Roblox ]

Jul 5th, 2019
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 53.83 KB | None | 0 0
  1. --- [[ Abusive Laser gun ]] ---
  2. -- by fo43123
  3.  
  4. local me = game.Players.LocalPlayer
  5. local mouse = me:GetMouse()
  6. local char = me.Character
  7. local hum = char['Humanoid']
  8. local hd = char['Head']
  9. local ts = char['Torso']
  10. local ra = char['Right Arm']
  11. local la = char['Left Arm']
  12. local rl = char['Right Leg']
  13. local ll = char['Left Leg']
  14. local root = char['HumanoidRootPart']
  15. local rj = root['RootJoint']
  16. local rs = ts['Right Shoulder']
  17. local ls = ts['Left Shoulder']
  18. local rh = ts['Right Hip']
  19. local lh = ts['Left Hip']
  20. local nk = ts['Neck']
  21. local animate = char:FindFirstChild('Animate')
  22. local bases = workspace:FindFirstChild('Baseplate') or workspace:FindFirstChild('Base')
  23. local anim = nil
  24. local cananim = true
  25. local equipped = false
  26. local attack = false
  27. local onrun = false
  28. local isonhit = false
  29. local sine = 0
  30. local change = 2
  31. local cc = workspace.CurrentCamera
  32. local cos = math.cos
  33. local sin = math.sin
  34. local rad = math.rad
  35. local rand = math.random
  36. local cfn = CFrame.new
  37. local cfa = CFrame.Angles
  38. local cfor = CFrame.fromOrientation
  39. local v3 = Vector3.new
  40. local sicko = Instance.new('Sound', hd)
  41. sicko.Volume = 5
  42. sicko.SoundId = 'rbxassetid://1722896592'
  43. sicko.PlaybackSpeed = 1
  44. sicko.Looped = true
  45. sicko:Play()
  46. hum.WalkSpeed = 60
  47. hum.JumpPower = 100
  48. print([[
  49.     -- MoveList --
  50.     LMB - Laser Shoot
  51.     F - Charged Shoot
  52.     M - Toggle Music
  53. ]])
  54.  
  55. local RIGHTARMLERP = Instance.new('ManualWeld', ts)
  56. RIGHTARMLERP.Part0 = ts
  57. RIGHTARMLERP.Part1 = ra
  58. RIGHTARMLERP.C0 = cfn(1.5, 0, 0) * cfa(rad(0), rad(0), rad(0))
  59. local LEFTARMLERP = Instance.new('ManualWeld', ts)
  60. LEFTARMLERP.Part0 = ts
  61. LEFTARMLERP.Part1 = la
  62. LEFTARMLERP.C0 = cfn(-1.5, 0, 0) * cfa(rad(0), rad(0), rad(0))
  63. local HEADLERP = Instance.new('ManualWeld', ts)
  64. HEADLERP.Part0 = ts
  65. HEADLERP.Part1 = hd
  66. HEADLERP.C0 = cfn(0, 1.5, 0) * cfa(rad(0), rad(0), rad(0))
  67. local RIGHTLEGLERP = Instance.new('ManualWeld', ts)
  68. RIGHTLEGLERP.Part0 = root
  69. RIGHTLEGLERP.Part1 = rl
  70. RIGHTLEGLERP.C0 = cfn(0.5, -2, 0) * cfa(rad(0), rad(0), rad(0))
  71. local LEFTLEGLERP = Instance.new('ManualWeld', ts)
  72. LEFTLEGLERP.Part0 = root
  73. LEFTLEGLERP.Part1 = ll
  74. LEFTLEGLERP.C0 = cfn(-0.5, -2, 0) * cfa(rad(0), rad(0), rad(0))
  75. local TORSOLERP = Instance.new('ManualWeld', ts)
  76. TORSOLERP.Part0 = root
  77. TORSOLERP.Part1 = ts
  78. TORSOLERP.C0 = cfn(0, 0, 0) * cfa(rad(0), rad(0), rad(0))
  79.  
  80. -- ray bazooka model
  81. --Converted with ttyyuu12345's model to script plugin v4
  82. function sandbox(var,func)
  83.     local env = getfenv(func)
  84.     local newenv = setmetatable({},{
  85.         __index = function(self,k)
  86.             if k=="script" then
  87.                 return var
  88.             else
  89.                 return env[k]
  90.             end
  91.         end,
  92.     })
  93.     setfenv(func,newenv)
  94.     return func
  95. end
  96. cors = {}
  97. mas = Instance.new('Model', char)
  98. effects = Instance.new('Folder', char)
  99. effects.Name = 'Effects'
  100. mas.Name = 'LaserGun'
  101. Part0 = Instance.new("Part")
  102. Part1 = Instance.new("Part")
  103. Part2 = Instance.new("Part")
  104. Part3 = Instance.new("Part")
  105. Part4 = Instance.new("Part")
  106. Part5 = Instance.new("Part")
  107. Part6 = Instance.new("Part")
  108. ManualWeld7 = Instance.new("ManualWeld")
  109. ManualWeld8 = Instance.new("ManualWeld")
  110. ManualWeld9 = Instance.new("ManualWeld")
  111. ManualWeld10 = Instance.new("ManualWeld")
  112. ManualWeld11 = Instance.new("ManualWeld")
  113. ManualWeld12 = Instance.new("ManualWeld")
  114. ManualWeld13 = Instance.new("ManualWeld")
  115. ManualWeld14 = Instance.new("ManualWeld")
  116. ManualWeld15 = Instance.new("ManualWeld")
  117. ManualWeld16 = Instance.new("ManualWeld")
  118. ManualWeld17 = Instance.new("ManualWeld")
  119. ManualWeld18 = Instance.new("ManualWeld")
  120. ManualWeld19 = Instance.new("ManualWeld")
  121. ManualWeld20 = Instance.new("ManualWeld")
  122. ManualWeld21 = Instance.new("ManualWeld")
  123. ManualWeld22 = Instance.new("ManualWeld")
  124. ManualWeld23 = Instance.new("ManualWeld")
  125. ManualWeld24 = Instance.new("ManualWeld")
  126. ManualWeld25 = Instance.new("ManualWeld")
  127. ManualWeld26 = Instance.new("ManualWeld")
  128. ManualWeld27 = Instance.new("ManualWeld")
  129. ManualWeld28 = Instance.new("ManualWeld")
  130. ManualWeld29 = Instance.new("ManualWeld")
  131. ManualWeld30 = Instance.new("ManualWeld")
  132. ManualWeld31 = Instance.new("ManualWeld")
  133. ManualWeld32 = Instance.new("ManualWeld")
  134. ManualWeld33 = Instance.new("ManualWeld")
  135. ManualWeld34 = Instance.new("ManualWeld")
  136. ManualWeld35 = Instance.new("ManualWeld")
  137. ManualWeld36 = Instance.new("ManualWeld")
  138. ManualWeld37 = Instance.new("ManualWeld")
  139. ManualWeld38 = Instance.new("ManualWeld")
  140. ManualWeld39 = Instance.new("ManualWeld")
  141. ManualWeld40 = Instance.new("ManualWeld")
  142. ManualWeld41 = Instance.new("ManualWeld")
  143. ManualWeld42 = Instance.new("ManualWeld")
  144. ManualWeld43 = Instance.new("ManualWeld")
  145. ManualWeld44 = Instance.new("ManualWeld")
  146. ManualWeld45 = Instance.new("ManualWeld")
  147. ManualWeld46 = Instance.new("ManualWeld")
  148. ManualWeld47 = Instance.new("ManualWeld")
  149. ManualWeld48 = Instance.new("ManualWeld")
  150. gripweld = Instance.new('ManualWeld')
  151. Part49 = Instance.new("Part")
  152. Part50 = Instance.new("Part")
  153. Part51 = Instance.new("Part")
  154. Part52 = Instance.new("Part")
  155. Part53 = Instance.new("Part")
  156. Part54 = Instance.new("Part")
  157. Part55 = Instance.new("Part")
  158. Part56 = Instance.new("Part")
  159. Part57 = Instance.new("Part")
  160. Part58 = Instance.new("Part")
  161. Part59 = Instance.new("Part")
  162. Part60 = Instance.new("Part")
  163. Part61 = Instance.new("Part")
  164. Part62 = Instance.new("Part")
  165. Part63 = Instance.new("Part")
  166. Part64 = Instance.new("Part")
  167. Part65 = Instance.new("Part")
  168. Part66 = Instance.new("Part")
  169. Part67 = Instance.new("Part")
  170. Part68 = Instance.new("Part")
  171. Part69 = Instance.new("Part")
  172. Part70 = Instance.new("Part")
  173. Part71 = Instance.new("Part")
  174. Part72 = Instance.new("Part")
  175. Part73 = Instance.new("Part")
  176. Part74 = Instance.new("Part")
  177. Part75 = Instance.new("Part")
  178. Part76 = Instance.new("Part")
  179. Part77 = Instance.new("Part")
  180. Part78 = Instance.new("Part")
  181. Part79 = Instance.new("Part")
  182. Part80 = Instance.new("Part")
  183. Part81 = Instance.new("Part")
  184. Part82 = Instance.new("Part")
  185. Part0.Name = "a5"
  186. Part0.Parent = mas
  187. Part0.CFrame = CFrame.new(0.44999975, 0.269999921, 0.00499999709, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  188. Part0.Position = Vector3.new(0.44999975, 0.269999921, 0.00499999709)
  189. Part0.Size = Vector3.new(0.0799999386, 0.400000036, 0.200000077)
  190. Part0.BottomSurface = Enum.SurfaceType.Smooth
  191. Part0.CanCollide = false
  192. Part0.Material = Enum.Material.DiamondPlate
  193. Part0.TopSurface = Enum.SurfaceType.Smooth
  194. Part1.Name = "d9"
  195. Part1.Parent = mas
  196. Part1.CFrame = CFrame.new(0.0899997056, 0.440000147, 0.185000196, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  197. Part1.Position = Vector3.new(0.0899997056, 0.440000147, 0.185000196)
  198. Part1.Color = Color3.new(0.654902, 0.368627, 0.607843)
  199. Part1.Size = Vector3.new(3.86000013, 1, 0.150000468)
  200. Part1.BottomSurface = Enum.SurfaceType.Smooth
  201. Part1.BrickColor = BrickColor.new("Bright red")
  202. Part1.CanCollide = false
  203. Part1.Material = Enum.Material.Neon
  204. Part1.TopSurface = Enum.SurfaceType.Smooth
  205. Part1.brickColor = BrickColor.new("Bright red")
  206. Part1.Shape = Enum.PartType.Cylinder
  207. Part2.Name = "d16"
  208. Part2.Parent = mas
  209. Part2.CFrame = CFrame.new(1.54499984, 1.48000097, 0.0149999876, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  210. Part2.Position = Vector3.new(1.54499984, 1.48000097, 0.0149999876)
  211. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  212. Part2.Size = Vector3.new(4.02999926, 0.26000011, 0.0899998695)
  213. Part2.BottomSurface = Enum.SurfaceType.Smooth
  214. Part2.BrickColor = BrickColor.new("Dark stone grey")
  215. Part2.CanCollide = false
  216. Part2.Material = Enum.Material.DiamondPlate
  217. Part2.TopSurface = Enum.SurfaceType.Smooth
  218. Part2.brickColor = BrickColor.new("Dark stone grey")
  219. Part2.Shape = Enum.PartType.Cylinder
  220. Part3.Name = "d2"
  221. Part3.Parent = mas
  222. Part3.CFrame = CFrame.new(-0.434999824, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  223. Part3.Position = Vector3.new(-0.434999824, 1, 0)
  224. Part3.Color = Color3.new(0.388235, 0.372549, 0.384314)
  225. Part3.Size = Vector3.new(0.190000013, 1.10000002, 1.10000002)
  226. Part3.BottomSurface = Enum.SurfaceType.Smooth
  227. Part3.BrickColor = BrickColor.new("Dark stone grey")
  228. Part3.CanCollide = false
  229. Part3.Material = Enum.Material.DiamondPlate
  230. Part3.TopSurface = Enum.SurfaceType.Smooth
  231. Part3.brickColor = BrickColor.new("Dark stone grey")
  232. Part3.Shape = Enum.PartType.Cylinder
  233. Part4.Name = "d1"
  234. Part4.Parent = mas
  235. Part4.CFrame = CFrame.new(2.69371295, 0.609683573, 0.175000012, 0.965925872, -0.258818984, 0, 0.258818984, 0.965925872, 0, 0, 0, 1)
  236. Part4.Orientation = Vector3.new(0, 0, 15)
  237. Part4.Position = Vector3.new(2.69371295, 0.609683573, 0.175000012)
  238. Part4.Rotation = Vector3.new(0, 0, 15)
  239. Part4.Color = Color3.new(0.654902, 0.368627, 0.607843)
  240. Part4.Size = Vector3.new(1.48999989, 0.14000003, 0.270000607)
  241. Part4.BottomSurface = Enum.SurfaceType.Smooth
  242. Part4.BrickColor = BrickColor.new("Bright red")
  243. Part4.CanCollide = false
  244. Part4.Material = Enum.Material.Neon
  245. Part4.TopSurface = Enum.SurfaceType.Smooth
  246. Part4.brickColor = BrickColor.new("Bright red")
  247. Part4.Shape = Enum.PartType.Cylinder
  248. Part5.Name = "d30"
  249. Part5.Parent = mas
  250. Part5.CFrame = CFrame.new(2.18309999, 1.07482338, -0.0850001648, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  251. Part5.Position = Vector3.new(2.18309999, 1.07482338, -0.0850001648)
  252. Part5.Color = Color3.new(0.388235, 0.372549, 0.384314)
  253. Part5.Size = Vector3.new(0.159999982, 1, 0.990000427)
  254. Part5.BottomSurface = Enum.SurfaceType.Smooth
  255. Part5.BrickColor = BrickColor.new("Dark stone grey")
  256. Part5.CanCollide = false
  257. Part5.Material = Enum.Material.DiamondPlate
  258. Part5.TopSurface = Enum.SurfaceType.Smooth
  259. Part5.brickColor = BrickColor.new("Dark stone grey")
  260. Part5.Shape = Enum.PartType.Cylinder
  261. Part6.Name = "grip""d13"
  262. Part49.Parent = mas
  263. Part49.CFrame = CFrame.new(1.35500014, 0.519999981, -1.63912773e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  264. Part49.Position = Vector3.new(1.35500014, 0.519999981, -1.63912773e-07)
  265. Part49.Color = Color3.new(0.388235, 0.372549, 0.384314)
  266. Part49.Size = Vector3.new(0.25, 1, 0.600000381)
  267. Part49.BottomSurface = Enum.SurfaceType.Smooth
  268. Part49.BrickColor = BrickColor.new("Dark stone grey")
  269. Part49.CanCollide = false
  270. Part49.Material = Enum.Material.DiamondPlate
  271. Part49.TopSurface = Enum.SurfaceType.Smooth
  272. Part49.brickColor = BrickColor.new("Dark stone grey")
  273. Part49.Shape = Enum.PartType.Cylinder
  274. Part50.Name = "a6"
  275. Part50.Parent = mas
  276. Part50.CFrame = CFrame.new(0.0349999666, 0.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  277. Part50.Position = Vector3.new(0.0349999666, 0.5, 0)
  278. Part50.Size = Vector3.new(3.93000007, 1, 0.5)
  279. Part50.BottomSurface = Enum.SurfaceType.Smooth
  280. Part50.CanCollide = false
  281. Part50.Material = Enum.Material.DiamondPlate
  282. Part50.TopSurface = Enum.SurfaceType.Smooth
  283. Part50.Shape = Enum.PartType.Cylinder
  284. Part51.Name = "d19"
  285. Part51.Parent = mas
  286. Part51.CFrame = CFrame.new(1.54499984, 1.05000126, 0.494999945, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  287. Part51.Position = Vector3.new(1.54499984, 1.05000126, 0.494999945)
  288. Part51.Color = Color3.new(0.388235, 0.372549, 0.384314)
  289. Part51.Size = Vector3.new(4.02999926, 0.26000011, 0.0899998695)
  290. Part51.BottomSurface = Enum.SurfaceType.Smooth
  291. Part51.BrickColor = BrickColor.new("Dark stone grey")
  292. Part51.CanCollide = false
  293. Part51.Material = Enum.Material.DiamondPlate
  294. Part51.TopSurface = Enum.SurfaceType.Smooth
  295. Part51.brickColor = BrickColor.new("Dark stone grey")
  296. Part51.Shape = Enum.PartType.Cylinder
  297. Part52.Name = "main"
  298. Part52.Parent = mas
  299. Part52.CFrame = CFrame.new(0.235000014, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  300. Part52.Position = Vector3.new(0.235000014, 1, 0)
  301. Part52.Size = Vector3.new(1.47000003, 1, 1)
  302. Part52.BottomSurface = Enum.SurfaceType.Smooth
  303. Part52.CanCollide = false
  304. Part52.Material = Enum.Material.DiamondPlate
  305. Part52.TopSurface = Enum.SurfaceType.Smooth
  306. Part52.Shape = Enum.PartType.Cylinder
  307. Part53.Name = "d15"
  308. Part53.Parent = mas
  309. Part53.CFrame = CFrame.new(3.57999992, 1, -0.00999984331, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  310. Part53.Position = Vector3.new(3.57999992, 1, -0.00999984331)
  311. Part53.Color = Color3.new(0.831373, 0.564706, 0.741176)
  312. Part53.Size = Vector3.new(0.340000004, 1.10000002, 0.700000346)
  313. Part53.BottomSurface = Enum.SurfaceType.Smooth
  314. Part53.BrickColor = BrickColor.new("Persimmon")
  315. Part53.CanCollide = false
  316. Part53.Material = Enum.Material.Neon
  317. Part53.TopSurface = Enum.SurfaceType.Smooth
  318. Part53.brickColor = BrickColor.new("Persimmon")
  319. Part53.Shape = Enum.PartType.Cylinder
  320. Part54.Name = "d23"
  321. Part54.Parent = mas
  322. Part54.CFrame = CFrame.new(-0.750000477, 1.30000114, -0.124999993, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  323. Part54.Position = Vector3.new(-0.750000477, 1.30000114, -0.124999993)
  324. Part54.Color = Color3.new(0.388235, 0.372549, 0.384314)
  325. Part54.Size = Vector3.new(0.700000226, 0.26000011, 0.0899998695)
  326. Part54.BottomSurface = Enum.SurfaceType.Smooth
  327. Part54.BrickColor = BrickColor.new("Dark stone grey")
  328. Part54.CanCollide = false
  329. Part54.Material = Enum.Material.DiamondPlate
  330. Part54.TopSurface = Enum.SurfaceType.Smooth
  331. Part54.brickColor = BrickColor.new("Dark stone grey")
  332. Part54.Shape = Enum.PartType.Cylinder
  333. Part55.Name = "d21"
  334. Part55.Parent = mas
  335. Part55.CFrame = CFrame.new(3.56499934, 1, -0.0300001204, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  336. Part55.Position = Vector3.new(3.56499934, 1, -0.0300001204)
  337. Part55.Color = Color3.new(0.388235, 0.372549, 0.384314)
  338. Part55.Size = Vector3.new(0.190000013, 1.17999995, 1.37999976)
  339. Part55.BottomSurface = Enum.SurfaceType.Smooth
  340. Part55.BrickColor = BrickColor.new("Dark stone grey")
  341. Part55.CanCollide = false
  342. Part55.Material = Enum.Material.DiamondPlate
  343. Part55.TopSurface = Enum.SurfaceType.Smooth
  344. Part55.brickColor = BrickColor.new("Dark stone grey")
  345. Part55.Shape = Enum.PartType.Cylinder
  346. Part56.Name = "d28"
  347. Part56.Parent = mas
  348. Part56.CFrame = CFrame.new(3.78912425, 1, -0.0328193009, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  349. Part56.Position = Vector3.new(3.78912425, 1, -0.0328193009)
  350. Part56.Color = Color3.new(0.831373, 0.564706, 0.741176)
  351. Part56.Size = Vector3.new(0.190000013, 1.10000002, 0.710001349)
  352. Part56.BottomSurface = Enum.SurfaceType.Smooth
  353. Part56.BrickColor = BrickColor.new("Persimmon")
  354. Part56.CanCollide = false
  355. Part56.Material = Enum.Material.Neon
  356. Part56.TopSurface = Enum.SurfaceType.Smooth
  357. Part56.brickColor = BrickColor.new("Persimmon")
  358. Part56.Shape = Enum.PartType.Cylinder
  359. Part57.Name = "d11"
  360. Part57.Parent = mas
  361. Part57.CFrame = CFrame.new(-0.704999566, 0.519999981, -1.63912773e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  362. Part57.Position = Vector3.new(-0.704999566, 0.519999981, -1.63912773e-07)
  363. Part57.Color = Color3.new(0.388235, 0.372549, 0.384314)
  364. Part57.Size = Vector3.new(0.25, 1, 0.600000381)
  365. Part57.BottomSurface = Enum.SurfaceType.Smooth
  366. Part57.BrickColor = BrickColor.new("Dark stone grey")
  367. Part57.CanCollide = false
  368. Part57.Material = Enum.Material.DiamondPlate
  369. Part57.TopSurface = Enum.SurfaceType.Smooth
  370. Part57.brickColor = BrickColor.new("Dark stone grey")
  371. Part57.Shape = Enum.PartType.Cylinder
  372. Part58.Name = "d20"
  373. Part58.Parent = mas
  374. Part58.CFrame = CFrame.new(-1.20499957, 0.995000005, -2.14204192e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  375. Part58.Position = Vector3.new(-1.20499957, 0.995000005, -2.14204192e-07)
  376. Part58.Color = Color3.new(0.694118, 0.654902, 1)
  377. Part58.Transparency = 0.89999997615814
  378. Part58.Size = Vector3.new(0.529999971, 0.530000448, 0.620000482)
  379. Part58.BottomSurface = Enum.SurfaceType.Smooth
  380. Part58.BrickColor = BrickColor.new("Pastel violet")
  381. Part58.CanCollide = false
  382. Part58.Material = Enum.Material.Neon
  383. Part58.TopSurface = Enum.SurfaceType.Smooth
  384. Part58.brickColor = BrickColor.new("Pastel violet")
  385. Part58.Shape = Enum.PartType.Cylinder
  386. Part59.Name = "d6"
  387. Part59.Parent = mas
  388. Part59.CFrame = CFrame.new(-1.6049999, 0.48999998, -1.63912773e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  389. Part59.Position = Vector3.new(-1.6049999, 0.48999998, -1.63912773e-07)
  390. Part59.Color = Color3.new(0.388235, 0.372549, 0.384314)
  391. Part59.Size = Vector3.new(0.549999893, 1, 0.600000381)
  392. Part59.BottomSurface = Enum.SurfaceType.Smooth
  393. Part59.BrickColor = BrickColor.new("Dark stone grey")
  394. Part59.CanCollide = false
  395. Part59.Material = Enum.Material.DiamondPlate
  396. Part59.TopSurface = Enum.SurfaceType.Smooth
  397. Part59.brickColor = BrickColor.new("Dark stone grey")
  398. Part59.Shape = Enum.PartType.Cylinder
  399. Part60.Name = "a4"
  400. Part60.Parent = mas
  401. Part60.CFrame = CFrame.new(0.0949999243, 0.124999948, 0.00499999709, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  402. Part60.Position = Vector3.new(0.0949999243, 0.124999948, 0.00499999709)
  403. Part60.Size = Vector3.new(0.649999857, 0.110000134, 0.200000077)
  404. Part60.BottomSurface = Enum.SurfaceType.Smooth
  405. Part60.CanCollide = false
  406. Part60.Material = Enum.Material.DiamondPlate
  407. Part60.TopSurface = Enum.SurfaceType.Smooth
  408. Part61.Name = "d25"
  409. Part61.Parent = mas
  410. Part61.CFrame = CFrame.new(2.78999925, 1.00999999, -0.00243542343, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  411. Part61.Position = Vector3.new(2.78999925, 1.00999999, -0.00243542343)
  412. Part61.Color = Color3.new(0.388235, 0.372549, 0.384314)
  413. Part61.Size = Vector3.new(0.159999982, 1, 0.850000501)
  414. Part61.BottomSurface = Enum.SurfaceType.Smooth
  415. Part61.BrickColor = BrickColor.new("Dark stone grey")
  416. Part61.CanCollide = false
  417. Part61.Material = Enum.Material.DiamondPlate
  418. Part61.TopSurface = Enum.SurfaceType.Smooth
  419. Part61.brickColor = BrickColor.new("Dark stone grey")
  420. Part61.Shape = Enum.PartType.Cylinder
  421. Part62.Name = "d29"
  422. Part62.Parent = mas
  423. Part62.CFrame = CFrame.new(3.13071442, 0.674999893, -0.0199999958, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  424. Part62.Position = Vector3.new(3.13071442, 0.674999893, -0.0199999958)
  425. Part62.Color = Color3.new(0.411765, 0.4, 0.360784)
  426. Part62.Size = Vector3.new(0.701428473, 0.17285727, 0.382000059)
  427. Part62.BottomSurface = Enum.SurfaceType.Smooth
  428. Part62.BrickColor = BrickColor.new("Flint")
  429. Part62.CanCollide = false
  430. Part62.Material = Enum.Material.DiamondPlate
  431. Part62.TopSurface = Enum.SurfaceType.Smooth
  432. Part62.brickColor = BrickColor.new("Flint")
  433. Part63.Name = "main"
  434. Part63.Parent = mas
  435. Part63.CFrame = CFrame.new(1.06499958, 1, -0.0248420238, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  436. Part63.Position = Vector3.new(1.06499958, 1, -0.0248420238)
  437. Part63.Color = Color3.new(0.388235, 0.372549, 0.384314)
  438. Part63.Size = Vector3.new(1.74999964, 1, 0.900000095)
  439. Part63.BottomSurface = Enum.SurfaceType.Smooth
  440. Part63.BrickColor = BrickColor.new("Dark stone grey")
  441. Part63.CanCollide = false
  442. Part63.Material = Enum.Material.DiamondPlate
  443. Part63.TopSurface = Enum.SurfaceType.Smooth
  444. Part63.brickColor = BrickColor.new("Dark stone grey")
  445. Part63.Shape = Enum.PartType.Cylinder
  446. Part64.Name = "d27"
  447. Part64.Parent = mas
  448. Part64.CFrame = CFrame.new(-1.12920988, 0.980000019, -0.0427353457, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  449. Part64.Position = Vector3.new(-1.12920988, 0.980000019, -0.0427353457)
  450. Part64.Color = Color3.new(0.411765, 0.4, 0.360784)
  451. Part64.Size = Vector3.new(0.190000013, 1.10000002, 0.700000286)
  452. Part64.BottomSurface = Enum.SurfaceType.Smooth
  453. Part64.BrickColor = BrickColor.new("Flint")
  454. Part64.CanCollide = false
  455. Part64.Material = Enum.Material.DiamondPlate
  456. Part64.TopSurface = Enum.SurfaceType.Smooth
  457. Part64.brickColor = BrickColor.new("Flint")
  458. Part64.Shape = Enum.PartType.Cylinder
  459. Part65.Name = "a1"
  460. Part65.Parent = mas
  461. Part65.Color = Color3.new(0.388235, 0.372549, 0.384314)
  462. Part65.Size = Vector3.new(0.390000105, 0.880000055, 0.380000412)
  463. Part65.BottomSurface = Enum.SurfaceType.Smooth
  464. Part65.BrickColor = BrickColor.new("Dark stone grey")
  465. Part65.CanCollide = false
  466. Part65.Material = Enum.Material.DiamondPlate
  467. Part65.TopSurface = Enum.SurfaceType.Smooth
  468. Part65.brickColor = BrickColor.new("Dark stone grey")
  469. Part66.Name = "d24"
  470. Part66.Parent = mas
  471. Part66.CFrame = CFrame.new(-1.03000009, 0.48999998, -1.63912773e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  472. Part66.Position = Vector3.new(-1.03000009, 0.48999998, -1.63912773e-07)
  473. Part66.Color = Color3.new(0.388235, 0.372549, 0.384314)
  474. Part66.Size = Vector3.new(0.159999982, 1, 0.600000381)
  475. Part66.BottomSurface = Enum.SurfaceType.Smooth
  476. Part66.BrickColor = BrickColor.new("Dark stone grey")
  477. Part66.CanCollide = false
  478. Part66.Material = Enum.Material.DiamondPlate
  479. Part66.TopSurface = Enum.SurfaceType.Smooth
  480. Part66.brickColor = BrickColor.new("Dark stone grey")
  481. Part66.Shape = Enum.PartType.Cylinder
  482. Part67.Name = "ray"
  483. Part67.Parent = mas
  484. Part67.CFrame = CFrame.new(1.16000128, 0.98999995, 2.23517418e-08, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  485. Part67.Position = Vector3.new(1.16000128, 0.98999995, 2.23517418e-08)
  486. Part67.Color = Color3.new(0.654902, 0.368627, 0.607843)
  487. Part67.Size = Vector3.new(5.22000217, 1, 0.520000458)
  488. Part67.BottomSurface = Enum.SurfaceType.Smooth
  489. Part67.BrickColor = BrickColor.new("Bright red")
  490. Part67.CanCollide = false
  491. Part67.Material = Enum.Material.Neon
  492. Part67.TopSurface = Enum.SurfaceType.Smooth
  493. Part67.brickColor = BrickColor.new("Bright red")
  494. Part67.Shape = Enum.PartType.Cylinder
  495. Part68.Name = "d26"
  496. Part68.Parent = mas
  497. Part68.CFrame = CFrame.new(2.52999949, 1.07482338, -0.0850001648, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  498. Part68.Position = Vector3.new(2.52999949, 1.07482338, -0.0850001648)
  499. Part68.Color = Color3.new(0.388235, 0.372549, 0.384314)
  500. Part68.Size = Vector3.new(0.159999982, 1, 0.990000427)
  501. Part68.BottomSurface = Enum.SurfaceType.Smooth
  502. Part68.BrickColor = BrickColor.new("Dark stone grey")
  503. Part68.CanCollide = false
  504. Part68.Material = Enum.Material.DiamondPlate
  505. Part68.TopSurface = Enum.SurfaceType.Smooth
  506. Part68.brickColor = BrickColor.new("Dark stone grey")
  507. Part68.Shape = Enum.PartType.Cylinder
  508. Part69.Name = "d8"
  509. Part69.Parent = mas
  510. Part69.CFrame = CFrame.new(3.62500095, 1, -0.0199998766, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  511. Part69.Position = Vector3.new(3.62500095, 1, -0.0199998766)
  512. Part69.Color = Color3.new(0.388235, 0.372549, 0.384314)
  513. Part69.Size = Vector3.new(0.50999999, 1.10000002, 0.840000272)
  514. Part69.BottomSurface = Enum.SurfaceType.Smooth
  515. Part69.BrickColor = BrickColor.new("Dark stone grey")
  516. Part69.CanCollide = false
  517. Part69.Material = Enum.Material.DiamondPlate
  518. Part69.TopSurface = Enum.SurfaceType.Smooth
  519. Part69.brickColor = BrickColor.new("Dark stone grey")
  520. Part69.Shape = Enum.PartType.Cylinder
  521. Part70.Name = "a7"
  522. Part70.Parent = mas
  523. Part70.CFrame = CFrame.new(0.920000017, 1, 0.00500012189, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  524. Part70.Position = Vector3.new(0.920000017, 1, 0.00500012189)
  525. Part70.Size = Vector3.new(4, 1, 0.730000257)
  526. Part70.BottomSurface = Enum.SurfaceType.Smooth
  527. Part70.CanCollide = false
  528. Part70.Material = Enum.Material.DiamondPlate
  529. Part70.TopSurface = Enum.SurfaceType.Smooth
  530. Part70.Shape = Enum.PartType.Cylinder
  531. Part71.Name = "d7"
  532. Part71.Parent = mas
  533. Part71.CFrame = CFrame.new(3.45999956, 1, -0.00999992527, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  534. Part71.Position = Vector3.new(3.45999956, 1, -0.00999992527)
  535. Part71.Color = Color3.new(0.388235, 0.372549, 0.384314)
  536. Part71.Size = Vector3.new(0.339999974, 1.10000002, 0.940000176)
  537. Part71.BottomSurface = Enum.SurfaceType.Smooth
  538. Part71.BrickColor = BrickColor.new("Dark stone grey")
  539. Part71.CanCollide = false
  540. Part71.Material = Enum.Material.DiamondPlate
  541. Part71.TopSurface = Enum.SurfaceType.Smooth
  542. Part71.brickColor = BrickColor.new("Dark stone grey")
  543. Part71.Shape = Enum.PartType.Cylinder
  544. Part72.Name = "d3"
  545. Part72.Parent = mas
  546. Part72.CFrame = CFrame.new(-0.0949997902, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  547. Part72.Position = Vector3.new(-0.0949997902, 1, 0)
  548. Part72.Color = Color3.new(0.388235, 0.372549, 0.384314)
  549. Part72.Size = Vector3.new(0.190000013, 1.10000002, 1.10000002)
  550. Part72.BottomSurface = Enum.SurfaceType.Smooth
  551. Part72.BrickColor = BrickColor.new("Dark stone grey")
  552. Part72.CanCollide = false
  553. Part72.Material = Enum.Material.DiamondPlate
  554. Part72.TopSurface = Enum.SurfaceType.Smooth
  555. Part72.brickColor = BrickColor.new("Dark stone grey")
  556. Part72.Shape = Enum.PartType.Cylinder
  557. Part73.Name = "d4"
  558. Part73.Parent = mas
  559. Part73.CFrame = CFrame.new(3.51756072, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  560. Part73.Position = Vector3.new(3.51756072, 1, 0)
  561. Part73.Color = Color3.new(0.388235, 0.372549, 0.384314)
  562. Part73.Size = Vector3.new(0.190000013, 1.10000002, 1.10000002)
  563. Part73.BottomSurface = Enum.SurfaceType.Smooth
  564. Part73.BrickColor = BrickColor.new("Dark stone grey")
  565. Part73.CanCollide = false
  566. Part73.Material = Enum.Material.DiamondPlate
  567. Part73.TopSurface = Enum.SurfaceType.Smooth
  568. Part73.brickColor = BrickColor.new("Dark stone grey")
  569. Part73.Shape = Enum.PartType.Cylinder
  570. Part74.Name = "d10"
  571. Part74.Parent = mas
  572. Part74.CFrame = CFrame.new(-1.03499973, 0.980000019, 0.00999992155, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  573. Part74.Position = Vector3.new(-1.03499973, 0.980000019, 0.00999992155)
  574. Part74.Color = Color3.new(0.388235, 0.372549, 0.384314)
  575. Part74.Size = Vector3.new(0.190000013, 1.10000002, 0.920000196)
  576. Part74.BottomSurface = Enum.SurfaceType.Smooth
  577. Part74.BrickColor = BrickColor.new("Dark stone grey")
  578. Part74.CanCollide = false
  579. Part74.Material = Enum.Material.DiamondPlate
  580. Part74.TopSurface = Enum.SurfaceType.Smooth
  581. Part74.brickColor = BrickColor.new("Dark stone grey")
  582. Part74.Shape = Enum.PartType.Cylinder
  583. Part75.Name = "d5"
  584. Part75.Parent = mas
  585. Part75.CFrame = CFrame.new(1.54000008, 1.03999996, -0.444999844, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  586. Part75.Position = Vector3.new(1.54000008, 1.03999996, -0.444999844)
  587. Part75.Color = Color3.new(0.654902, 0.368627, 0.607843)
  588. Part75.Size = Vector3.new(4.02000046, 1, 0.150000468)
  589. Part75.BottomSurface = Enum.SurfaceType.Smooth
  590. Part75.BrickColor = BrickColor.new("Bright red")
  591. Part75.CanCollide = false
  592. Part75.Material = Enum.Material.Neon
  593. Part75.TopSurface = Enum.SurfaceType.Smooth
  594. Part75.brickColor = BrickColor.new("Bright red")
  595. Part75.Shape = Enum.PartType.Cylinder
  596. Part76.Name = "d18"
  597. Part76.Parent = mas
  598. Part76.CFrame = CFrame.new(3.61553025, 1, -0.0250003319, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  599. Part76.Position = Vector3.new(3.61553025, 1, -0.0250003319)
  600. Part76.Color = Color3.new(0.831373, 0.564706, 0.741176)
  601. Part76.Size = Vector3.new(0.190000013, 1.10000002, 0.95000118)
  602. Part76.BottomSurface = Enum.SurfaceType.Smooth
  603. Part76.BrickColor = BrickColor.new("Persimmon")
  604. Part76.CanCollide = false
  605. Part76.Material = Enum.Material.Neon
  606. Part76.TopSurface = Enum.SurfaceType.Smooth
  607. Part76.brickColor = BrickColor.new("Persimmon")
  608. Part76.Shape = Enum.PartType.Cylinder
  609. Part77.Name = "d14"
  610. Part77.Parent = mas
  611. Part77.CFrame = CFrame.new(1.91999972, 0.48999998, -1.63912773e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  612. Part77.Position = Vector3.new(1.91999972, 0.48999998, -1.63912773e-07)
  613. Part77.Color = Color3.new(0.388235, 0.372549, 0.384314)
  614. Part77.Size = Vector3.new(0.139999941, 1, 0.600000381)
  615. Part77.BottomSurface = Enum.SurfaceType.Smooth
  616. Part77.BrickColor = BrickColor.new("Dark stone grey")
  617. Part77.CanCollide = false
  618. Part77.Material = Enum.Material.DiamondPlate
  619. Part77.TopSurface = Enum.SurfaceType.Smooth
  620. Part77.brickColor = BrickColor.new("Dark stone grey")
  621. Part77.Shape = Enum.PartType.Cylinder
  622. Part78.Name = "a3"
  623. Part78.Parent = mas
  624. Part78.CFrame = CFrame.new(2.99571395, 0.249999955, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  625. Part78.Position = Vector3.new(2.99571395, 0.249999955, 0)
  626. Part78.Size = Vector3.new(0.431428641, 1.02285719, 0.302000105)
  627. Part78.BottomSurface = Enum.SurfaceType.Smooth
  628. Part78.CanCollide = false
  629. Part78.Material = Enum.Material.DiamondPlate
  630. Part78.TopSurface = Enum.SurfaceType.Smooth
  631. Part79.Name = "a2"
  632. Part79.Parent = mas
  633. Part79.CFrame = CFrame.new(2.99571395, 0.170000002, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  634. Part79.Position = Vector3.new(2.99571395, 0.170000002, 0)
  635. Part79.Color = Color3.new(0.388235, 0.372549, 0.384314)
  636. Part79.Size = Vector3.new(0.336514443, 0.759314477, 0.327886105)
  637. Part79.BottomSurface = Enum.SurfaceType.Smooth
  638. Part79.BrickColor = BrickColor.new("Dark stone grey")
  639. Part79.CanCollide = false
  640. Part79.Material = Enum.Material.DiamondPlate
  641. Part79.TopSurface = Enum.SurfaceType.Smooth
  642. Part79.brickColor = BrickColor.new("Dark stone grey")
  643. Part80.Name = "d17"
  644. Part80.Parent = mas
  645. Part80.CFrame = CFrame.new(1.54499984, 1.46000099, -0.125, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  646. Part80.Position = Vector3.new(1.54499984, 1.46000099, -0.125)
  647. Part80.Color = Color3.new(0.388235, 0.372549, 0.384314)
  648. Part80.Size = Vector3.new(4.02999926, 0.26000011, 0.0899998695)
  649. Part80.BottomSurface = Enum.SurfaceType.Smooth
  650. Part80.BrickColor = BrickColor.new("Dark stone grey")
  651. Part80.CanCollide = false
  652. Part80.Material = Enum.Material.DiamondPlate
  653. Part80.TopSurface = Enum.SurfaceType.Smooth
  654. Part80.brickColor = BrickColor.new("Dark stone grey")
  655. Part80.Shape = Enum.PartType.Cylinder
  656. Part81.Name = "d22"
  657. Part81.Parent = mas
  658. Part81.CFrame = CFrame.new(-0.750000477, 1.34000111, 0.0149999876, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  659. Part81.Position = Vector3.new(-0.750000477, 1.34000111, 0.0149999876)
  660. Part81.Color = Color3.new(0.388235, 0.372549, 0.384314)
  661. Part81.Size = Vector3.new(0.700000226, 0.26000011, 0.0899998695)
  662. Part81.BottomSurface = Enum.SurfaceType.Smooth
  663. Part81.BrickColor = BrickColor.new("Dark stone grey")
  664. Part81.CanCollide = false
  665. Part81.Material = Enum.Material.DiamondPlate
  666. Part81.TopSurface = Enum.SurfaceType.Smooth
  667. Part81.brickColor = BrickColor.new("Dark stone grey")
  668. Part81.Shape = Enum.PartType.Cylinder
  669. Part82.Name = "d12"
  670. Part82.Parent = mas
  671. Part82.Color = Color3.new(0.388235, 0.372549, 0.384314)
  672. Part82.Size = Vector3.new(0.25, 1, 0.600000381)
  673. Part82.BottomSurface = Enum.SurfaceType.Smooth
  674. Part82.BrickColor = BrickColor.new("Dark stone grey")
  675. Part82.CanCollide = false
  676. Part82.Material = Enum.Material.DiamondPlate
  677. Part82.TopSurface = Enum.SurfaceType.Smooth
  678. Part82.brickColor = BrickColor.new("Dark stone grey")
  679. Part82.Shape = Enum.PartType.Cylinder
  680. gripweld.Parent = char
  681. gripweld.Part0 = ra
  682. gripweld.Part1 = Part5
  683. gripweld.C0 = cfn(-2.4, -0.65, -0.65) * cfa(rad(-75), rad(180), rad(-14))
  684. for i,v in pairs(mas:GetChildren()) do
  685.     pcall(function() v:MakeJoints() end)
  686. end
  687. for i,v in pairs(cors) do
  688.     spawn(function()
  689.         pcall(v)
  690.     end)
  691. end
  692.  
  693. ArtificialHB = Instance.new('BindableEvent', script)
  694. ArtificialHB.Name = 'Heartbeat'
  695. script:WaitForChild('Heartbeat')
  696.  
  697. frame = 1 / 60
  698. tf = 0
  699. allowframeloss = false
  700. tossremainder = false
  701. lastframe = tick()
  702. script.Heartbeat:Fire()
  703.  
  704. game:GetService('RunService').Heartbeat:connect(function(s, p)
  705.     tf = tf + s
  706.     if tf >= frame then
  707.         if allowframeloss then
  708.             script.Heartbeat:Fire()
  709.             lastframe = tick()
  710.         else
  711.             for i = 1, math.floor(tf / frame) do
  712.                 script.Heartbeat:Fire()
  713.             end
  714.             lastframe = tick()
  715.         end
  716.         if tossremainder then
  717.             tf = 0
  718.         else
  719.             tf = tf - frame * math.floor(tf / frame)
  720.         end
  721.     end
  722. end)
  723.  
  724. function swait(t)
  725.     if t == 0 or t == nil then
  726.         script.Heartbeat.Event:Wait()
  727.     else
  728.         for i = 0, t do
  729.             script.Heartbeat.Event:Wait()
  730.         end
  731.     end
  732. end
  733.  
  734. function sound(id, parent, volume, pitch, timepos, name)
  735.     local s = Instance.new('Sound')
  736.     s.Parent = parent
  737.     s.SoundId = 'rbxassetid://'..id
  738.     s.Volume = volume
  739.     s.Name = name
  740.     s.PlaybackSpeed = pitch
  741.     s.TimePosition = timepos
  742.     s:Play()
  743.     game.Debris:AddItem(s, 5)
  744. end
  745.  
  746. function camshake(duration, intensity)
  747.     coroutine.wrap(function()
  748.         for i = 1, duration do
  749.             hum.CameraOffset = hum.CameraOffset:lerp(v3(rand(-1, 1), rand(-1, 1), rand(-1, 1)), 0.1 * intensity)
  750.             swait()
  751.         end
  752.         hum.CameraOffset = v3(0, 0, 0)
  753.     end)()
  754. end
  755.  
  756. function raycast(pos, direction, range, ignoredecendants)
  757.     return workspace:FindPartOnRay(Ray.new(pos, direction.unit * range), ignoredecendants)
  758. end
  759.  
  760. function shoot()
  761.     attack = true
  762.     cananim = false
  763.     repeat
  764.     local bg = Instance.new('BodyGyro', hd)
  765.     bg.MaxTorque = v3(0, 9000, 0)
  766.     bg.D = 175
  767.     bg.P = 20000
  768.     hum.WalkSpeed = 0
  769.     hum.JumpPower = 0
  770.     coroutine.wrap(function()
  771.     for i = 1, 15 do
  772.         bg.CFrame = cfn(hd.Position, mouse.Hit.p)
  773.         gripweld.C0 = cfn(-2.2, -1.3, -0.65) * cfa(rad(-75), rad(160), rad(-14))
  774.         TORSOLERP.C0 = TORSOLERP.C0:lerp(cfn(0, 0, 0) * cfor(rad(0), rad(-70), rad(0)), 0.15)
  775.         HEADLERP.C0 = HEADLERP.C0:lerp(cfn(0, 1.5, 0) * cfor(rad(0), rad(80), rad(0)), 0.15)
  776.         RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(cfn(1.354, 0.271, -1) * cfor(rad(76), rad(-60), rad(-76)), 0.15)
  777.         LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(cfn(-1.65, 0.511, -1) * cfor(rad(80), rad(-20), rad(-50)), 0.15)
  778.         RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(cfn(0.423, -2.055, 0.726) * cfor(rad(-10), rad(0), rad(10)), 0.15)
  779.         LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(cfn(-0.423, -2.055, -0.526) * cfor(rad(10), rad(0), rad(-10)), 0.15)
  780.         swait()
  781.     end
  782.     end)()
  783.     camshake(20, 5)
  784.     local ray = Ray.new(ra.CFrame.p, (mouse.Hit.p - ra.CFrame.p).unit * 999.999)
  785.     local part, pos = workspace:FindPartOnRay(ray, char, false, true)
  786.     local beam = Instance.new('Part', effects)
  787.     local effect = Instance.new('Part', effects)
  788.     local explosion1 = Instance.new('Part', effects)
  789.     local explosion2 = Instance.new('Part', effects)
  790.     local fakeexplosion = Instance.new('Part', effects)
  791.     sound(131179973, Part67, 5, 1.25, 0, '')
  792.     fakeexplosion.CanCollide = false
  793.     fakeexplosion.Anchored = false
  794.     fakeexplosion.Transparency = 1
  795.     fakeexplosion.Shape = 'Ball'
  796.     explosion2.CanCollide = false
  797.     explosion2.Anchored = true
  798.     explosion2.BrickColor = BrickColor.new('Persimmon')
  799.     explosion2.Material = 'Neon'
  800.     explosion2.Shape = 'Ball'
  801.     explosion2.Size = v3(0, 0, 0)
  802.     explosion1.CanCollide = false
  803.     explosion1.Anchored = true
  804.     explosion1.Anchored = true
  805.     explosion1.BrickColor = BrickColor.new('Persimmon')
  806.     explosion1.Material = 'Neon'
  807.     explosion1.Shape = 'Ball'
  808.     explosion1.Size = v3(0, 0, 0)
  809.     effect.CanCollide = false
  810.     effect.BrickColor = BrickColor.new('Persimmon')
  811.     effect.Anchored = true
  812.     effect.Material = 'Neon'
  813.     effect.Shape = 'Block'
  814.     effect.Size = v3(0, 0, 0)
  815.     beam.CanCollide = false
  816.     beam.Anchored = true
  817.     beam.BrickColor = BrickColor.new('Persimmon')
  818.     beam.Material = 'Neon'
  819.     beam.Shape = 'Cylinder'
  820.     explosion1.CFrame = cfn(mouse.Hit.p)
  821.     explosion2.CFrame = cfn(mouse.Hit.p)
  822.     fakeexplosion.CFrame = cfn(mouse.Hit.p)
  823.     fakeexplosion.Touched:connect(function(hit)
  824.         if hit.Parent then
  825.             if not hit:IsDescendantOf(char) and not hit:IsDescendantOf(mas) and hit ~= bases then
  826.                 local bv = Instance.new('BodyVelocity', hit)
  827.                     bv.MaxForce = v3(math.huge, math.huge, math.huge)
  828.                     bv.Velocity = cfn(fakeexplosion.Position, hit.Position).lookVector*50
  829.                     hit:BreakJoints()
  830.                     hit.BrickColor = BrickColor.new('Persimmon')
  831.                     hit.Material = 'Neon'
  832.                     coroutine.wrap(function()
  833.                         for i = 1, 1000 do
  834.                             hit.Transparency = hit.Transparency + 0.0030
  835.                             hit.Size = hit.Size:lerp(v3(0, 0, 0), 0.0030)
  836.                             if hit.Transparency >= 1 then
  837.                                 hit:Destroy()
  838.                             end
  839.                             swait()
  840.                         end
  841.                     end)()
  842.                     hit.Anchored = false
  843.                     hit.CanCollide = false
  844.                     --hit.CFrame = hit.CFrame:lerp(CFrame.fromEulerAnglesXYZ(rand(-30, 30), rand(-30, 30), rand(-30, 30)), 0.1)
  845.                     game.Debris:AddItem(bv, 0.1)
  846.             end
  847.         end
  848.     end)
  849.     coroutine.wrap(function()
  850.         for i = 1, 1000 do
  851.             explosion1.Size = explosion1.Size:lerp(v3(55, 55, 55), 0.03)
  852.             explosion1.Transparency = explosion1.Transparency + 0.01
  853.             fakeexplosion.CFrame = explosion1.CFrame
  854.             fakeexplosion.Size = fakeexplosion.Size:lerp(v3(55, 55, 55), 0.03)
  855.             explosion2.Size = explosion2.Size:lerp(v3(55, 55, 55), 0.01)
  856.             explosion2.Transparency = explosion2.Transparency + 0.01
  857.             effect.Size = effect.Size:Lerp(v3(5, 5, 5), 0.15)
  858.             beam.Transparency = beam.Transparency + 0.1
  859.             effect.Transparency = effect.Transparency + 0.1
  860.             local dist = (ra.CFrame.p - pos).magnitude
  861.             beam.CFrame = cfn(Part67.CFrame.p, pos) * cfn(0, 1, -3 - dist/2) * cfa(rad(0), rad(90), rad(0))
  862.             beam.Size = v3(dist, 0.5, 0.5)
  863.             if explosion1.Transparency >= 1 then
  864.                 explosion1:Destroy()
  865.                 fakeexplosion:Destroy()
  866.             end
  867.             if explosion2.Transparency >= 1 then
  868.                 explosion2:Destroy()
  869.             end
  870.             if effect.Transparency >= 1 then
  871.                 effect:Destroy()
  872.             end
  873.             if beam.Transparency >= 1 then
  874.                 beam:Destroy()
  875.             end
  876.             swait()
  877.         end
  878.     end)()
  879.     for i = 1, 5 do
  880.         effect.CFrame = Part67.CFrame * cfn(3.5, -0.1, 0) * CFrame.fromEulerAnglesXYZ(rand(0, 360), rand(0, 360), rand(0, 360))
  881.         TORSOLERP.C0 = TORSOLERP.C0:lerp(cfn(0, 0.3, 0.65) * cfor(rad(0), rad(-70), rad(-30)), 0.15)
  882.         swait()
  883.     end
  884.     bg:Destroy()
  885.     swait()
  886.     until attack == false
  887.     coroutine.wrap(function()
  888.         for i = 1, 100 do
  889.             gripweld.C0 = gripweld.C0:lerp(cfn(-2.4, -0.65, -0.65) * cfa(rad(-75), rad(180), rad(-14)), 0.15)
  890.             swait()
  891.         end
  892.     end)()
  893.     hum.WalkSpeed = 60
  894.     hum.JumpPower = 100
  895.     cananim = true
  896. end
  897.  
  898. function chargedshoot()
  899.     attack = true
  900.     cananim = false
  901.     repeat
  902.     local bg = Instance.new('BodyGyro', hd)
  903.     bg.MaxTorque = v3(0, 9000, 0)
  904.     bg.D = 175
  905.     bg.P = 20000
  906.     hum.WalkSpeed = 0
  907.     hum.JumpPower = 0
  908.     coroutine.wrap(function()
  909.     for i = 1, 15 do
  910.         camshake(10, 0.4)
  911.         bg.CFrame = cfn(hd.Position, mouse.Hit.p)
  912.         gripweld.C0 = cfn(-2.2, -1.3, -0.65) * cfa(rad(-75 + 10 * sin(sine/1)), rad(160 + 5 * sin(sine/1)), rad(-14))
  913.         TORSOLERP.C0 = TORSOLERP.C0:lerp(cfn(0, 0, 0) * cfor(rad(0), rad(-70), rad(0)), 0.15)
  914.         HEADLERP.C0 = HEADLERP.C0:lerp(cfn(0, 1.5, 0) * cfor(rad(0), rad(80), rad(0)), 0.15)
  915.         RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(cfn(1.354, 0.271, -1) * cfor(rad(76), rad(-60), rad(-76)), 0.15)
  916.         LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(cfn(-1.65, 0.511, -1) * cfor(rad(80), rad(-20), rad(-50)), 0.15)
  917.         RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(cfn(0.423, -2.055, 0.726) * cfor(rad(-10), rad(0), rad(10)), 0.15)
  918.         LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(cfn(-0.423, -2.055, -0.526) * cfor(rad(10), rad(0), rad(-10)), 0.15)
  919.         swait()
  920.     end
  921.     end)()
  922.     camshake(10, 10)
  923.     local ray = Ray.new(ra.CFrame.p, (mouse.Hit.p - ra.CFrame.p).unit * 999.999)
  924.     local part, pos = workspace:FindPartOnRay(ray, char, false, true)
  925.     local beam = Instance.new('Part', effects)
  926.     local effect = Instance.new('Part', effects)
  927.     local explosion1 = Instance.new('Part', effects)
  928.     local explosion2 = Instance.new('Part', effects)
  929.     local fakeexplosion = Instance.new('Part', effects)
  930.     sound(131179973, Part67, 5, 1, 0, '')
  931.     fakeexplosion.CanCollide = false
  932.     fakeexplosion.Anchored = false
  933.     fakeexplosion.Transparency = 1
  934.     fakeexplosion.Shape = 'Ball'
  935.     explosion2.CanCollide = false
  936.     explosion2.Anchored = true
  937.     explosion2.BrickColor = BrickColor.new('Persimmon')
  938.     explosion2.Material = 'Neon'
  939.     explosion2.Shape = 'Ball'
  940.     explosion2.Size = v3(0, 0, 0)
  941.     explosion1.CanCollide = false
  942.     explosion1.Anchored = true
  943.     explosion1.Anchored = true
  944.     explosion1.BrickColor = BrickColor.new('Persimmon')
  945.     explosion1.Material = 'Neon'
  946.     explosion1.Shape = 'Ball'
  947.     explosion1.Size = v3(0, 0, 0)
  948.     effect.CanCollide = false
  949.     effect.BrickColor = BrickColor.new('Persimmon')
  950.     effect.Anchored = true
  951.     effect.Material = 'Neon'
  952.     effect.Shape = 'Block'
  953.     effect.Name = 'effect'
  954.     effect.Size = v3(0, 0, 0)
  955.     beam.CanCollide = false
  956.     beam.Anchored = true
  957.     beam.BrickColor = BrickColor.new('Persimmon')
  958.     beam.Material = 'Neon'
  959.     beam.Shape = 'Cylinder'
  960.     explosion1.CFrame = cfn(mouse.Hit.p)
  961.     explosion2.CFrame = cfn(mouse.Hit.p)
  962.     fakeexplosion.CFrame = cfn(mouse.Hit.p)
  963.     fakeexplosion.Touched:connect(function(hit)
  964.         if hit.Parent then
  965.             if not hit:IsDescendantOf(char) and not hit:IsDescendantOf(mas) and hit ~= bases then
  966.                     local bv = Instance.new('BodyVelocity', hit)
  967.                     bv.MaxForce = v3(math.huge, math.huge, math.huge)
  968.                     bv.Velocity = cfn(fakeexplosion.Position, hit.Position).lookVector*100
  969.                     hit:BreakJoints()
  970.                     hit.BrickColor = BrickColor.new('Persimmon')
  971.                     hit.Material = 'Neon'
  972.                     coroutine.wrap(function()
  973.                         for i = 1, 1000 do
  974.                             hit.Transparency = hit.Transparency + 0.0030
  975.                             hit.Size = hit.Size:lerp(v3(0, 0, 0), 0.0030)
  976.                             if hit.Transparency >= 1 then
  977.                                 hit:Destroy()
  978.                             end
  979.                             swait()
  980.                         end
  981.                     end)()
  982.                     hit.Anchored = false
  983.                     hit.CanCollide = true
  984.                     --hit.CFrame = hit.CFrame:lerp(CFrame.fromEulerAnglesXYZ(rand(-30, 30), rand(-30, 30), rand(-30, 30)), 0.1)
  985.                     game.Debris:AddItem(bv, 0.1)
  986.             end
  987.         end
  988.     end)
  989.     coroutine.wrap(function()
  990.         effect.CFrame = hd.CFrame * cfn(2, -0, -8) * CFrame.fromEulerAnglesXYZ(rand(0, 360), rand(0, 360), rand(0, 360))
  991.         for i = 1, 1000 do
  992.             effect.Size = effect.Size:Lerp(v3(25, 25, 25), 0.01)
  993.             effect.Transparency = effect.Transparency + 0.01
  994.             if effect.Transparency >= 1 then
  995.                 effect:Destroy()
  996.             end
  997.             swait()
  998.         end
  999.     end)()
  1000.     coroutine.wrap(function()
  1001.         for i = 1, 1000 do
  1002.             local dist = (ra.CFrame.p - pos).magnitude
  1003.             explosion1.Size = explosion1.Size:lerp(v3(250, 250, 250), 0.0070)
  1004.             explosion1.Transparency = explosion1.Transparency + 0.0070
  1005.             explosion2.Size = explosion2.Size:lerp(v3(250, 250, 250), 0.0050)
  1006.             explosion2.Transparency = explosion2.Transparency + 0.0050
  1007.             fakeexplosion.Size = fakeexplosion.Size:lerp(v3(250, 250, 250), 0.0070)
  1008.             fakeexplosion.CFrame = explosion1.CFrame
  1009.             beam.Size = beam.size:lerp(v3(dist, 30, 30), 0.01)
  1010.             beam.Transparency = beam.Transparency + 0.01
  1011.             if explosion1.Transparency >= 1 then
  1012.                 explosion1:Destroy()
  1013.                 fakeexplosion:Destroy()
  1014.             end
  1015.             if explosion2.Transparency >= 1 then
  1016.                 explosion2:Destroy()
  1017.             end
  1018.             if beam.Transparency >= 1 then
  1019.                 beam:Destroy()
  1020.             end
  1021.             swait()
  1022.         end
  1023.     end)()
  1024.     for i = 1, 10 do
  1025.         local dist = (ra.CFrame.p - pos).magnitude
  1026.         beam.Size = v3(dist, 0, 0)
  1027.         beam.CFrame = cfn(Part67.CFrame.p, pos) * cfn(0, 1, -8 - dist/2) * cfa(rad(0), rad(90), rad(0))
  1028.         TORSOLERP.C0 = TORSOLERP.C0:lerp(cfn(0, 0.3, 0.65) * cfor(rad(0), rad(-70), rad(-30)), 0.15)
  1029.         swait()
  1030.     end
  1031.     bg:Destroy()
  1032.     swait()
  1033.     until attack == false
  1034.     coroutine.wrap(function()
  1035.         for i = 1, 100 do
  1036.             gripweld.C0 = gripweld.C0:lerp(cfn(-2.4, -0.65, -0.65) * cfa(rad(-75), rad(180), rad(-14)), 0.15)
  1037.             swait()
  1038.         end
  1039.     end)()
  1040.     hum.WalkSpeed = 60
  1041.     hum.JumpPower = 100
  1042.     cananim = true
  1043.  
  1044. end
  1045.  
  1046. mouse.Button1Down:connect(function()
  1047.     if attack == false and cananim then
  1048.         shoot()
  1049.     end
  1050. end)
  1051.  
  1052. mouse.Button1Up:connect(function()
  1053.     if attack then
  1054.         attack = false
  1055.     end
  1056. end)
  1057.  
  1058. mouse.KeyDown:connect(function(key)
  1059.     key = key:lower()
  1060.     if key == 'm' then
  1061.         if sicko.IsPlaying then
  1062.         sicko:Pause()
  1063.     elseif sicko.IsPaused then
  1064.         sicko:Resume()
  1065.         end
  1066.     end
  1067.     if key == 'f' and attack == false and cananim then
  1068.         chargedshoot()
  1069.     end
  1070. end)
  1071.  
  1072. mouse.KeyUp:connect(function(key)
  1073.     key = key:lower()
  1074.     if key == 'f' and attack then
  1075.         attack = false
  1076.     end
  1077. end)
  1078.  
  1079. while true do
  1080.     sine = sine + change
  1081.     local tsvel = (root.Velocity * v3(1, 0, 1)).magnitude
  1082.     local hitfloor = raycast(root.Position, (cfn(root.Position, root.Position + v3(0, -1, 0))).lookVector, 4 * 1, char)
  1083.     if root.Velocity.y > 1 and hitfloor == nil and cananim then
  1084.         change = 2
  1085.         TORSOLERP.C0 = TORSOLERP.C0:lerp(cfn(0, 0.3, 0.3) * cfa(rad(20), rad(0), rad(0)), 0.070)
  1086.         HEADLERP.C0 = HEADLERP.C0:lerp(cfn(0, 1.5, 0) * cfa(rad(0), rad(0), rad(0)), 0.1)
  1087.         RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(cfn(1.516, 0.216, -0.728) * cfa(rad(71.8), rad(0.2), rad(-0.7)), 0.070)
  1088.         LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(cfn(-1.499, -0.042, -0.75) * cfa(rad(60.2), rad(10 * sin(sine/40)), rad(4.5)), 0.070)
  1089.         RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(cfn(0.604, -1.793, 0.204) * cfa(rad(-19.4), rad(-7), rad(10.2)), 0.070)
  1090.         LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(cfn(-0.574, -1.811, 0.046) * cfa(rad(-9.8), rad(-1.8), rad(0.04)), 0.070)
  1091.     elseif root.Velocity.y < -1 and hitfloor == nil and cananim then
  1092.         change = 2
  1093.         TORSOLERP.C0 = TORSOLERP.C0:lerp(cfn(0, 0.3, 0) * cfa(rad(-20), rad(0), rad(0)), 0.070)
  1094.         HEADLERP.C0 = HEADLERP.C0:lerp(cfn(0, 1.5, 0) * cfa(rad(0), rad(0), rad(0)), 0.1)
  1095.         RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(cfn(1.516, 0.216, -0.728) * cfa(rad(71.8), rad(0.2), rad(-0.7)), 0.070)
  1096.         LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(cfn(-1.499, -0.042, -0.75) * cfa(rad(60.2), rad(10 * sin(sine/40)), rad(4.5)), 0.070)
  1097.         RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(cfn(0.622, -1.726, 0.269) * cfa(rad(9.56), rad(5.2), rad(9.82)), 0.070)
  1098.         LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(cfn(-0.588, -1.654, 0.775) * cfa(rad(-20), rad(-1.6), rad(0.7)), 0.070)
  1099.     elseif tsvel < 2 and hitfloor ~= nil and cananim then
  1100.         change = 2
  1101.         TORSOLERP.C0 = TORSOLERP.C0:lerp(cfn(0, 0.1 * sin(sine/40), 0) * cfa(rad(3 * sin(sine/40)), rad(0), rad(0)), 0.1)
  1102.         HEADLERP.C0 = HEADLERP.C0:lerp(cfn(-0, 1.5, 0) * cfa(rad(-3 * sin(sine/40)), rad(0), rad(-0)), 0.1)
  1103.         RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(cfn(1.516, 0.216, -0.728) * cfa(rad(71.8), rad(0.2), rad(-0.7)), 0.1)
  1104.         LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(cfn(-1.499, -0.042, -0.75) * cfa(rad(60.2), rad(10), rad(4.5)), 0.1)
  1105.         RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(cfn(0.687, -2.073, 0) * cfa(rad(0), rad(0), rad(10.3)), 0.1)
  1106.         LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(cfn(-0.614, -2.049, 0) * cfa(rad(0), rad(0), rad(-6.37)), 0.1)
  1107.     elseif tsvel < 20 and hitfloor ~= nil and cananim then
  1108.         change = 1
  1109.         TORSOLERP.C0 = TORSOLERP.C0:lerp(cfn(0 - root.RotVelocity.Y/50, 0.1 + sin(sine/3), 0) * cfa(rad(5 * -sin(sine/6)), rad(0), rad(0) + root.RotVelocity.Y/50), 0.1)
  1110.         HEADLERP.C0 = HEADLERP.C0:lerp(cfn(0, 1.5, 0) * cfa(rad(-5 * sin(sine/6)), rad(0) + hd.RotVelocity.Y/30, rad(0)), 0.1)
  1111.         RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(cfn(1.516, 0.216, -0.728) * cfa(rad(71.8), rad(0.2), rad(-0.7)), 0.1)
  1112.         LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(cfn(-1.499, -0.042, -0.75) * cfa(rad(60.2), rad(4.48), rad(4.5)), 0.1)
  1113.         RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(cfn(0.5, -2, -1.45 * sin(sine/6)) * cfa(rad(90 * sin(sine/6)), rad(0), rad(0)), 0.13)
  1114.         LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(cfn(-0.5, -2, 1.45 * sin(sine/6)) * cfa(rad(-90 * sin(sine/6)), rad(0), rad(0)), 0.13)
  1115.     elseif tsvel > 20 and hitfloor ~= nil and cananim then
  1116.         change = 2
  1117.         TORSOLERP.C0 = TORSOLERP.C0:lerp(cfn(0 - root.RotVelocity.Y/20, 0.1 + sin(sine/3), -0.3) * cfa(rad(-10 + 5 * -sin(sine/6)), rad(0), rad(0) + root.RotVelocity.Y/50), 0.13)
  1118.         HEADLERP.C0 = HEADLERP.C0:lerp(cfn(0, 1.5, 0) * cfa(rad(0), rad(0) + hd.RotVelocity.Y/30, rad(0)), 0.13)
  1119.         RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(cfn(1.516, 0.216, -0.728) * cfa(rad(71.8), rad(0.2), rad(-0.7)), 0.13)
  1120.         LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(cfn(-1.499, -0.042, -0.75) * cfa(rad(60.2), rad(4.48), rad(4.5)), 0.13)
  1121.         RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(cfn(0.5, -2, -2 * sin(sine/6)) * cfa(rad(130 * sin(sine/6)), rad(0), rad(0)), 0.15)
  1122.         LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(cfn(-0.5, -2, 2 * sin(sine/6)) * cfa(rad(-130 * sin(sine/6)), rad(0), rad(0)), 0.15)
  1123.     end
  1124.     swait()
  1125. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement