Advertisement
wowzers

Arheil

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