Advertisement
wowzers

ice crossbow

Jun 27th, 2017
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 76.45 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2. local Character = Player.Character
  3. wait(0.016666666666667)
  4. Effects = {}
  5. local Player = game.Players.localPlayer
  6. local Character = Player.Character
  7. local Humanoid = Character.Humanoid
  8. local mouse = Player:GetMouse()
  9. local m = Instance.new("Model", Character)
  10. m.Name = "WeaponModel"
  11. local effect = Instance.new("Model", Character)
  12. effect.Name = "Effect"
  13. local LeftArm = Character["Left Arm"]
  14. local RightArm = Character["Right Arm"]
  15. local LeftLeg = Character["Left Leg"]
  16. local RightLeg = Character["Right Leg"]
  17. local Head = Character.Head
  18. local Torso = Character.Torso
  19. local cam = game.Workspace.CurrentCamera
  20. local RootPart = Character.HumanoidRootPart
  21. local RootJoint = RootPart.RootJoint
  22. local equipped = false
  23. local attack = false
  24. local Anim = "Idle"
  25. local idle = 0
  26. local attacktype = 1
  27. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  28. local velocity = RootPart.Velocity.y
  29. local sine = 0
  30. local change = 1
  31. local mana = 0
  32. local it = Instance.new
  33. vt = Vector3.new
  34. local grabbed = false
  35. local cf = CFrame.new
  36. local mr = math.rad
  37. local angles = CFrame.Angles
  38. local ud = UDim2.new
  39. local c3 = Color3.new
  40. local NeckCF = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  41. Humanoid.Animator:Destroy()
  42. Character.Animate:Destroy()
  43. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  44. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  45. local LHCF = (CFrame.fromEulerAnglesXYZ(0, -1.6, 0))
  46. RSH = nil
  47. RW = Instance.new("Weld")
  48. LW = Instance.new("Weld")
  49. RH = Torso["Right Hip"]
  50. LH = Torso["Left Hip"]
  51. RSH = Torso["Right Shoulder"]
  52. LSH = Torso["Left Shoulder"]
  53. RSH.Parent = nil
  54. LSH.Parent = nil
  55. RW.Name = "RW"
  56. RW.Part0 = Torso
  57. RW.C0 = cf(1.5, 0.5, 0)
  58. RW.C1 = cf(0, 0.5, 0)
  59. RW.Part1 = RightArm
  60. RW.Parent = Torso
  61. LW.Name = "LW"
  62. LW.Part0 = Torso
  63. LW.C0 = cf(-1.5, 0.5, 0)
  64. LW.C1 = cf(0, 0.5, 0)
  65. LW.Part1 = LeftArm
  66. LW.Parent = Torso
  67. clerp = function(a, b, t)
  68.  
  69. return a:lerp(b, t)
  70. end
  71.  
  72. local RbxUtility = LoadLibrary("RbxUtility")
  73. local Create = RbxUtility.Create
  74. RemoveOutlines = function(part)
  75.  
  76. part.TopSurface = 10
  77. end
  78.  
  79. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  80.  
  81. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  82. RemoveOutlines(Part)
  83. return Part
  84. end
  85.  
  86. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  87.  
  88. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  89. if Mesh == "SpecialMesh" then
  90. Msh.MeshType = MeshType
  91. Msh.MeshId = MeshId
  92. end
  93. return Msh
  94. end
  95.  
  96. local co1 = 25
  97. local co2 = 0
  98. local co3 = 0
  99. local co4 = 0
  100. local cooldown1 = 0
  101. local cooldown2 = 0
  102. local cooldown3 = 0
  103. local cooldown4 = 0
  104. local maxEnergy = 0
  105. local Energy = 0
  106. local skill1stam = 25
  107. local skill2stam = 0
  108. local skill3stam = 0
  109. local skill4stam = 0
  110. local recovermana = 5
  111. local skillcolorscheme = BrickColor.new("Smokey grey").Color
  112. local scrn = Instance.new("ScreenGui", Player.PlayerGui)
  113. makeframe = function(par, trans, pos, size, color)
  114.  
  115. local frame = Instance.new("Frame", par)
  116. frame.BackgroundTransparency = trans
  117. frame.BorderSizePixel = 0
  118. frame.Position = pos
  119. frame.Size = size
  120. frame.BackgroundColor3 = color
  121. return frame
  122. end
  123.  
  124. makelabel = function(par, text)
  125.  
  126. local label = Instance.new("TextLabel", par)
  127. label.BackgroundTransparency = 1
  128. label.Size = UDim2.new(1, 0, 1, 0)
  129. label.Position = UDim2.new(0, 0, 0, 0)
  130. label.TextColor3 = Color3.new(255, 255, 255)
  131. label.TextStrokeTransparency = 0
  132. label.FontSize = Enum.FontSize.Size32
  133. label.Font = Enum.Font.SourceSansBold
  134. label.BorderSizePixel = 0
  135. label.TextScaled = true
  136. label.Text = text
  137. end
  138.  
  139. framesk1 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.85, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  140. framesk2 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.74, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  141. framesk3 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.63, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  142. framesk4 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.52, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  143. bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  144. bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  145. bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  146. bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  147. text1 = Instance.new("TextLabel", framesk1)
  148. text1.BackgroundTransparency = 1
  149. text1.Size = UDim2.new(1, 0, 1, 0)
  150. text1.Position = UDim2.new(0, 0, 0, 0)
  151. text1.TextColor3 = Color3.new(255, 255, 255)
  152. text1.TextStrokeTransparency = 0
  153. text1.FontSize = Enum.FontSize.Size18
  154. text1.Font = Enum.Font.SourceSansLight
  155. text1.BorderSizePixel = 0
  156. text1.TextScaled = true
  157. text1.Text = "[Z]\n\tAim"
  158. text2 = Instance.new("TextLabel", framesk2)
  159. text2.BackgroundTransparency = 1
  160. text2.Size = UDim2.new(1, 0, 1, 0)
  161. text2.Position = UDim2.new(0, 0, 0, 0)
  162. text2.TextColor3 = Color3.new(255, 255, 255)
  163. text2.TextStrokeTransparency = 0
  164. text2.FontSize = Enum.FontSize.Size18
  165. text2.Font = Enum.Font.SourceSansLight
  166. text2.BorderSizePixel = 0
  167. text2.TextScaled = true
  168. text2.Text = "[X]\n Explosive Shot"
  169. text3 = Instance.new("TextLabel", framesk3)
  170. text3.BackgroundTransparency = 1
  171. text3.Size = UDim2.new(1, 0, 1, 0)
  172. text3.Position = UDim2.new(0, 0, 0, 0)
  173. text3.TextColor3 = Color3.new(255, 255, 255)
  174. text3.TextStrokeTransparency = 0
  175. text3.FontSize = Enum.FontSize.Size18
  176. text3.Font = Enum.Font.SourceSansLight
  177. text3.BorderSizePixel = 0
  178. text3.TextScaled = false
  179. text3.Text = "[C]\n Shockwave"
  180. text4 = Instance.new("TextLabel", framesk4)
  181. text4.BackgroundTransparency = 1
  182. text4.Size = UDim2.new(1, 0, 1, 0)
  183. text4.Position = UDim2.new(0, 0, 0, 0)
  184. text4.TextColor3 = Color3.new(255, 255, 255)
  185. text4.TextStrokeTransparency = 0
  186. text4.FontSize = Enum.FontSize.Size18
  187. text4.Font = Enum.Font.SourceSansLight
  188. text4.BorderSizePixel = 0
  189. text4.TextScaled = true
  190. text4.Text = "[V]\n Rampage"
  191. ArtificialHB = Instance.new("BindableEvent", Player.PlayerGui)
  192. ArtificialHB.Name = "Heartbeat"
  193. Player.PlayerGui:WaitForChild("Heartbeat")
  194. frame = 0.033333333333333
  195. tf = 0
  196. allowframeloss = false
  197. tossremainder = false
  198. lastframe = tick()
  199. Player.PlayerGui.Heartbeat:Fire()
  200. local gg = false
  201. game:GetService("RunService").Heartbeat:connect(function(s, p)
  202.  
  203. if Player.PlayerGui:FindFirstChild("Heartbeat") == nil then
  204. gg = true
  205. end
  206. if gg == true then
  207. return
  208. end
  209. tf = tf + s
  210. if frame <= tf then
  211. if allowframeloss then
  212. Player.PlayerGui.Heartbeat:Fire()
  213. lastframe = tick()
  214. else
  215. for i = 1, math.floor(tf / frame) do
  216. Player.PlayerGui.Heartbeat:Fire()
  217. end
  218. lastframe = tick()
  219. end
  220. if tossremainder then
  221. tf = 0
  222. else
  223. tf = tf - frame * math.floor(tf / frame)
  224. end
  225. end
  226. end
  227. )
  228. swait = function(num)
  229.  
  230. if num == 0 or num == nil then
  231. ArtificialHB.Event:wait()
  232. else
  233. for i = 0, num do
  234. ArtificialHB.Event:wait()
  235. end
  236. end
  237. end
  238.  
  239. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  240.  
  241. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  242. return Weld
  243. end
  244.  
  245. rayCast = function(Position, Direction, Range, Ignore)
  246.  
  247. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  248. end
  249.  
  250. CreateSound = function(id, par, vol, pit)
  251.  
  252. coroutine.resume(coroutine.create(function()
  253.  
  254. local sou = Instance.new("Sound", par or workspace)
  255. sou.Volume = 0.01
  256. sou.Pitch = 1
  257. sou.SoundId = "rbxassetid://492961938"
  258. swait()
  259. sou:play()
  260. game:GetService("Debris"):AddItem(sou, 6)
  261. end
  262. ))
  263. end
  264.  
  265. local getclosest = function(obj, distance)
  266.  
  267. local last, lastx = distance + 1, nil
  268. for i,v in pairs(workspace:GetChildren()) do
  269. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  270. local t = v.Torso
  271. local dist = (t.Position - obj.Position).magnitude
  272. if dist <= distance and dist < last then
  273. last = dist
  274. lastx = v
  275. end
  276. end
  277. end
  278. return lastx
  279. end
  280.  
  281. Handle = CreatePart(m, Enum.Material.Plastic, 0, 1, "Black", "FakeHandle", Vector3.new(0.210000008, 0.690000117, 0.280000001))
  282. HandleWeld = CreateWeld(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.09519327, -0.237398148, 0.0399169922, 0, -1, 0, 0, 0, -1, 1, 0, 0))
  283. FakeHandle = CreatePart(m, Enum.Material.Plastic, 0, 1, "Black", "FakeHandle", Vector3.new(0.210000008, 0.690000117, 0.280000001))
  284. FakeHandleWeld = CreateWeld(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  285. Motor = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Black", "Motor", Vector3.new(0.50999999, 0.430000126, 0.460000008))
  286. MotorWeld = CreateWeld(m, FakeHandle, Motor, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.565002441, 0, -0.155000687, 0, 1, 0, 0, 0, 1, 1, 0, 0))
  287. CreateMesh("CylinderMesh", Motor, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  288. Guhn = CreatePart(m, Enum.Material.Ice, 0, 0, "Bright blue", "Guhn", Vector3.new(4,.8,.6))
  289. GuhnWeld = CreateWeld(m, Handle, Guhn, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1, 0, -.4, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  290. Barrel = CreatePart(m, Enum.Material.Plastic, 0, 0, "Really black", "Barrel", Vector3.new(0.200000003, 0.290000021, 0.420000017))
  291. BarrelWeld = CreateWeld(m, Guhn, Barrel, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2,0,0, 1, 0, 0, 0, -1, 0, 0, 0, -1))
  292. CreateMesh("BlockMesh", Barrel, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  293. Part2 = CreatePart(m, Enum.Material.Plastic, 0, 0, "Black", "Hitbox", Vector3.new(.3, 1.00000003, 0.3))
  294. Part2 = CreateWeld(m, Guhn, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.09000206, .5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  295. Part5 = CreateWeld(m, Guhn, Part5, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.29000206, -0.1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  296. Hitbox = CreatePart(m, Enum.Material.Plastic, 0, 1, "Black", "Hitbox", Vector3.new(4,.8,.6))
  297. HitboxWeld = CreateWeld(m, Guhn, Hitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0,0,0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  298. Part6 = CreatePart(m, Enum.Material.Plastic, 0, 0, "Black", "Hitbox", Vector3.new(.5, 0.500000003, 3))
  299. Part6 = CreateWeld(m, Guhn, Part6, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 45, 0, 0, 1), CFrame.new(-1.29000206, -0.1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  300.  
  301.  
  302.  
  303. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  304.  
  305. if hit.Parent == nil then
  306. return
  307. end
  308. local h = hit.Parent:FindFirstChild("Humanoid")
  309. for _,v in pairs(hit.Parent:children()) do
  310. if v:IsA("Humanoid") then
  311. h = v
  312. end
  313. end
  314. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  315. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  316. return
  317. end
  318. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  319. game:GetService("Debris"):AddItem(c, 0.5)
  320. if HitSound ~= nil and HitPitch ~= nil then
  321. CreateSound(HitSound, hit, 1, HitPitch)
  322. end
  323. local Damage = math.random(minim, maxim)
  324. local blocked = false
  325. local block = hit.Parent:findFirstChild("Block")
  326. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  327. blocked = true
  328. block.Value = block.Value - 1
  329. print(block.Value)
  330. end
  331. if blocked == false then
  332. HitHealth = h.Health
  333. h.Health = h.Health - Damage
  334. if HitHealth ~= h.Health and HitHealth ~= 0 and h.Health <= 0 and h.Parent.Name ~= "Hologram" then
  335. print("gained spree")
  336. game.Players.LocalPlayer:FindFirstChild("leaderstats").Spree.Value = game.Players.LocalPlayer.leaderstats.Spree.Value + 1
  337. end
  338. if HitHealth ~= h.Health and HitHealth ~= 0 and h.Health <= 0 then
  339. print("gained kill")
  340. Player.PlayerGui.Kills.Value = Player.PlayerGui.Kills.Value + 1
  341. end
  342. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  343. else
  344. h.Health = h.Health - Damage / 2
  345. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  346. end
  347. if Type == "Knockdown" then
  348. local hum = hit.Parent.Humanoid
  349. hum.PlatformStand = true
  350. coroutine.resume(coroutine.create(function(HHumanoid)
  351.  
  352. swait(1)
  353. HHumanoid.PlatformStand = false
  354. end
  355. ), hum)
  356. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  357. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  358. local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit})
  359. game:GetService("Debris"):AddItem(bodvol, 0.5)
  360. game:GetService("Debris"):AddItem(rl, 0.5)
  361. elseif Type == "Normal" then
  362. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05})
  363. if knockback > 0 then
  364. vp.Parent = hit.Parent.Torso
  365. end
  366. game:GetService("Debris"):AddItem(vp, 0.5)
  367. elseif Type == "Up" then
  368. local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  369. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  370. elseif Type == "DarkUp" then
  371. coroutine.resume(coroutine.create(function()
  372.  
  373. for i = 0, 1, 0.1 do
  374. swait()
  375. BlockEffect(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
  376. end
  377. end
  378. ))
  379. local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  380. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  381. elseif Type == "Snare" then
  382. local bp = Create("BodyPosition")({P = 2000, D = 100, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  383. game:GetService("Debris"):AddItem(bp, 0.5)
  384. elseif Type == "Freeze" then
  385. local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso})
  386. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  387. hit.Parent.Torso.Anchored = true
  388. coroutine.resume(coroutine.create(function(Part)
  389.  
  390. swait(1.5)
  391. Part.Anchored = false
  392. end
  393. ), hit.Parent.Torso)
  394. game:GetService("Debris"):AddItem(BodPos, 3)
  395. game:GetService("Debris"):AddItem(BodGy, 3)
  396.  
  397.  
  398. end
  399. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  400. game:GetService("Debris"):AddItem(debounce, Delay)
  401. c = Instance.new("ObjectValue")
  402. c.Name = "creator"
  403. c.Value = Player
  404. c.Parent = h
  405. game:GetService("Debris"):AddItem(c, 0.5)
  406. end
  407. end
  408.  
  409. ShowDamage = function(Pos, Text, Time, Color)
  410.  
  411. local Rate = 0.033333333333333
  412. if not Pos then
  413. local Pos = Vector3.new(0, 0, 0)
  414. end
  415. local Text = Text or ""
  416. local Time = Time or 2
  417. if not Color then
  418. local Color = Color3.new(1, 0, 1)
  419. end
  420. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  421. EffectPart.Anchored = true
  422. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  423. local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  424. game.Debris:AddItem(EffectPart, Time + 0.1)
  425. EffectPart.Parent = game:GetService("Workspace")
  426. delay(0, function()
  427.  
  428. local Frames = Time / Rate
  429. for Frame = 1, Frames do
  430. wait(Rate)
  431. local Percent = Frame / Frames
  432. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  433. TextLabel.TextTransparency = Percent
  434. end
  435. if EffectPart and EffectPart.Parent then
  436. EffectPart:Destroy()
  437. end
  438. end
  439. )
  440. end
  441.  
  442. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  443.  
  444. for _,c in pairs(workspace:children()) do
  445. local hum = c:findFirstChild("Humanoid")
  446. if hum ~= nil then
  447. local head = c:findFirstChild("Torso")
  448. if head ~= nil then
  449. local targ = head.Position - Part.Position
  450. local mag = targ.magnitude
  451. if mag <= magni and c.Name ~= Player.Name then
  452. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1)
  453. end
  454. end
  455. end
  456. end
  457. end
  458.  
  459. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  460.  
  461. local prt = CreatePart(effect, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  462. prt.Anchored = true
  463. prt.CFrame = cframe
  464. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  465. game:GetService("Debris"):AddItem(prt, 10)
  466. if Type == 1 or Type == nil then
  467. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  468. else
  469. if Type == 2 then
  470. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  471. end
  472. end
  473. end
  474.  
  475. SphereEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  476.  
  477. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  478. prt.Anchored = true
  479. prt.CFrame = cframe
  480. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  481. game:GetService("Debris"):AddItem(prt, 10)
  482. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  483. end
  484.  
  485. RingEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  486.  
  487. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  488. prt.Anchored = true
  489. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  490. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  491. game:GetService("Debris"):AddItem(prt, 10)
  492. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  493. end
  494.  
  495. CylinderEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  496.  
  497. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  498. prt.Anchored = true
  499. prt.CFrame = cframe
  500. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  501. game:GetService("Debris"):AddItem(prt, 10)
  502. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  503. end
  504.  
  505. WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  506.  
  507. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  508. prt.Anchored = true
  509. prt.CFrame = cframe
  510. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  511. game:GetService("Debris"):AddItem(prt, 10)
  512. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  513. end
  514.  
  515. SpecialEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  516.  
  517. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  518. prt.Anchored = true
  519. prt.CFrame = cframe
  520. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  521. game:GetService("Debris"):AddItem(prt, 10)
  522. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  523. end
  524.  
  525. BreakEffect = function(brickcolor, cframe, x1, y1, z1)
  526.  
  527. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  528. prt.Anchored = true
  529. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  530. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  531. local num = math.random(10, 50) / 1000
  532. game:GetService("Debris"):AddItem(prt, 10)
  533. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  534. end
  535.  
  536. CloudEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  537.  
  538. local prt = CreatePart(effect, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  539. prt.Anchored = true
  540. prt.CFrame = cframe
  541. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://1095708", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  542. game:GetService("Debris"):AddItem(prt, 10)
  543. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  544. end
  545.  
  546. Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  547.  
  548. local prt = CreatePart(effect, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  549. prt.Anchored = true
  550. prt.CFrame = cframe
  551. prt.Material = "Neon"
  552. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  553. game:GetService("Debris"):AddItem(prt, 10)
  554. coroutine.resume(coroutine.create(function(Part, Mesh)
  555.  
  556. for i = 0, 1, delay do
  557. swait()
  558. Part.Transparency = i
  559. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  560. end
  561. Part.Parent = nil
  562. end
  563. ), prt, msh)
  564. end
  565.  
  566. shoottraildd = function(mouse, partt, SpreadAmount, multiply, Type)
  567.  
  568. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  569. local MainPos = partt.Position
  570. local MainPos2 = mouse.Hit.p + SpreadVectors
  571. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  572. local speed = 10
  573. local num = 50
  574. coroutine.resume(coroutine.create(function()
  575.  
  576. repeat
  577. swait()
  578. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  579. local mag = (MainPos - pos).magnitude
  580. if Type == "Explosive" then
  581. Laser(BrickColor.new("Really blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  582. else
  583. if Type == "Poison" then
  584. Laser(BrickColor.new("Bright violet"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  585. SphereEffect(BrickColor.new("Bright violet"), CFrame.new((MainPos + pos) / 2, pos), 1, 1, 1, 2, 2, 2, 0.07)
  586. else
  587. if Type == "Stun" then
  588. Laser(BrickColor.new("White"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  589. end
  590. end
  591. end
  592. MainPos = MainPos + MouseLook.lookVector * speed
  593. num = num - 1
  594. MouseLook = MouseLook * angles(math.random(.4,.6), 0, 0)
  595. if hit ~= nil then
  596. num = 0
  597. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  598. refpart.Anchored = true
  599. refpart.CFrame = CFrame.new(pos)
  600. game:GetService("Debris"):AddItem(refpart, 2)
  601. end
  602. do
  603. if num <= 1 then
  604. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  605. refpart.Anchored = true
  606. refpart.CFrame = CFrame.new(pos)
  607. if Type == "Explosive" then
  608. for i = 0, 70, 5 do
  609. CreateSound("rbxassetid://181004943", refpart, 1, 1)
  610. BlockEffect(BrickColor.new("Really blue"), refpart.CFrame, 1, 1, 1, 10, 10, 10, 0.05)
  611. BlockEffect(BrickColor.new("Institutional white"), refpart.CFrame, 1, 1, 1, 10, 10, 10, 0.07)
  612. MagniDamage(refpart, 5, 1 * multiply, 3 * multiply, 0, "Freeze")
  613. swait(10)
  614. end
  615. else
  616. if Type == "Poison" then
  617. if hit.Name == "memes" then
  618. SphereEffect(BrickColor.new("Bright violet"), refpart.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  619. MagniDamage(refpart, 5, 18 * multiply, 20 * multiply, 0, "Curse")
  620. else
  621. SphereEffect(BrickColor.new("Bright violet"), refpart.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  622. MagniDamage(refpart, 5, 3 * multiply, 4 * multiply, 0, "Curse")
  623. for i = 0,100,5 do
  624. hit.Parent.Humanoid.MaxHealth = hit.Parent.Humanoid.MaxHealth-1
  625. hit.Parent.Humanoid.WalkSpeed = 5
  626. swait(2.5)
  627. hit.Parent.Humanoid.WalkSpeed = 16
  628. end
  629. end
  630. else
  631. if Type == "Stun" then
  632. BlockEffect(BrickColor.new("White"), refpart.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  633. MagniDamage(refpart, 5, -10 * multiply, -5 * multiply, 0, "Normal")
  634. for i = 0,100,5 do
  635. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health+2
  636. hit.Parent.Humanoid.WalkSpeed = 16
  637. swait(.5)
  638. end
  639. end
  640. end
  641. end
  642. end
  643. game:GetService("Debris"):AddItem(refpart, 0)
  644. end
  645. until num <= 0
  646. end
  647. ))
  648. end
  649.  
  650. shoottraildd2 = function(mouse, partt, SpreadAmount, multiply, Type)
  651.  
  652. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  653. local MainPos = partt.Position
  654. local MainPos2 = mouse.Hit.p + SpreadVectors
  655. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  656. local speed = 10
  657. local num = 50
  658. coroutine.resume(coroutine.create(function()
  659.  
  660. repeat
  661. swait()
  662. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  663. local mag = (MainPos - pos).magnitude
  664. if Type == "Explosive" then
  665. Laser(BrickColor.new("Really blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  666. else
  667. if Type == "Poison" then
  668. Laser(BrickColor.new("Bright violet"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  669. SphereEffect(BrickColor.new("Bright violet"), CFrame.new((MainPos + pos) / 2, pos), 1, 1, 1, 2, 2, 2, 0.07)
  670. else
  671. if Type == "Stun" then
  672. Laser(BrickColor.new("White"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  673. end
  674. end
  675. end
  676. MainPos = MainPos + MouseLook.lookVector * speed
  677. num = num - 1
  678. MouseLook = MouseLook * angles(math.rad(-.2), 0, 0)
  679. if hit ~= nil then
  680. num = 0
  681. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  682. refpart.Anchored = true
  683. refpart.CFrame = CFrame.new(pos)
  684. game:GetService("Debris"):AddItem(refpart, 2)
  685. end
  686. do
  687. if num <= 1 then
  688. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new())
  689. refpart.Anchored = true
  690. refpart.CFrame = CFrame.new(pos)
  691. if Type == "Explosive" then
  692. for i = 0, 70, 5 do
  693. CreateSound("rbxassetid://181004943", refpart, 1, 1)
  694. BlockEffect(BrickColor.new("Really blue"), refpart.CFrame, 1, 1, 1, 10, 10, 10, 0.05)
  695. BlockEffect(BrickColor.new("Institutional white"), refpart.CFrame, 1, 1, 1, 10, 10, 10, 0.07)
  696. MagniDamage(refpart, 5, 1 * multiply, 3 * multiply, 0, "Freeze")
  697. swait(10)
  698. end
  699. else
  700. if Type == "Poison" then
  701. if hit.Name == "memes" then
  702. SphereEffect(BrickColor.new("Bright violet"), refpart.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  703. MagniDamage(refpart, 5, 18 * multiply, 20 * multiply, 0, "Curse")
  704. else
  705. SphereEffect(BrickColor.new("Bright violet"), refpart.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  706. MagniDamage(refpart, 5, 3 * multiply, 4 * multiply, 0, "Curse")
  707. for i = 0, 3, 4 do
  708. SphereEffect(BrickColor.new("Bright violet"), hit.Parent.Torso.CFrame, 1, 1, 1, 1, 1, 1, 0.07 )
  709. for i = 0,20,1 do
  710. hit.Parent.Humanoid.MaxHealth = hit.Parent.Humanoid.MaxHealth/1.01
  711. hit.Parent.Humanoid.WalkSpeed = 5
  712. swait(2.5)
  713. hit.Parent.Humanoid.WalkSpeed = 16
  714. end
  715. end
  716. end
  717. else
  718. if Type == "Stun" then
  719. BlockEffect(BrickColor.new("White"), refpart.CFrame, 1, 1, 1, 1, 1, 1, 0.07)
  720. MagniDamage(refpart, 5, -10 * multiply, -5 * multiply, 0, "Normal")
  721. for i = 0,100,5 do
  722. hit.Parent.Humanoid.MaxHealth = hit.Parent.Humanoid.MaxHealth*10
  723. swait(5)
  724. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.MaxHealth
  725. hit.Parent.Humanoid.WalkSpeed = 64
  726. swait(60)
  727. hit.Parent.Humanoid.MaxHealth = 100
  728. hit.Parent.Humanoid.WalkSpeed=16
  729. end
  730. end
  731. end
  732. end
  733. end
  734. game:GetService("Debris"):AddItem(refpart, 0)
  735. end
  736. until num <= 0
  737. end
  738. ))
  739. end
  740.  
  741. shoottrail1 = function(mouse, partt, SpreadAmount, multiply)
  742.  
  743. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  744. local MainPos = partt.Position
  745. local MainPos2 = mouse.Hit.p + SpreadVectors
  746. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  747. local speed = 4.50
  748. local num = 200
  749. CreateSound("rbxassetid://256172142", partt, 1, 1)
  750. coroutine.resume(coroutine.create(function()
  751.  
  752. repeat
  753. swait()
  754. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  755. local mag = (MainPos - pos).magnitude
  756. Laser(BrickColor.new("Really blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 2, mag *(-speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  757. MainPos = MainPos + MouseLook.lookVector * speed
  758. num = num - 1
  759. MouseLook = MouseLook * angles(.002,-.02, 0)
  760. if hit ~= nil then
  761. num = 0
  762. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  763. refpart.Anchored = true
  764. refpart.CFrame = CFrame.new(pos)
  765. game:GetService("Debris"):AddItem(refpart, 2)
  766. end
  767. do
  768. if num <= 0 then
  769. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  770. refpart.Anchored = true
  771. refpart.CFrame = CFrame.new(pos)
  772. if hit ~= nil then
  773. MagniDamage(refpart, 5, 10 * multiply, 30 * multiply, 0, "Normal")
  774. end
  775. game:GetService("Debris"):AddItem(refpart, 0)
  776. end
  777. end
  778. until num <= 0
  779. end
  780. ))
  781. end
  782. shoottrail2 = function(mouse, partt, SpreadAmount, multiply)
  783.  
  784. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  785. local MainPos = partt.Position
  786. local MainPos2 = mouse.Hit.p + SpreadVectors
  787. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  788. local speed = 4.50
  789. local num = 200
  790. CreateSound("rbxassetid://256172142", partt, 1, 1)
  791. coroutine.resume(coroutine.create(function()
  792.  
  793. repeat
  794. swait()
  795. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  796. local mag = (MainPos - pos).magnitude
  797. Laser(BrickColor.new("Really blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 2, mag *(-speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  798. MainPos = MainPos + MouseLook.lookVector * speed
  799. num = num - 1
  800. MouseLook = MouseLook * angles(.002,.02, 0)
  801. if hit ~= nil then
  802. num = 0
  803. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  804. refpart.Anchored = true
  805. refpart.CFrame = CFrame.new(pos)
  806. game:GetService("Debris"):AddItem(refpart, 2)
  807. end
  808. do
  809. if num <= 0 then
  810. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  811. refpart.Anchored = true
  812. refpart.CFrame = CFrame.new(pos)
  813. if hit ~= nil then
  814. MagniDamage(refpart, 5, 10 * multiply, 30 * multiply, 0, "Normal")
  815. end
  816. game:GetService("Debris"):AddItem(refpart, 0)
  817. end
  818. end
  819. until num <= 0
  820. end
  821. ))
  822. end
  823.  
  824. shoottrail3 = function(mouse, partt, SpreadAmount, multiply)
  825.  
  826. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  827. local MainPos = partt.Position
  828. local MainPos2 = mouse.Hit.p + SpreadVectors
  829. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  830. local speed = 4.5
  831. local num = 200
  832. CreateSound("rbxassetid://256172142", partt, 1, 1)
  833. coroutine.resume(coroutine.create(function()
  834.  
  835. repeat
  836. swait()
  837. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  838. local mag = (MainPos - pos).magnitude
  839. Laser(BrickColor.new("Really blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 2, mag *(-speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  840. MainPos = MainPos + MouseLook.lookVector * speed
  841. num = num - 1
  842. MouseLook = MouseLook * angles(.002,0, 0)
  843. if hit ~= nil then
  844. num = 0
  845. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  846. refpart.Anchored = true
  847. refpart.CFrame = CFrame.new(pos)
  848. game:GetService("Debris"):AddItem(refpart, 2)
  849. end
  850. do
  851. if num <= 0 then
  852. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  853. refpart.Anchored = true
  854. refpart.CFrame = CFrame.new(pos)
  855. if hit ~= nil then
  856. MagniDamage(refpart, 5, 10 * multiply, 30 * multiply, 0, "Normal")
  857. end
  858. game:GetService("Debris"):AddItem(refpart, 0)
  859. end
  860. end
  861. until num <= 0
  862. end
  863. ))
  864. end
  865.  
  866. shoottrail4 = function(mouse, partt, SpreadAmount, multiply)
  867.  
  868. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  869. local MainPos = partt.Position
  870. local MainPos2 = mouse.Hit.p + SpreadVectors
  871. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  872. local speed = 4.50
  873. local num = 200
  874. CreateSound("rbxassetid://256172142", partt, 1, 1)
  875. coroutine.resume(coroutine.create(function()
  876.  
  877. repeat
  878. swait()
  879. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  880. local mag = (MainPos - pos).magnitude
  881. Laser(BrickColor.new("Really blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 2, mag *(-speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  882. MainPos = MainPos + MouseLook.lookVector * speed
  883. num = num - 1
  884. MouseLook = MouseLook * angles(math.rad(2), math.rad(2), math.rad(2))
  885. if hit ~= nil then
  886. num = 0
  887. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  888. refpart.Anchored = true
  889. refpart.CFrame = CFrame.new(pos)
  890. game:GetService("Debris"):AddItem(refpart, 2)
  891. end
  892. do
  893. if num <= 0 then
  894. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  895. refpart.Anchored = true
  896. refpart.CFrame = CFrame.new(pos)
  897. if hit ~= nil then
  898. MagniDamage(refpart, 5, 10 * multiply, 30 * multiply, 0, "Normal")
  899. end
  900. game:GetService("Debris"):AddItem(refpart, 0)
  901. end
  902. end
  903. until num <= 0
  904. end
  905. ))
  906. end
  907. shoottrail5 = function(mouse, partt, SpreadAmount, multiply)
  908.  
  909. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  910. local MainPos = partt.Position
  911. local MainPos2 = mouse.Hit.p + SpreadVectors
  912. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  913. local speed = 4.50
  914. local num = 200
  915. CreateSound("rbxassetid://256172142", partt, 1, 1)
  916. coroutine.resume(coroutine.create(function()
  917.  
  918. repeat
  919. swait()
  920. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  921. local mag = (MainPos - pos).magnitude
  922. Laser(BrickColor.new("Really blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 2, mag *(-speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  923. MainPos = MainPos + MouseLook.lookVector * speed
  924. num = num - 1
  925. MouseLook = MouseLook * angles(math.rad(2), math.rad(-2), math.rad(-2))
  926. if hit ~= nil then
  927. num = 0
  928. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  929. refpart.Anchored = true
  930. refpart.CFrame = CFrame.new(pos)
  931. game:GetService("Debris"):AddItem(refpart, 2)
  932. end
  933. do
  934. if num <= 0 then
  935. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  936. refpart.Anchored = true
  937. refpart.CFrame = CFrame.new(pos)
  938. if hit ~= nil then
  939. MagniDamage(refpart, 5, 10 * multiply, 30 * multiply, 0, "Normal")
  940. end
  941. game:GetService("Debris"):AddItem(refpart, 0)
  942. end
  943. end
  944. until num <= 0
  945. end
  946. ))
  947. end
  948. shoottrail6 = function(mouse, partt, SpreadAmount, multiply)
  949.  
  950. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  951. local MainPos = partt.Position
  952. local MainPos2 = mouse.Hit.p + SpreadVectors
  953. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  954. local speed = 4.50
  955. local num = 200
  956. CreateSound("rbxassetid://256172142", partt, 1, 1)
  957. coroutine.resume(coroutine.create(function()
  958.  
  959. repeat
  960. swait()
  961. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  962. local mag = (MainPos - pos).magnitude
  963. Laser(BrickColor.new("Really blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 2, mag *(-speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  964. MainPos = MainPos + MouseLook.lookVector * speed
  965. num = num - 1
  966. MouseLook = MouseLook * angles(math.rad(-2), math.rad(-2), math.rad(-2))
  967. if hit ~= nil then
  968. num = 0
  969. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  970. refpart.Anchored = true
  971. refpart.CFrame = CFrame.new(pos)
  972. game:GetService("Debris"):AddItem(refpart, 2)
  973. end
  974. do
  975. if num <= 0 then
  976. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  977. refpart.Anchored = true
  978. refpart.CFrame = CFrame.new(pos)
  979. if hit ~= nil then
  980. MagniDamage(refpart, 5, 10 * multiply, 30 * multiply, 0, "Normal")
  981. end
  982. game:GetService("Debris"):AddItem(refpart, 0)
  983. end
  984. end
  985. until num <= 0
  986. end
  987. ))
  988. end
  989. shoottrail7 = function(mouse, partt, SpreadAmount, multiply)
  990.  
  991. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  992. local MainPos = partt.Position
  993. local MainPos2 = mouse.Hit.p + SpreadVectors
  994. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  995. local speed = 4.50
  996. local num = 200
  997. CreateSound("rbxassetid://256172142", partt, 1, 1)
  998. coroutine.resume(coroutine.create(function()
  999.  
  1000. repeat
  1001. swait()
  1002. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1003. local mag = (MainPos - pos).magnitude
  1004. Laser(BrickColor.new("Really blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 2, mag *(-speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  1005. MainPos = MainPos + MouseLook.lookVector * speed
  1006. num = num - 1
  1007. MouseLook = MouseLook * angles(math.rad(2), math.rad(0), math.rad(0))
  1008. if hit ~= nil then
  1009. num = 0
  1010. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  1011. refpart.Anchored = true
  1012. refpart.CFrame = CFrame.new(pos)
  1013. game:GetService("Debris"):AddItem(refpart, 2)
  1014. end
  1015. do
  1016. if num <= 0 then
  1017. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  1018. refpart.Anchored = true
  1019. refpart.CFrame = CFrame.new(pos)
  1020. if hit ~= nil then
  1021. MagniDamage(refpart, 5, 10 * multiply, 30 * multiply, 0, "Normal")
  1022. end
  1023. game:GetService("Debris"):AddItem(refpart, 0)
  1024. end
  1025. end
  1026. until num <= 0
  1027. end
  1028. ))
  1029. end
  1030. shoottrail8 = function(mouse, partt, SpreadAmount, multiply)
  1031.  
  1032. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1033. local MainPos = partt.Position
  1034. local MainPos2 = mouse.Hit.p + SpreadVectors
  1035. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1036. local speed = 4.50
  1037. local num = 200
  1038. CreateSound("rbxassetid://256172142", partt, 1, 1)
  1039. coroutine.resume(coroutine.create(function()
  1040.  
  1041. repeat
  1042. swait()
  1043. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1044. local mag = (MainPos - pos).magnitude
  1045. Laser(BrickColor.new("Really blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 2, mag *(-speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  1046. MainPos = MainPos + MouseLook.lookVector * speed
  1047. num = num - 1
  1048. MouseLook = MouseLook * angles(math.rad(-2), math.rad(0), math.rad(0))
  1049. if hit ~= nil then
  1050. num = 0
  1051. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  1052. refpart.Anchored = true
  1053. refpart.CFrame = CFrame.new(pos)
  1054. game:GetService("Debris"):AddItem(refpart, 2)
  1055. end
  1056. do
  1057. if num <= 0 then
  1058. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  1059. refpart.Anchored = true
  1060. refpart.CFrame = CFrame.new(pos)
  1061. if hit ~= nil then
  1062. MagniDamage(refpart, 5, 10 * multiply, 30 * multiply, 0, "Normal")
  1063. end
  1064. game:GetService("Debris"):AddItem(refpart, 0)
  1065. end
  1066. end
  1067. until num <= 0
  1068. end
  1069. ))
  1070. end
  1071. shoottrail9 = function(mouse, partt, SpreadAmount, multiply)
  1072.  
  1073. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1074. local MainPos = partt.Position
  1075. local MainPos2 = mouse.Hit.p + SpreadVectors
  1076. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1077. local speed = 4.50
  1078. local num = 200
  1079. CreateSound("rbxassetid://256172142", partt, 1, 1)
  1080. coroutine.resume(coroutine.create(function()
  1081.  
  1082. repeat
  1083. swait()
  1084. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1085. local mag = (MainPos - pos).magnitude
  1086. Laser(BrickColor.new("Really blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 2, mag *(-speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  1087. MainPos = MainPos + MouseLook.lookVector * speed
  1088. num = num - 1
  1089. MouseLook = MouseLook * angles(math.rad(-2), math.rad(2), math.rad(-2))
  1090. if hit ~= nil then
  1091. num = 0
  1092. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  1093. refpart.Anchored = true
  1094. refpart.CFrame = CFrame.new(pos)
  1095. game:GetService("Debris"):AddItem(refpart, 2)
  1096. end
  1097. do
  1098. if num <= 0 then
  1099. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  1100. refpart.Anchored = true
  1101. refpart.CFrame = CFrame.new(pos)
  1102. if hit ~= nil then
  1103. MagniDamage(refpart, 5, 10 * multiply, 30 * multiply, 0, "Normal")
  1104. end
  1105. game:GetService("Debris"):AddItem(refpart, 0)
  1106. end
  1107. end
  1108. until num <= 0
  1109. end
  1110. ))
  1111. end
  1112.  
  1113. shoottrailOmega = function(mouse, partt, SpreadAmount, multiply)
  1114.  
  1115. local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount))
  1116. local MainPos = partt.Position
  1117. local MainPos2 = mouse.Hit.p + SpreadVectors
  1118. local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2)
  1119. local speed = 15.0
  1120. local num = 20
  1121. CreateSound("rbxassetid://256172142", partt, 1, 1)
  1122. coroutine.resume(coroutine.create(function()
  1123.  
  1124. repeat
  1125. swait()
  1126. local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent)
  1127. local mag = (MainPos - pos).magnitude
  1128. Laser(BrickColor.new("Really blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 2, mag *(-speed / (speed / 2)), 1, -1, 0, -1, 0.15)
  1129. MainPos = MainPos + MouseLook.lookVector * speed
  1130. num = num - 1
  1131. MouseLook = MouseLook * angles(0, math.random(-2,2), 0)
  1132. if hit ~= nil then
  1133. num = 0
  1134. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  1135. refpart.Anchored = true
  1136. refpart.CFrame = CFrame.new(pos)
  1137. game:GetService("Debris"):AddItem(refpart, 2)
  1138. end
  1139. do
  1140. if num <= 0 then
  1141. local refpart = CreatePart(effect, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new(2,2,2))
  1142. refpart.Anchored = true
  1143. refpart.CFrame = CFrame.new(pos)
  1144. if hit ~= nil then
  1145. MagniDamage(refpart, 5, -30 * multiply, -10 * multiply, 0, "Normal")
  1146. end
  1147. game:GetService("Debris"):AddItem(refpart, 0)
  1148. end
  1149. end
  1150. until num <= 0
  1151. end
  1152. ))
  1153. end
  1154.  
  1155. attackone = function()
  1156.  
  1157. attack = true
  1158. local con = Hitbox.Touched:connect(function(hit)
  1159.  
  1160. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1161. end
  1162. )
  1163. for i = 0, 1, 0.2 do
  1164. swait()
  1165. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.3)
  1166. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(-40)), 0.3)
  1167. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3)
  1168. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  1169. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1170. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1171. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1172. end
  1173. CreateSound("http://www.roblox.com/asset/?id=169285411", RootPart, 1, 1)
  1174. for i = 0, 1, 0.1 do
  1175. swait()
  1176. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  1177. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(80)), 0.3)
  1178. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1179. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  1180. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1181. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1182. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1183. end
  1184. con:disconnect()
  1185. attack = false
  1186. end
  1187.  
  1188. attacktwo = function()
  1189.  
  1190. attack = true
  1191. local con = Hitbox.Touched:connect(function(hit)
  1192.  
  1193. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1194. end
  1195. )
  1196. for i = 0, 1, 0.2 do
  1197. swait()
  1198. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1199. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(90)), 0.3)
  1200. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1201. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  1202. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1203. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1204. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-180), math.rad(0), math.rad(0)), 0.3)
  1205. end
  1206. CreateSound("http://www.roblox.com/asset/?id=169285411", RootPart, 1, 0.8)
  1207. for i = 0, 1, 0.1 do
  1208. swait()
  1209. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  1210. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(-10), math.rad(-80)), 0.3)
  1211. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3)
  1212. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  1213. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1214. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1215. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-180), math.rad(0), math.rad(0)), 0.3)
  1216. end
  1217. con:disconnect()
  1218. attack = false
  1219. end
  1220.  
  1221. attackthree = function()
  1222. attack = true
  1223. MagniDamage(Barrel, 0, 0, 0, 0, "Normal")
  1224. shoottrail1(mouse, Barrel, 0, 0.7)
  1225. shoottrail2(mouse, Barrel, 0, 0.7)
  1226. shoottrail3(mouse, Barrel, 0, 0.7)
  1227. shoottrail4(mouse, Barrel, 0, 0.7)
  1228. shoottrail5(mouse, Barrel, 0, 0.7)
  1229. shoottrail6(mouse, Barrel, 0, 0.7)
  1230. shoottrail7(mouse, Barrel, 0, 0.7)
  1231. shoottrail8(mouse, Barrel, 0, 0.7)
  1232. shoottrail9(mouse, Barrel, 0, 0.7)
  1233.  
  1234. BlockEffect(BrickColor.new("Really blue"), Barrel.CFrame, 5, 5, 5, 5,5,5, 0.07)
  1235. BlockEffect(BrickColor.new("Really blue"), Barrel.CFrame, 5, 5, 5, 5, 5, 5, 0.07)
  1236. attack = false
  1237. end
  1238.  
  1239. yatata = function()
  1240. for i = 0,100,5 do
  1241. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1242. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1243. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1244. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1245. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1246. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1247. swait(2.5)
  1248. end
  1249. end
  1250.  
  1251. yatatatest = function()
  1252.  
  1253. attack = true
  1254. local con = Hitbox.Touched:connect(function(hit)
  1255.  
  1256. Damagefunc(Hitbox, hit, -15, -10, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1257. end
  1258. )
  1259. for i = 0, 1, 0.2 do
  1260. swait()
  1261. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1262. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(90)), 0.3)
  1263. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1264. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  1265. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1266. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1267. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-180), math.rad(0), math.rad(0)), 0.3)
  1268. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1269. end
  1270. for i = 1, 5 do
  1271. Torso.Velocity = RootPart.CFrame.lookVector * 30
  1272. for i = 0, 1, 0.2 do
  1273. swait()
  1274. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  1275. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(80)), 0.3)
  1276. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1277. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  1278. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1279. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1280. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-180), math.rad(0), math.rad(0)), 0.3)
  1281. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1282. end
  1283. CreateSound("http://www.roblox.com/asset/?id=440145223", RootPart, 1, 0.7)
  1284. CreateSound("http://www.roblox.com/asset/?id=169285411", RootPart, 1, 1)
  1285. MagniDamage(Barrel, 8, -15, -8, 0, "Normal")
  1286. Torso.Velocity = RootPart.CFrame.lookVector * 30
  1287. BlockEffect(BrickColor.new("Institutional white"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1288. BlockEffect(BrickColor.new("Really blue"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1289. for i = 0, 1, 0.2 do
  1290. swait()
  1291. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  1292. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(-10), math.rad(-80)), 0.3)
  1293. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3)
  1294. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  1295. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1296. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1297. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(-180), math.rad(0), math.rad(0)), 0.3)
  1298. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1299. end
  1300. CreateSound("http://www.roblox.com/asset/?id=440145223", RootPart, 1, 0.7)
  1301. MagniDamage(Barrel, 8, -15, -8, 0, "Normal")
  1302. Torso.Velocity = RootPart.CFrame.lookVector * 30
  1303. BlockEffect(BrickColor.new("Institutional white"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1304. BlockEffect(BrickColor.new("Really blue"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1305. for i = 0, 1, 0.2 do
  1306. swait()
  1307. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  1308. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(-10), math.rad(-80)), 0.3)
  1309. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3)
  1310. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  1311. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1312. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1313. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1314. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1315. end
  1316. CreateSound("http://www.roblox.com/asset/?id=440145223", RootPart, 1, 0.7)
  1317. CreateSound("http://www.roblox.com/asset/?id=169285411", RootPart, 1, 0.9)
  1318. MagniDamage(Barrel, 8, -15, -8, 0, "Normal")
  1319. Torso.Velocity = RootPart.CFrame.lookVector * 30
  1320. BlockEffect(BrickColor.new("Institutional white"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1321. BlockEffect(BrickColor.new("Really blue"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1322. for i = 0, 1, 0.2 do
  1323. swait()
  1324. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  1325. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(80)), 0.3)
  1326. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1327. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.3)
  1328. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1329. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1330. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1331. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1332. end
  1333. CreateSound("http://www.roblox.com/asset/?id=440145223", RootPart, 1, 0.7)
  1334. MagniDamage(Barrel, 8, -15, -8, 0, "Normal")
  1335. Torso.Velocity = RootPart.CFrame.lookVector * 30
  1336. BlockEffect(BrickColor.new("Institutional white"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1337. BlockEffect(BrickColor.new("Really blue"), Barrel.CFrame, 5, 5, 5, 3, 3, 3, 0.07)
  1338. shoottrailOmega(mouse, Barrel, 0, 0.7)
  1339. end
  1340. con:disconnect()
  1341. attack = false
  1342. end
  1343.  
  1344. Grenade = function()
  1345.  
  1346. attack = true
  1347. CreateSound("http://www.roblox.com/asset/?id=134626404", Barrel, 1, 1.6)
  1348. shoottraildd(mouse, Barrel, 0, 1, "Poison")
  1349. BlockEffect(BrickColor.new("Alder"), Barrel.CFrame, 5, 5, 5, 5,5,5, 0.07)
  1350. BlockEffect(BrickColor.new("Alder"), Barrel.CFrame, 5, 5, 5, 5,5,5, 0.07)
  1351. BlockEffect(BrickColor.new("Royal purple"), Barrel.CFrame, 5, 5, 5, 14,1,1, 0.07)
  1352. Humanoid.AutoRotate = true
  1353. attack = false
  1354. end
  1355.  
  1356. Grenade2 = function()
  1357. attack = true
  1358. CreateSound("rbxassetid://260421433", Guhn, 1, 1.6)
  1359. shoottraildd(mouse, Barrel, 0, 1, "Stun")
  1360. BlockEffect(BrickColor.new("Shamrock"), Barrel.CFrame, 5, 5, 5, 5,5,5, 0.07)
  1361. BlockEffect(BrickColor.new("Shamrock"), Barrel.CFrame, 5, 5, 5, 5,5,5, 0.07)
  1362. BlockEffect(BrickColor.new("Lime green"), Barrel.CFrame, 5, 5, 5, 14,1,1, 0.07)
  1363. Humanoid.AutoRotate = true
  1364. attack = false
  1365. end
  1366.  
  1367. local bang = false
  1368. SuperGrenade = function()
  1369. bang = true
  1370. attack = true
  1371. for i = 0, 9, 1 do
  1372. BlockEffect(BrickColor.new("Institutional white"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1373. BlockEffect(BrickColor.new("Really blue"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1374. swait(2.5)
  1375. end
  1376. for i = 0, 4, 1 do
  1377. for i = 0, 9, 1 do
  1378. shoottraildd(mouse, Barrel, 15, 1.5, "Poison")
  1379. end
  1380. swait(7.5)
  1381. end
  1382. attack = false
  1383. bang = false
  1384. end
  1385.  
  1386. local bang = false
  1387. SuperGrenade2 = function()
  1388. bang = true
  1389. attack = true
  1390. for i = 0, 9, 1 do
  1391. BlockEffect(BrickColor.new("Institutional white"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1392. BlockEffect(BrickColor.new("Really blue"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1393. swait(2.5)
  1394. end
  1395. for i = 0, 4, 1 do
  1396. for i = 0, 9, 1 do
  1397. shoottraildd(mouse, Barrel, 15, 1.5, "Stun")
  1398. end
  1399. swait(7.5)
  1400. end
  1401. attack = false
  1402. bang = false
  1403. end
  1404.  
  1405. Quake = function()
  1406.  
  1407. attack = true
  1408. for i = 0, 1, 0.2 do
  1409. swait()
  1410. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1411. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(90)), 0.3)
  1412. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(0)), 0.3)
  1413. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  1414. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1415. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1416. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1417. end
  1418. CreateSound("http://www.roblox.com/asset/?id=169285411", RootPart, 1, 1.3)
  1419. for i = 0, 1, 0.2 do
  1420. swait()
  1421. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1422. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(90)), 0.3)
  1423. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(0)), 0.3)
  1424. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  1425. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1426. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1427. MotorWeld.C0 = clerp(MotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  1428. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1429. end
  1430. CreateSound("http://www.roblox.com/asset/?id=169285411", RootPart, 1, 1.1)
  1431. for i = 0, 1, 0.05 do
  1432. swait()
  1433. BlockEffect(BrickColor.new("Really blue"), Barrel.CFrame, 5, 5, 5, 1, 1, 1, 0.07)
  1434. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1435. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(20), math.rad(90)), 0.3)
  1436. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.5) * angles(math.rad(90), math.rad(20), math.rad(-90)), 0.3)
  1437. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(90), math.rad(40), math.rad(-70)), 0.3)
  1438. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1439. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1440. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)
  1441. end
  1442. CreateSound("http://www.roblox.com/asset/?id=134626404", RootPart, 1, 1)
  1443. MagniDamage(Barrel, 15, 10, 15, 0, "Knockdown")
  1444. BlockEffect(BrickColor.new("Institutional white"), Barrel.CFrame, 5, 5, 5, 5, 5, 5, 0.07)
  1445. BlockEffect(BrickColor.new("Really blue"), Barrel.CFrame, 5, 5, 5, 5, 5, 5, 0.03)
  1446. RingEffect(BrickColor.new("White"), RootPart.CFrame * cf(0, -2, -10) * angles(1.57, 0, 0), 3, 3, 1, 5, 5, 0, 0.07)
  1447. CloudEffect(BrickColor.new("Smokey grey"), RootPart.CFrame * cf(0, -2, -10), 1, 3, 1, 0.3, 1, 0.3, 0.01)
  1448. for i = 0, 1, 0.1 do
  1449. swait()
  1450. Torso.Velocity = RootPart.CFrame.lookVector * -20
  1451. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1452. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(10), math.rad(90)), 0.3)
  1453. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.5) * angles(math.rad(90), math.rad(-20), math.rad(-90)), 0.3)
  1454. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(90), math.rad(40), math.rad(-70)), 0.3)
  1455. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1456. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1457. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)
  1458. end
  1459. attack = false
  1460. end
  1461.  
  1462. local aiming = false
  1463. Aim = function()
  1464.  
  1465. attack = true
  1466. aiming = true
  1467. Humanoid.JumpPower = 50
  1468. Humanoid.WalkSpeed = 16
  1469. Humanoid.AutoRotate = false
  1470. for i = 0, 1, 0.1 do
  1471. swait()
  1472. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1473. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1474. RW.C0 = clerp(RW.C0, CFrame.new(1.5, .5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1475. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, .5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1476. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1477. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1478. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)
  1479. end
  1480. end
  1481.  
  1482. local bang = false
  1483. shoot = function()
  1484.  
  1485. bang = true
  1486. for i = 0, 9, 1 do
  1487. BlockEffect(BrickColor.new("Institutional white"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1488. BlockEffect(BrickColor.new("Really blue"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1489. swait(2.5)
  1490. end
  1491. for i = 0, 4, 1 do
  1492. for i = 0, 9, 1 do
  1493. shoottraildd(mouse, Barrel, 15, 1.5, "Explosive")
  1494. end
  1495. swait(7.5)
  1496. end
  1497. bang = false
  1498. end
  1499.  
  1500. local bang = false
  1501. shoot2 = function()
  1502.  
  1503. bang = true
  1504. for i = 0, 9, 1 do
  1505. BlockEffect(BrickColor.new("Alder"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1506. BlockEffect(BrickColor.new("Royal purple"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1507. swait(2.5)
  1508. end
  1509. for i = 0, 4, 1 do
  1510. for i = 0, 9, 1 do
  1511. shoottraildd(mouse, Barrel, 15, 1.5, "Poison")
  1512. end
  1513. swait(7.5)
  1514. end
  1515. bang = false
  1516. end
  1517.  
  1518. local bang = false
  1519. shoot3 = function()
  1520.  
  1521. bang = true
  1522. for i = 0, 9, 1 do
  1523. BlockEffect(BrickColor.new("Shamrock"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1524. BlockEffect(BrickColor.new("Lime green"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1525. swait(2.5)
  1526. end
  1527. for i = 0, 4, 1 do
  1528. for i = 0, 9, 1 do
  1529. shoottraildd(mouse, Barrel, 15, 1.5, "Stun")
  1530. end
  1531. swait(7.5)
  1532. end
  1533. bang = false
  1534. end
  1535.  
  1536. local bang = false
  1537. OmegaShoot = function()
  1538.  
  1539. bang = true
  1540. for i = 0, 9, 1 do
  1541. BlockEffect(BrickColor.new("Really blue"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1542. BlockEffect(BrickColor.new("Really blue"), Torso.CFrame, 5, 5, 5, 10, 10, 10, 0.07)
  1543. swait(2.5)
  1544. end
  1545. for i = 0, 4, 1 do
  1546. for i = 0, 9, 1 do
  1547. shoottraildd2(mouse, Barrel, 15, 1.5, "Stun")
  1548. end
  1549. swait(7.5)
  1550. end
  1551. bang = false
  1552. end
  1553.  
  1554.  
  1555. mouse.Button1Down:connect(function()
  1556.  
  1557. if attack == false and attacktype == 1 and aiming == false then
  1558. attacktype = 1
  1559. attackthree()
  1560. else
  1561. if attack == false and attacktype == 2 and aiming == false then
  1562. attacktype = 3
  1563. attacktwo()
  1564. else
  1565. if attack == false and attacktype == 3 and aiming == false then
  1566. attacktype = 1
  1567. attackthree()
  1568. end
  1569. end
  1570. end
  1571. if attack == true and aiming == true and bang == false then
  1572. if cooldown1 >= 0 then
  1573. cooldown1 = cooldown1
  1574. shoot()
  1575. else
  1576. Humanoid.JumpPower = 50
  1577. Humanoid.WalkSpeed = 16
  1578. Humanoid.AutoRotate = true
  1579. attack = false
  1580. aiming = false
  1581. end
  1582. end
  1583. end
  1584. )
  1585. mouse.KeyDown:connect(function(k)
  1586.  
  1587. k = k:lower()
  1588. if attack == false and k == "z" and aiming == false then
  1589. Aim()
  1590. else
  1591. if attack == true and k == "z" and aiming == true then
  1592. Humanoid.WalkSpeed = 16
  1593. Humanoid.JumpPower = 50
  1594. Humanoid.AutoRotate = true
  1595. attack = false
  1596. aiming = false
  1597. else
  1598. if attack == false and co2 <= cooldown2 and k == "x" then
  1599. cooldown2 = 0
  1600. Grenade()
  1601. else
  1602. if attack == false and co3 <= cooldown3 and k == "c" then
  1603. cooldown3 = 0
  1604. Grenade2()
  1605. else
  1606. if attack == false and co4 <= cooldown4 and k == "v" then
  1607. cooldown4 = 0
  1608. yatata()
  1609. else
  1610. if attack == true and aiming == true and bang == false and k == "x" then
  1611. shoot2()
  1612. else
  1613. if attack == true and aiming == true and bang == false and k == "c" then
  1614. shoot3()
  1615. else
  1616. if attack == true and aiming == true and bang == false and k == "v" then
  1617. OmegaShoot()
  1618. end
  1619. end
  1620. end
  1621. end
  1622. end
  1623. end
  1624. end
  1625. end
  1626. end
  1627. )
  1628. updateskills = function()
  1629.  
  1630. if cooldown1 <= co1 and aiming == false then
  1631. cooldown1 = cooldown1 + 0.033333333333333
  1632. end
  1633. if cooldown2 <= co2 then
  1634. cooldown2 = cooldown2 + 0.033333333333333
  1635. end
  1636. if cooldown3 <= co3 then
  1637. cooldown3 = cooldown3 + 0.033333333333333
  1638. end
  1639. if cooldown4 <= co4 then
  1640. cooldown4 = cooldown4 + 0.033333333333333
  1641. end
  1642. end
  1643.  
  1644. while true do
  1645. swait()
  1646. if aiming == true then
  1647. local aim = CFrame.new(RootPart.Position, mouse.Hit.p)
  1648. local direction = aim.lookVector
  1649. local headingA = math.atan2(direction.x, direction.z)
  1650. headingA = math.deg(headingA)
  1651. Humanoid.AutoRotate = false
  1652. RootPart.CFrame = CFrame.new(RootPart.Position) * angles(math.rad(0), math.rad(headingA - 180), math.rad(0))
  1653. else
  1654. do
  1655. Humanoid.AutoRotate = true
  1656. updateskills()
  1657. bar4:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", 0.5)
  1658. bar3:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", 0.5)
  1659. bar1:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", 0.5)
  1660. bar2:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", 0.5)
  1661. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1662. velocity = RootPart.Velocity.y
  1663. sine = sine + change
  1664. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1665. if equipped == true or equipped == false then
  1666. if 10000 < RootPart.Velocity.y and hit == nil then
  1667. Anim = "Jump"
  1668. if attack == false then
  1669. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos((sine) / 20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1670. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.3)
  1671. RW.C0 = clerp(RW.C0, CFrame.new(1.6, 0.5, -0.4) * angles(math.rad(240), math.rad(0), math.rad(-30 + 5 * math.cos((sine) / 15))), 0.3)
  1672. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 25), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1673. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos((sine) / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1674. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos((sine) / 20), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  1675. MotorWeld.C0 = clerp(MotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1676. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, -0.3, -0.2) * angles(math.rad(0), math.rad(50), math.rad(-60 - 0.5 * math.cos((sine) / 25))), 0.3)
  1677. end
  1678. else
  1679. if RootPart.Velocity.y < -10000000 and hit == nil then
  1680. Anim = "Fall"
  1681. if attack == false then
  1682. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos((sine) / 20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1683. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3)
  1684. RW.C0 = clerp(RW.C0, CFrame.new(1.6, 0.5, -0.4) * angles(math.rad(240), math.rad(0), math.rad(-30 + 5 * math.cos((sine) / 15))), 0.3)
  1685. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos((sine) / 25), 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1686. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos((sine) / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1687. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos((sine) / 20), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  1688. MotorWeld.C0 = clerp(MotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1689. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, -0.3, -0.2) * angles(math.rad(0), math.rad(50), math.rad(-60 - 0.5 * math.cos((sine) / 25))), 0.3)
  1690. end
  1691. else
  1692. if Torsovelocity < 1 and hit ~= nil then
  1693. Anim = "Idle"
  1694. if attack == false then
  1695. change = 1
  1696. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1697. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(10), math.rad(90)), 0.3)
  1698. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.3)
  1699. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.3)
  1700. RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos(sine / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1701. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos(sine / 20), 0) * LHCF * angles(math.rad(0), math.rad(20), math.rad(0)), 0.3)
  1702. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)
  1703. end
  1704. else
  1705. if 2 < Torsovelocity and hit ~= nil then
  1706. Anim = "Walk"
  1707. if attack == false then
  1708. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 - 0.15 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1709. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(10), math.rad(90)), 0.3)
  1710. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.3)
  1711. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5 - 0.1 * math.cos(sine / 25), 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.3)RH.C0 = clerp(RH.C0, cf(1, -1 + 0.15 * math.cos((sine) / 20), 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0 - 50 * math.cos((sine) / 3))), 0.3)
  1712. LH.C0 = clerp(LH.C0, cf(-1, -1 + 0.15 * math.cos((sine) / 20), 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0 - 50 * math.cos((sine) / 3))), 0.3)
  1713. MotorWeld.C0 = clerp(MotorWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1714. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, -0.3, -0.2) * angles(math.rad(0), math.rad(50), math.rad(-60 - 0.5 * math.cos((sine) / 25))), 0.3)
  1715. end
  1716. end
  1717. end
  1718. end
  1719. end
  1720. end
  1721. end
  1722. end
  1723. if 0 < #Effects then
  1724. for e = 1, #Effects do
  1725. if Effects[e] ~= nil then
  1726. local Thing = Effects[e]
  1727. if Thing ~= nil then
  1728. local Part = Thing[1]
  1729. local Mode = Thing[2]
  1730. local Delay = Thing[3]
  1731. local IncX = Thing[4]
  1732. local IncY = Thing[5]
  1733. local IncZ = Thing[6]
  1734. if Thing[1].Transparency <= 1 then
  1735. if Thing[2] == "Block1" then
  1736. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1737. Mesh = Thing[1].Mesh
  1738. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1739. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1740. else
  1741. if Thing[2] == "Block2" then
  1742. Thing[1].CFrame = Thing[1].CFrame
  1743. Mesh = Thing[7]
  1744. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1745. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1746. else
  1747. if Thing[2] == "Cylinder" then
  1748. Mesh = Thing[1].Mesh
  1749. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1750. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1751. else
  1752. if Thing[2] == "Blood" then
  1753. Mesh = Thing[7]
  1754. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1755. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1756. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1757. else
  1758. if Thing[2] == "Elec" then
  1759. Mesh = Thing[1].Mesh
  1760. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1761. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1762. else
  1763. if Thing[2] == "Disappear" then
  1764. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1765. else
  1766. if Thing[2] == "Shatter" then
  1767. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1768. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1769. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1770. Thing[6] = Thing[6] + Thing[5]
  1771. end
  1772. end
  1773. end
  1774. end
  1775. end
  1776. end
  1777. end
  1778. else
  1779. Part.Parent = nil
  1780. table.remove(Effects, e)
  1781. end
  1782. end
  1783. end
  1784. end
  1785. end
  1786. end
  1787. --end
  1788. --end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement