Advertisement
memberhero

Untitled

Oct 13th, 2016
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wait(0.016666666666667)
  2. Effects = {}
  3. local Player = game.Players.localPlayer
  4. local Character = Player.Character
  5. local Humanoid = Character.Humanoid
  6. local mouse = Player:GetMouse()
  7. local m = Instance.new("Model", Character)
  8. m.Name = "WeaponModel"
  9. local LeftArm = Character["Left Arm"]
  10. local RightArm = Character["Right Arm"]
  11. local LeftLeg = Character["Left Leg"]
  12. local RightLeg = Character["Right Leg"]
  13. local Head = Character.Head
  14. local Torso = Character.Torso
  15. local cam = game.Workspace.CurrentCamera
  16. local RootPart = Character.HumanoidRootPart
  17. local RootJoint = RootPart.RootJoint
  18. local equipped = false
  19. local attack = false
  20. local Anim = "Idle"
  21. local idle = 0
  22. local attacktype = 1
  23. local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  24. local velocity = RootPart.Velocity.y
  25. local sine = 0
  26. local change = 1
  27. local grabbed = false
  28. local cf = CFrame.new
  29. local mr = math.rad
  30. local angles = CFrame.Angles
  31. local ud = UDim2.new
  32. local vt = Vector3.new
  33. local c3 = Color3.new
  34. local mana = 0
  35. local mananum = 0
  36. local it = Instance.new
  37. local NeckCF = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  38. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  39. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  40. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  41. xenabled = true
  42. cenabled = true
  43. venabled = true
  44. zenabled = true
  45. RSH = nil
  46. RW = Instance.new("Weld")
  47. LW = Instance.new("Weld")
  48. RH = Torso["Right Hip"]
  49. LH = Torso["Left Hip"]
  50. RSH = Torso["Right Shoulder"]
  51. LSH = Torso["Left Shoulder"]
  52. RSH.Parent = nil
  53. LSH.Parent = nil
  54. RW.Name = "RW"
  55. RW.Part0 = Torso
  56. RW.C0 = cf(1.5, 0.5, 0)
  57. RW.C1 = cf(0, 0.5, 0)
  58. RW.Part1 = RightArm
  59. RW.Parent = Torso
  60. LW.Name = "LW"
  61. LW.Part0 = Torso
  62. LW.C0 = cf(-1.5, 0.5, 0)
  63. LW.C1 = cf(0, 0.5, 0)
  64. LW.Part1 = LeftArm
  65. LW.Parent = Torso
  66. clerp = function(a, b, t)
  67. return a:lerp(b, t)
  68. end
  69.  
  70.  
  71. ----------------------------------------------------
  72. z = Instance.new("Sound", Character)
  73. z.SoundId = "rbxassetid://428255459"--
  74. z.Looped = true
  75. z.Pitch = 1
  76. z.Volume = 1
  77. wait(.1)
  78. z:Play()
  79. ----------------------------------------------------
  80.  
  81. ArtificialHB = Instance.new("BindableEvent", script)
  82. ArtificialHB.Name = "Heartbeat"
  83. script:WaitForChild("Heartbeat")
  84. frame = 0.016666666666667
  85. tf = 0
  86. allowframeloss = false
  87. tossremainder = false
  88. lastframe = tick()
  89. script.Heartbeat:Fire()
  90. game:GetService("RunService").Heartbeat:connect(function(s, p)
  91. tf = tf + s
  92. if frame <= tf then
  93. if allowframeloss then
  94. script.Heartbeat:Fire()
  95. lastframe = tick()
  96. else
  97. for i = 1, math.floor(tf / frame) do
  98. script.Heartbeat:Fire()
  99. end
  100. lastframe = tick()
  101. end
  102. if tossremainder then
  103. tf = 0
  104. else
  105. tf = tf - frame * math.floor(tf / frame)
  106. end
  107. end
  108. end
  109. )
  110. swait = function(num)
  111. if num == 0 or num == nil then
  112. ArtificialHB.Event:wait()
  113. else
  114. for i = 0, num do
  115. ArtificialHB.Event:wait()
  116. end
  117. end
  118. end
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125. Magik = function(part)
  126. Spawn(function()
  127. local function lerp(a,b,c)
  128. return a+(b-a)*c
  129. end
  130. local function rndRange(rng)
  131. return math.random(-rng*1000,rng*1000)/1000
  132. end
  133. local magik = Instance.new("Part", part)
  134. magik.Anchored = true
  135. magik.Locked = true
  136. magik.Material = "Neon"
  137. magik.FormFactor = "Custom"
  138. magik.Size = Vector3.new(1.2, 1.2, 1.2)
  139. magik.TopSurface = "Smooth"
  140. magik.BottomSurface = "Smooth"
  141. magik.Transparency = 0
  142. magik.CanCollide = false
  143.  
  144. magik.BrickColor = BrickColor.new("Royal purple")
  145.  
  146. local mr = math.rad
  147. local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180))
  148. local cf = part.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz)
  149. magik.CFrame = cf
  150. for i = 0, 1, .05 do
  151. local newTrans = lerp(.8, 1, i)
  152. local ns = lerp(1,1.2,i)
  153. magik.Transparency = newTrans
  154. magik.Size = Vector3.new(ns,ns,ns)
  155. magik.CFrame = cf
  156. wait()
  157. end
  158. magik:Destroy()
  159. wait()
  160. end)
  161. end
  162. ----------------------------------------------------
  163. Magik2 = function(part)
  164. Spawn(function()
  165. local function lerp(a,b,c)
  166. return a+(b-a)*c
  167. end
  168. local function rndRange(rng)
  169. return math.random(-rng*1000,rng*1000)/1000
  170. end
  171. local magik2 = Instance.new("Part",part)
  172. magik2.Anchored = true
  173. magik2.Locked = true
  174. magik2.FormFactor = "Custom"
  175. magik2.Size = Vector3.new(1.2, 1.2, 1.2)
  176. magik2.TopSurface = "Smooth"
  177. magik2.BottomSurface = "Smooth"
  178. magik2.Transparency = 0
  179. magik2.Material = "Neon"
  180. magik2.CanCollide = false
  181.  
  182.  
  183. magik2.BrickColor = BrickColor.new("Really black")
  184.  
  185.  
  186. local mr = math.rad
  187. local rnx,rny,rnz = mr(rndRange(180)),mr(rndRange(180)),mr(rndRange(180))
  188. local cf = part.CFrame * CFrame.new(0, -.8, 0) * CFrame.Angles(rnx,rny,rnz)
  189. magik2.CFrame = cf
  190. for i = 0, 1, .05 do
  191. local newTrans = lerp(.8, 1, i)
  192. local ns = lerp(1,1.2,i)
  193. magik2.Transparency = newTrans
  194. magik2.Size = Vector3.new(ns,ns,ns)
  195. magik2.CFrame = cf
  196. wait()
  197. end
  198. magik2:Destroy()
  199. end)
  200. end
  201.  
  202.  
  203.  
  204. Spawn(function()
  205. while wait(.1) do
  206. Magik(RightArm)
  207. end
  208. end)
  209.  
  210. Spawn(function()
  211. while wait(.1) do
  212. Magik2(RightArm)
  213. end
  214. end)
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223. FloatPart = function()
  224. local Part = Instance.new('Part',Torso)
  225. Part.CFrame = CFrame.new(Torso.CFrame.X,workspace.Base.CFrame.Y+1,Torso.CFrame.Z) * CFrame.fromEulerAnglesXYZ(86.4,0,87)
  226. Part.Anchored = true
  227. Part.Material = 'Neon'
  228. Part.CanCollide = false
  229. Part.BrickColor = BrickColor.new(PrimaryColor)
  230. local Mesh = Instance.new('SpecialMesh',Part)
  231. Mesh.Scale = Vector3.new(4,4,.2)
  232. Mesh.MeshId = 'http://www.roblox.com/asset/?id=3270017'
  233. Mesh.VertexColor = Vector3.new(0,170,255)
  234. spawn(function()
  235. for i = 1,30 do
  236. Mesh.Scale = Mesh.Scale + Vector3.new(.04,.04,0)
  237. Part.Transparency = Part.Transparency + .035
  238. game["Run Service"].RenderStepped:wait()
  239. end
  240. Part:Destroy()
  241. end)
  242. end;
  243.  
  244. DubPart = function()
  245. local Part = Instance.new('Part',Torso)
  246. Part.CFrame = CFrame.new(Torso.CFrame.X,workspace.Base.CFrame.Y+1,Torso.CFrame.Z) * CFrame.fromEulerAnglesXYZ(86.4,0,87)
  247. Part.Anchored = true
  248. Part.CanCollide = false
  249. Part.Material = 'Neon'
  250. Part.BrickColor = BrickColor.new(SecondaryColor)
  251. local Mesh = Instance.new('SpecialMesh',Part)
  252. Mesh.Scale = Vector3.new(7,7,.2)
  253. Mesh.MeshId = 'http://www.roblox.com/asset/?id=3270017'
  254. Mesh.VertexColor = Vector3.new(0,170,255)
  255. spawn(function()
  256. for i = 1,30 do
  257. Mesh.Scale = Mesh.Scale + Vector3.new(.04,.04,0)
  258. Part.Transparency = Part.Transparency + .035
  259. game["Run Service"].RenderStepped:wait()
  260. end
  261. Part:Destroy()
  262. end)
  263. end;
  264.  
  265. Fade = function(Item,t)
  266. spawn(function()
  267. for i = 1,20 do
  268. Item.Transparency = Item.Transparency + .05
  269. if t then
  270. wait(t)
  271. else
  272. wait()
  273. end
  274. end
  275. Item:Destroy()
  276. end)
  277. end
  278.  
  279. Particle = function(PrimaryColor)
  280. local Part = Instance.new('Part',Torso)
  281. Part.BrickColor = BrickColor.new(PrimaryColor)
  282. Part.Anchored = true
  283. Part.Transparency = .3
  284. Part.CanCollide = false
  285. Part.CFrame = Torso.CFrame * CFrame.new(math.random(-10,10),math.random(-15,15),math.random(-10,10)) * CFrame.fromEulerAnglesXYZ(math.random(),math.random(),math.random())
  286. local Mesh = Instance.new('BlockMesh',Part)
  287. Mesh.Scale = Vector3.new(.05,.1,.1)
  288. spawn(function()
  289. for i = 1,40 do
  290. Part.Transparency = Part.Transparency + .0125
  291. Part.CFrame = Part.CFrame * CFrame.new(0,-.07,0)
  292. game["Run Service"].RenderStepped:wait()
  293. end
  294. Part:Destroy()
  295. end)
  296. end;
  297.  
  298. --[[spawn(function()
  299. while wait() do
  300. wait(.05)
  301. FloatPart()
  302. wait(.08)
  303. FloatPart()
  304. wait(.05)
  305. DubPart()
  306. wait(.08)
  307. end
  308. end)]]
  309.  
  310. game["Run Service"].RenderStepped:connect(function(_)
  311. Particle("Royal purple")
  312. Particle("Really black")
  313. --Character['HumanoidRootPart'].C1 = Character['HumanoidRootPart'].C1 * CFrame.new(0,Height+math.sin(tick())/150,0)
  314. end)
  315.  
  316.  
  317.  
  318. particle = function(parent, col1, col2, lightemis, size, texture, transparency, zoffset, accel, drag, ltp, velinher, emisdir, enabled, lifetime, rate, rotation, rotspeed, speed, velspread)
  319. local fp = it("ParticleEmitter")
  320. fp.Parent = parent
  321. fp.Color = cs(col1, col2)
  322. fp.LightEmission = lightemis
  323. fp.Size = size
  324. fp.Texture = texture
  325. fp.Transparency = transparency
  326. fp.ZOffset = zoffset
  327. fp.Acceleration = accel
  328. fp.Drag = drag
  329. fp.LockedToPart = ltp
  330. fp.VelocityInheritance = velinher
  331. fp.EmissionDirection = emisdir
  332. fp.Enabled = enabled
  333. fp.Lifetime = lifetime
  334. fp.Rate = rate
  335. fp.Rotation = rotation
  336. fp.RotSpeed = rotspeed
  337. fp.Speed = speed
  338. fp.VelocitySpread = velspread
  339. return fp
  340. end
  341.  
  342.  
  343.  
  344.  
  345. local fengui = it("GuiMain")
  346. fengui.Parent = Player.PlayerGui
  347. fengui.Name = "WeaponGUI"
  348. local fenframe1 = it("TextLabel")
  349. fenframe1.Parent = fengui
  350. fenframe1.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  351. fenframe1.BackgroundTransparency = 0.3
  352. fenframe1.BorderSizePixel = 5
  353. fenframe1.BorderColor3 = Color3.new(1, 1, 1)
  354. fenframe1.Size = UDim2.new(0.05, 0, 0.1, 0)
  355. fenframe1.Position = UDim2.new(0.325, 0, 0.7, 0)
  356. fenframe1.Text = "Z"
  357. fenframe1.TextWrapped = true
  358. fenframe1.FontSize = 7
  359. fenframe1.TextColor3 = Color3.new(1, 1, 1)
  360. local fenframe1a = it("TextLabel")
  361. fenframe1a.Parent = fengui
  362. fenframe1a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  363. fenframe1a.BackgroundTransparency = 0.3
  364. fenframe1a.BorderSizePixel = 5
  365. fenframe1a.BorderColor3 = Color3.new(1, 1, 1)
  366. fenframe1a.Size = UDim2.new(0.05, 0, 0.1, 0)
  367. fenframe1a.Position = UDim2.new(0.325, 0, 0.7, 0)
  368. fenframe1a.Text = ""
  369. local fenframe2 = it("TextLabel")
  370. fenframe2.Parent = fengui
  371. fenframe2.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  372. fenframe2.BackgroundTransparency = 0.3
  373. fenframe2.BorderSizePixel = 5
  374. fenframe2.BorderColor3 = Color3.new(1, 1, 1)
  375. fenframe2.Size = UDim2.new(0.05, 0, 0.1, 0)
  376. fenframe2.Position = UDim2.new(0.425, 0, 0.7, 0)
  377. fenframe2.Text = "X"
  378. fenframe2.TextWrapped = true
  379. fenframe2.FontSize = 7
  380. fenframe2.TextColor3 = Color3.new(1, 1, 1)
  381. local fenframe2a = it("TextLabel")
  382. fenframe2a.Parent = fengui
  383. fenframe2a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  384. fenframe2a.BackgroundTransparency = 0.3
  385. fenframe2a.BorderSizePixel = 5
  386. fenframe2a.BorderColor3 = Color3.new(1, 1, 1)
  387. fenframe2a.Size = UDim2.new(0.05, 0, 0.1, 0)
  388. fenframe2a.Position = UDim2.new(0.425, 0, 0.7, 0)
  389. fenframe2a.Text = ""
  390. local fenframe3 = it("TextLabel")
  391. fenframe3.Parent = fengui
  392. fenframe3.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  393. fenframe3.BackgroundTransparency = 0.3
  394. fenframe3.BorderSizePixel = 5
  395. fenframe3.BorderColor3 = Color3.new(1, 1, 1)
  396. fenframe3.Size = UDim2.new(0.05, 0, 0.1, 0)
  397. fenframe3.Position = UDim2.new(0.525, 0, 0.7, 0)
  398. fenframe3.Text = "C"
  399. fenframe3.TextWrapped = true
  400. fenframe3.FontSize = 7
  401. fenframe3.TextColor3 = Color3.new(1, 1, 1)
  402. local fenframe3a = it("TextLabel")
  403. fenframe3a.Parent = fengui
  404. fenframe3a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  405. fenframe3a.BackgroundTransparency = 0.3
  406. fenframe3a.BorderSizePixel = 5
  407. fenframe3a.BorderColor3 = Color3.new(1, 1, 1)
  408. fenframe3a.Size = UDim2.new(0.05, 0, 0.1, 0)
  409. fenframe3a.Position = UDim2.new(0.525, 0, 0.7, 0)
  410. fenframe3a.Text = ""
  411. local fenframe4 = it("TextLabel")
  412. fenframe4.Parent = fengui
  413. fenframe4.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255)
  414. fenframe4.BackgroundTransparency = 0.3
  415. fenframe4.BorderSizePixel = 5
  416. fenframe4.BorderColor3 = Color3.new(1, 1, 1)
  417. fenframe4.Size = UDim2.new(0.05, 0, 0.1, 0)
  418. fenframe4.Position = UDim2.new(0.625, 0, 0.7, 0)
  419. fenframe4.Text = "V"
  420. fenframe4.TextWrapped = true
  421. fenframe4.FontSize = 7
  422. fenframe4.TextColor3 = Color3.new(1, 1, 1)
  423. local fenframe4a = it("TextLabel")
  424. fenframe4a.Parent = fengui
  425. fenframe4a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902)
  426. fenframe4a.BackgroundTransparency = 0.3
  427. fenframe4a.BorderSizePixel = 5
  428. fenframe4a.BorderColor3 = Color3.new(1, 1, 1)
  429. fenframe4a.Size = UDim2.new(0.05, 0, 0.1, 0)
  430. fenframe4a.Position = UDim2.new(0.625, 0, 0.7, 0)
  431. fenframe4a.Text = ""
  432. fenframe1a.Size = UDim2.new(0, 0, 0.1, 0)
  433. fenframe2a.Size = UDim2.new(0, 0, 0.1, 0)
  434. fenframe3a.Size = UDim2.new(0, 0, 0.1, 0)
  435. fenframe4a.Size = UDim2.new(0, 0, 0.1, 0)
  436. local RbxUtility = LoadLibrary("RbxUtility")
  437. local Create = RbxUtility.Create
  438. RemoveOutlines = function(part)
  439. part.TopSurface = 10
  440. end
  441.  
  442. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  443. 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})
  444. RemoveOutlines(Part)
  445. return Part
  446. end
  447.  
  448. CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  449. local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
  450. if Mesh == "SpecialMesh" then
  451. Msh.MeshType = MeshType
  452. Msh.MeshId = MeshId
  453. end
  454. return Msh
  455. end
  456.  
  457. CreateWeld = function(Parent, Part0, Part1, C0, C1)
  458. local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
  459. return Weld
  460. end
  461.  
  462. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  463. if hit.Parent == nil then
  464. return
  465. end
  466. local h = hit.Parent:FindFirstChild("Humanoid")
  467. for _,v in pairs(hit.Parent:children()) do
  468. if v:IsA("Humanoid") then
  469. h = v
  470. end
  471. end
  472. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  473. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  474. return
  475. end
  476. local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h})
  477. game:GetService("Debris"):AddItem(c, 0.5)
  478. if HitSound ~= nil and HitPitch ~= nil then
  479. CreateSound(HitSound, hit, 1, HitPitch)
  480. end
  481. local Damage = math.random(minim, maxim)
  482. local blocked = false
  483. local block = hit.Parent:findFirstChild("Block")
  484. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  485. blocked = true
  486. block.Value = block.Value - 1
  487. print(block.Value)
  488. end
  489. if blocked == false then
  490. HitHealth = h.Health
  491. h.Health = h.Health - Damage
  492. if mana < 100 then
  493. mana = mana + math.random(5, 10)
  494. end
  495. if mana > 100 then
  496. mana = 100
  497. end
  498. if HitHealth ~= h.Health and HitHealth ~= 0 and h.Health <= 0 and h.Parent.Name ~= "Lost Soul" then
  499. end
  500. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  501. else
  502. h.Health = h.Health - Damage / 2
  503. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  504. end
  505. if Type == "Knockdown" then
  506. local hum = hit.Parent.Humanoid
  507. hum.PlatformStand = true
  508. coroutine.resume(coroutine.create(function(HHumanoid)
  509. swait(1)
  510. HHumanoid.PlatformStand = false
  511. end
  512. ), hum)
  513. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  514. local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  515. 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})
  516. game:GetService("Debris"):AddItem(bodvol, 0.5)
  517. game:GetService("Debris"):AddItem(rl, 0.5)
  518. else
  519. do
  520. if Type == "Normal" then
  521. local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05})
  522. if knockback > 0 then
  523. vp.Parent = hit.Parent.Torso
  524. end
  525. game:GetService("Debris"):AddItem(vp, 0.5)
  526. else
  527. do
  528. if Type == "Up" then
  529. local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  530. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  531. else
  532. do
  533. if Type == "DarkUp" then
  534. coroutine.resume(coroutine.create(function()
  535. for i = 0, 1, 0.1 do
  536. swait()
  537. BlockEffect(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1)
  538. end
  539. end
  540. ))
  541. local bodyVelocity = Create("BodyVelocity")({velocity = vt(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit})
  542. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  543. else
  544. do
  545. if Type == "Snare" then
  546. 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})
  547. game:GetService("Debris"):AddItem(bp, 1)
  548. else
  549. do
  550. if Type == "Freeze" then
  551. 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})
  552. local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame})
  553. hit.Parent.Torso.Anchored = true
  554. coroutine.resume(coroutine.create(function(Part)
  555. swait(1.5)
  556. Part.Anchored = false
  557. end
  558. ), hit.Parent.Torso)
  559. game:GetService("Debris"):AddItem(BodPos, 3)
  560. game:GetService("Debris"):AddItem(BodGy, 3)
  561. end
  562. do
  563. local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true})
  564. game:GetService("Debris"):AddItem(debounce, Delay)
  565. c = Instance.new("ObjectValue")
  566. c.Name = "creator"
  567. c.Value = Player
  568. c.Parent = h
  569. game:GetService("Debris"):AddItem(c, 0.5)
  570. end
  571. end
  572. end
  573. end
  574. end
  575. end
  576. end
  577. end
  578. end
  579. end
  580. end
  581. end
  582. end
  583.  
  584. ShowDamage = function(Pos, Text, Time, Color)
  585. local Rate = 0.033333333333333
  586. if not Pos then
  587. local Pos = Vector3.new(0, 0, 0)
  588. end
  589. local Text = Text or ""
  590. local Time = Time or 2
  591. if not Color then
  592. local Color = Color3.new(1, 0, 1)
  593. end
  594. local EffectPart = CreatePart(workspace, "Marble", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  595. EffectPart.Anchored = true
  596. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  597. 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})
  598. game.Debris:AddItem(EffectPart, Time + 0.1)
  599. EffectPart.Parent = game:GetService("Workspace")
  600. delay(0, function()
  601. local Frames = Time / Rate
  602. for Frame = 1, Frames do
  603. wait(Rate)
  604. local Percent = Frame / Frames
  605. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  606. TextLabel.TextTransparency = Percent
  607. end
  608. if EffectPart and EffectPart.Parent then
  609. EffectPart:Destroy()
  610. end
  611. end
  612. )
  613. end
  614.  
  615. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type)
  616. for _,c in pairs(workspace:children()) do
  617. local hum = c:findFirstChild("Humanoid")
  618. if hum ~= nil then
  619. local head = c:findFirstChild("Torso")
  620. if head ~= nil then
  621. local targ = head.Position - Part.Position
  622. local mag = targ.magnitude
  623. if mag <= magni and c.Name ~= Player.Name then
  624. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1)
  625. end
  626. end
  627. end
  628. end
  629. end
  630.  
  631. Handle = CreatePart(m, Enum.Material.Marble, 0, 1, "Royal purple", "Handle", Vector3.new(0.200000003, 1.57000017, 0.200000003))
  632. HandleWeld = CreateWeld(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.982839942, 0.146006823, 0.234023571, 0.211453959, -0.977137685, 0.0221185088, -0.0402157828, -0.0313093588, -0.99870044, 0.976560295, 0.210289627, -0.0459168404))
  633. CreateMesh("CylinderMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1.5, 1, 1.5))
  634. FakeHandle = CreatePart(m, Enum.Material.Marble, 0, 1, "Royal purple", "FakeHandle", Vector3.new(0.200000003, 1.57000017, 0.200000003))
  635. 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, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
  636. Part = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part", Vector3.new(0.200000003, 1, 0.200000003))
  637. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.07288361e-006, 0.683865368, -4.76837158e-007, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
  638. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(2, 0.5, 2))
  639. Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
  640. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.31791997, -0.975689411, 2.925138, 3.06405127e-006, 0.707111418, 0.707102299, -0.999756992, 0.0155918654, -0.0155877285, -0.0220473036, -0.706930399, 0.706939638))
  641. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  642. Part = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part", Vector3.new(1, 0.729999959, 1))
  643. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.4692868, -3.70743895, -1.52587891e-005, 0.916809797, -0.399324507, 1.15483999e-006, 0.399324447, 0.916809678, -4.00096178e-006, 5.56348823e-007, 4.12762165e-006, 1))
  644. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.200000003))
  645. Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
  646. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.31796861, -0.99111104, 3.62495184, 3.06405127e-006, 0.707111418, 0.707102299, -0.999756992, 0.0155918654, -0.0155877285, -0.0220473036, -0.706930399, 0.706939638))
  647. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  648. Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
  649. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.64674854, -0.903340101, -0.354405403, -1.83284283e-006, -1.00000012, 3.39746475e-006, -0.999756992, 1.90362334e-006, 0.0220472421, -0.0220472496, -3.36021185e-006, -0.999756992))
  650. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  651. Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
  652. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0155968666, -0.981806874, 5.01632404, 4.59002331e-006, 1.38655305e-005, 1, -0.999757051, 0.0220471006, 4.27453779e-006, -0.0220471006, -0.999757051, 1.39661133e-005))
  653. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  654. Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
  655. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.015683651, -0.99636519, 4.31590414, 4.59002331e-006, 1.38655305e-005, 1, -0.999757051, 0.0220471006, 4.27453779e-006, -0.0220471006, -0.999757051, 1.39661133e-005))
  656. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  657. Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
  658. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.2746892, -0.975648642, 2.9260354, 2.64961272e-006, -0.707099259, 0.707114458, -0.999756992, 0.0155881718, 0.0155915832, -0.0220474396, -0.706942558, -0.706927299))
  659. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  660. Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
  661. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.27468133, -0.991158009, 3.62575912, 2.64961272e-006, -0.707099259, 0.707114458, -0.999756992, 0.0155881718, 0.0155915832, -0.0220474396, -0.706942558, -0.706927299))
  662. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  663. Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
  664. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0155587196, -1.11407149, 4.663311, 4.59002331e-006, 1.38655305e-005, 1, -0.999757051, 0.0220471006, 4.27453779e-006, -0.0220471006, -0.999757051, 1.39661133e-005))
  665. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.550000012, 1, 0.550000012))
  666. Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
  667. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0131573677, 0.00466442108, 4.61167336, -1.74657907e-006, -1.09747052e-005, -1.00000012, 0.764525652, -0.644593418, 5.77419996e-006, -0.644593358, -0.764525771, 9.49576497e-006))
  668. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.550000012, 1, 0.550000012))
  669. Cone = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Cone", Vector3.new(1, 1.01999998, 1))
  670. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.6467495, -0.918762922, 0.345379829, -1.83284283e-006, -1.00000012, 3.39746475e-006, -0.999756992, 1.90362334e-006, 0.0220472421, -0.0220472496, -3.36021185e-006, -0.999756992))
  671. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.5, 0.200000003))
  672. Cone = CreatePart(m, Enum.Material.Marble, 0, 0, "Royal purple", "Cone", Vector3.new(0.200000003, 0.200000003, 0.200000003))
  673. ConeWeld = CreateWeld(m, FakeHandle, Cone, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00376915932, -3.44346094, -0.00172424316, -1.00000012, -1.70432031e-006, 1.69267878e-007, 1.70432031e-006, -1.00000012, -2.12341547e-007, 1.75088644e-007, -2.12341547e-007, 1.00000012))
  674. CreateMesh("SpecialMesh", Cone, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=1778999", Vector3.new(0, 0, 0), Vector3.new(0.200000003, 0.300000012, 0.200000003))
  675. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(1, 1, 1))
  676. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.31130219e-006, -3.5749507, 0, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
  677. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.5, 0.400000006))
  678. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.200000003, 4.57000017, 0.200000003))
  679. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(5.96046448e-007, -1.50000107, 9.53674316e-007, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
  680. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1.5, 1, 1.5))
  681. Part = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part", Vector3.new(1, 1.16999996, 1))
  682. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.68149614, -0.0198745728, -1.09672546e-005, 0.0220478568, 0.999756992, -2.0749867e-006, -0.999756932, 0.0220478605, -1.48452818e-006, -1.42678618e-006, 2.10851431e-006, 1.00000012))
  683. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  684. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(1, 0.870000005, 1))
  685. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.71543217, -0.0690839291, -9.53674316e-006, 0.19052954, 0.981681645, -1.97067857e-006, -0.981681526, 0.190529525, -1.91386789e-006, -1.49046537e-006, 2.29105353e-006, 1.00000012))
  686. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.899999976))
  687. Part22 = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part22", Vector3.new(1, 0.729999959, 1))
  688. PartWeld = CreateWeld(m, FakeHandle, Part22, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.51120782, -3.69066477, -7.15255737e-006, 0.911903143, 0.410405785, -3.35276127e-007, -0.410405725, 0.911903143, -1.79186463e-006, -4.35044058e-007, 1.76206231e-006, 1.00000012))
  689. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.200000003))
  690. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(1, 0.870000005, 1))
  691. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.71087646, -0.0231897831, -6.19888306e-006, 0.318961442, 0.947767794, -1.48266554e-006, -0.947767675, 0.318961442, -2.70921737e-006, -2.10118014e-006, 2.26870179e-006, 1.00000012))
  692. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.850000024))
  693. Part = CreatePart(m, Enum.Material.Marble, 0, 0, "Black", "Part", Vector3.new(1, 0.769999981, 1))
  694. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.68154573, -0.4009372, -5.7220459e-006, 0.516243339, 0.856442034, -8.04662704e-007, -0.856442034, 0.516243339, -4.18536365e-006, -3.15741636e-006, 2.8423965e-006, 1.00000012))
  695. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000012))
  696. Part = CreatePart(m, Enum.Material.Neon, 0, 0, "Royal purple", "Part", Vector3.new(0.200000003, 2.57999992, 0.200000003))
  697. PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.4570694e-006, 1.91385686, 4.76837158e-007, 1, 3.7252903e-009, 6.4028427e-009, 3.7252903e-009, 1.00000012, 0, 6.4028427e-009, 0, 1.00000012))
  698. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  699. Hitbox = CreatePart(m, Enum.Material.Marble, 0, 1, "Black", "Hitbox", Vector3.new(2.4000001, 3.67000008, 0.399999976))
  700. HitboxWeld = CreateWeld(m, FakeHandle, Hitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.76720476, 3.04898357, 0.00860214233, -0.699169815, 0.713988841, 0.0371726528, -0.713755548, -0.700063348, 0.0215496495, 0.0414094217, -0.0114653222, 0.999076545))
  701. rayCast = function(Position, Direction, Range, Ignore)
  702. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  703. end
  704.  
  705.  
  706. Spawn(function()
  707. while wait() do
  708. Magik(LeftArm)
  709. end
  710. end)
  711.  
  712. Spawn(function()
  713. while wait() do
  714. Magik2(LeftArm)
  715. end
  716. end)
  717.  
  718.  
  719. CreateSound = function(id, parent, vol, pit, looped)
  720. coroutine.resume(coroutine.create(function()
  721. local sou = Instance.new("Sound", parent or workspace)
  722. sou.Volume = vol
  723. sou.Pitch = pit or 1
  724. sou.SoundId = id
  725. sou.Looped = looped
  726. swait()
  727. sou:play()
  728. game:GetService("Debris"):AddItem(sou, 6)
  729. end
  730. ))
  731. end
  732.  
  733.  
  734. local getclosest = function(obj, distance)
  735. local last, lastx = distance + 1, nil
  736. for i,v in pairs(workspace:GetChildren()) do
  737. if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then
  738. local t = v.Torso
  739. local dist = t.Position - obj.Position.magnitude
  740. if dist <= distance and dist < last then
  741. last = dist
  742. lastx = v
  743. end
  744. end
  745. end
  746. return lastx
  747. end
  748.  
  749. BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  750. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  751. prt.Anchored = true
  752. prt.CFrame = cframe
  753. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  754. game:GetService("Debris"):AddItem(prt, 10)
  755. if Type == 1 or Type == nil then
  756. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  757. else
  758. if Type == 2 then
  759. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  760. end
  761. end
  762. end
  763.  
  764. SphereEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  765. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  766. prt.Anchored = true
  767. prt.CFrame = cframe
  768. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  769. game:GetService("Debris"):AddItem(prt, 10)
  770. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  771. end
  772.  
  773. RingEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  774. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  775. prt.Anchored = true
  776. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  777. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  778. game:GetService("Debris"):AddItem(prt, 10)
  779. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  780. end
  781.  
  782. CylinderEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  783. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  784. prt.Anchored = true
  785. prt.CFrame = cframe
  786. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  787. game:GetService("Debris"):AddItem(prt, 10)
  788. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  789. end
  790.  
  791. WaveEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  792. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  793. prt.Anchored = true
  794. prt.CFrame = cframe
  795. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  796. game:GetService("Debris"):AddItem(prt, 10)
  797. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  798. end
  799.  
  800. SpecialEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  801. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  802. prt.Anchored = true
  803. prt.CFrame = cframe
  804. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  805. game:GetService("Debris"):AddItem(prt, 10)
  806. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  807. end
  808.  
  809. DragonEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  810. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new())
  811. prt.Anchored = true
  812. prt.CFrame = cframe
  813. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://51177741", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  814. game:GetService("Debris"):AddItem(prt, 10)
  815. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  816. end
  817.  
  818. BreakEffect = function(brickcolor, cframe, x1, y1, z1)
  819. local prt = CreatePart(workspace, "Marble", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  820. prt.Anchored = true
  821. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  822. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  823. local num = math.random(10, 50) / 1000
  824. game:GetService("Debris"):AddItem(prt, 10)
  825. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  826. end
  827.  
  828. attackone = function()
  829. attack = true
  830. for i = 0, 1, 0.1 do
  831. swait()
  832. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  833. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  834. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), 0.3)
  835. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  836. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  837. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  838. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  839. end
  840. local con = Hitbox.Touched:connect(function(hit)
  841. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  842. end
  843. )
  844. CreateSound("http://www.roblox.com/asset/?id=234365549", Torso, 1, 1)
  845. for i = 0, 1, 0.1 do
  846. swait()
  847. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.3)
  848. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  849. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  850. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(-80)), 0.3)
  851. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  852. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  853. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-150)), 0.2)
  854. end
  855. con:disconnect()
  856. attack = false
  857. end
  858.  
  859. Deathwish = function()
  860. attack = true
  861. CreateSound("http://www.roblox.com/asset/?id=231917970", RootPart, 1, 1)
  862. for i = 0, 1, 0.05 do
  863. swait()
  864. WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 1, 0.1, 1, 0.09)
  865. BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 0.5, 0.5, 0.5, 0.08, 1)
  866. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  867. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(80)), 0.3)
  868. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
  869. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  870. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  871. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  872. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  873. end
  874. MagniDamage(RootPart, 5599, 1099, 1599, 0, "DarkUp")
  875. CreateSound("http://www.roblox.com/asset/?id=192410089", RootPart, 1, 1)
  876. BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 5, 5, 5, 0.06, 1)
  877. WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 2, 0.1, 2, 0.07)
  878. for i = 0, 1, 0.05 do
  879. swait()
  880. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  881. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(80)), 0.3)
  882. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
  883. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-190)), 0.3)
  884. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  885. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  886. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  887. end
  888. for i = 0, 1, 0.1 do
  889. swait()
  890. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-110)), 0.3)
  891. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(100)), 0.3)
  892. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
  893. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-80), math.rad(-90)), 0.3)
  894. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  895. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  896. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  897. end
  898. MagniDamage(RootPart, 55, 5, 10, -70, "Knockdown")
  899. CreateSound("http://www.roblox.com/asset/?id=192410089", RootPart, 1, 1.2)
  900. SphereEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 10, 10, 10, 0.06)
  901. BlockEffect(BrickColor.new("Black"), LeftArm.CFrame * cf(0, -1, 0), 5, 5, 5, 5, 5, 5, 0.06, 1)
  902. WaveEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, -2.5, 0), 5, 2, 5, 0.5, 1, 0.5, 0.07)
  903. for i = 0, 1, 0.1 do
  904. swait()
  905. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3)
  906. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(2 * math.cos(sine / 5)), math.rad(-4 * math.cos(sine / 25)), math.rad(50)), 0.3)
  907. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos(sine / 25)), math.rad(0), math.rad(190)), 0.3)
  908. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  909. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  910. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  911. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  912. end
  913. attack = false
  914. end
  915.  
  916. ChaosDriver = function()
  917. attack = true
  918. for i = 0, 1, 0.05 do
  919. swait()
  920. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  921. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3)
  922. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(90)), 0.3)
  923. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.3)
  924. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  925. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  926. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  927. end
  928. CreateSound("http://www.roblox.com/asset/?id=234365549", Torso, 1, 1)
  929. coroutine.resume(coroutine.create(function()
  930. for i = 1, 5 do
  931. swait()
  932. local ef = CreatePart(workspace, "Marble", 0, 1, BrickColor.new("Black"), "Effect", vt())
  933. ef.Anchored = true
  934. ef.CFrame = RootPart.CFrame * cf(0, 0, -10 * i)
  935. MagniDamage(ef, 17, 10, 15, 1, "DarkUp")
  936. game:GetService("Debris"):AddItem(ef, 0.5)
  937. CreateSound("http://www.roblox.com/asset/?id=231917784", ef, 1, 0.7)
  938. DragonEffect(BrickColor.new("Black"), RootPart.CFrame * cf(0, 0, -10 * i) * angles(math.rad(math.random(50, 90)), 0, math.rad(math.random(50, 90))), 5, 170, 5, 0, -10, 0, 0.07)
  939. DragonEffect(BrickColor.new("Magenta"), RootPart.CFrame * cf(0, 0, -10 * i) * angles(math.rad(math.random(50, 90)), 0, math.rad(math.random(50, 90))), 5, 150, 5, 0, -10, 0, 0.07)
  940. SpecialEffect(BrickColor.new("Really black"), Torso.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
  941. SpecialEffect(BrickColor.new("Magenta"), Torso.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
  942. SpecialEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
  943. SpecialEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
  944. end
  945. end
  946. ))
  947. for i = 0, 1, 0.1 do
  948. swait()
  949. BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
  950. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.3)
  951. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  952. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  953. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(-80)), 0.3)
  954. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  955. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  956. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-150)), 0.2)
  957. end
  958. attack = false
  959. end
  960.  
  961. attacktwo = function()
  962. attack = true
  963. soundn = true
  964. for i = 0, 1, 0.1 do
  965. swait()
  966. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
  967. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
  968. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(180)), 0.3)
  969. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  970. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  971. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  972. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
  973. end
  974. local con = Hitbox.Touched:connect(function(hit)
  975. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  976. end
  977. )
  978. CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
  979. coroutine.resume(coroutine.create(function()
  980. while soundn do
  981. wait(0.3)
  982. CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
  983. end
  984. end
  985. ))
  986. for i = 0, 1, 0.1 do
  987. swait()
  988. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
  989. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  990. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  991. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
  992. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  993. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  994. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  995. end
  996. con:disconnect()
  997. soundn = false
  998. attack = false
  999. end
  1000.  
  1001. local soundn = false
  1002. attackthree = function()
  1003. attack = true
  1004. soundn = true
  1005. for i = 0, 1, 0.1 do
  1006. swait()
  1007. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
  1008. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
  1009. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-50), math.rad(180)), 0.3)
  1010. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  1011. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  1012. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1013. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
  1014. end
  1015. local con = Hitbox.Touched:connect(function(hit)
  1016. Damagefunc(Hitbox, hit, 10, 15, math.random(1, 5), "Normal", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1017. end
  1018. )
  1019. CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
  1020. coroutine.resume(coroutine.create(function()
  1021. while soundn do
  1022. wait(0.3)
  1023. CreateSound("http://www.roblox.com/asset/?id=234365573", Torso, 1, 1)
  1024. end
  1025. end
  1026. ))
  1027. for i = 0, 1, 0.1 do
  1028. swait()
  1029. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
  1030. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  1031. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  1032. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
  1033. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  1034. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1035. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  1036. end
  1037. con:disconnect()
  1038. soundn = false
  1039. attack = false
  1040. end
  1041.  
  1042. ThanatosDriver = function()
  1043. attack = true
  1044. for i = 0, 1, 0.1 do
  1045. swait()
  1046. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
  1047. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
  1048. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(180)), 0.3)
  1049. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(-100)), 0.3)
  1050. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  1051. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1052. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
  1053. end
  1054. local con = Hitbox.Touched:connect(function(hit)
  1055. Damagefunc(Hitbox, hit, 30, 30, 50, "Knockdown", RootPart, 0.2, "rbxassetid://199149221", 0.8)
  1056. end
  1057. )
  1058. CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 0.7)
  1059. for i = 0, 1, 0.1 do
  1060. swait()
  1061. BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
  1062. BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2)
  1063. DragonEffect(BrickColor.new("Black"), Hitbox.CFrame * cf(0, 0, -2) * angles(math.rad(90), math.rad(-90), math.rad(90)), 1, 1, 1, 0.2, 0.5, 0.2, 0.08)
  1064. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(100)), 0.3)
  1065. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3)
  1066. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(30)), 0.3)
  1067. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(90), math.rad(0)), 0.3)
  1068. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  1069. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1070. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(170)), 0.2)
  1071. end
  1072. con:disconnect()
  1073. attack = false
  1074. end
  1075.  
  1076. LastResort = function()
  1077. attack = true
  1078. soundn = true
  1079. CreateSound("http://www.roblox.com/asset/?id=233096557", Torso, 1, 1)
  1080. MagniDamage(RootPart, 10, 5, 10, 0, "Knockdown")
  1081. SpecialEffect(BrickColor.new("Really black"), Torso.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
  1082. SpecialEffect(BrickColor.new("Magenta"), Torso.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
  1083. SpecialEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08)
  1084. SpecialEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 2, 2, 2, 3, 3, 3, 0.07)
  1085.  
  1086. RootPart.CFrame = RootPart.CFrame * cf(0, 0, 20)
  1087. for i = 0, 1, 0.1 do
  1088. swait()
  1089. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(-80)), 0.3)
  1090. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(80)), 0.3)
  1091. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(180)), 0.3)
  1092. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-90), math.rad(-100)), 0.3)
  1093. RH.C0 = clerp(RH.C0, cf(1, -1.2, 0) * RHCF * angles(math.rad(-10), math.rad(-50), math.rad(0)), 0.3)
  1094. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1095. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(200), math.rad(-100), math.rad(0)), 0.2)
  1096. end
  1097. CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 1)
  1098. coroutine.resume(coroutine.create(function()
  1099. while soundn do
  1100. wait(0.5)
  1101. CreateSound("http://www.roblox.com/asset/?id=231917871", Torso, 1, 1)
  1102. end
  1103. end
  1104. ))
  1105. for i = 0, 1, 0.1 do
  1106. swait()
  1107. MagniDamage(RootPart, 10, 5, 10, 0, "Normal")
  1108. Torso.Velocity = RootPart.CFrame.lookVector * 100
  1109. BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
  1110. BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2)
  1111. DragonEffect(BrickColor.new("Black"), Hitbox.CFrame * cf(0, 0, -2) * angles(math.rad(90), math.rad(90), math.rad(90)), 1, 1, 1, 0.2, 0.5, 0.2, 0.08)
  1112. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
  1113. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  1114. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  1115. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
  1116. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  1117. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1118. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  1119. end
  1120. for i = 0, 1, 0.1 do
  1121. swait()
  1122. MagniDamage(RootPart, 10, 3, 3, 0, "Normal")
  1123. Torso.Velocity = RootPart.CFrame.lookVector * 100
  1124. BlockEffect(BrickColor.new("Really black"), Hitbox.CFrame, 5, 5, 5, 3, 3, 3, 0.08, 1)
  1125. BlockEffect(BrickColor.new("Magenta"), Hitbox.CFrame, 3, 3, 3, 3, 3, 3, 0.08, 2)
  1126. DragonEffect(BrickColor.new("Black"), Hitbox.CFrame * cf(0, 0, -2) * angles(math.rad(90), math.rad(90), math.rad(90)), 1, 1, 1, 0.2, 0.5, 0.2, 0.08)
  1127. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * i)), 0.3)
  1128. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-100)), 0.3)
  1129. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(30), math.rad(90)), 0.3)
  1130. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(-30)), 0.3)
  1131. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  1132. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1133. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(190), math.rad(0), math.rad(-100)), 0.2)
  1134. end
  1135. soundn = false
  1136. attack = false
  1137. end
  1138.  
  1139. ob1u = function()
  1140. end
  1141.  
  1142. ob1d = function()
  1143. if attack == false and attacktype == 1 then
  1144. attacktype = 2
  1145. attackone()
  1146. else
  1147. if attack == false and attacktype == 2 then
  1148. attacktype = 3
  1149. attacktwo()
  1150. else
  1151. if attack == false and attacktype == 3 then
  1152. attacktype = 1
  1153. attackthree()
  1154. end
  1155. end
  1156. end
  1157. end
  1158.  
  1159. key = function(k)
  1160. k = k:lower()
  1161. if attack == false and k == "z" and zenabled == true then
  1162. zenabled = false
  1163. coroutine.resume(coroutine.create(function()
  1164. for i = 1, 0, -0.02 do
  1165. swait()
  1166. fenframe1a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1167. end
  1168. zenabled = true
  1169. fenframe1a.Size = UDim2.new(0, 0, 0.1, 0)
  1170. end
  1171. ))
  1172. ThanatosDriver()
  1173. else
  1174. if attack == false and k == "x" and xenabled == true then
  1175. xenabled = false
  1176. coroutine.resume(coroutine.create(function()
  1177. for i = 1, 0, -0.005 do
  1178. swait()
  1179. fenframe2a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1180. end
  1181. xenabled = true
  1182. fenframe2a.Size = UDim2.new(0, 0, 0.1, 0)
  1183. end
  1184. ))
  1185. LastResort()
  1186. else
  1187. if attack == false and k == "c" and cenabled == true then
  1188. cenabled = false
  1189. coroutine.resume(coroutine.create(function()
  1190. for i = 1, 0, -0.0025 do
  1191. swait()
  1192. fenframe3a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1193. end
  1194. cenabled = true
  1195. fenframe3a.Size = UDim2.new(0, 0, 0.1, 0)
  1196. end
  1197. ))
  1198. ChaosDriver()
  1199. else
  1200. if attack == false and k == "v" and venabled == true then
  1201. venabled = false
  1202. coroutine.resume(coroutine.create(function()
  1203. for i = 1, 0, -0.0005 do
  1204. swait()
  1205. fenframe4a.Size = UDim2.new(0.05 * i, 0, 0.1, 0)
  1206. end
  1207. venabled = true
  1208. fenframe4a.Size = UDim2.new(0, 0, 0.1, 0)
  1209. end
  1210. ))
  1211. Deathwish()
  1212. end
  1213. end
  1214. end
  1215. end
  1216. end
  1217.  
  1218. s = function(mouse)
  1219. mouse.Button1Down:connect(function()
  1220. ob1d(mouse)
  1221. end
  1222. )
  1223. mouse.Button1Up:connect(function()
  1224. ob1u(mouse)
  1225. end
  1226. )
  1227. mouse.KeyDown:connect(key)
  1228. end
  1229.  
  1230. s(mouse)
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237. rs = game:GetService'RunService'
  1238. plrs = game:GetService'Players'
  1239. lp = plrs.LocalPlayer
  1240. c = lp.Character
  1241. root = lp.Character.HumanoidRootPart
  1242. human = c.Humanoid
  1243. FPS = 0
  1244. inf = 0
  1245. opos1 = Vector3.new()
  1246. opos2 = Vector3.new()
  1247. opos3 = Vector3.new()
  1248. waves = Instance.new("Model", c)
  1249. res = Instance.new("Model", c)
  1250.  
  1251. local function b()
  1252. local t=tick();
  1253. local l=t%1*3;
  1254. local t=.5*math.pi*(l%1);
  1255. if l<1 then
  1256. return Color3.new(47,0,32);
  1257. elseif l<2 then
  1258. return Color3.new(47,0,35);
  1259. else
  1260. return Color3.new(0,0,0);
  1261. end;
  1262. end;
  1263. speedParts = function()
  1264. for i = 1, 4 do
  1265. local pos = Vector3.new(math.sin(math.rad(inf + 360 * i)) * 2, math.sin(math.rad(inf + 260 * i) + math.pi / 2) * 2, -Hitbox.Velocity / 5) * (math.sin(tick()) + 2)
  1266. local CFramepos = Hitbox.CFrame:toWorldSpace(CFrame.new(pos)).p
  1267. local opos
  1268. if i == 1 then
  1269. opos = opos1
  1270. elseif i == 2 then
  1271. opos = opos2
  1272. else
  1273. opos = opos3
  1274. end
  1275. local e
  1276. if #res:children() <= 3 then
  1277. e = Instance.new("Part")
  1278. else
  1279. e = res:FindFirstChild("Trail")
  1280. end
  1281. e.Parent = waves
  1282. e.Anchored = false
  1283. e.CanCollide = false
  1284. e.Transparency = 0
  1285. e.Material = "Neon"
  1286. e.Name = "Trail"
  1287. e.Color = b(); --Color = a();
  1288. e.Size = Vector3.new(.01, (CFramepos - opos).magnitude, .01)
  1289. e.CFrame = CFrame.new((CFramepos + opos) / 2, opos) * CFrame.Angles(math.pi / 2, 0, 0)
  1290. if i == 1 then
  1291. opos1 = CFramepos
  1292. elseif i == 2 then
  1293. opos2 = CFramepos
  1294. else
  1295. opos3 = CFramepos
  1296. end
  1297. end
  1298. end
  1299.  
  1300. rs.RenderStepped:connect(function()
  1301. FPS = 1 / rs.RenderStepped:wait()
  1302. for i, v in pairs (waves:children()) do
  1303. v.Transparency = v.Transparency + .05 / (FPS / 400)
  1304. if v.Transparency >= .98 then
  1305. v.Transparency = 1
  1306. v.Parent = res
  1307. end
  1308. end
  1309. inf = inf + (30 + root.Velocity.magnitude / 15) / (FPS / 400)
  1310. speedParts()
  1311. end)
  1312.  
  1313.  
  1314.  
  1315.  
  1316.  
  1317.  
  1318. while 1 do
  1319. swait()
  1320. Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude
  1321. velocity = RootPart.Velocity.y
  1322. sine = sine + change
  1323. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1324. if equipped == true or equipped == false then
  1325. if 1 < RootPart.Velocity.y and hit == nil then
  1326. Anim = "Jump"
  1327. if attack == false then
  1328. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1329. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(-4 * math.cos((sine) / 25)), math.rad(-30)), 0.3)
  1330. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos((sine) / 25)), math.rad(0), math.rad(190)), 0.3)
  1331. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1332. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1333. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1334. end
  1335. else
  1336. if RootPart.Velocity.y < -1 and hit == nil then
  1337. Anim = "Fall"
  1338. if attack == false then
  1339. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.3)
  1340. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(-4 * math.cos((sine) / 25)), math.rad(-30)), 0.3)
  1341. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10 * math.cos((sine) / 25)), math.rad(0), math.rad(190)), 0.3)
  1342. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1343. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1344. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1345. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(60), math.rad(100)), 0.2)
  1346. end
  1347. else
  1348. if Torsovelocity.x < 1 and Torsovelocity.z < 1 and hit ~= nil then
  1349. Anim = "Idle"
  1350. if attack == false then
  1351. change = 1
  1352. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2 - 0.1 * math.cos((sine) / 9)) * angles(math.rad(20), math.rad(-20), math.rad(-80)), 0.3)
  1353. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10 + 1 * math.cos((sine) / 9)), math.rad(-10 + 1 * math.cos((sine) / 9)), math.rad(80)), 0.3)
  1354. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.2, -0.5) * angles(math.rad(50), math.rad(0), math.rad(-30)), 0.3)
  1355. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -1) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  1356. RH.C0 = clerp(RH.C0, cf(1, -1.2 + 0.1 * math.cos((sine) / 9), 0) * RHCF * angles(math.rad(0), math.rad(-30), math.rad(20)), 0.3)
  1357. LH.C0 = clerp(LH.C0, cf(-1.3, -1 + 0.1 * math.cos((sine) / 9), 0) * LHCF * angles(math.rad(0), math.rad(30), math.rad(-20)), 0.3)
  1358. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(60), math.rad(70 - 1 * math.cos((sine) / 9)), math.rad(70)), 0.3)
  1359. end
  1360. else
  1361. if Torsovelocity.x > 2 and Torsovelocity.z > 2 and hit ~= nil then
  1362. Anim = "Walk"
  1363. if attack == false then
  1364. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2 - 0.1 * math.cos((sine) / 9)) * angles(math.rad(10), math.rad(-5), math.rad(-30)), 0.3)
  1365. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5 + 1 * math.cos((sine) / 9)), math.rad(-10 + 1 * math.cos((sine) / 9)), math.rad(30)), 0.3)
  1366. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.2, 0) * angles(math.rad(50), math.rad(0), math.rad(-10)), 0.3)
  1367. LW.C0 = clerp(LW.C0, CFrame.new(-0.5, 0.5, -1) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.3)
  1368. RH.C0 = clerp(RH.C0, cf(1, -1, 0 + 0.5 * math.cos((sine) / 5)) * RHCF * angles(math.rad(0), math.rad(0), math.rad(10 - 50 * math.cos((sine) / 5))), 0.3)
  1369. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5 - 0.5 * math.cos((sine) / 5)) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-10 - 50 * math.cos((sine) / 5))), 0.3)
  1370. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, cf(0, 0, 0) * angles(math.rad(60), math.rad(50 - 1 * math.cos((sine) / 9)), math.rad(120)), 0.3)
  1371. end
  1372. end
  1373. end
  1374. end
  1375. end
  1376. end
  1377. if 0 < #Effects then
  1378. for e = 1, #Effects do
  1379. if Effects[e] ~= nil then
  1380. local Thing = Effects[e]
  1381. if Thing ~= nil then
  1382. local Part = Thing[1]
  1383. local Mode = Thing[2]
  1384. local Delay = Thing[3]
  1385. local IncX = Thing[4]
  1386. local IncY = Thing[5]
  1387. local IncZ = Thing[6]
  1388. if Thing[1].Transparency <= 1 then
  1389. if Thing[2] == "Block1" then
  1390. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1391. Mesh = Thing[1].Mesh
  1392. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1393. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1394. else
  1395. if Thing[2] == "Block2" then
  1396. Thing[1].CFrame = Thing[1].CFrame
  1397. Mesh = Thing[7]
  1398. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1399. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1400. else
  1401. if Thing[2] == "Cylinder" then
  1402. Mesh = Thing[1].Mesh
  1403. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1404. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1405. else
  1406. if Thing[2] == "Blood" then
  1407. Mesh = Thing[7]
  1408. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1409. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1410. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1411. else
  1412. if Thing[2] == "Elec" then
  1413. Mesh = Thing[1].Mesh
  1414. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1415. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1416. else
  1417. if Thing[2] == "Disappear" then
  1418. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1419. else
  1420. if Thing[2] == "Shatter" then
  1421. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1422. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1423. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1424. Thing[6] = Thing[6] + Thing[5]
  1425. end
  1426. end
  1427. end
  1428. end
  1429. end
  1430. end
  1431. end
  1432. else
  1433. Part.Parent = nil
  1434. table.remove(Effects, e)
  1435. end
  1436. end
  1437. end
  1438. end
  1439. end
  1440. endCharacter = Player.Character
  1441. PlayerGui = Player.PlayerGui
  1442. Backpack = Player.Backpack
  1443. Torso = Character.Torso
  1444. Head = Character.Head
  1445. Humanoid = Character.Humanoid
  1446. LeftArm = Character["Left Arm"]
  1447. LeftLeg = Character["Left Leg"]
  1448. RightArm = Character["Right Arm"]
  1449. RightLeg = Character["Right Leg"]
  1450. LS = Torso["Left Shoulder"]
  1451. LH = Torso["Left Hip"]
  1452. RS = Torso["Right Shoulder"]
  1453. RH = Torso["Right Hip"]
  1454. Neck = Torso.Neck
  1455. it = Instance.new
  1456. vt = Vector3.new
  1457. cf = CFrame.new
  1458. euler = CFrame.fromEulerAnglesXYZ
  1459. angles = CFrame.Angles
  1460. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  1461. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  1462. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1463. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1464. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1465. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1466. RootPart = Character.HumanoidRootPart
  1467. RootJoint = RootPart.RootJoint
  1468. RootCF = euler(-1.57, 0, 3.14)
  1469. attack = false
  1470. attackdebounce = false
  1471. MMouse = Player:GetMouse()
  1472. combo = 0
  1473. local hitfloor, posfloor = nil, nil
  1474. local idle = 0
  1475. local Anim = "Idle"
  1476. local Effects = {}
  1477. local Weapon = {}
  1478. local Welds = {}
  1479. local decreaseatk = 0
  1480. local decreasedef = 0
  1481. local decreasemvmt = 0
  1482. local TopStaff = {}
  1483. local TSCF = cf(0, 0, 0)
  1484. local BotStaff = {}
  1485. local BSCF = cf(0, 0, 0)
  1486. local Orbs = {}
  1487. local OOrbs = {}
  1488. local Protected = {}
  1489. local O1 = false
  1490. local O2 = false
  1491. local O3 = false
  1492. local O4 = false
  1493. local eCharge = false
  1494. local energ = 0
  1495. local smite = false
  1496. local smtarget = nil
  1497. local move1 = "(Z)\nOverload"
  1498. local move2 = "(X)\nDischarge"
  1499. local move3 = "(C)\nSmite"
  1500. local move4 = "(V)\nUnleashed Diety"
  1501. local cooldowns = {}
  1502. local cooldown1 = 0
  1503. table.insert(cooldowns, cooldown1)
  1504. local cooldown2 = 0
  1505. table.insert(cooldowns, cooldown2)
  1506. local cooldown3 = 0
  1507. table.insert(cooldowns, cooldown3)
  1508. local cooldown4 = 0
  1509. table.insert(cooldowns, cooldown4)
  1510. local cooldownsadd = {}
  1511. local cooldownadd1 = 0.35
  1512. table.insert(cooldownsadd, cooldownadd1)
  1513. local cooldownadd2 = 0.16
  1514. table.insert(cooldownsadd, cooldownadd2)
  1515. local cooldownadd3 = 0.1
  1516. table.insert(cooldownsadd, cooldownadd3)
  1517. local cooldownadd4 = 0.08
  1518. table.insert(cooldownsadd, cooldownadd4)
  1519. local cooldownmax = 100
  1520. player = nil
  1521. RSH = nil
  1522. RW = Instance.new("Motor")
  1523. LW = Instance.new("Motor")
  1524. RW.Name = "Right Shoulder"
  1525. LW.Name = "Left Shoulder"
  1526. LH = Torso["Left Hip"]
  1527. RH = Torso["Right Hip"]
  1528. TorsoColor = Torso.BrickColor
  1529. TorsoRed = TorsoColor.Color.r
  1530. TorsoGreen = TorsoColor.Color.g
  1531. TorsoBlue = TorsoColor.Color.b
  1532. NewCol = BrickColor.new("White").Color
  1533. NewCol2 = BrickColor.new("Lapis").Color
  1534. NewCol3 = BrickColor.new("Navy blue").Color
  1535. NewCol4 = BrickColor.new("Bright blue").Color
  1536. if Player:findFirstChild("Color1") ~= nil then
  1537. NewCol = Player.Color1.Value
  1538. end
  1539. if Player:findFirstChild("Color2") ~= nil then
  1540. NewCol2 = Player.Color2.Value
  1541. end
  1542. print(BrickColor.new(NewCol))
  1543. local mdec = Instance.new("NumberValue", Decrease)
  1544. mdec.Name = "DecreaseDef"
  1545. mdec.Value = 0.4
  1546. local mdec2 = Instance.new("NumberValue", Decrease)
  1547. mdec2.Name = "DecreaseMvmt"
  1548. mdec2.Value = 0.1
  1549. if Character:findFirstChild("Effects", true) ~= nil then
  1550. Character:findFirstChild("Effects", true).Parent = nil
  1551. end
  1552. local effects = it("Model", Character)
  1553. effects.Name = "Effects"
  1554. local Animate = Humanoid.Animator
  1555. local canjump = true
  1556. removeControl = function()
  1557. canjump = false
  1558. end
  1559. resumeControl = function()
  1560. canjump = true
  1561. end
  1562. Player.Character.Humanoid.Changed:connect(function()
  1563. if canjump == false then
  1564. Player.Character.Humanoid.Jump = false
  1565. end
  1566. end)
  1567. swait = function(num)
  1568. if num == 0 or num == nil then
  1569. Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
  1570. else
  1571. for i = 0, num do
  1572. Player.PlayerGui.Pacemaker.Heartbeat.Event:wait()
  1573. end
  1574. end
  1575. end
  1576. ArtificialHB = Instance.new("BindableEvent", script)
  1577. ArtificialHB.Name = "Heartbeat"
  1578.  
  1579. script:WaitForChild("Heartbeat")
  1580.  
  1581. frame = 1 / 40
  1582. tf = 0
  1583. allowframeloss = true
  1584. tossremainder = false
  1585. lastframe = tick()
  1586. script.Heartbeat:Fire()
  1587.  
  1588. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1589. tf = tf + s
  1590. if tf >= frame then
  1591. if allowframeloss then
  1592. script.Heartbeat:Fire()
  1593. lastframe = tick()
  1594. else
  1595. for i = 1, math.floor(tf / frame) do
  1596. script.Heartbeat:Fire()
  1597. end
  1598. lastframe = tick()
  1599. end
  1600. if tossremainder then
  1601. tf = 0
  1602. else
  1603. tf = tf - frame * math.floor(tf / frame)
  1604. end
  1605. end
  1606. end)
  1607. function swait(num)
  1608. if num == 0 or num == nil then
  1609. ArtificialHB.Event:wait()
  1610. else
  1611. for i = 0, num do
  1612. ArtificialHB.Event:wait()
  1613. end
  1614. end
  1615. end
  1616. if Character:findFirstChild("Ezelle", true) ~= nil then
  1617. Character:findFirstChild("Ezelle", true).Parent = nil
  1618. end
  1619. if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then
  1620. Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil
  1621. end
  1622. if Character:findFirstChild("Stats", true) ~= nil then
  1623. Character:findFirstChild("Stats", true).Parent = nil
  1624. end
  1625. local Stats = Instance.new("BoolValue")
  1626. Stats.Name = "Stats"
  1627. Stats.Parent = Character
  1628. local Atk = Instance.new("NumberValue")
  1629. Atk.Name = "Damage"
  1630. Atk.Parent = Stats
  1631. Atk.Value = 1
  1632. local Def = Instance.new("NumberValue")
  1633. Def.Name = "Defense"
  1634. Def.Parent = Stats
  1635. Def.Value = 1
  1636. local Mvmt = Instance.new("NumberValue")
  1637. Mvmt.Name = "Movement"
  1638. Mvmt.Parent = Stats
  1639. Mvmt.Value = 1
  1640. local Block = Instance.new("BoolValue")
  1641. Block.Name = "Block"
  1642. Block.Parent = Stats
  1643. Block.Value = false
  1644. local Stun = Instance.new("NumberValue")
  1645. Stun.Name = "Stun"
  1646. Stun.Parent = Stats
  1647. Stun.Value = 0
  1648. local StunT = Instance.new("NumberValue")
  1649. StunT.Name = "StunThreshold"
  1650. StunT.Parent = Stats
  1651. StunT.Value = 100
  1652. local Rooted = Instance.new("BoolValue")
  1653. Rooted.Name = "Rooted"
  1654. Rooted.Parent = Stats
  1655. Rooted.Value = false
  1656. local Stunned = Instance.new("BoolValue")
  1657. Stunned.Name = "Stunned"
  1658. Stunned.Parent = Stats
  1659. Stunned.Value = false
  1660. local Stagger = Instance.new("BoolValue")
  1661. Stagger.Name = "Stagger"
  1662. Stagger.Parent = Stats
  1663. Stagger.Value = false
  1664. local StaggerHit = Instance.new("BoolValue")
  1665. StaggerHit.Name = "StaggerHit"
  1666. StaggerHit.Parent = Stats
  1667. StaggerHit.Value = false
  1668. local RecentEnemy = Instance.new("ObjectValue")
  1669. RecentEnemy.Name = "RecentEnemy"
  1670. RecentEnemy.Parent = Stats
  1671. RecentEnemy.Value = nil
  1672. local Decrease = Instance.new("BoolValue")
  1673. Decrease.Name = "Decrease"
  1674. Decrease.Parent = Stats
  1675. Decrease.Value = false
  1676. local mana = Instance.new("NumberValue")
  1677. mana.Name = "Mana"
  1678. mana.Parent = Stats
  1679. mana.Value = 100
  1680. NoOutline = function(Part)
  1681. Part.TopSurface = 10
  1682. end
  1683. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  1684. local fp = it("Part")
  1685. fp.formFactor = formfactor
  1686. fp.Parent = parent
  1687. fp.Reflectance = reflectance
  1688. fp.Transparency = transparency
  1689. fp.CanCollide = false
  1690. fp.Locked = true
  1691. fp.BrickColor = brickcolor
  1692. fp.Name = name
  1693. fp.Size = size
  1694. fp.Position = Torso.Position
  1695. NoOutline(fp)
  1696. fp.Material = "SmoothPlastic"
  1697. fp:BreakJoints()
  1698. return fp
  1699. end
  1700. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  1701. local mesh = it(Mesh)
  1702. mesh.Parent = part
  1703. if Mesh == "SpecialMesh" then
  1704. mesh.MeshType = meshtype
  1705. if meshid ~= "nil" then
  1706. if meshid == "rbxasset://fonts/leftarm.mesh" then
  1707. mesh.MeshId = meshid
  1708. else
  1709. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  1710. end
  1711. end
  1712. end
  1713. mesh.Offset = offset
  1714. mesh.Scale = scale
  1715. return mesh
  1716. end
  1717. weld = function(parent, part0, part1, c0)
  1718. local weld = it("Motor")
  1719. weld.Parent = parent
  1720. weld.Part0 = part0
  1721. weld.Part1 = part1
  1722. weld.C0 = c0
  1723. return weld
  1724. end
  1725. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  1726. local gui = it(GuiType)
  1727. gui.Parent = parent
  1728. gui.Text = text
  1729. gui.BackgroundTransparency = backtrans
  1730. gui.BackgroundColor3 = backcol
  1731. gui.SizeConstraint = "RelativeXY"
  1732. gui.TextXAlignment = "Center"
  1733. gui.TextYAlignment = "Center"
  1734. gui.Position = pos
  1735. gui.Size = size
  1736. gui.Font = "SourceSans"
  1737. gui.FontSize = "Size14"
  1738. gui.TextWrapped = false
  1739. gui.TextStrokeTransparency = 0
  1740. gui.TextColor = BrickColor.new("White")
  1741. return gui
  1742. end
  1743. local handle = nil
  1744. AesthPart = function(model, wldpar, reflec, trans, col, name, neon, meshh, mshtype, mshtxt, x1, y1, z1, ceef)
  1745. prt = part(3, model, reflec, trans, BrickColor.new(col), name, vt())
  1746. prt.Material = neon
  1747. msh = mesh(meshh, prt, mshtype, mshtxt, vt(0, 0, 0), vt(x1, y1, z1))
  1748. wld = weld(handle, prt, wldpar, ceef)
  1749. v = it("NumberValue", prt)
  1750. v.Value = trans
  1751. v.Name = "MainTransparency"
  1752. return prt, msh, wld
  1753. end
  1754. local Color1 = Torso.BrickColor
  1755. local fengui = it("GuiMain")
  1756. fengui.Parent = Player.PlayerGui
  1757. fengui.Name = "WeaponGUI"
  1758. local fenframe = it("Frame")
  1759. fenframe.Parent = fengui
  1760. fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
  1761. fenframe.BackgroundTransparency = 1
  1762. fenframe.BorderColor3 = Color3.new(17, 17, 17)
  1763. fenframe.Size = UDim2.new(0.1, 0, 0.1, 0)
  1764. fenframe.Position = UDim2.new(0.95, 0, 0.7, 0)
  1765. local fenframe2 = it("Frame")
  1766. fenframe2.Parent = fengui
  1767. fenframe2.BackgroundColor3 = Color3.new(255, 255, 255)
  1768. fenframe2.BackgroundTransparency = 1
  1769. fenframe2.BorderColor3 = Color3.new(17, 17, 17)
  1770. fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0)
  1771. fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0)
  1772. local fenframe3 = it("Frame")
  1773. fenframe3.Parent = fengui
  1774. fenframe3.BackgroundColor3 = Color3.new(255, 255, 255)
  1775. fenframe3.BackgroundTransparency = 1
  1776. fenframe3.BorderColor3 = Color3.new(17, 17, 17)
  1777. fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0)
  1778. fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0)
  1779. local fenframe4 = it("Frame")
  1780. fenframe4.Parent = fengui
  1781. fenframe4.BackgroundColor3 = Color3.new(255, 255, 255)
  1782. fenframe4.BackgroundTransparency = 1
  1783. fenframe4.BorderColor3 = Color3.new(17, 17, 17)
  1784. fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0)
  1785. fenframe4.Position = UDim2.new(0, 0, 0.7, 0)
  1786. local pressedf = false
  1787. local fenframe5 = it("Frame")
  1788. fenframe5.Parent = fengui
  1789. fenframe5.Parent = nil
  1790. fenframe5.BackgroundColor3 = Color3.new(0, 0, 0)
  1791. fenframe5.BackgroundTransparency = 1
  1792. fenframe5.BorderColor3 = Color3.new(0, 0, 0)
  1793. fenframe5.Size = UDim2.new(1, 0, 1, 0)
  1794. fenframe5.Position = UDim2.new(0, 0, 0, 0)
  1795. fenframe5.ZIndex = 2
  1796. local tellbar = gui("TextLabel", fenframe5, "Press \'F\' to equip your weapon.", 1, Color3.new(0, 0, 0), UDim2.new(0.25, 0, 0.25, 0), UDim2.new(0.5, 0, 0.5, 0))
  1797. tellbar.Font = "Arial"
  1798. tellbar.TextScaled = true
  1799. tellbar.TextTransparency = 1
  1800. tellbar.TextStrokeTransparency = 1
  1801. tellbar.ZIndex = 2
  1802. local fnumb = 0
  1803. local fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  1804. local fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  1805. local fenbarmana4 = gui("TextLabel", fenframe, "Mana(" .. mana.Value .. ")", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
  1806. local fenbardamage = gui("TextLabel", fenframe2, "Damage", 0.55, Color3.new(0.6078431372549, 0, 0), UDim2.new(-0.23, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
  1807. local fenbardef = gui("TextLabel", fenframe2, "Defense", 0.55, Color3.new(0, 0, 0.6078431372549), UDim2.new(-0.46, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
  1808. local fenbarmove = gui("TextLabel", fenframe2, "Walkspeed", 0.55, Color3.new(0, 0.6078431372549, 0), UDim2.new(1.03, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
  1809. local fenbarhp1 = gui("TextLabel", fenframe2, "", 0, Color3.new(0, 0, 0), UDim2.new(-0.46, 0, 1, 0), UDim2.new(1.92, 0, 0.4, 0))
  1810. local fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1811. local fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  1812. local fenbarstun1 = gui("TextLabel", fenframe4, "", 0, Color3.new(0, 0, 0), UDim2.new(0.2, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  1813. local fenbarstun2 = gui("TextLabel", fenframe4, "", 0, Color3.new(0.960784, 0.803922, 0.188235), UDim2.new(0.2, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  1814. local fenbarstun3 = gui("TextLabel", fenframe4, "Stun(" .. Stun.Value .. ")", 1, Color3.new(0.960784, 0.803922, 0.188235), UDim2.new(0.2, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
  1815. local fenbarmove1 = gui("TextButton", fenframe3, move1, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.1, 0, 0.1, 0), UDim2.new(0.4, 0, 0.4, 0))
  1816. fenbarmove1.ZIndex = 2
  1817. local fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1818. local fenbarmove2 = gui("TextButton", fenframe3, move2, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.6, 0, 0.1, 0), UDim2.new(0.4, 0, 0.4, 0))
  1819. fenbarmove2.ZIndex = 2
  1820. local fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1821. local fenbarmove3 = gui("TextButton", fenframe3, move3, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.1, 0, 0.6, 0), UDim2.new(0.4, 0, 0.4, 0))
  1822. fenbarmove3.ZIndex = 2
  1823. local fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1824. local fenbarmove4 = gui("TextButton", fenframe3, move4, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.6, 0, 0.6, 0), UDim2.new(0.4, 0, 0.4, 0))
  1825. fenbarmove4.ZIndex = 2
  1826. local fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  1827. local fenbarammo1 = gui("TextButton", fenframe2, "Orbs", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(1.26, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
  1828. local modelzorz = Instance.new("Model")
  1829. modelzorz.Parent = Character
  1830. modelzorz.Name = "Ezelle"
  1831. handle = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Handle", vt())
  1832. local prt1 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part01", vt())
  1833. msh1h = mesh("BlockMesh", handle, "", "", vt(0, 0, 0), vt(2, 2, 2))
  1834. msh1 = mesh("CylinderMesh", prt1, "", "", vt(0, 0, 0), vt(1.8, 7, 1.8))
  1835. local handlewld = weld(handle, handle, Torso, euler(0, 0, -0.8) * cf(0, 0, -0.7))
  1836. local wld1 = weld(handle, prt1, handle, euler(0, 0, 0) * cf(0, 0, 0))
  1837. local wld23 = weld(prt1, prt23, prt1, euler(0, 0, 0) * cf(0, 8.8, 0))
  1838. local wld27 = weld(prt1, prt27, prt1, euler(0, 0, 0) * cf(0, 8.8, 0))
  1839. prt2 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part02", "SmoothPlastic", "CylinderMesh", "nil", "nil", 2.8, 1, 2.8, euler(0, 0, 0) * cf(0, 0.8, 0))
  1840. prt3 = AesthPart(modelzorz, prt1, 0, 0, NewCol3, "Part03", "SmoothPlastic", "CylinderMesh", "nil", "nil", 2, 1, 2, euler(0, 0, 0) * cf(0, 1, 0))
  1841. prt4 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part04", "SmoothPlastic", "CylinderMesh", "nil", "nil", 2.1, 3, 2.1, euler(0, 0, 0) * cf(0, 1.4, 0))
  1842. prt5 = AesthPart(modelzorz, prt1, 0, 0, NewCol2, "Part05", "Neon", "CylinderMesh", "nil", "nil", 2.1, 0.9, 2.1, euler(0, 0, 0) * cf(0, 1, 0))
  1843. prt6 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part06", "SmoothPlastic", "BlockMesh", "nil", "nil", 2.3, 1, 2.3, euler(0, 0, 0) * cf(0, 1.8, 0))
  1844. prt7 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part07", "SmoothPlastic", "BlockMesh", "nil", "nil", 1, 3, 2, euler(0, 0, 0) * cf(0, 2.2, 0))
  1845. prt10 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part10", "SmoothPlastic", "CylinderMesh", "nil", "nil", 2.4, 2.1, 2.4, euler(1.57, 0, 0) * cf(0, 2.7, 0))
  1846. prt11 = AesthPart(modelzorz, prt1, 0, 0, NewCol3, "Part11", "SmoothPlastic", "CylinderMesh", "nil", "nil", 2.2, 2.15, 2.2, euler(1.57, 0, 0) * cf(0, 2.7, 0))
  1847. prt12 = AesthPart(modelzorz, prt1, 0, 0, NewCol2, "Part12", "Neon", "CylinderMesh", "nil", "nil", 2, 2.2, 2, euler(1.57, 0, 0) * cf(0, 2.7, 0))
  1848. prt13 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part13", "SmoothPlastic", "CylinderMesh", "nil", "nil", 3, 1.5, 3, euler(1.57, 0, 0) * cf(0, 2.7, 0))
  1849. prt14 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part14", "SmoothPlastic", "SpecialMesh", "Sphere", "nil", 1.5, 2.5, 2, euler(0, 0, 0) * cf(0, 2.9, 0))
  1850. prt15 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part15", "SmoothPlastic", "CylinderMesh", "nil", "nil", 1.4, 0.7, 1.4, euler(0, 0, 0) * cf(0, 3.1, 0))
  1851. prt16 = AesthPart(modelzorz, prt1, 0, 0, NewCol3, "Part16", "SmoothPlastic", "CylinderMesh", "nil", "nil", 1.3, 0.9, 1.3, euler(0, 0, 0) * cf(0, 3.26, 0))
  1852. prt17 = AesthPart(modelzorz, prt1, 0, 0, NewCol2, "Part17", "Neon", "CylinderMesh", "nil", "nil", 1.35, 0.5, 1.35, euler(0, 0, 0) * cf(0, 3.26, 0))
  1853. prt18 = AesthPart(modelzorz, prt1, 0, 0, NewCol2, "Part18", "Neon", "CylinderMesh", "nil", "nil", 1.4, 0.3, 1.4, euler(0, 0, 0) * cf(0, 3.38, 0))
  1854. prt23 = AesthPart(modelzorz, prt10, 0, 1, NewCol3, "Part23", "SmoothPlastic", "BlockMesh", "nil", "nil", 2, 2, 2, euler(0, math.rad(0), 0) * cf(-0.045, 0, 0))
  1855. prt24 = AesthPart(modelzorz, prt23, 0, 0, NewCol, "Part24", "SmoothPlastic", "BlockMesh", "nil", "nil", 0.5, 2, 4, euler(0, 0, 0) * cf(0, 0, 0.5))
  1856. prt25 = AesthPart(modelzorz, prt24, 0, 0, NewCol, "Part25", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 2, 1, 1.5, euler(3.14, 0, -1.57) * cf(-0.15, 0, -0.25))
  1857. prt26 = AesthPart(modelzorz, prt24, 0, 0, NewCol, "Part26", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 2, 1, 2.5, euler(3.14, 0, -1.57) * euler(3.14, 0, 0) * cf(-0.15, 0, 0.15))
  1858. prt27 = AesthPart(modelzorz, prt10, 0, 1, NewCol3, "Part27", "SmoothPlastic", "BlockMesh", "nil", "nil", 2, 2, 2, euler(0, math.rad(0), 3.14) * cf(0.045, 0, 0))
  1859. prt28 = AesthPart(modelzorz, prt27, 0, 0, NewCol, "Part28", "SmoothPlastic", "BlockMesh", "nil", "nil", 0.5, 2, 4, euler(0, 0, 0) * cf(0, 0, 0.5))
  1860. prt29 = AesthPart(modelzorz, prt28, 0, 0, NewCol, "Part29", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 2, 1, 1.5, euler(3.14, 0, -1.57) * cf(-0.15, 0, -0.25))
  1861. prt30 = AesthPart(modelzorz, prt28, 0, 0, NewCol, "Part30", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 2, 1, 2.5, euler(3.14, 0, -1.57) * euler(3.14, 0, 0) * cf(-0.15, 0, 0.15))
  1862. prt31 = AesthPart(modelzorz, prt1, 0, 0, NewCol3, "Part31", "SmoothPlastic", "BlockMesh", "nil", "nil", 0.8, 2, 2.35, euler(0, 0, 0) * cf(0, 2, 0))
  1863. prt32 = AesthPart(modelzorz, prt1, 0, 0, NewCol2, "Part32", "Neon", "BlockMesh", "nil", "nil", 0.6, 1.8, 2.4, euler(0, 0, 0) * cf(0, 2, 0))
  1864. prt33 = AesthPart(modelzorz, prt1, 0, 0, NewCol3, "Part33", "SmoothPlastic", "CylinderMesh", "nil", "nil", 1.7, 2, 1.7, euler(0, 0, 0) * cf(0, -0.9, 0))
  1865. prt34 = AesthPart(modelzorz, prt1, 0, 0, NewCol2, "Part34", "Neon", "CylinderMesh", "nil", "nil", 1.75, 1.5, 1.75, euler(0, 0, 0) * cf(0, -0.9, 0))
  1866. prt35 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part35", "SmoothPlastic", "CylinderMesh", "nil", "nil", 2.2, 2.4, 2.2, euler(0, 0, 0) * cf(0, -1.34, 0))
  1867. prt36 = AesthPart(modelzorz, prt1, 0, 0, NewCol3, "Part36", "SmoothPlastic", "CylinderMesh", "nil", "nil", 2.2, 1, 2.2, euler(0, 0, 0) * cf(0, -1.68, 0))
  1868. prt37 = AesthPart(modelzorz, prt1, 0, 0, NewCol2, "Part37", "Neon", "CylinderMesh", "nil", "nil", 2.25, 0.8, 2.25, euler(0, 0, 0) * cf(0, -1.68, 0))
  1869. prt38 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part38", "SmoothPlastic", "CylinderMesh", "nil", "nil", 2.3, 0.5, 2.3, euler(0, 0, 0) * cf(0, -1.83, 0))
  1870. prt39 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part39", "SmoothPlastic", "SpecialMesh", "FileMesh", "1778999", 0.47, 0.5, 0.47, euler(3.14, 0, 0) * cf(0, -1.7, 0))
  1871. prt40 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part40", "SmoothPlastic", "CylinderMesh", "nil", "nil", 3.2, 0.5, 3.2, euler(0, 0, 0) * cf(0, -2.15, 0))
  1872. prt41 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part41", "SmoothPlastic", "CylinderMesh", "nil", "nil", 1.8, 3, 1.8, euler(0, 0, 0) * cf(0, -2.5, 0))
  1873. prt42 = AesthPart(modelzorz, prt1, 0, 0, NewCol3, "Part42", "SmoothPlastic", "CylinderMesh", "nil", "nil", 4, 0.5, 4, euler(0, 0, 0) * cf(0, -2.8, 0))
  1874. prt54 = AesthPart(modelzorz, prt1, 0, 0.5, "Really blue", "Part54", "Neon", "SpecialMesh", "FileMesh", "1185246", -1.8, -1.8, -1.8, cf(0, -3.5, 0))
  1875. prt55 = AesthPart(modelzorz, prt1, 0, 0.3, NewCol2, "Part55", "Neon", "SpecialMesh", "Sphere", "nil", 4.5, 4.5, 4.5, cf(0, -3.5, 0))
  1876. prt56 = AesthPart(modelzorz, prt1, 0, 0, "Institutional white", "Part56", "Neon", "SpecialMesh", "Sphere", "nil", 3, 3, 3, cf(0, -3.5, 0))
  1877. prt54.Transparency = 1
  1878. prt55.Transparency = 1
  1879. prt56.Transparency = 1
  1880. for i = -1, 1, 2 do
  1881. prt8 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part08", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 2, 3.5, 1, euler(0, -1.57 * i, 0) * cf(0.2 * i, 1.9, 0))
  1882. prt9 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part09", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 2, 1.5, 1, euler(3.14, 1.57 * i, 0) * cf(0.2 * i, 2.4, 0))
  1883. end
  1884. for i = -1, 1, 2 do
  1885. prt19 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part19", "SmoothPlastic", "BlockMesh", "nil", "nil", 0.3, 2, 1.6, euler(0, 0, 0) * cf(-0.12 * i, 3.11, 0))
  1886. prt20 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part20", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 1.6, 1, 0.5, euler(0, 1.57 * i, 0) * cf(-0.2 * i, 2.99, 0))
  1887. prt21 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part21", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 1.6, 1.1, 0.5, euler(3.14, -1.57 * i, 0) * cf(-0.2 * i, 3.2, 0))
  1888. end
  1889. for i = 1.57, 6.28 do
  1890. prt42 = AesthPart(modelzorz, prt1, 0, 0, NewCol3, "Part42", "SmoothPlastic", "CylinderMesh", "nil", "nil", 3, 1, 3, euler(1.57, 0, 0) * cf(0.35, -2.5, 0) * euler(0, i, 0))
  1891. prt43 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part43", "SmoothPlastic", "CylinderMesh", "nil", "nil", 1.5, 1.1, 1.5, euler(1.57, 0, 0) * cf(0.35, -2.5, 0) * euler(0, i, 0))
  1892. prt44 = AesthPart(modelzorz, prt1, 0, 0, NewCol2, "Part44", "Neon", "SpecialMesh", "Sphere", "nil", 1.8, 1.5, 1.8, euler(1.57, 0, 0) * cf(0.35, -2.5, 0) * euler(0, i, 0))
  1893. prt45 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part45", "SmoothPlastic", "BlockMesh", "nil", "nil", 2, 1.1, 1, euler(1.57, 0, 0) * cf(0.5, -2.5, 0) * euler(0, i, 0))
  1894. prt46 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part46", "SmoothPlastic", "SpecialMesh", "Torso", "nil", 2.5, 1, 1.1, euler(0, 0, -1.57) * cf(0.3, 0, 0) * euler(0, 0, -0.8) * cf(0.35, -2.5, 0) * euler(0, i, 0))
  1895. prt47 = AesthPart(modelzorz, prt1, 0, 0, NewCol, "Part47", "SmoothPlastic", "SpecialMesh", "Torso", "nil", 2.5, 1.5, 1.1, euler(0, 0, -1.57) * cf(0.35, 0, 0) * euler(0, 0, 0.8) * cf(0.35, -2.5, 0) * euler(0, i, 0))
  1896. prt48 = AesthPart(modelzorz, prt1, 0, 1, NewCol3, "Part48", "SmoothPlastic", "BlockMesh", "nil", "nil", 1, 1, 1, euler(0, 0, -1.57) * cf(0.7, -2.8, 0) * euler(0, i, 0))
  1897. prt49 = AesthPart(modelzorz, prt48, 0, 0, NewCol2, "Part49", "Neon", "BlockMesh", "nil", "nil", 2.5, 0.4, 0.4, euler(0, 0, 0) * cf(-0.25, 0, 0) * euler(0, 0, -0.2))
  1898. prt50 = AesthPart(modelzorz, prt49, 0, 0, NewCol3, "Part50", "SmoothPlastic", "SpecialMesh", "FileMesh", "rbxasset://fonts/leftarm.mesh", -0.2, -0.25, -0.2, euler(0, 0, 1.57) * cf(0, 0, 0))
  1899. prt51 = AesthPart(modelzorz, prt49, 0, 0, NewCol, "Part51", "SmoothPlastic", "BlockMesh", "nil", "nil", 2, 0.6, 0.8, euler(0, 0, 0) * cf(-0.35, 0, 0) * euler(0, 0, 0.2))
  1900. prt52 = AesthPart(modelzorz, prt51, 0, 0, NewCol, "Part52", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 0.8, 0.6, 0.6, euler(0, -1.57, 0) * cf(0.14, -0.12, 0))
  1901. prt53 = AesthPart(modelzorz, prt51, 0, 0, NewCol, "Part53", "SmoothPlastic", "SpecialMesh", "Wedge", "nil", 0.8, 0.6, 1.4, euler(0, 1.57, 0) * cf(-0.06, -0.12, 0))
  1902. table.insert(TopStaff, wld49)
  1903. end
  1904. TSCF = cf(0.2, 0.05, 0) * euler(0, 0, -1.2)
  1905. for _,c in pairs(modelzorz:children()) do
  1906. table.insert(Weapon, c)
  1907. end
  1908. for _,c in pairs(handle:children()) do
  1909. if c.className == "Motor" then
  1910. table.insert(Welds, c)
  1911. end
  1912. end
  1913. local hitbox = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Hitbox2", vt())
  1914. hitbox.Anchored = false
  1915. local hitboxCF = cf(0, 0, 0)
  1916. hboxpos = Instance.new("BodyPosition", nil)
  1917. hboxpos.P = 2000
  1918. hboxpos.D = 100
  1919. hboxpos.maxForce = Vector3.new(545000, 545000, 545000)
  1920. local shieldref = part(3, nil, 0, 1, BrickColor.new("Bright blue"), "Shield1", vt(40, 40, 40))
  1921. shieldref.Anchored = true
  1922. shieldref.CFrame = cf(Torso.Position)
  1923. shieldref.Shape = "Ball"
  1924. local shieldref2 = part(3, nil, 0, 0.5, BrickColor.new("Bright blue"), "Shield2", vt())
  1925. shieldref2.Anchored = true
  1926. srefmsh = mesh("SpecialMesh", shieldref2, "FileMesh", "90782182", vt(0, 0, 0), vt(4, 5, 4))
  1927. srefmsh.TextureId = "http://www.roblox.com/asset/?id=90782359"
  1928. srefmsh.VertexColor = vt(0.2, 0.2, 1)
  1929. hitboxweld = function()
  1930. hbwld.Parent = modelzorz
  1931. hbwld.Part0 = hitbox
  1932. hbwld.Part1 = prt12
  1933. end
  1934. if script.Parent.className ~= "HopperBin" then
  1935. Tool = Instance.new("HopperBin")
  1936. Tool.Parent = Backpack
  1937. Tool.Name = "Zellar"
  1938. script.Parent = Tool
  1939. end
  1940. Bin = script.Parent
  1941. if Bin.Name == "Virtue" then
  1942. Bin.Name = "Zellar"
  1943. end
  1944. local bodvel = Instance.new("BodyVelocity")
  1945. local bg = Instance.new("BodyGyro")
  1946. so = function(id, par, vol, pit)
  1947. local sou = Instance.new("Sound", par or workspace)
  1948. sou.Volume = vol
  1949. sou.Pitch = pit or 1
  1950. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  1951. coroutine.resume(coroutine.create(function(Sound)
  1952. swait()
  1953. Sound:play()
  1954. end), sou)
  1955. game:GetService("Debris"):AddItem(sou, 6)
  1956. end
  1957.  
  1958. function clerp(a,b,t)
  1959. local qa = {QuaternionFromCFrame(a)}
  1960. local qb = {QuaternionFromCFrame(b)}
  1961. local ax, ay, az = a.x, a.y, a.z
  1962. local bx, by, bz = b.x, b.y, b.z
  1963. local _t = 1-t
  1964. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1965. end
  1966.  
  1967. function QuaternionFromCFrame(cf)
  1968. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1969. local trace = m00 + m11 + m22
  1970. if trace > 0 then
  1971. local s = math.sqrt(1 + trace)
  1972. local recip = 0.5/s
  1973. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1974. else
  1975. local i = 0
  1976. if m11 > m00 then
  1977. i = 1
  1978. end
  1979. if m22 > (i == 0 and m00 or m11) then
  1980. i = 2
  1981. end
  1982. if i == 0 then
  1983. local s = math.sqrt(m00-m11-m22+1)
  1984. local recip = 0.5/s
  1985. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1986. elseif i == 1 then
  1987. local s = math.sqrt(m11-m22-m00+1)
  1988. local recip = 0.5/s
  1989. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1990. elseif i == 2 then
  1991. local s = math.sqrt(m22-m00-m11+1)
  1992. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1993. end
  1994. end
  1995. end
  1996.  
  1997. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1998. local xs, ys, zs = x + x, y + y, z + z
  1999. local wx, wy, wz = w*xs, w*ys, w*zs
  2000. local xx = x*xs
  2001. local xy = x*ys
  2002. local xz = x*zs
  2003. local yy = y*ys
  2004. local yz = y*zs
  2005. local zz = z*zs
  2006. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  2007. end
  2008.  
  2009. function QuaternionSlerp(a, b, t)
  2010. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  2011. local startInterp, finishInterp;
  2012. if cosTheta >= 0.0001 then
  2013. if (1 - cosTheta) > 0.0001 then
  2014. local theta = math.acos(cosTheta)
  2015. local invSinTheta = 1/math.sin(theta)
  2016. startInterp = math.sin((1-t)*theta)*invSinTheta
  2017. finishInterp = math.sin(t*theta)*invSinTheta
  2018. else
  2019. startInterp = 1-t
  2020. finishInterp = t
  2021. end
  2022. else
  2023. if (1+cosTheta) > 0.0001 then
  2024. local theta = math.acos(-cosTheta)
  2025. local invSinTheta = 1/math.sin(theta)
  2026. startInterp = math.sin((t-1)*theta)*invSinTheta
  2027. finishInterp = math.sin(t*theta)*invSinTheta
  2028. else
  2029. startInterp = t-1
  2030. finishInterp = t
  2031. end
  2032. end
  2033. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  2034. end
  2035. hideanim = function()
  2036. equipped = false
  2037. TSCF = cf(0.2, 0.05, 0) * euler(0, 0, -1.2)
  2038. for i = 0, 1, 0.05 do
  2039. swait()
  2040. prt54.Transparency = prt54.MainTransparency.Value + (1 - prt54.MainTransparency.Value) * i
  2041. prt55.Transparency = prt55.MainTransparency.Value + (1 - prt55.MainTransparency.Value) * i
  2042. prt56.Transparency = prt56.MainTransparency.Value + (1 - prt56.MainTransparency.Value) * i
  2043. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  2044. wld1.C0 = clerp(wld1.C0, euler(1, 0, 0) * cf(0, 0, 0), 0.3)
  2045. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.2) * euler(0.2, 0, 0), 0.3)
  2046. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  2047. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.3)
  2048. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2049. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.7, 0, -0.2), 0.3)
  2050. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2051. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.4)
  2052. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.4)
  2053. end
  2054. prt54.Transparency = 1
  2055. prt55.Transparency = 1
  2056. prt56.Transparency = 1
  2057. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2, 0, -0.4), 0.3)
  2058. for i = 0, 1, 0.1 do
  2059. swait()
  2060. handlewld.C0 = clerp(handlewld.C0, euler(3.14, 0, 0) * euler(0, 0, 0.4) * euler(0.2, 0, 0) * cf(-1, -1.2, 0.5), 0.3)
  2061. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.3)
  2062. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0.6), 0.3)
  2063. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  2064. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.3)
  2065. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2066. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(3.5, 0, -0.4), 0.3)
  2067. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2068. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.3)
  2069. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.3)
  2070. end
  2071. handlewld.Part1 = Torso
  2072. handlewld.C0 = euler(0, 0, -0.8) * cf(0, 0, -0.7)
  2073. wld1.C0 = euler(0, 0, 0) * cf(0, 0, 0)
  2074. for i = 0, 1, 0.1 do
  2075. swait()
  2076. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.3)
  2077. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  2078. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.3)
  2079. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2080. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.3)
  2081. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2082. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.3)
  2083. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.3)
  2084. end
  2085. mdec2.Parent = nil
  2086. mdec.Parent = Decrease
  2087. end
  2088. mdec.Parent = Decrease
  2089. equipanim = function()
  2090. equipped = true
  2091. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2, 0, -0.4), 0.3)
  2092. for i = 0, 1, 0.1 do
  2093. swait()
  2094. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0.6), 0.3)
  2095. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  2096. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.4), 0.3)
  2097. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2098. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(3.5, 0, -0.4), 0.3)
  2099. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2100. end
  2101. handlewld.Part1 = LeftArm
  2102. handlewld.C0 = euler(3.14, 0, 0) * euler(0, 0, 0.4) * euler(0.2, 0, 0) * cf(-1, -1.2, 0.5)
  2103. wld1.C0 = euler(0, 0, 0) * cf(0, 0, 0)
  2104. d = 2
  2105. for i = 0, 1, 0.08 do
  2106. swait()
  2107. d = d + 1
  2108. if d >= 4 then
  2109. d = 0
  2110. so("199145146", handle, 1, 1.4)
  2111. end
  2112. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  2113. handlewld.C1 = handlewld.C1 * euler(0, -0.6, 0)
  2114. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.4), 0.3)
  2115. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  2116. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -0.8), 0.3)
  2117. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2118. LW.C0 = clerp(LW.C0, cf(-0.5, 0.5, -0.3) * euler(1.5, 0, 0.8), 0.3)
  2119. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2120. end
  2121. TSCF = euler(0, 0, 0) * cf(-0.25, 0, 0) * euler(0, 0, -0.2)
  2122. for i = 0, 1, 0.05 do
  2123. swait()
  2124. prt54.Transparency = 1 - (1 - prt54.MainTransparency.Value) * i
  2125. prt55.Transparency = 1 - (1 - prt55.MainTransparency.Value) * i
  2126. prt56.Transparency = 1 - (1 - prt56.MainTransparency.Value) * i
  2127. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.4)
  2128. handlewld.C1 = clerp(handlewld.C1, cf(0, 0, 0), 0.4)
  2129. wld1.C0 = clerp(wld1.C0, euler(1, 0, 0) * cf(0, 0, 0), 0.4)
  2130. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  2131. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  2132. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -0.8), 0.3)
  2133. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2134. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.4), 0.3)
  2135. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2136. end
  2137. prt54.Transparency = prt54.MainTransparency.Value
  2138. prt55.Transparency = prt55.MainTransparency.Value
  2139. prt56.Transparency = prt56.MainTransparency.Value
  2140. mdec.Parent = nil
  2141. mdec2.Parent = Decrease
  2142. handlewld.C1 = cf(0, 0, 0)
  2143. end
  2144. StaggerAnim = function()
  2145. attack = true
  2146. removeControl()
  2147. for i = 1, math.random(2, 4) do
  2148. ClangEffect(BrickColor.new("New Yeller"), cf(hitbox.Position) * euler(math.random(-50, 50) / 100, math.random(-50, 50), math.random(-50, 50) / 100), 0, 0.1, 0.2, math.random(150, 300) / 1000)
  2149. end
  2150. for i = 0, 1, 0.35 do
  2151. swait()
  2152. if Rooted.Value == false then
  2153. Torso.Velocity = RootPart.CFrame.lookVector * -40
  2154. end
  2155. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.3)
  2156. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.4), 0.3)
  2157. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.3)
  2158. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2159. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  2160. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2161. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.3)
  2162. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  2163. end
  2164. for i = 0, 1, 0.2 do
  2165. swait()
  2166. if Rooted.Value == false then
  2167. Torso.Velocity = RootPart.CFrame.lookVector * -40
  2168. end
  2169. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.4)
  2170. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(-0.5, 0, -0.4), 0.4)
  2171. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.4)
  2172. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2173. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.4)
  2174. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2175. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.4)
  2176. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.5), 0.4)
  2177. end
  2178. for i = 0, 1, 0.1 do
  2179. swait()
  2180. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.5, 0, 0), 0.3)
  2181. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, -0.4), 0.3)
  2182. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.3, 0, 0.4) * euler(0, -0.4, 0), 0.3)
  2183. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2184. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2) * euler(0, 0.4, 0), 0.3)
  2185. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2186. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 1.2), 0.3)
  2187. LH.C0 = clerp(LH.C0, cf(-1, 0, -1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  2188. end
  2189. for i = 1, 40 do
  2190. swait()
  2191. if StunT.Value <= Stun.Value then
  2192. break
  2193. end
  2194. end
  2195. do
  2196. resumeControl()
  2197. combo = 0
  2198. attack = false
  2199. end
  2200. end
  2201. StaggerHitt = function()
  2202. attack = true
  2203. for i = 1, math.random(2, 4) do
  2204. ClangEffect(BrickColor.new("New Yeller"), cf(hitbox.Position) * euler(math.random(-50, 50) / 100, math.random(-50, 50), math.random(-50, 50) / 100), 0, 0.1, 0.2, math.random(150, 300) / 1000)
  2205. end
  2206. for i = 0, 1, 0.1 do
  2207. swait()
  2208. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.7) * euler(0.1, 0, 0), 0.3)
  2209. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.6), 0.3)
  2210. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.9) * euler(0, -0.7, 0), 0.3)
  2211. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2212. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  2213. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2214. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.4), 0.3)
  2215. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  2216. end
  2217. attack = false
  2218. end
  2219. StunAnim = function()
  2220. attack = true
  2221. removeControl()
  2222. Stunned.Value = true
  2223. showDamage(Character, "Stunned", "Interrupt")
  2224. local dec = Instance.new("NumberValue", Decrease)
  2225. dec.Name = "DecreaseMvmt"
  2226. dec.Value = 10
  2227. for i = 0, 1, 0.3 do
  2228. swait()
  2229. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2)
  2230. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2)
  2231. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2)
  2232. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2233. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2)
  2234. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2235. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25)
  2236. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
  2237. end
  2238. for i = 0, 1, 0.3 do
  2239. swait()
  2240. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2)
  2241. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2)
  2242. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  2243. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2244. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1.2, 0, 0.8) * euler(0, -0.1, 0), 0.2)
  2245. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2246. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25)
  2247. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25)
  2248. end
  2249. for i = 0, 1, 0.3 do
  2250. swait()
  2251. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2)
  2252. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2)
  2253. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  2254. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2255. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2)
  2256. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2257. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25)
  2258. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25)
  2259. end
  2260. local gairost = Instance.new("BodyGyro")
  2261. gairost.Parent = RootPart
  2262. gairost.maxTorque = Vector3.new(400000, 0, 400000) * math.huge
  2263. gairost.P = 20000
  2264. gairost.cframe = cf(0, 0, 0)
  2265. for i = 0, 1, 0.1 do
  2266. swait()
  2267. if hitfloor ~= nil then
  2268. Torso.Velocity = vt(0, 0, 0)
  2269. end
  2270. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3)
  2271. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3)
  2272. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 0, 0), 0.3)
  2273. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2274. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3)
  2275. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2276. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3)
  2277. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3)
  2278. end
  2279. for i = 1, 70 do
  2280. swait()
  2281. gairost.cframe = RootPart.CFrame
  2282. if hitfloor ~= nil then
  2283. Torso.Velocity = vt(0, 0, 0)
  2284. end
  2285. end
  2286. for i = 0, 1, 0.2 do
  2287. swait()
  2288. Stun.Value = 0
  2289. gairost.cframe = RootPart.CFrame
  2290. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  2291. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3)
  2292. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3)
  2293. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2294. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3)
  2295. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2296. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3)
  2297. LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3)
  2298. end
  2299. resumeControl()
  2300. gairost.Parent = nil
  2301. dec.Parent = nil
  2302. Stun.Value = 0
  2303. combo = 0
  2304. Stunned.Value = false
  2305. attack = false
  2306. for i = 1, 10 do
  2307. swait()
  2308. Stun.Value = 0
  2309. end
  2310. end
  2311. attackone = function()
  2312. attack = true
  2313. for i = 0, 1, 0.1 do
  2314. swait()
  2315. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  2316. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, -0.5, 0) * euler(-0.5, 0, 0), 0.3)
  2317. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.3) * euler(0.1, 0, 0), 0.3)
  2318. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -0.3), 0.3)
  2319. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.3)
  2320. LW.C0 = clerp(LW.C0, cf(-0.5, 0.5, -0.5) * euler(1.7, 0, 1) * euler(0, -1, 0), 0.3)
  2321. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, 0.2) * euler(0, 1.57, 0) * euler(-0.1, 0.2, -0.05), 0.3)
  2322. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.05), 0.3)
  2323. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2324. do
  2325. if StaggerHit.Value == true then
  2326. break
  2327. end
  2328. -- DECOMPILER ERROR at PC201: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2329.  
  2330. -- DECOMPILER ERROR at PC201: LeaveBlock: unexpected jumping out IF_STMT
  2331.  
  2332. end
  2333. end
  2334. end
  2335. so("199145095", prt56, 1, 1.1)
  2336. hitbox.Parent = modelzorz
  2337. hitbox.CFrame = prt1.CFrame * cf(0, 3, 0)
  2338. for i = 0, 1, 0.1 do
  2339. swait()
  2340. hitbox.CFrame = prt1.CFrame * cf(0, 3, 0)
  2341. MagniDamage(hitbox, 3, 5, 6, math.random(20, 25), "Normal", RootPart, 0.3, 2, (math.random(3, 5)), nil, true)
  2342. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.4)
  2343. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, -0.5, 0) * euler(0.5, 0, 0), 0.4)
  2344. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.2) * euler(0, 0, 0), 0.4)
  2345. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.2), 0.4)
  2346. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.4)
  2347. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.3) * euler(1.4, 0, 1) * euler(0, -1.5, 0) * euler(-2.5, 0, 0), 0.4)
  2348. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, 0.3) * euler(0, 1.57, 0) * euler(-0.1, -0.2, -0.05), 0.4)
  2349. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.4) * euler(0, -1.57, 0) * euler(0, -0.2, 0.05), 0.4)
  2350. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2351. do
  2352. if StaggerHit.Value == true then
  2353. break
  2354. end
  2355. -- DECOMPILER ERROR at PC458: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2356.  
  2357. -- DECOMPILER ERROR at PC458: LeaveBlock: unexpected jumping out IF_STMT
  2358.  
  2359. end
  2360. end
  2361. end
  2362. hitbox.Parent = nil
  2363. attack = false
  2364. end
  2365. attacktwo = function()
  2366. attack = true
  2367. local d = 2
  2368. for i = 0, 1, 0.1 do
  2369. swait()
  2370. d = d + 1
  2371. if d >= 4 then
  2372. d = 0
  2373. so("199145146", handle, 1, 1.55)
  2374. end
  2375. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.3)
  2376. handlewld.C1 = handlewld.C1 * euler(0, 0.67, 0)
  2377. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.3)
  2378. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.2) * euler(0.2, 0, 0), 0.3)
  2379. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.4), 0.3)
  2380. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.3)
  2381. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.3) * euler(1.4, 0, 1) * euler(0, -1.5, 0) * euler(-2.5, 0, 0) * euler(0, 2, 0), 0.3)
  2382. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, 0.3) * euler(0, 1.57, 0) * euler(-0.1, -0.4, -0.05), 0.3)
  2383. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.4) * euler(0, -1.57, 0) * euler(0, -0.4, 0.05), 0.3)
  2384. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2385. do
  2386. if StaggerHit.Value == true then
  2387. break
  2388. end
  2389. -- DECOMPILER ERROR at PC228: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2390.  
  2391. -- DECOMPILER ERROR at PC228: LeaveBlock: unexpected jumping out IF_STMT
  2392.  
  2393. end
  2394. end
  2395. end
  2396. local lnum = 0
  2397. ref2 = part(3, nil, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2398. ref2.Anchored = true
  2399. for i = 0, 1, 0.2 do
  2400. swait()
  2401. lnum = lnum + 1
  2402. ref2.CFrame = cf(prt18.Position) * cf(math.random(-500, 500) / 100, 0, math.random(-500, 500) / 100)
  2403. hitfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 50, Character)
  2404. if hitfloor2 ~= nil and (lnum) % 2 == 0 then
  2405. Lightning(prt18.Position, RootPart.Position, 5, 1, NewCol2, 0.05, 0.4, 0.1)
  2406. end
  2407. MagicCircle(BrickColor.new(NewCol2), cf(prt18.Position), 6, 6, 6, -1, -1, -1, 0.05, 1, nil, nil, 0.5)
  2408. MagicBlock(BrickColor.new(NewCol2), cf(prt18.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 2, 2, 2, -0.5, -0.5, -0.5, 0.1, 2)
  2409. wld23.C0 = clerp(wld23.C0, euler(0, math.rad(60), 0) * cf(-0.045, 0, 0), 0.45)
  2410. wld27.C0 = clerp(wld27.C0, euler(0, math.rad(60), 3.14) * cf(0.045, 0, 0), 0.45)
  2411. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.45)
  2412. handlewld.C1 = clerp(handlewld.C1, cf(0, 0, 0), 0.45)
  2413. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * euler(0, 0, -3) * cf(0, 0, 0), 0.45)
  2414. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.2) * euler(0.2, 0, 0), 0.45)
  2415. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.4), 0.45)
  2416. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.45)
  2417. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.3) * euler(1.4, 0, 1) * euler(0, -1.5, 0) * euler(-2.5, 0, 0) * euler(0, 0.4, 0), 0.45)
  2418. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, 0.3) * euler(0, 1.57, 0) * euler(-0.1, -0.4, -0.05), 0.45)
  2419. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.4) * euler(0, -1.57, 0) * euler(0, -0.4, 0.05), 0.45)
  2420. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2421. do
  2422. if StaggerHit.Value == true then
  2423. break
  2424. end
  2425. -- DECOMPILER ERROR at PC651: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2426.  
  2427. -- DECOMPILER ERROR at PC651: LeaveBlock: unexpected jumping out IF_STMT
  2428.  
  2429. end
  2430. end
  2431. end
  2432. so("199145204", prt18, 0.8, 1.3)
  2433. so("315743331", prt18, 1, 2)
  2434. hitbox.Parent = modelzorz
  2435. hitbox.CFrame = prt1.CFrame * cf(0, -3, 0)
  2436. for i = 0, 1, 0.1 do
  2437. swait()
  2438. lnum = lnum + 1
  2439. ref2.CFrame = cf(prt18.Position) * cf(math.random(-500, 500) / 100, 0, math.random(-500, 500) / 100)
  2440. hitfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 50, Character)
  2441. if hitfloor2 ~= nil and (lnum) % 2 == 0 then
  2442. Lightning(prt18.Position, RootPart.Position, 5, 1, NewCol2, 0.05, 0.4, 0.1)
  2443. end
  2444. hitbox.CFrame = prt1.CFrame * cf(0, -3, 0)
  2445. MagniDamage(hitbox, 3, 5, 6, math.random(5, 10), "Normal", RootPart, 0.3, 2, (math.random(3, 5)), nil, true)
  2446. MagicCircle(BrickColor.new(NewCol2), cf(prt18.Position), 6, 6, 6, -1, -1, -1, 0.05, 1, nil, nil, 0.5)
  2447. MagicBlock(BrickColor.new(NewCol2), cf(prt18.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 2, 2, 2, -0.5, -0.5, -0.5, 0.1, 2)
  2448. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.45)
  2449. handlewld.C1 = clerp(handlewld.C1, cf(0, 0, 0), 0.45)
  2450. wld1.C0 = clerp(wld1.C0, cf(0, 0.4, 0) * euler(-1, 0, 0) * euler(0, 0, -3), 0.45)
  2451. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.05, 0, 0), 0.45)
  2452. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -0.4), 0.45)
  2453. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.8, 0, -1) * euler(0, -0.4, 0), 0.45)
  2454. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0.2) * euler(1.4, 0, -0.8) * euler(0, -1.3, 0), 0.45)
  2455. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.1, 0.2, -0.2), 0.45)
  2456. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.2) * euler(0, -1.57, 0) * euler(0, 0.2, 0.05), 0.45)
  2457. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2458. do
  2459. if StaggerHit.Value == true then
  2460. break
  2461. end
  2462. -- DECOMPILER ERROR at PC1060: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2463.  
  2464. -- DECOMPILER ERROR at PC1060: LeaveBlock: unexpected jumping out IF_STMT
  2465.  
  2466. end
  2467. end
  2468. end
  2469. handlewld.C1 = cf(0, 0, 0)
  2470. hitbox.Parent = nil
  2471. attack = false
  2472. for i = 0, 1, 0.1 do
  2473. swait()
  2474. wld23.C0 = clerp(wld23.C0, euler(0, math.rad(0), 0) * cf(-0.045, 0, 0), 0.45)
  2475. wld27.C0 = clerp(wld27.C0, euler(0, math.rad(0), 3.14) * cf(0.045, 0, 0), 0.45)
  2476. end
  2477. wld23.C0 = clerp(wld23.C0, euler(0, math.rad(0), 0) * cf(-0.045, 0, 0), 1)
  2478. wld27.C0 = clerp(wld27.C0, euler(0, math.rad(0), 3.14) * cf(0.045, 0, 0), 1)
  2479. end
  2480. attackthree = function()
  2481. attack = true
  2482. for i = 0, 1, 0.1 do
  2483. swait()
  2484. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * euler(0, 0, 1.57) * cf(0, 1, 0), 0.3)
  2485. wld1.C0 = clerp(wld1.C0, cf(0, -0.5, 0) * euler(0, 0, -1), 0.3)
  2486. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.1) * euler(-0.1, 0, 0), 0.3)
  2487. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.2), 0.3)
  2488. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.3)
  2489. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(3, 0, -0.6) * euler(0, -0.4, 0), 0.3)
  2490. RH.C0 = clerp(RH.C0, cf(1, -0.9, 0.4) * euler(0, 1.57, 0) * euler(-0.1, -0.8, -0.05), 0.3)
  2491. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.4) * euler(0, -1.57, 0) * euler(0, -0.2, 0.05), 0.3)
  2492. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2493. do
  2494. if StaggerHit.Value == true then
  2495. break
  2496. end
  2497. -- DECOMPILER ERROR at PC201: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2498.  
  2499. -- DECOMPILER ERROR at PC201: LeaveBlock: unexpected jumping out IF_STMT
  2500.  
  2501. end
  2502. end
  2503. end
  2504. so("199145095", prt56, 1, 0.9)
  2505. hitbox.Parent = modelzorz
  2506. hitbox.CFrame = prt1.CFrame * cf(0, 3, 0)
  2507. for i = 0, 1, 0.1 do
  2508. swait()
  2509. hitbox.CFrame = prt1.CFrame * cf(0, 3, 0)
  2510. MagniDamage(hitbox, 3, 5, 6, math.random(10, 15), "Normal", RootPart, 0.3, 2, (math.random(3, 5)), nil, true)
  2511. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * euler(0, 0, 1.57) * cf(0, 1, 0), 0.45)
  2512. wld1.C0 = clerp(wld1.C0, cf(0, -0.5, 0) * euler(0, 0, 0.8), 0.45)
  2513. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(-0.1, 0, 0), 0.45)
  2514. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, -0.4) * euler(0.2, 0, 0) * euler(0, 0, -0.4), 0.45)
  2515. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.8, 0, -1) * euler(0, -0.4, 0), 0.45)
  2516. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, -0.2) * euler(0.6, 0, -0.2) * euler(0, 0.3, 0), 0.45)
  2517. RH.C0 = clerp(RH.C0, cf(1, -0.9, 0.4) * euler(0, 1.57, 0) * euler(-0.1, -0.4, -0.2), 0.45)
  2518. LH.C0 = clerp(LH.C0, cf(-1, -0.5, -0.5) * euler(0, -1.57, 0) * euler(0, 0.4, -0.25), 0.45)
  2519. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2520. do
  2521. if StaggerHit.Value == true then
  2522. break
  2523. end
  2524. -- DECOMPILER ERROR at PC458: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2525.  
  2526. -- DECOMPILER ERROR at PC458: LeaveBlock: unexpected jumping out IF_STMT
  2527.  
  2528. end
  2529. end
  2530. end
  2531. hitbox.Parent = nil
  2532. attack = false
  2533. end
  2534. attackfour = function()
  2535. attack = true
  2536. for i = 0, 1, 0.1 do
  2537. swait()
  2538. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.3)
  2539. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, -1, 0) * euler(0.5, 0, 0), 0.3)
  2540. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.2) * euler(0, 0, 0), 0.3)
  2541. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.2), 0.3)
  2542. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.3)
  2543. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.3) * euler(1.4, 0, 1) * euler(0, 1.5, 0) * euler(2, 0, 0), 0.3)
  2544. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, 0.3) * euler(0, 1.57, 0) * euler(-0.1, -0.2, -0.05), 0.3)
  2545. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.4) * euler(0, -1.57, 0) * euler(0, -0.2, 0.05), 0.3)
  2546. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2547. do
  2548. if StaggerHit.Value == true then
  2549. break
  2550. end
  2551. -- DECOMPILER ERROR at PC207: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2552.  
  2553. -- DECOMPILER ERROR at PC207: LeaveBlock: unexpected jumping out IF_STMT
  2554.  
  2555. end
  2556. end
  2557. end
  2558. so("199145204", prt56, 1, 0.9)
  2559. for i = 0, 1, 0.1 do
  2560. swait()
  2561. if i < 0.5 then
  2562. refd = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2563. refd.Anchored = true
  2564. refd.CFrame = prt56.CFrame
  2565. game:GetService("Debris"):AddItem(refd, 1)
  2566. so("315748999", refd, 0.4, 0.6)
  2567. MagicCircle(BrickColor.new(NewCol2), prt56.CFrame, 6, 6, 6, 1, 1, 1, 0.1, 1, nil, nil, 0)
  2568. table.insert(Effects, {prt56.CFrame, "Orb", math.random(40, 70)})
  2569. end
  2570. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.3)
  2571. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, -1, 0) * euler(0.8, 0, 0), 0.4)
  2572. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.1) * euler(0.1, 0, 0), 0.3)
  2573. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -1), 0.3)
  2574. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.3)
  2575. LW.C0 = clerp(LW.C0, cf(0, 0.5, -0.5) * euler(1.3, 0, 1) * euler(0, 1.5, 0) * euler(-0.5, 0, 0), 0.3)
  2576. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.1) * euler(0, 1.57, 0) * euler(-0.1, 0.2, -0.1), 0.3)
  2577. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, 0.1) * euler(0, -1.57, 0) * euler(0, 0.6, 0.05), 0.3)
  2578. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2579. do
  2580. if StaggerHit.Value == true then
  2581. break
  2582. end
  2583. -- DECOMPILER ERROR at PC487: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2584.  
  2585. -- DECOMPILER ERROR at PC487: LeaveBlock: unexpected jumping out IF_STMT
  2586.  
  2587. end
  2588. end
  2589. end
  2590. attack = false
  2591. end
  2592. EnergyCharge = function()
  2593. attack = true
  2594. eCharge = true
  2595. energ = 0
  2596. local deca = Instance.new("NumberValue", Decrease)
  2597. deca.Name = "DecreaseDef"
  2598. deca.Value = 0.1
  2599. local summonorb = false
  2600. while eCharge == true do
  2601. swait()
  2602. energ = energ + 1
  2603. if energ >= 100 then
  2604. eCharge = false
  2605. summonorb = true
  2606. end
  2607. MagicCircle2(BrickColor.new(NewCol2), cf(prt56.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cf(0, 2, 0), 1, 4, 1, -0.01, 1, -0.01, 0.1, -0.4)
  2608. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.4)
  2609. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, 0, 0) * euler(0, 0, 0), 0.4)
  2610. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.4) * euler(0.1, 0, 0), 0.4)
  2611. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.4), 0.4)
  2612. RW.C0 = clerp(RW.C0, cf(0.9, 0.4, 0.4) * euler(-0.5, 0, -1) * euler(0, -0.4, 0), 0.4)
  2613. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-1, 0, -0.6) * euler(0, 1.2, 0), 0.4)
  2614. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.1) * euler(0, 1.57, 0) * euler(0, -0.4, -0.05), 0.4)
  2615. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0.15), 0.4)
  2616. end
  2617. if summonorb == true then
  2618. MagicCircle(BrickColor.new(NewCol2), prt56.CFrame, 10, 10, 10, 1, 1, 1, 0.05, 1, nil, nil, 0)
  2619. omain = AesthPart(modelzorz, prt56, 0, 1, NewCol2, "OrbRef", "SmoothPlastic", "SpecialMesh", "Sphere", "nil", 1, 1, 1, cf(0, 0, 0))
  2620. oprt1 = AesthPart(omain, omain, 0, 0.5, NewCol3, "Orb1", "Neon", "SpecialMesh", "FileMesh", "rbxasset://fonts/leftarm.mesh", -0.8, -0.4, -0.8, cf(0, 0, 0))
  2621. oprt2 = AesthPart(oprt1, oprt1, 0, 0.3, NewCol2, "Orb2", "Neon", "SpecialMesh", "Sphere", "nil", 3, 3, 3, cf(0, 0, 0))
  2622. oprt3 = AesthPart(oprt1, oprt1, 0, 0, NewCol, "Orb3", "Neon", "SpecialMesh", "Sphere", "nil", 2, 2, 2, cf(0, 0, 0))
  2623. owld1.Parent = nil
  2624. oprt1.CFrame = omain.CFrame
  2625. prop = Instance.new("RocketPropulsion")
  2626. prop.Parent = oprt1
  2627. prop.Target = omain
  2628. prop.TargetRadius = 3
  2629. prop.MaxSpeed = 500
  2630. prop.CartoonFactor = 1
  2631. prop.MaxThrust = 10
  2632. prop.ThrustD = 30
  2633. prop.ThrustP = 500
  2634. prop.MaxTorque = vt(5, 5, 5)
  2635. prop.TurnD = 5
  2636. prop.TurnP = 500
  2637. prop:Fire()
  2638. table.insert(Orbs, {omain, owld, oprt1, prop})
  2639. end
  2640. deca.Parent = nil
  2641. attack = false
  2642. end
  2643. ShootOrb = function()
  2644. attack = true
  2645. for i = 1, #Orbs do
  2646. Orbs[i][2].Parent = nil
  2647. Orbs[i][1].Anchored = true
  2648. Orbs[i][1].CFrame = cf(RootPart.Position) * cf(0, 5, 0)
  2649. Orbs[i][4].MaxSpeed = 200
  2650. Orbs[i][4].ThrustD = 100
  2651. Orbs[i][4].ThrustP = 800
  2652. Orbs[i][4].MaxTorque = vt(50, 50, 50)
  2653. Orbs[i][4].TurnD = 40
  2654. end
  2655. if #Orbs % 2 == 0 then
  2656. for i = 0, 1, 0.1 do
  2657. swait()
  2658. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.3)
  2659. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, 0, 0) * euler(0.5, 0, 0), 0.3)
  2660. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.2) * euler(0, 0, 0), 0.3)
  2661. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.2), 0.3)
  2662. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.3)
  2663. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, 0.2) * euler(1.8, 0, -1) * euler(0, 0.7, 0) * euler(0, 0, 0), 0.3)
  2664. RH.C0 = clerp(RH.C0, cf(1, -0.9, 0.3) * euler(0, 1.57, 0) * euler(-0.1, -0.2, -0.05), 0.3)
  2665. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.4) * euler(0, -1.57, 0) * euler(0, -0.2, 0.05), 0.3)
  2666. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2667. do
  2668. if StaggerHit.Value == true then
  2669. break
  2670. end
  2671. -- DECOMPILER ERROR at PC265: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2672.  
  2673. -- DECOMPILER ERROR at PC265: LeaveBlock: unexpected jumping out IF_STMT
  2674.  
  2675. end
  2676. end
  2677. end
  2678. so("377357731", Orbs[#Orbs][3], 1, 1)
  2679. Orbs[#Orbs][4].Parent = nil
  2680. Orbs[#Orbs][3].Anchored = true
  2681. local MouseLook = cf((Orbs[#Orbs][3].Position + MMouse.Hit.p) / 2, MMouse.Hit.p)
  2682. table.insert(Effects, {MouseLook.lookVector, "Shoot", 30, Orbs[#Orbs][3].Position, 7, 9, Orbs[#Orbs][3], Orbs[#Orbs][1]})
  2683. table.remove(Orbs, #Orbs)
  2684. for i = 0, 1, 0.4 do
  2685. swait()
  2686. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.5)
  2687. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, 0, 0) * euler(0.5, 0, 0), 0.5)
  2688. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.3) * euler(0.1, 0, 0), 0.5)
  2689. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -0.6), 0.5)
  2690. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.5)
  2691. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(0.4, 0, -0.4) * euler(0, -0.5, 0) * euler(0, 0, 0), 0.5)
  2692. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.4) * euler(0, 1.57, 0) * euler(-0.1, 0.6, -0.05), 0.5)
  2693. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0.4) * euler(0, -1.57, 0) * euler(0, 0.6, 0.1), 0.5)
  2694. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2695. do
  2696. if StaggerHit.Value == true then
  2697. break
  2698. end
  2699. -- DECOMPILER ERROR at PC542: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2700.  
  2701. -- DECOMPILER ERROR at PC542: LeaveBlock: unexpected jumping out IF_STMT
  2702.  
  2703. end
  2704. end
  2705. end
  2706. for i = 0, 1, 0.15 do
  2707. swait()
  2708. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.45)
  2709. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, 0, 0) * euler(0.5, 0, 0), 0.45)
  2710. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.3) * euler(0.1, 0, 0), 0.45)
  2711. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -0.6), 0.45)
  2712. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.45)
  2713. LW.C0 = clerp(LW.C0, cf(-0.6, 0.5, -0.5) * euler(0.8, 0, 0.4) * euler(0, -0.5, 0) * euler(0, 0, 0), 0.45)
  2714. RH.C0 = clerp(RH.C0, cf(1, -0.9, -0.4) * euler(0, 1.57, 0) * euler(-0.1, 0.6, -0.05), 0.45)
  2715. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0.4) * euler(0, -1.57, 0) * euler(0, 0.6, 0.1), 0.45)
  2716. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2717. do
  2718. if StaggerHit.Value == true then
  2719. break
  2720. end
  2721. -- DECOMPILER ERROR at PC748: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2722.  
  2723. -- DECOMPILER ERROR at PC748: LeaveBlock: unexpected jumping out IF_STMT
  2724.  
  2725. end
  2726. end
  2727. end
  2728. else
  2729. do
  2730. for i = 0, 1, 0.1 do
  2731. swait()
  2732. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  2733. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, -0.5, 0) * euler(-0.2, 0, 0), 0.3)
  2734. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.3) * euler(0.1, 0, 0), 0.3)
  2735. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -0.3), 0.3)
  2736. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.3)
  2737. LW.C0 = clerp(LW.C0, cf(-0.5, 0.5, -0.5) * euler(1.7, 0, 1) * euler(0, -1, 0), 0.3)
  2738. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, 0.2) * euler(0, 1.57, 0) * euler(-0.1, 0.2, -0.05), 0.3)
  2739. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.05), 0.3)
  2740. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2741. do
  2742. if StaggerHit.Value == true then
  2743. break
  2744. end
  2745. -- DECOMPILER ERROR at PC949: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2746.  
  2747. -- DECOMPILER ERROR at PC949: LeaveBlock: unexpected jumping out IF_STMT
  2748.  
  2749. end
  2750. end
  2751. end
  2752. so("377357731", Orbs[#Orbs][3], 1, 1)
  2753. Orbs[#Orbs][4].Parent = nil
  2754. Orbs[#Orbs][3].Anchored = true
  2755. do
  2756. local MouseLook = cf((Orbs[#Orbs][3].Position + MMouse.Hit.p) / 2, MMouse.Hit.p)
  2757. table.insert(Effects, {MouseLook.lookVector, "Shoot", 30, Orbs[#Orbs][3].Position, 7, 9, Orbs[#Orbs][3], Orbs[#Orbs][1]})
  2758. table.remove(Orbs, #Orbs)
  2759. for i = 0, 1, 0.1 do
  2760. swait()
  2761. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.4)
  2762. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, -0.5, 0) * euler(0.8, 0, 0), 0.4)
  2763. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.2) * euler(0, 0, 0), 0.4)
  2764. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.2), 0.4)
  2765. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.4)
  2766. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.2) * euler(1.7, 0, 1) * euler(0, -1, 0) * euler(-2.4, 0, -0.5), 0.4)
  2767. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, 0.3) * euler(0, 1.57, 0) * euler(-0.1, -0.2, -0.05), 0.4)
  2768. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.4) * euler(0, -1.57, 0) * euler(0, -0.2, 0.05), 0.4)
  2769. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2770. do
  2771. if StaggerHit.Value == true then
  2772. break
  2773. end
  2774. -- DECOMPILER ERROR at PC1226: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2775.  
  2776. -- DECOMPILER ERROR at PC1226: LeaveBlock: unexpected jumping out IF_STMT
  2777.  
  2778. end
  2779. end
  2780. end
  2781. for i = 1, #Orbs do
  2782. Orbs[i][1].Anchored = false
  2783. Orbs[i][2].Parent = Orbs[i][1]
  2784. Orbs[i][4].MaxSpeed = 500
  2785. Orbs[i][4].ThrustD = 30
  2786. Orbs[i][4].ThrustP = 500
  2787. Orbs[i][4].MaxTorque = vt(5, 5, 5)
  2788. Orbs[i][4].TurnD = 5
  2789. end
  2790. attack = false
  2791. end
  2792. end
  2793. end
  2794. end
  2795. do1 = function()
  2796. if attack == true then
  2797. return
  2798. end
  2799. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2800. return
  2801. end
  2802. mnum = #Orbs * 5
  2803. if cooldownmax <= cooldowns[1] and mnum <= mana.Value then
  2804. attack = true
  2805. if mnum > 0 then
  2806. cooldowns[1] = 0
  2807. end
  2808. mana.Value = mana.Value - mnum
  2809. print(#Orbs)
  2810. so("2101137", prt56, 1, 1)
  2811. for i = 0, 1, 0.05 do
  2812. swait()
  2813. MagicCircle2(BrickColor.new(NewCol2), cf(prt56.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 4, 1, -0.01, 1, -0.01, 0.1, 0.6)
  2814. for i = 1, #Orbs do
  2815. MagicBlock(BrickColor.new(NewCol4), cf(Orbs[i][3].Position) * cf(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1.5, 1.5, 1.5, -0.2, -0.2, -0.2, 0.2, 1)
  2816. end
  2817. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  2818. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * euler(1, 0, 0) * cf(0, 0, 0), 0.3)
  2819. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.1, 0, 0), 0.3)
  2820. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -1), 0.3)
  2821. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.3)
  2822. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.2) * euler(1.57, 0, -1) * euler(0.2, 0, 0), 0.3)
  2823. RH.C0 = clerp(RH.C0, cf(0.9, -0.9, -0.6) * euler(0, 1.57, 0) * euler(-0.1, 0.6, -0.05), 0.3)
  2824. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0.6) * euler(0, -1.57, 0) * euler(0, 1, 0.05), 0.3)
  2825. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2826. do
  2827. if StaggerHit.Value == true then
  2828. break
  2829. end
  2830. -- DECOMPILER ERROR at PC356: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2831.  
  2832. -- DECOMPILER ERROR at PC356: LeaveBlock: unexpected jumping out IF_STMT
  2833.  
  2834. end
  2835. end
  2836. end
  2837. if #Orbs == 1 and O1 == false then
  2838. O1 = true
  2839. for i = 0, 1, 0.1 do
  2840. swait()
  2841. MagicCircle2(BrickColor.new(NewCol2), cf(prt56.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 4, 1, -0.01, 1, -0.01, 0.1, 0.6)
  2842. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  2843. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * euler(0.6, 0, 0) * cf(0, 0, 0), 0.3)
  2844. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(-0.6, 0, 0), 0.3)
  2845. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -1), 0.3)
  2846. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.3)
  2847. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.2) * euler(1.57, 0, -1) * euler(1, 0, 0), 0.3)
  2848. RH.C0 = clerp(RH.C0, cf(0.9, -0.9, -0.6) * euler(0, 1.57, 0) * euler(-0.1, 0.6, -0.05), 0.3)
  2849. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0.6) * euler(0, -1.57, 0) * euler(0, 1, 0.05), 0.3)
  2850. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2851. do
  2852. if StaggerHit.Value == true then
  2853. break
  2854. end
  2855. -- DECOMPILER ERROR at PC601: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2856.  
  2857. -- DECOMPILER ERROR at PC601: LeaveBlock: unexpected jumping out IF_STMT
  2858.  
  2859. end
  2860. end
  2861. end
  2862. MagicCircle(BrickColor.new(NewCol2), prt56.CFrame, 10, 10, 10, 1, 1, 1, 0.05, 1, nil, nil, 0)
  2863. dar = #OOrbs
  2864. table.insert(OOrbs, Orbs[1])
  2865. for i = 1, #Orbs do
  2866. table.remove(Orbs, 1)
  2867. end
  2868. for i = dar + 1, dar + 1 do
  2869. OOrbs[i][2].Parent = nil
  2870. OOrbs[i][1].Anchored = true
  2871. OOrbs[i][4].MaxSpeed = 100
  2872. OOrbs[i][1].CFrame = RootPart.CFrame * cf(0, 5, 0)
  2873. table.insert(Effects, {OOrbs[i][1], "Sentry", OOrbs[i][3], 0, 50})
  2874. end
  2875. for i = 0, 1, 0.1 do
  2876. swait()
  2877. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.4)
  2878. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * euler(0.2, 0, 0) * cf(0, 0, 0), 0.4)
  2879. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0, 0, 0), 0.4)
  2880. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -1), 0.4)
  2881. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.4)
  2882. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.2) * euler(-0.8, 0, -0.6) * euler(0, 1.8, 0) * euler(0, 0, 0), 0.4)
  2883. RH.C0 = clerp(RH.C0, cf(0.9, -0.9, -0.6) * euler(0, 1.57, 0) * euler(-0.1, 0.6, -0.05), 0.4)
  2884. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0.6) * euler(0, -1.57, 0) * euler(0, 1, 0.05), 0.4)
  2885. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2886. do
  2887. if StaggerHit.Value == true then
  2888. break
  2889. end
  2890. -- DECOMPILER ERROR at PC891: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2891.  
  2892. -- DECOMPILER ERROR at PC891: LeaveBlock: unexpected jumping out IF_STMT
  2893.  
  2894. end
  2895. end
  2896. end
  2897. else
  2898. if #Orbs == 2 and O2 == false then
  2899. O2 = true
  2900. for i = 0, 1, 0.1 do
  2901. swait()
  2902. MagicCircle2(BrickColor.new(NewCol2), cf(prt56.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 4, 1, -0.01, 1, -0.01, 0.1, 0.6)
  2903. for i = 1, #Orbs do
  2904. MagicBlock(BrickColor.new(NewCol4), cf(Orbs[i][3].Position) * cf(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1.5, 1.5, 1.5, -0.2, -0.2, -0.2, 0.2, 1)
  2905. end
  2906. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  2907. wld1.C0 = clerp(wld1.C0, cf(0, 0, 0) * euler(0, 1.57, 0) * euler(0.6, 0, 0), 0.3)
  2908. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.4) * euler(0.1, 0, 0), 0.3)
  2909. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -1), 0.3)
  2910. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.3)
  2911. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0.1) * euler(2, 0, -1.5) * euler(0.2, 0, 0) * euler(0, -0.2, 0), 0.3)
  2912. RH.C0 = clerp(RH.C0, cf(0.9, -0.9, -0.6) * euler(0, 1.57, 0) * euler(-0.1, 0.6, -0.05), 0.3)
  2913. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0.6) * euler(0, -1.57, 0) * euler(0, 1, 0.05), 0.3)
  2914. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2915. do
  2916. if StaggerHit.Value == true then
  2917. break
  2918. end
  2919. -- DECOMPILER ERROR at PC1208: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2920.  
  2921. -- DECOMPILER ERROR at PC1208: LeaveBlock: unexpected jumping out IF_STMT
  2922.  
  2923. end
  2924. end
  2925. end
  2926. MagicCircle(BrickColor.new(NewCol2), prt56.CFrame, 10, 10, 10, 1, 1, 1, 0.05, 1, nil, nil, 0)
  2927. dar = #OOrbs
  2928. table.insert(OOrbs, Orbs[1])
  2929. table.insert(OOrbs, Orbs[2])
  2930. for i = 1, #Orbs do
  2931. table.remove(Orbs, 1)
  2932. end
  2933. for i = dar + 1, dar + 2 do
  2934. OOrbs[i][4].MaxSpeed = 500
  2935. tar1 = findNearestAlly2(RootPart.Position)
  2936. if tar1 == nil then
  2937. tar1 = Torso
  2938. for i = 1, #Protected do
  2939. if Protected[i] == tar1 then
  2940. tar1 = nil
  2941. end
  2942. end
  2943. end
  2944. do
  2945. do
  2946. if tar1 ~= nil then
  2947. table.insert(Protected, tar1)
  2948. OOrbs[i][2].Part1 = tar1
  2949. OOrbs[i][2].C0 = cf(0, 0, 0)
  2950. table.insert(Effects, {OOrbs[i][1], "Protect", OOrbs[i][3], 0, 50, tar1, tar1.Parent})
  2951. else
  2952. MagicCircle(BrickColor.new(NewCol2), cf(OOrbs[i][3].Position), 5, 5, 5, -0.5, -0.5, -0.5, 0.05, 1, nil, nil, 0)
  2953. OOrbs[i][1].Parent = nil
  2954. OOrbs[i][3].Parent = nil
  2955. table.remove(OOrbs, i)
  2956. end
  2957. -- DECOMPILER ERROR at PC1363: LeaveBlock: unexpected jumping out DO_STMT
  2958.  
  2959. end
  2960. end
  2961. end
  2962. for i = 0, 1, 0.13 do
  2963. swait()
  2964. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.45)
  2965. wld1.C0 = clerp(wld1.C0, cf(0, 0.5, 0) * euler(0, 1.57, 0) * euler(0.8, 0, 0), 0.45)
  2966. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.2, 0, 0), 0.45)
  2967. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -1), 0.45)
  2968. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.45)
  2969. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0.1) * euler(0.9, 0, -0.8) * euler(0.2, 0, 0) * euler(0, -1, 0), 0.45)
  2970. RH.C0 = clerp(RH.C0, cf(0.9, -0.9, -0.6) * euler(0, 1.57, 0) * euler(-0.1, 0.6, -0.05), 0.45)
  2971. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0.6) * euler(0, -1.57, 0) * euler(0, 1, 0.05), 0.45)
  2972. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2973. do
  2974. if StaggerHit.Value == true then
  2975. break
  2976. end
  2977. -- DECOMPILER ERROR at PC1569: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2978.  
  2979. -- DECOMPILER ERROR at PC1569: LeaveBlock: unexpected jumping out IF_STMT
  2980.  
  2981. end
  2982. end
  2983. end
  2984. else
  2985. if #Orbs == 3 and O3 == false then
  2986. O3 = true
  2987. for i = 0, 1, 0.1 do
  2988. swait()
  2989. MagicCircle2(BrickColor.new(NewCol2), cf(prt56.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 4, 1, -0.01, 1, -0.01, 0.1, 0.6)
  2990. for i = 1, #Orbs do
  2991. MagicBlock(BrickColor.new(NewCol4), cf(Orbs[i][3].Position) * cf(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1.5, 1.5, 1.5, -0.2, -0.2, -0.2, 0.2, 1)
  2992. end
  2993. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  2994. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * euler(0.4, 0, 0) * cf(0, 0, 0), 0.3)
  2995. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.1, 0, 0), 0.3)
  2996. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -1), 0.3)
  2997. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.3)
  2998. LW.C0 = clerp(LW.C0, cf(-1.1, 0.5, -0.5) * euler(1.57, 0, 0.6) * euler(0.2, 0, 0) * euler(0, -1.4, 0), 0.3)
  2999. RH.C0 = clerp(RH.C0, cf(0.9, -0.9, -0.6) * euler(0, 1.57, 0) * euler(-0.1, 0.6, -0.05), 0.3)
  3000. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0.6) * euler(0, -1.57, 0) * euler(0, 1, 0.05), 0.3)
  3001. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  3002. do
  3003. if StaggerHit.Value == true then
  3004. break
  3005. end
  3006. -- DECOMPILER ERROR at PC1886: LeaveBlock: unexpected jumping out IF_THEN_STMT
  3007.  
  3008. -- DECOMPILER ERROR at PC1886: LeaveBlock: unexpected jumping out IF_STMT
  3009.  
  3010. end
  3011. end
  3012. end
  3013. dar = #OOrbs
  3014. table.insert(OOrbs, Orbs[1])
  3015. table.insert(OOrbs, Orbs[2])
  3016. table.insert(OOrbs, Orbs[3])
  3017. for i = 1, #Orbs do
  3018. table.remove(Orbs, 1)
  3019. end
  3020. for i = dar + 1, dar + 3 do
  3021. OOrbs[i][1].Anchored = true
  3022. OOrbs[i][2].Parent = nil
  3023. OOrbs[i][3].Anchored = true
  3024. OOrbs[i][4].MaxSpeed = 500
  3025. OOrbs[i][4].Parent = nil
  3026. bleh = MMouse.Hit.p + vt(math.random(-500, 500) / 100, math.random(-500, 500) / 100, math.random(-500, 500) / 100)
  3027. local MouseLook = cf((OOrbs[i][3].Position + bleh) / 2, bleh)
  3028. local targ = OOrbs[i][3].Position - bleh
  3029. local mag = targ.magnitude / 5 * math.random(80, 120) / 100
  3030. if mag > 50 then
  3031. mag = 50
  3032. end
  3033. so("377357731", OOrbs[i][1], 1, 1.4)
  3034. table.insert(Effects, {MouseLook.lookVector, "ShootSeek", mag, OOrbs[i][1], OOrbs[i][2], OOrbs[i][3], OOrbs[i][4], OOrbs[i][3].Position, 4, 6})
  3035. end
  3036. for i = 0, 1, 0.05 do
  3037. swait()
  3038. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.4)
  3039. wld1.C0 = clerp(wld1.C0, cf(0, -0.5, 0) * euler(0, 1.57, 0) * euler(1, 0, 0), 0.4)
  3040. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.2) * euler(0.05, 0, 0), 0.4)
  3041. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.2), 0.4)
  3042. if i < 0.4 then
  3043. RootJoint.C1 = clerp(RootJoint.C1, RootCF * euler(0, 0, -15 * i), 0.4)
  3044. else
  3045. RootJoint.C1 = clerp(RootJoint.C1, RootCF, 0.4)
  3046. end
  3047. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.4)
  3048. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.3) * euler(-0.2, 0, 0) * euler(0, -1.4, 0), 0.4)
  3049. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.1) * euler(0, 1.57, 0) * euler(0, -0.2, 0.1), 0.4)
  3050. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.2) * euler(0, -1.57, 0) * euler(-0.1, -0.2, 0.1), 0.4)
  3051. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  3052. do
  3053. if StaggerHit.Value == true then
  3054. break
  3055. end
  3056. -- DECOMPILER ERROR at PC2264: LeaveBlock: unexpected jumping out IF_THEN_STMT
  3057.  
  3058. -- DECOMPILER ERROR at PC2264: LeaveBlock: unexpected jumping out IF_STMT
  3059.  
  3060. end
  3061. end
  3062. end
  3063. else
  3064. if #Orbs == 4 and O4 == false then
  3065. O4 = true
  3066. for i = 0, 1, 0.1 do
  3067. swait()
  3068. MagicCircle2(BrickColor.new(NewCol2), cf(prt56.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 4, 1, -0.01, 1, -0.01, 0.1, 0.6)
  3069. for i = 1, #Orbs do
  3070. MagicBlock(BrickColor.new(NewCol4), cf(Orbs[i][3].Position) * cf(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1.5, 1.5, 1.5, -0.2, -0.2, -0.2, 0.2, 1)
  3071. end
  3072. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  3073. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * euler(-0.2, 0, 0) * cf(0, 0, 0), 0.3)
  3074. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.1, 0, 0), 0.3)
  3075. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -1), 0.3)
  3076. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.3)
  3077. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.2) * euler(1.57, 0, -1) * euler(1, 0, 0), 0.3)
  3078. RH.C0 = clerp(RH.C0, cf(0.9, -0.9, -0.6) * euler(0, 1.57, 0) * euler(-0.1, 0.6, -0.05), 0.3)
  3079. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0.6) * euler(0, -1.57, 0) * euler(0, 1, 0.05), 0.3)
  3080. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  3081. do
  3082. if StaggerHit.Value == true then
  3083. break
  3084. end
  3085. -- DECOMPILER ERROR at PC2575: LeaveBlock: unexpected jumping out IF_THEN_STMT
  3086.  
  3087. -- DECOMPILER ERROR at PC2575: LeaveBlock: unexpected jumping out IF_STMT
  3088.  
  3089. end
  3090. end
  3091. end
  3092. for i = 0, 1, 0.13 do
  3093. swait()
  3094. MagicCircle2(BrickColor.new(NewCol2), cf(prt56.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 4, 1, -0.01, 1, -0.01, 0.1, 0.6)
  3095. for i = 1, #Orbs do
  3096. MagicBlock(BrickColor.new(NewCol4), cf(Orbs[i][3].Position) * cf(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1.5, 1.5, 1.5, -0.2, -0.2, -0.2, 0.2, 1)
  3097. end
  3098. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.5)
  3099. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * euler(-0.1, 0, 0) * cf(0, 0, 0), 0.5)
  3100. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1) * euler(0.2, 0, 0), 0.5)
  3101. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -1), 0.5)
  3102. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.5)
  3103. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.2) * euler(1.57, 0, -1) * euler(-0.1, 0, 0), 0.5)
  3104. RH.C0 = clerp(RH.C0, cf(0.9, -0.9, -0.6) * euler(0, 1.57, 0) * euler(-0.1, 0.6, -0.05), 0.5)
  3105. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0.6) * euler(0, -1.57, 0) * euler(0, 1, 0.05), 0.5)
  3106. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  3107. do
  3108. if StaggerHit.Value == true then
  3109. break
  3110. end
  3111. -- DECOMPILER ERROR at PC2876: LeaveBlock: unexpected jumping out IF_THEN_STMT
  3112.  
  3113. -- DECOMPILER ERROR at PC2876: LeaveBlock: unexpected jumping out IF_STMT
  3114.  
  3115. end
  3116. end
  3117. end
  3118. MagicCircle(BrickColor.new(NewCol2), prt56.CFrame, 10, 10, 10, 1, 1, 1, 0.05, 1, nil, nil, 0)
  3119. shieldref.Parent = workspace
  3120. shieldref.Transparency = 1
  3121. shieldref.CFrame = cf(RootPart.Position) * cf(0, -1, 0)
  3122. shieldref2.Parent = workspace
  3123. shieldref2.Transparency = 1
  3124. shieldref2.CFrame = cf(shieldref.Position) * cf(0, 2.5, 0)
  3125. table.insert(Effects, {shieldref2, "ShieldEf"})
  3126. srefmsh.Scale = vt(4, 5, 4)
  3127. dar = #OOrbs
  3128. table.insert(OOrbs, Orbs[1])
  3129. table.insert(OOrbs, Orbs[2])
  3130. table.insert(OOrbs, Orbs[3])
  3131. table.insert(OOrbs, Orbs[4])
  3132. for i = 1, #Orbs do
  3133. table.remove(Orbs, 1)
  3134. end
  3135. teh = 0
  3136. for i = dar + 1, dar + 4 do
  3137. OOrbs[i][1].Anchored = true
  3138. OOrbs[i][2].Parent = nil
  3139. OOrbs[i][4].MaxSpeed = 100
  3140. OOrbs[i][1].CFrame = shieldref.CFrame * euler(0, teh, 0) * cf(0, 0, 20)
  3141. teh = teh + 1.57
  3142. end
  3143. table.insert(Effects, {shieldref, "Shield", 50, shieldref2})
  3144. end
  3145. end
  3146. end
  3147. end
  3148. attack = false
  3149. end
  3150. end
  3151. do2 = function()
  3152. if attack == true then
  3153. return
  3154. end
  3155. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  3156. return
  3157. end
  3158. if cooldownmax <= cooldowns[2] and mana.Value >= 20 then
  3159. attack = true
  3160. cooldowns[2] = 0
  3161. mana.Value = mana.Value - 20
  3162. local dec = Instance.new("NumberValue", Decrease)
  3163. dec.Name = "DecreaseMvmt"
  3164. dec.Value = 10
  3165. ref2 = part(3, nil, 0, 1, BrickColor.new("Black"), "Reference", vt())
  3166. ref2.Anchored = true
  3167. for i = 0, 1, 0.1 do
  3168. swait()
  3169. ref2.CFrame = cf(prt18.Position) * cf(math.random(-500, 500) / 100, 0, math.random(-500, 500) / 100)
  3170. hitfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 50, Character)
  3171. if hitfloor2 ~= nil then
  3172. Lightning(prt18.Position, RootPart.Position, 5, 1, NewCol2, 0.1, 0.4, 0.1)
  3173. end
  3174. MagicCircle(BrickColor.new(NewCol2), cf(prt18.Position), 6, 6, 6, -1, -1, -1, 0.05, 1, nil, nil, 0.5)
  3175. MagicBlock(BrickColor.new(NewCol2), cf(prt18.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 2, 2, 2, -0.5, -0.5, -0.5, 0.1, 2)
  3176. wld23.C0 = clerp(wld23.C0, euler(0, math.rad(60), 0) * cf(-0.045, 0, 0), 0.45)
  3177. wld27.C0 = clerp(wld27.C0, euler(0, math.rad(60), 3.14) * cf(0.045, 0, 0), 0.45)
  3178. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  3179. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * euler(0.6, 0, 0) * cf(0, 0, 0), 0.3)
  3180. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.2) * euler(0.2, 0, 0), 0.3)
  3181. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -0.2), 0.3)
  3182. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.4)
  3183. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.5, 0, -0.2), 0.3)
  3184. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, 0.2) * euler(0, 1.57, 0) * euler(-0.1, -0.4, -0.05), 0.3)
  3185. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.05), 0.3)
  3186. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  3187. do
  3188. if StaggerHit.Value == true then
  3189. break
  3190. end
  3191. -- DECOMPILER ERROR at PC431: LeaveBlock: unexpected jumping out IF_THEN_STMT
  3192.  
  3193. -- DECOMPILER ERROR at PC431: LeaveBlock: unexpected jumping out IF_STMT
  3194.  
  3195. end
  3196. end
  3197. end
  3198. so("315743331", prt18, 1, 2)
  3199. for i = 0, 1, 0.2 do
  3200. swait()
  3201. ref2.CFrame = cf(prt18.Position) * cf(math.random(-500, 500) / 100, 0, math.random(-500, 500) / 100)
  3202. hitfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 50, Character)
  3203. if hitfloor2 ~= nil then
  3204. Lightning(prt18.Position, RootPart.Position, 5, 1, NewCol2, 0.1, 0.4, 0.1)
  3205. end
  3206. MagicCircle(BrickColor.new(NewCol2), cf(prt18.Position), 6, 6, 6, -1, -1, -1, 0.05, 1, nil, nil, 0.5)
  3207. MagicBlock(BrickColor.new(NewCol2), cf(prt18.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 2, 2, 2, -0.5, -0.5, -0.5, 0.1, 2)
  3208. wld23.C0 = clerp(wld23.C0, euler(0, math.rad(60), 0) * cf(-0.045, 0, 0), 0.45)
  3209. wld27.C0 = clerp(wld27.C0, euler(0, math.rad(60), 3.14) * cf(0.045, 0, 0), 0.45)
  3210. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.45)
  3211. wld1.C0 = clerp(wld1.C0, cf(0, -0.7, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.45)
  3212. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.2) * euler(0.3, 0, 0), 0.45)
  3213. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * euler(0, 0, -0.2), 0.45)
  3214. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.4)
  3215. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -0.2), 0.45)
  3216. RH.C0 = clerp(RH.C0, cf(1.1, -0.2, -0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.4, -0.3), 0.45)
  3217. LH.C0 = clerp(LH.C0, cf(-1, -0.1, -0.2) * euler(0, -1.57, 0) * euler(0, 0.2, 0.1), 0.45)
  3218. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  3219. do
  3220. if StaggerHit.Value == true then
  3221. break
  3222. end
  3223. -- DECOMPILER ERROR at PC809: LeaveBlock: unexpected jumping out IF_THEN_STMT
  3224.  
  3225. -- DECOMPILER ERROR at PC809: LeaveBlock: unexpected jumping out IF_STMT
  3226.  
  3227. end
  3228. end
  3229. end
  3230. shieldref.Parent = nil
  3231. table.insert(Effects, {shieldref2, "Cylinder", 0.05, 0.1, 0.1, 0.1, srefmsh})
  3232. O1 = false
  3233. O2 = false
  3234. O3 = false
  3235. O4 = false
  3236. for i = 1, #OOrbs do
  3237. ref = part(3, workspace, 0, 1, BrickColor.new("Really red"), "Reference", vt())
  3238. ref.Anchored = true
  3239. ref.CFrame = cf(OOrbs[1][3].Position)
  3240. so("161006093", ref, 1, 1.8)
  3241. game:GetService("Debris"):AddItem(ref, 0.2)
  3242. MagicCircle(BrickColor.new(NewCol2), cf(OOrbs[1][3].Position), 10, 10, 10, 5, 5, 5, 0.07)
  3243. dra = math.random(-50, 50)
  3244. for i = 0.785, 6.28, 0.785 do
  3245. MagicCircle2(BrickColor.new(NewCol2), cf(OOrbs[1][3].Position) * euler(dra, 0, i), 4, 5, 4, -0.02, 2, -0.02, 0.05, 0.8)
  3246. end
  3247. MagniDamage(ref, 15, 10, 12, 0, "Normal", ref, 0, 1, (math.random(3, 5)), nil, nil, true)
  3248. MagniHeal(ref, 10, 4, 6)
  3249. OOrbs[1][1].Parent = nil
  3250. OOrbs[1][3].Parent = nil
  3251. table.remove(OOrbs, 1)
  3252. end
  3253. for i = 1, #Protected do
  3254. table.remove(Protected, 1)
  3255. end
  3256. for i = 0, 1, 0.15 do
  3257. swait()
  3258. ref2.CFrame = cf(prt18.Position) * cf(math.random(-500, 500) / 100, 0, math.random(-500, 500) / 100)
  3259. hitfloor2 = rayCast(ref2.Position, CFrame.new(ref2.Position, ref2.Position - Vector3.new(0, 1, 0)).lookVector, 50, Character)
  3260. if hitfloor2 ~= nil then
  3261. Lightning(prt18.Position, RootPart.Position, 5, 1, NewCol2, 0.1, 0.4, 0.1)
  3262. end
  3263. MagicCircle(BrickColor.new(NewCol2), cf(prt18.Position), 6, 6, 6, -1, -1, -1, 0.05, 1, nil, nil, 0.5)
  3264. MagicBlock(BrickColor.new(NewCol2), cf(prt18.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 2, 2, 2, -0.5, -0.5, -0.5, 0.1, 2)
  3265. wld23.C0 = clerp(wld23.C0, euler(0, math.rad(60), 0) * cf(-0.045, 0, 0), 0.45)
  3266. wld27.C0 = clerp(wld27.C0, euler(0, math.rad(60), 3.14) * cf(0.045, 0, 0), 0.45)
  3267. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.45)
  3268. wld1.C0 = clerp(wld1.C0, cf(0, -0.7, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.45)
  3269. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.2) * euler(0.3, 0, 0), 0.45)
  3270. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * euler(0, 0, -0.2), 0.45)
  3271. RW.C0 = clerp(RW.C0, cf(0.8, 0.4, 0.2) * euler(-0.6, 0, -0.9) * euler(0, -0.2, 0), 0.4)
  3272. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -0.2), 0.45)
  3273. RH.C0 = clerp(RH.C0, cf(1.1, -0.2, -0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.4, -0.3), 0.45)
  3274. LH.C0 = clerp(LH.C0, cf(-1, -0.1, -0.2) * euler(0, -1.57, 0) * euler(0, 0.2, 0.1), 0.45)
  3275. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  3276. do
  3277. if StaggerHit.Value == true then
  3278. break
  3279. end
  3280. -- DECOMPILER ERROR at PC1352: LeaveBlock: unexpected jumping out IF_THEN_STMT
  3281.  
  3282. -- DECOMPILER ERROR at PC1352: LeaveBlock: unexpected jumping out IF_STMT
  3283.  
  3284. end
  3285. end
  3286. end
  3287. dec.Parent = nil
  3288. attack = false
  3289. for i = 0, 1, 0.1 do
  3290. swait()
  3291. wld23.C0 = clerp(wld23.C0, euler(0, math.rad(0), 0) * cf(-0.045, 0, 0), 0.45)
  3292. wld27.C0 = clerp(wld27.C0, euler(0, math.rad(0), 3.14) * cf(0.045, 0, 0), 0.45)
  3293. end
  3294. wld23.C0 = clerp(wld23.C0, euler(0, math.rad(0), 0) * cf(-0.045, 0, 0), 1)
  3295. wld27.C0 = clerp(wld27.C0, euler(0, math.rad(0), 3.14) * cf(0.045, 0, 0), 1)
  3296. end
  3297. end
  3298. do3 = function()
  3299. if attack == true then
  3300. return
  3301. end
  3302. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  3303. return
  3304. end
  3305. if cooldownmax <= cooldowns[3] and mana.Value >= 20 then
  3306. attack = true
  3307. cooldowns[3] = 0
  3308. mana.Value = mana.Value - 20
  3309. for i = 0, 1, 0.1 do
  3310. swait()
  3311. MagicBlock(BrickColor.new(NewCol2), RightArm.CFrame * cf(0, -1, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cf(0, -2, 0), 2, 2, 2, -0.5, -0.5, -0.5, 0.1, 3)
  3312. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  3313. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.3)
  3314. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.2, 0, 0), 0.3)
  3315. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -0.8), 0.3)
  3316. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, -0.2) * euler(1.2, 0, -0.6) * euler(0, 0, 0), 0.3)
  3317. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.3, 0, -0.8) * euler(0, 0.4, 0), 0.3)
  3318. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.4) * euler(0, 1.57, 0) * euler(-0.1, 0.2, -0.05), 0.3)
  3319. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, 0.4) * euler(0, -1.57, 0) * euler(0, 0.8, 0.05), 0.3)
  3320. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  3321. do
  3322. if StaggerHit.Value == true then
  3323. break
  3324. end
  3325. -- DECOMPILER ERROR at PC276: LeaveBlock: unexpected jumping out IF_THEN_STMT
  3326.  
  3327. -- DECOMPILER ERROR at PC276: LeaveBlock: unexpected jumping out IF_STMT
  3328.  
  3329. end
  3330. end
  3331. end
  3332. so("315743331", RightArm, 1, 1.6)
  3333. so("315743350", RightArm, 1, 1.6)
  3334. for i = 1, 0, -0.05 do
  3335. swait()
  3336. hitbox.CFrame = RightArm.CFrame * cf(0, -1, 0)
  3337. smite = true
  3338. MagniDamage(hitbox, 3, 7, 9, 0, "Normal", RootPart, 1, 2, (math.random(3, 5)), nil, true)
  3339. smite = false
  3340. if Rooted.Value == false then
  3341. Torso.Velocity = RootPart.CFrame.lookVector * 80 * i
  3342. end
  3343. MagicCircle(BrickColor.new(NewCol2), RightArm.CFrame * cf(0, -1, 0), 15, 15, 15, -2, -2, -2, 0.05, 1, nil, nil, 0.5)
  3344. MagicBlock(BrickColor.new(NewCol2), RightArm.CFrame * cf(0, -1, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cf(0, -2, 0), 2, 2, 2, -0.5, -0.5, -0.5, 0.1, 3)
  3345. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.5)
  3346. wld1.C0 = clerp(wld1.C0, euler(-0.4, 0, 0) * cf(0, 0, 0), 0.5)
  3347. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.8) * euler(0, 0, 0), 0.5)
  3348. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.8), 0.5)
  3349. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, -0.2) * euler(1.5, 0, 0.8) * euler(0, 0, 0), 0.5)
  3350. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.8) * euler(0, 0.2, 0), 0.5)
  3351. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, 0.4) * euler(0, 1.57, 0) * euler(-0.1, -1, 0.1), 0.5)
  3352. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, -0.4) * euler(0, -1.57, 0) * euler(0, -0.8, 0.1), 0.5)
  3353. if Stagger.Value ~= true and StunT.Value > Stun.Value and StaggerHit.Value ~= true then
  3354. do
  3355. if smtarget ~= nil then
  3356. break
  3357. end
  3358. -- DECOMPILER ERROR at PC598: LeaveBlock: unexpected jumping out IF_THEN_STMT
  3359.  
  3360. -- DECOMPILER ERROR at PC598: LeaveBlock: unexpected jumping out IF_STMT
  3361.  
  3362. end
  3363. end
  3364. end
  3365. if smtarget ~= nil then
  3366. if Rooted.Value == false then
  3367. Torso.Velocity = RootPart.CFrame.lookVector * -80
  3368. end
  3369. for i = 0, 1, 0.1 do
  3370. swait()
  3371. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  3372. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.3)
  3373. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.2, 0, 0), 0.3)
  3374. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -0.8), 0.3)
  3375. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, -0.2) * euler(1, 0, 1) * euler(0, 0, 0), 0.3)
  3376. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.3, 0, -0.8) * euler(0, 0.4, 0), 0.3)
  3377. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.4) * euler(0, 1.57, 0) * euler(-0.1, 0.2, -0.05), 0.3)
  3378. LH.C0 = clerp(LH.C0, cf(-0.9, -0.9, 0.4) * euler(0, -1.57, 0) * euler(0, 0.8, 0.05), 0.3)
  3379. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  3380. do
  3381. if StaggerHit.Value == true then
  3382. break
  3383. end
  3384. -- DECOMPILER ERROR at PC805: LeaveBlock: unexpected jumping out IF_THEN_STMT
  3385.  
  3386. -- DECOMPILER ERROR at PC805: LeaveBlock: unexpected jumping out IF_STMT
  3387.  
  3388. end
  3389. end
  3390. end
  3391. end
  3392. smite = false
  3393. smtarget = nil
  3394. attack = false
  3395. end
  3396. end
  3397. do4 = function()
  3398. if attack == true then
  3399. return
  3400. end
  3401. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  3402. return
  3403. end
  3404. attack = true
  3405. cooldowns[4] = 0
  3406. attack = false
  3407. end
  3408. DecreaseStat = function(Model, Stat, Amount, Duration)
  3409. if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
  3410. Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
  3411. d = Instance.new("NumberValue", Model.Stats.Decrease)
  3412. dur = Instance.new("NumberValue", d)
  3413. dur.Name = "Duration"
  3414. dur.Value = Duration
  3415. game:GetService("Debris"):AddItem(d, 20)
  3416. if Stat == "Damage" then
  3417. d.Name = "DecreaseAtk"
  3418. else
  3419. if Stat == "Defense" then
  3420. d.Name = "DecreaseDef"
  3421. else
  3422. if Stat == "Movement" then
  3423. d.Name = "DecreaseMvmt"
  3424. end
  3425. end
  3426. end
  3427. if Model:findFirstChild("Torso") ~= nil then
  3428. display = ""
  3429. if Stat == "Damage" then
  3430. if Amount > 0 then
  3431. display = "-Damage"
  3432. else
  3433. display = "+Damage"
  3434. end
  3435. else
  3436. if Stat == "Defense" then
  3437. if Amount > 0 then
  3438. display = "-Defense"
  3439. else
  3440. display = "+Defense"
  3441. end
  3442. else
  3443. if Stat == "Movement" then
  3444. if Amount > 0 then
  3445. display = "-Movement"
  3446. else
  3447. display = "+Movement"
  3448. end
  3449. end
  3450. end
  3451. end
  3452. showDamage(Model, display, "Debuff")
  3453. end
  3454. d.Value = Amount
  3455. end
  3456. end
  3457. GetDist = function(Part1, Part2, magni)
  3458. local targ = Part1.Position - Part2.Position
  3459. local mag = targ.magnitude
  3460. if mag <= magni then
  3461. return true
  3462. else
  3463. return false
  3464. end
  3465. end
  3466. MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  3467. for _,c in pairs(workspace:children()) do
  3468. local hum = c:findFirstChild("Humanoid")
  3469. if hum ~= nil then
  3470. local head = nil
  3471. for _,d in pairs(c:children()) do
  3472. if d.className == "Model" and ranged ~= true then
  3473. head = d:findFirstChild("Hitbox")
  3474. if d.Parent == Character then
  3475. break
  3476. end
  3477. if head ~= nil then
  3478. local targ = head.Position - Part.Position
  3479. local mag = targ.magnitude
  3480. if mag <= magni and c.Name ~= Player.Name then
  3481. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  3482. ref.Anchored = true
  3483. ref.CFrame = cf(head.Position)
  3484. game:GetService("Debris"):AddItem(ref, 1)
  3485. hitnum = math.random(1, 5)
  3486. if hitnum == 1 then
  3487. so("199148971", ref, 1, 1)
  3488. else
  3489. if hitnum == 2 then
  3490. so("199149025", ref, 1, 1)
  3491. else
  3492. if hitnum == 3 then
  3493. so("199149072", ref, 1, 1)
  3494. else
  3495. if hitnum == 4 then
  3496. so("199149109", ref, 1, 1)
  3497. else
  3498. if hitnum == 5 then
  3499. so("199149119", ref, 1, 1)
  3500. end
  3501. end
  3502. end
  3503. end
  3504. end
  3505. StaggerHit.Value = true
  3506. end
  3507. end
  3508. end
  3509. do
  3510. if d.className == "Part" then
  3511. head = d
  3512. if head ~= nil then
  3513. local targ = head.Position - Part.Position
  3514. local mag = targ.magnitude
  3515. if mag <= magni and c.Name ~= Player.Name then
  3516. if stun == nil then
  3517. stun = math.random(5, 10)
  3518. end
  3519. local Rang = nil
  3520. if Ranged == false then
  3521. Rang = true
  3522. end
  3523. local stag = nil
  3524. if shbash == true then
  3525. stag = true
  3526. end
  3527. Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  3528. end
  3529. end
  3530. end
  3531. do
  3532. -- DECOMPILER ERROR at PC183: LeaveBlock: unexpected jumping out DO_STMT
  3533.  
  3534. end
  3535. end
  3536. end
  3537. end
  3538. end
  3539. end
  3540. MagniBuff = function(Part, magni, Dec, DecAm, Dur)
  3541. if Player.Neutral == true then
  3542. DecreaseStat(Character, Dec, DecAm, Dur)
  3543. end
  3544. for _,c in pairs(workspace:children()) do
  3545. local hum = c:findFirstChild("Humanoid")
  3546. if hum ~= nil then
  3547. local head = c:findFirstChild("Torso")
  3548. if head ~= nil then
  3549. local targ = head.Position - Part.Position
  3550. local mag = targ.magnitude
  3551. cando = true
  3552. if mag <= magni then
  3553. if Player.Neutral == false then
  3554. if game.Players:GetPlayerFromCharacter(head.Parent) ~= nil then
  3555. if game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
  3556. cando = true
  3557. else
  3558. cando = false
  3559. end
  3560. else
  3561. cando = false
  3562. end
  3563. if head.Parent:findFirstChild("Alignment") ~= nil and head.Parent.Alignment.Value == Player.TeamColor.Color then
  3564. cando = true
  3565. end
  3566. else
  3567. cando = false
  3568. end
  3569. if cando == true then
  3570. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  3571. end
  3572. end
  3573. end
  3574. end
  3575. end
  3576. end
  3577. MagniDebuff = function(Part, magni, Dec, DecAm, Dur)
  3578. for _,c in pairs(workspace:children()) do
  3579. local hum = c:findFirstChild("Humanoid")
  3580. if hum ~= nil then
  3581. local head = c:findFirstChild("Torso")
  3582. if head ~= nil then
  3583. local targ = head.Position - Part.Position
  3584. local mag = targ.magnitude
  3585. -- DECOMPILER ERROR at PC53: Unhandled construct in 'MakeBoolean' P1
  3586.  
  3587. -- DECOMPILER ERROR at PC53: Unhandled construct in 'MakeBoolean' P1
  3588.  
  3589. if mag <= magni and c.Name ~= Player.Name and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and (game.Players:GetPlayerFromCharacter(head.Parent).TeamColor ~= Player.TeamColor or Player.Neutral == true) then
  3590. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  3591. end
  3592. end
  3593. end
  3594. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  3595. end
  3596. end
  3597. MagniHeal = function(Part, magni, mindam, maxdam)
  3598. for _,c in pairs(workspace:children()) do
  3599. local hum = c:findFirstChild("Humanoid")
  3600. if hum ~= nil then
  3601. local head = c:findFirstChild("Torso")
  3602. if head ~= nil then
  3603. local targ = head.Position - Part.Position
  3604. local mag = targ.magnitude
  3605. local cando = true
  3606. if mag <= magni then
  3607. if game.Players:GetPlayerFromCharacter(head.Parent) ~= nil then
  3608. if game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
  3609. cando = true
  3610. else
  3611. cando = false
  3612. end
  3613. else
  3614. cando = false
  3615. end
  3616. if head.Parent:findFirstChild("Alignment") ~= nil and head.Parent.Alignment.Value == Player.TeamColor.Color then
  3617. cando = true
  3618. end
  3619. if cando == true then
  3620. Heal = math.random(mindam, maxdam)
  3621. if c.Parent == Character then
  3622. Heal = math.floor(math.random(mindam / 2, maxdam / 2))
  3623. end
  3624. hum.Health = hum.Health + Heal
  3625. showDamage(c, Heal, "Heal")
  3626. end
  3627. end
  3628. end
  3629. end
  3630. end
  3631. end
  3632. rayCast = function(Pos, Dir, Max, Ignore)
  3633. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  3634. end
  3635. findNearestTorso = function(pos)
  3636. local list = (game.Workspace:children())
  3637. local torso = nil
  3638. local dist = 1000
  3639. local temp, human, temp2 = nil, nil, nil
  3640. for x = 1, #list do
  3641. temp2 = list[x]
  3642. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  3643. temp = temp2:findFirstChild("Torso")
  3644. human = temp2:findFirstChild("Humanoid")
  3645. if temp ~= nil and human ~= nil and human.Health > 0 and temp.Position - pos.magnitude < dist then
  3646. local dohit = true
  3647. if temp2:findFirstChild("Alive") == nil then
  3648. dohit = false
  3649. end
  3650. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(temp.Parent) ~= nil and game.Players:GetPlayerFromCharacter(temp.Parent).TeamColor == Player.TeamColor then
  3651. dohit = false
  3652. end
  3653. if Player.Neutral == false and temp2:findFirstChild("Alignment") ~= nil and temp2.Alignment.Value == Player.TeamColor.Color then
  3654. dohit = false
  3655. end
  3656. if dohit == true then
  3657. torso = temp
  3658. dist = temp.Position - pos.magnitude
  3659. end
  3660. end
  3661. end
  3662. end
  3663. return torso, dist
  3664. end
  3665. findNearestAlly = function(pos)
  3666. local list = (game.Workspace:children())
  3667. local torso = nil
  3668. local dist = 1000
  3669. local temp, human, temp2 = nil, nil, nil
  3670. for x = 1, #list do
  3671. temp2 = list[x]
  3672. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  3673. temp = temp2:findFirstChild("Torso")
  3674. human = temp2:findFirstChild("Humanoid")
  3675. if temp ~= nil and human ~= nil and human.Health > 0 and temp.Position - pos.magnitude < dist then
  3676. local dohit = false
  3677. if temp2:findFirstChild("Alive") == nil then
  3678. dohit = false
  3679. end
  3680. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(temp.Parent) ~= nil and game.Players:GetPlayerFromCharacter(temp.Parent).TeamColor == Player.TeamColor then
  3681. dohit = true
  3682. end
  3683. if Player.Neutral == false and temp2:findFirstChild("Alignment") ~= nil and temp2.Alignment.Value == Player.TeamColor.Color then
  3684. dohit = true
  3685. end
  3686. if dohit == true then
  3687. torso = temp
  3688. dist = temp.Position - pos.magnitude
  3689. end
  3690. end
  3691. end
  3692. end
  3693. return torso, dist
  3694. end
  3695. findNearestAlly2 = function(pos)
  3696. local list = (game.Workspace:children())
  3697. local torso = nil
  3698. local dist = 1000
  3699. local temp, human, temp2 = nil, nil, nil
  3700. for x = 1, #list do
  3701. temp2 = list[x]
  3702. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  3703. temp = temp2:findFirstChild("Torso")
  3704. human = temp2:findFirstChild("Humanoid")
  3705. if temp ~= nil and human ~= nil and human.Health > 0 and temp.Position - pos.magnitude < dist then
  3706. local dohit = false
  3707. if temp2:findFirstChild("Alive") == nil then
  3708. dohit = false
  3709. end
  3710. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(temp.Parent) ~= nil and game.Players:GetPlayerFromCharacter(temp.Parent).TeamColor == Player.TeamColor then
  3711. dohit = true
  3712. end
  3713. if Player.Neutral == false and temp2:findFirstChild("Alignment") ~= nil and temp2.Alignment.Value == Player.TeamColor.Color then
  3714. dohit = true
  3715. end
  3716. for i = 1, #Protected do
  3717. if Protected[i] == temp then
  3718. dohit = false
  3719. end
  3720. end
  3721. if dohit == true then
  3722. torso = temp
  3723. dist = temp.Position - pos.magnitude
  3724. end
  3725. end
  3726. end
  3727. end
  3728. return torso, dist
  3729. end
  3730. local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
  3731. LastPoint = Point
  3732. effect = function(Color, Ref, LP, P1, returnn, size, thing1)
  3733. if LP == nil or P1 == nil then
  3734. return
  3735. end
  3736. local effectsmsh = Instance.new("SpecialMesh")
  3737. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  3738. effectsmsh.MeshType = "Head"
  3739. effectsmsh.Name = "Mesh"
  3740. local effectsg = Instance.new("Part")
  3741. NoOutline(effectsg)
  3742. effectsg.formFactor = 3
  3743. effectsg.CanCollide = false
  3744. effectsg.Name = "Eff"
  3745. effectsg.Locked = true
  3746. effectsg.Anchored = true
  3747. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  3748. effectsg.Parent = effects
  3749. effectsmsh.Parent = effectsg
  3750. effectsg.BrickColor = BrickColor.new(Color)
  3751. effectsg.Reflectance = Ref
  3752. local point1 = P1
  3753. local mg = LP.p - point1.p.magnitude
  3754. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  3755. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  3756. effectsmsh.Scale = Vector3.new(size, 1, size)
  3757. game:GetService("Debris"):AddItem(effectsg, 2)
  3758. if returnn then
  3759. return effectsg
  3760. end
  3761. if not returnn then
  3762. if thing1 == 1 then
  3763. table.insert(Effects, {effectsg, "Cylinder", 0.05, 0.2, 0, 0.2, effectsmsh})
  3764. else
  3765. table.insert(Effects, {effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
  3766. end
  3767. end
  3768. end
  3769. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  3770. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  3771. prt.Anchored = true
  3772. prt.CFrame = cframe
  3773. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3774. game:GetService("Debris"):AddItem(prt, 10)
  3775. if Type == 1 or Type == nil then
  3776. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  3777. else
  3778. if Type == 2 then
  3779. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  3780. else
  3781. if Type == 3 then
  3782. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh, prt.CFrame, math.random(10, 50) / 100})
  3783. end
  3784. end
  3785. end
  3786. end
  3787. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, prt2, par, trans)
  3788. local prt = (part(3, effects, 0, trans, brickcolor, "Effect", vt()))
  3789. local wld = nil
  3790. prt.Anchored = true
  3791. prt.CFrame = cframe
  3792. if par ~= nil then
  3793. prt.Parent = par
  3794. end
  3795. if Type ~= 3 then
  3796. prt.Anchored = true
  3797. else
  3798. prt.Anchored = false
  3799. wld = weld(prt, prt, prt2, cframe)
  3800. end
  3801. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  3802. game:GetService("Debris"):AddItem(prt, 10)
  3803. if Type ~= 3 then
  3804. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  3805. else
  3806. table.insert(Effects, {prt, "Block4", delay, x3, y3, z3, msh, wld, cframe})
  3807. end
  3808. end
  3809. MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push)
  3810. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  3811. prt.Anchored = true
  3812. prt.CFrame = cframe
  3813. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  3814. game:GetService("Debris"):AddItem(prt, 10)
  3815. table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push})
  3816. end
  3817. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3818. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  3819. prt.Anchored = true
  3820. prt.CFrame = cframe
  3821. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3822. game:GetService("Debris"):AddItem(prt, 10)
  3823. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  3824. end
  3825. MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3826. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  3827. prt.Anchored = true
  3828. prt.CFrame = cframe
  3829. local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  3830. game:GetService("Debris"):AddItem(prt, 10)
  3831. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  3832. end
  3833. ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
  3834. local prt = part(3, effects, 0, 1, brickcolor, "Effect", vt())
  3835. prt.Anchored = true
  3836. prt.CFrame = cframe
  3837. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
  3838. game:GetService("Debris"):AddItem(prt, 10)
  3839. table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
  3840. end
  3841. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3842. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  3843. prt.Anchored = true
  3844. prt.CFrame = cframe
  3845. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  3846. game:GetService("Debris"):AddItem(prt, 10)
  3847. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  3848. end
  3849. MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, par)
  3850. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3851. prt.Anchored = true
  3852. if par ~= nil then
  3853. prt.Parent = par
  3854. end
  3855. prt.CFrame = cframe * cf(x2, y2, z2)
  3856. local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1))
  3857. game:GetService("Debris"):AddItem(prt, 10)
  3858. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  3859. end
  3860. MagicSpecial = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3861. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  3862. prt.Anchored = true
  3863. prt.CFrame = cframe
  3864. local msh = mesh("SpecialMesh", prt, "FileMesh", "24388358", vt(0, 0, 0), vt(x1, y1, z1))
  3865. game:GetService("Debris"):AddItem(prt, 10)
  3866. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  3867. end
  3868. Lightning = function(p0, p1, tym, ofs, col, th, tra, last)
  3869. local magz = p0 - p1
  3870. local curpos = p0
  3871. local trz = {-ofs, ofs}
  3872. for i = 1, tym do
  3873. local li = Instance.new("Part", effects)
  3874. li.TopSurface = 0
  3875. li.BottomSurface = 0
  3876. li.Anchored = true
  3877. li.Transparency = tra or 0.4
  3878. li.BrickColor = BrickColor.new(col)
  3879. li.formFactor = "Custom"
  3880. li.CanCollide = false
  3881. li.Size = Vector3.new(th, th, magz / tym)
  3882. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  3883. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  3884. if tym == i then
  3885. local magz2 = curpos - p1
  3886. li.Size = Vector3.new(th, th, magz2)
  3887. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  3888. else
  3889. do
  3890. do
  3891. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  3892. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  3893. game.Debris:AddItem(li, 10)
  3894. table.insert(Effects, {li, "Disappear", last})
  3895. -- DECOMPILER ERROR at PC137: LeaveBlock: unexpected jumping out DO_STMT
  3896.  
  3897. -- DECOMPILER ERROR at PC137: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  3898.  
  3899. -- DECOMPILER ERROR at PC137: LeaveBlock: unexpected jumping out IF_STMT
  3900.  
  3901. end
  3902. end
  3903. end
  3904. end
  3905. end
  3906. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  3907. if hit.Parent == nil then
  3908. return
  3909. end
  3910. if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then
  3911. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  3912. ref.Anchored = true
  3913. ref.CFrame = cf(hit.Position)
  3914. game:GetService("Debris"):AddItem(ref, 1)
  3915. hitnum = math.random(1, 5)
  3916. if hitnum == 1 then
  3917. so("199148971", ref, 1, 1)
  3918. else
  3919. if hitnum == 2 then
  3920. so("199149025", ref, 1, 1)
  3921. else
  3922. if hitnum == 3 then
  3923. so("199149072", ref, 1, 1)
  3924. else
  3925. if hitnum == 4 then
  3926. so("199149109", ref, 1, 1)
  3927. else
  3928. if hitnum == 5 then
  3929. so("199149119", ref, 1, 1)
  3930. end
  3931. end
  3932. end
  3933. end
  3934. end
  3935. StaggerHit.Value = true
  3936. end
  3937. h = hit.Parent:FindFirstChild("Humanoid")
  3938. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  3939. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  3940. return
  3941. end
  3942. if Player.Neutral == false then
  3943. if hit.Parent:findFirstChild("Alignment") ~= nil and hit.Parent.Alignment.Value == Player.TeamColor.Color then
  3944. return
  3945. end
  3946. if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then
  3947. return
  3948. end
  3949. end
  3950. c = Instance.new("ObjectValue")
  3951. c.Name = "creator"
  3952. c.Value = game:service("Players").LocalPlayer
  3953. c.Parent = h
  3954. RecentEnemy.Value = hit.Parent
  3955. game:GetService("Debris"):AddItem(c, 0.5)
  3956. minim = minim * Atk.Value
  3957. maxim = maxim * Atk.Value
  3958. Damage = 0
  3959. if minim == maxim then
  3960. Damage = maxim
  3961. else
  3962. Damage = math.random(minim, maxim)
  3963. end
  3964. blocked = false
  3965. enblock = nil
  3966. Stats = hit.Parent:findFirstChild("Stats")
  3967. if Stats ~= nil then
  3968. invis = Stats:findFirstChild("Invisibility")
  3969. isinvis = Stats:findFirstChild("IsInvisible")
  3970. if (ranged == false or ranged == nil) and invis ~= nil and isinvis.Value == true then
  3971. invis.Value = 0
  3972. end
  3973. enblock = Stats:findFirstChild("Block")
  3974. if enblock ~= nil and enblock.Value == true then
  3975. blocked = true
  3976. end
  3977. if Stats:findFirstChild("Defense") ~= nil then
  3978. Damage = Damage / Stats.Defense.Value
  3979. if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then
  3980. hitnum = math.random(1, 5)
  3981. if hitnum == 1 then
  3982. so("199149321", hit, 1, 1)
  3983. else
  3984. if hitnum == 2 then
  3985. so("199149338", hit, 1, 1)
  3986. else
  3987. if hitnum == 3 then
  3988. so("199149367", hit, 1, 1)
  3989. else
  3990. if hitnum == 4 then
  3991. so("199149409", hit, 1, 1)
  3992. else
  3993. if hitnum == 5 then
  3994. so("199149452", hit, 1, 1)
  3995. end
  3996. end
  3997. end
  3998. end
  3999. end
  4000. else
  4001. if ranged == false or ranged == nil and blocked ~= true then
  4002. hitnum = math.random(1, 6)
  4003. if hitnum == 1 then
  4004. so("199149137", hit, 1, 1)
  4005. else
  4006. if hitnum == 2 then
  4007. so("199149186", hit, 1, 1)
  4008. else
  4009. if hitnum == 3 then
  4010. so("199149221", hit, 1, 1)
  4011. else
  4012. if hitnum == 4 then
  4013. so("199149235", hit, 1, 1)
  4014. else
  4015. if hitnum == 5 then
  4016. so("199149269", hit, 1, 1)
  4017. else
  4018. if hitnum == 6 then
  4019. so("199149297", hit, 1, 1)
  4020. end
  4021. end
  4022. end
  4023. end
  4024. end
  4025. end
  4026. end
  4027. end
  4028. if Damage <= 3 and staghit == true and ranged ~= true then
  4029. StaggerHit.Value = true
  4030. end
  4031. end
  4032. if Stats:findFirstChild("Stun") ~= nil then
  4033. if blocked == true then
  4034. incstun = incstun / 2
  4035. end
  4036. if Stats.Stun.Value < Stats.StunThreshold.Value then
  4037. Stats.Stun.Value = Stats.Stun.Value + incstun
  4038. end
  4039. end
  4040. if Stats:findFirstChild("Stagger") ~= nil and stagger == true then
  4041. Stats.Stagger.Value = true
  4042. end
  4043. end
  4044. if blocked == true then
  4045. showDamage(hit.Parent, "Block", "Damage")
  4046. if ranged ~= true then
  4047. enblock.Value = false
  4048. Stagger.Value = true
  4049. hitnum = math.random(1, 2)
  4050. if hitnum == 1 then
  4051. so("199148933", hit, 1, 1)
  4052. else
  4053. if hitnum == 2 then
  4054. so("199148947", hit, 1, 1)
  4055. end
  4056. end
  4057. end
  4058. else
  4059. Damage = math.floor(Damage)
  4060. coroutine.resume(coroutine.create(function(Hum, Dam)
  4061. CurrentHealth = Hum.Health
  4062. damageFunc:InvokeServer(h, Damage)
  4063. end), h, Damage)
  4064. showDamage(hit.Parent, Damage, "Damage")
  4065. if DecreaseState ~= nil then
  4066. if DecreaseState == "Temporal" then
  4067. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  4068. DecreaseStat(hit.Parent, "Defense", DecreaseAmount, Duration)
  4069. else
  4070. if DecreaseState == "Temporal2" then
  4071. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  4072. DecreaseStat(hit.Parent, "Movement", DecreaseAmount, Duration)
  4073. else
  4074. DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration)
  4075. end
  4076. end
  4077. end
  4078. if smite == true then
  4079. so("178452217", hit, 1, 1)
  4080. smtarget = hit.Parent
  4081. if smtarget:findFirstChild("Stats") ~= nil then
  4082. d1 = Instance.new("NumberValue", smtarget.Stats.Decrease)
  4083. d1.Name = "DecreaseAtk"
  4084. d1.Value = 10
  4085. dur1 = Instance.new("NumberValue", d1)
  4086. dur1.Name = "Duration"
  4087. dur1.Value = 9999
  4088. d2 = Instance.new("NumberValue", smtarget.Stats.Decrease)
  4089. d2.Name = "DecreaseDef"
  4090. d2.Value = -9
  4091. dur2 = Instance.new("NumberValue", d2)
  4092. dur2.Name = "Duration"
  4093. dur2.Value = 9999
  4094. d3 = Instance.new("NumberValue", smtarget.Stats.Decrease)
  4095. d3.Name = "DecreaseMvmt"
  4096. d3.Value = 10
  4097. dur3 = Instance.new("NumberValue", d3)
  4098. dur3.Name = "Duration"
  4099. dur3.Value = 9999
  4100. ref2 = part(3, nil, 0, 1, BrickColor.new("Black"), "Reference", vt())
  4101. ref2.Anchored = true
  4102. table.insert(Effects, {smtarget, "Smite", 500, d1, d2, d3, dur1, dur2, dur3, smtarget.Stats.Decrease, smtarget.Torso, ref2})
  4103. end
  4104. end
  4105. if Type == "Knockdown" then
  4106. hum = hit.Parent.Humanoid
  4107. hum.PlatformStand = true
  4108. coroutine.resume(coroutine.create(function(HHumanoid)
  4109. swait(1)
  4110. HHumanoid.PlatformStand = false
  4111. end), hum)
  4112. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  4113. local bodvol = Instance.new("BodyVelocity")
  4114. bodvol.velocity = angle * knockback
  4115. bodvol.P = 5000
  4116. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  4117. bodvol.Parent = hit
  4118. rl = Instance.new("BodyAngularVelocity")
  4119. rl.P = 3000
  4120. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  4121. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  4122. rl.Parent = hit
  4123. game:GetService("Debris"):AddItem(bodvol, 0.5)
  4124. game:GetService("Debris"):AddItem(rl, 0.5)
  4125. else
  4126. do
  4127. if Type == "Knockdown2" then
  4128. hum = hit.Parent.Humanoid
  4129. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  4130. local bodvol = Instance.new("BodyVelocity")
  4131. bodvol.velocity = angle * knockback
  4132. bodvol.P = 5000
  4133. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  4134. bodvol.Parent = hit
  4135. game:GetService("Debris"):AddItem(bodvol, 0.5)
  4136. else
  4137. do
  4138. if Type == "Normal" or Type == "NormalDecreaseMvmt1" then
  4139. vp = Instance.new("BodyVelocity")
  4140. vp.P = 500
  4141. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  4142. if KnockbackType == 1 then
  4143. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  4144. else
  4145. if KnockbackType == 2 then
  4146. vp.velocity = Property.CFrame.lookVector * knockback
  4147. end
  4148. end
  4149. game:GetService("Debris"):AddItem(vp, 0.5)
  4150. if knockback > 0 then
  4151. vp.Parent = hit.Parent.Torso
  4152. end
  4153. end
  4154. debounce = Instance.new("BoolValue")
  4155. debounce.Name = "DebounceHit"
  4156. debounce.Parent = hit.Parent
  4157. debounce.Value = true
  4158. game:GetService("Debris"):AddItem(debounce, Delay)
  4159. c = Instance.new("ObjectValue")
  4160. c.Name = "creator"
  4161. c.Value = Player
  4162. c.Parent = h
  4163. game:GetService("Debris"):AddItem(c, 0.5)
  4164. CRIT = false
  4165. end
  4166. end
  4167. end
  4168. end
  4169. end
  4170. end
  4171. end
  4172. showDamage = function(Char, Dealt, Type)
  4173. m = Instance.new("Model")
  4174. m.Name = "Effect"
  4175. c = Instance.new("Part")
  4176. c.Transparency = 1
  4177. c.Name = "Head"
  4178. c.TopSurface = 0
  4179. c.BottomSurface = 0
  4180. c.formFactor = "Plate"
  4181. c.Size = Vector3.new(1, 0.4, 1)
  4182. b = Instance.new("BillboardGui", c)
  4183. b.Size = UDim2.new(5, 0, 5, 0)
  4184. b.AlwaysOnTop = true
  4185. damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  4186. if Type == "Damage" then
  4187. damgui.Font = "SourceSans"
  4188. if Dealt == "Block" then
  4189. damgui.TextColor3 = BrickColor.new("Bright blue").Color
  4190. else
  4191. if Dealt < 3 then
  4192. damgui.TextColor3 = BrickColor.new("White").Color
  4193. else
  4194. if Dealt >= 3 and Dealt < 20 then
  4195. damgui.TextColor3 = BrickColor.new("Bright yellow").Color
  4196. else
  4197. damgui.TextColor3 = BrickColor.new("Really red").Color
  4198. damgui.Font = "SourceSansBold"
  4199. end
  4200. end
  4201. end
  4202. else
  4203. if Type == "Debuff" then
  4204. damgui.TextColor3 = BrickColor.new("White").Color
  4205. else
  4206. if Type == "Interrupt" then
  4207. damgui.TextColor3 = BrickColor.new("New Yeller").Color
  4208. else
  4209. if Type == "Heal" then
  4210. damgui.TextColor3 = BrickColor.new("Bright green").Color
  4211. end
  4212. end
  4213. end
  4214. end
  4215. damgui.TextScaled = true
  4216. ms = Instance.new("CylinderMesh")
  4217. ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  4218. ms.Parent = c
  4219. c.Reflectance = 0
  4220. Instance.new("BodyGyro").Parent = c
  4221. c.Parent = m
  4222. if Char:findFirstChild("Head") ~= nil then
  4223. c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  4224. else
  4225. if Char.Parent:findFirstChild("Head") ~= nil then
  4226. c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  4227. end
  4228. end
  4229. f = Instance.new("BodyPosition")
  4230. f.P = 2000
  4231. f.D = 100
  4232. f.maxForce = Vector3.new(545000, 545000, 545000)
  4233. if Type == "Damage" or Type == "Heal" then
  4234. f.position = c.Position + Vector3.new(0, 3, 0)
  4235. else
  4236. if Type == "Debuff" or Type == "Interrupt" then
  4237. f.position = c.Position + Vector3.new(0, 5, 0)
  4238. end
  4239. end
  4240. f.Parent = c
  4241. game:GetService("Debris"):AddItem(m, 5)
  4242. table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
  4243. c.CanCollide = false
  4244. m.Parent = workspace
  4245. c.CanCollide = false
  4246. end
  4247. combo = 0
  4248. ob1d = function(mouse)
  4249. if eCharge == true and mana.Value >= 10 then
  4250. energ = 100
  4251. mana.Value = mana.Value - 10
  4252. eCharge = false
  4253. return
  4254. end
  4255. if attack == true or equipped == false then
  4256. return
  4257. end
  4258. hold = true
  4259. if #Orbs < 1 then
  4260. if combo == 0 then
  4261. combo = 1
  4262. attackone()
  4263. else
  4264. if combo == 1 then
  4265. combo = 2
  4266. attacktwo()
  4267. else
  4268. if combo == 2 then
  4269. combo = 3
  4270. attackthree()
  4271. else
  4272. if combo == 3 then
  4273. combo = 0
  4274. attackfour()
  4275. end
  4276. end
  4277. end
  4278. end
  4279. else
  4280. ShootOrb()
  4281. end
  4282. coroutine.resume(coroutine.create(function()
  4283. for i = 1, 50 do
  4284. if attack == false then
  4285. swait()
  4286. end
  4287. end
  4288. if attack == false then
  4289. combo = 0
  4290. end
  4291. end))
  4292. end
  4293. ob1u = function(mouse)
  4294. hold = false
  4295. end
  4296. buttonhold = false
  4297. fenbarmove1.MouseButton1Click:connect(do1)
  4298. fenbarmove2.MouseButton1Click:connect(do2)
  4299. fenbarmove3.MouseButton1Click:connect(do3)
  4300. fenbarmove4.MouseButton1Click:connect(do4)
  4301. eul = 0
  4302. equipped = false
  4303. key = function(key)
  4304. if key == "e" and eCharge == true then
  4305. eCharge = false
  4306. return
  4307. end
  4308. if attack == true then
  4309. return
  4310. end
  4311. if key == "f" then
  4312. pressedf = true
  4313. fnumb = 0
  4314. attack = true
  4315. if equipped == false then
  4316. equipped = true
  4317. RSH = ch.Torso["Right Shoulder"]
  4318. LSH = ch.Torso["Left Shoulder"]
  4319. RSH.Parent = nil
  4320. LSH.Parent = nil
  4321. RW.Name = "Right Shoulder"
  4322. RW.Part0 = ch.Torso
  4323. RW.C0 = cf(1.5, 0.5, 0)
  4324. RW.C1 = cf(0, 0.5, 0)
  4325. RW.Part1 = ch["Right Arm"]
  4326. RW.Parent = ch.Torso
  4327. LW.Name = "Left Shoulder"
  4328. LW.Part0 = ch.Torso
  4329. LW.C0 = cf(-1.5, 0.5, 0)
  4330. LW.C1 = cf(0, 0.5, 0)
  4331. LW.Part1 = ch["Left Arm"]
  4332. LW.Parent = ch.Torso
  4333. Animate.Parent = nil
  4334. equipanim()
  4335. else
  4336. equipped = false
  4337. hideanim()
  4338. LH.C1 = LHC1
  4339. RH.C1 = RHC1
  4340. Animate.Parent = Humanoid
  4341. swait(0)
  4342. RW.Parent = nil
  4343. LW.Parent = nil
  4344. RSH.Parent = player.Character.Torso
  4345. LSH.Parent = player.Character.Torso
  4346. end
  4347. attack = false
  4348. end
  4349. if equipped == false then
  4350. return
  4351. end
  4352. if key == "q" then
  4353. table.remove(Orbs, 1)
  4354. print(#Orbs)
  4355. end
  4356. if key == "e" and #Orbs < 4 then
  4357. EnergyCharge()
  4358. end
  4359. if key == "z" then
  4360. do1()
  4361. end
  4362. if key == "x" then
  4363. do2()
  4364. end
  4365. if key == "c" then
  4366. do3()
  4367. end
  4368. if key == "v" then
  4369. do4()
  4370. end
  4371. if attack == false then
  4372. RecentEnemy.Value = nil
  4373. end
  4374. end
  4375. key2 = function(key)
  4376. end
  4377. s = function(mouse)
  4378. mouse.Button1Down:connect(function()
  4379. ob1d(mouse)
  4380. end)
  4381. mouse.Button1Up:connect(function()
  4382. ob1u(mouse)
  4383. end)
  4384. mouse.KeyDown:connect(key)
  4385. mouse.KeyUp:connect(key2)
  4386. player = Player
  4387. ch = Character
  4388. end
  4389. ds = function(mouse)
  4390. end
  4391. Bin.Selected:connect(s)
  4392. Bin.Deselected:connect(ds)
  4393. print("Virtue loaded.")
  4394. local mananum = 0
  4395. local donum = 0
  4396. local stunnum = 0
  4397. local cursnum = 0
  4398. local staggeranim = false
  4399. local stunanim = false
  4400. local walk = 0
  4401. local walkforw = true
  4402. local disabledhealth = false
  4403. while 1 do
  4404. swait()
  4405. for i = 1, #TopStaff do
  4406. TopStaff[i].C0 = clerp(TopStaff[i].C0, TSCF, 0.1)
  4407. end
  4408. for i = 1, #OOrbs do
  4409. MagicBlock(BrickColor.new(NewCol4), cf(OOrbs[i][3].Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 2, 2, 2, -0.5, -0.5, -0.5, 0.2, 2)
  4410. end
  4411. if 100 < Humanoid.Health then
  4412. Humanoid.Health = 100
  4413. end
  4414. if Humanoid.Health <= 0 then
  4415. shieldref.Parent = nil
  4416. shieldref2.Parent = nil
  4417. attack = true
  4418. resumeControl()
  4419. modelzorz.Parent = workspace
  4420. game:GetService("Debris"):AddItem(modelzorz, 30)
  4421. for i = 1, #Weapon do
  4422. Weapon[i].Parent = modelzorz
  4423. Weapon[i].CanCollide = true
  4424. end
  4425. for i = 1, #Welds do
  4426. if Welds[i].Part0.Parent == Character or Welds[i].Part1.Parent == Character then
  4427. Welds[i].Parent = nil
  4428. else
  4429. Welds[i].Parent = prt1
  4430. end
  4431. end
  4432. end
  4433. do
  4434. if fnumb < 21 then
  4435. fnumb = fnumb + 1
  4436. if pressedf == false then
  4437. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025
  4438. tellbar.TextTransparency = tellbar.TextTransparency - 0.05
  4439. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05
  4440. else
  4441. if fnumb == 20 then
  4442. fenframe5.Parent = nil
  4443. print("daigui")
  4444. end
  4445. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025
  4446. tellbar.TextTransparency = tellbar.TextTransparency + 0.05
  4447. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05
  4448. end
  4449. end
  4450. if Stagger.Value == true and staggeranim == false then
  4451. coroutine.resume(coroutine.create(function()
  4452. staggeranim = true
  4453. while attack == true do
  4454. swait()
  4455. end
  4456. StaggerAnim()
  4457. StaggerHit.Value = false
  4458. Stagger.Value = false
  4459. staggeranim = false
  4460. end))
  4461. end
  4462. if StaggerHit.Value == true and staggeranim == false then
  4463. coroutine.resume(coroutine.create(function()
  4464. staggeranim = true
  4465. while attack == true do
  4466. swait()
  4467. end
  4468. StaggerHitt()
  4469. StaggerHit.Value = false
  4470. Stagger.Value = false
  4471. staggeranim = false
  4472. end))
  4473. end
  4474. if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then
  4475. Humanoid.WalkSpeed = 0
  4476. else
  4477. Humanoid.WalkSpeed = 16 * Mvmt.Value
  4478. end
  4479. if StunT.Value <= Stun.Value and stunanim == false then
  4480. coroutine.resume(coroutine.create(function()
  4481. stunanim = true
  4482. while attack == true do
  4483. swait()
  4484. end
  4485. StunAnim()
  4486. Stun.Value = 0
  4487. stunanim = false
  4488. end))
  4489. end
  4490. local stunnum2 = 50
  4491. if stunnum2 <= stunnum then
  4492. if 0 < Stun.Value then
  4493. Stun.Value = Stun.Value - 1
  4494. end
  4495. stunnum = 0
  4496. end
  4497. stunnum = stunnum + 1
  4498. if 0.5 <= donum then
  4499. handidle = true
  4500. else
  4501. if donum <= 0 then
  4502. handidle = false
  4503. end
  4504. end
  4505. if handidle == false then
  4506. donum = donum + 0.003
  4507. else
  4508. donum = donum - 0.003
  4509. end
  4510. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  4511. local velderp = RootPart.Velocity.y
  4512. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  4513. if equipped == true then
  4514. if attack == false then
  4515. idle = idle + 1
  4516. else
  4517. idle = 0
  4518. end
  4519. if (500 <= idle and attack ~= false) or Anim == "Walk" then
  4520. if walkforw == true then
  4521. RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  4522. LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  4523. else
  4524. RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  4525. LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  4526. end
  4527. else
  4528. RH.C1 = clerp(RH.C1, RHC1, 0.2)
  4529. LH.C1 = clerp(LH.C1, LHC1, 0.2)
  4530. end
  4531. if 1 < RootPart.Velocity.y and hitfloor == nil then
  4532. Anim = "Jump"
  4533. if attack == false then
  4534. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2)
  4535. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  4536. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  4537. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.8, 0, -1) * euler(0, -0.2, 0), 0.2)
  4538. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4539. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.4, 0, -0.6) * euler(0, 0.5, 0), 0.2)
  4540. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4541. RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
  4542. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
  4543. end
  4544. else
  4545. if RootPart.Velocity.y < -1 and hitfloor == nil then
  4546. Anim = "Fall"
  4547. if attack == false then
  4548. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  4549. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  4550. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  4551. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.2)
  4552. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4553. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.1, 0, -1.2) * euler(0, 0.1, 0), 0.2)
  4554. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4555. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  4556. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  4557. end
  4558. else
  4559. if torvel < 1 and hitfloor ~= nil then
  4560. Anim = "Idle"
  4561. if attack == false then
  4562. if #Orbs < 1 then
  4563. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.15)
  4564. wld1.C0 = clerp(wld1.C0, euler(-((donum) / 3), 0, 0) * cf(0, 0, 0), 0.15)
  4565. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.2) * euler(0.1, 0, 0), 0.15)
  4566. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, -0.2), 0.15)
  4567. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.3, 0, -1) * euler(0, -0.2, 0), 0.15)
  4568. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  4569. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57 - (donum) / 3, (donum) / 2, -0.2 - (donum) / 2), 0.15)
  4570. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  4571. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, 0.2) * euler(0, 1.57, 0) * euler(-0.1, -0.4, -0.05), 0.2)
  4572. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.05), 0.2)
  4573. else
  4574. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.15)
  4575. wld1.C0 = clerp(wld1.C0, euler(0, 1.57, 0) * cf(0, 0.4, 0) * euler(0.8, 0, 0), 0.15)
  4576. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.4) * euler(0.1, 0, 0), 0.15)
  4577. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.1) * euler(0, 0, 0.4), 0.15)
  4578. RW.C0 = clerp(RW.C0, cf(0.9, 0.4, 0.4) * euler(-0.5, 0, -1) * euler(0, -0.4, 0), 0.15)
  4579. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  4580. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.5 - (donum) / 3, 0, -0.4 - (donum) / 2) * euler(0, 0.2, 0), 0.15)
  4581. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  4582. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.1) * euler(0, 1.57, 0) * euler(0, -0.4, -0.05), 0.2)
  4583. LH.C0 = clerp(LH.C0, cf(-1, -0.9, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0.15), 0.2)
  4584. end
  4585. end
  4586. else
  4587. if 2 < torvel and torvel < 30 and hitfloor ~= nil then
  4588. Anim = "Walk"
  4589. walk = walk + 1
  4590. if 15 - 5 * Mvmt.Value <= walk then
  4591. walk = 0
  4592. if walkforw == true then
  4593. walkforw = false
  4594. else
  4595. if walkforw == false then
  4596. walkforw = true
  4597. end
  4598. end
  4599. end
  4600. if attack == false then
  4601. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  4602. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.2)
  4603. Neck.C0 = clerp(Neck.C0, necko * euler(0.1, 0, 0), 0.2)
  4604. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.1, 0, 0), 0.2)
  4605. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.8, 0, -1) * euler(0, -0.2, 0), 0.2)
  4606. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4607. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.4, 0, -0.2) * euler(0, 0.5, 0), 0.2)
  4608. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4609. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.2)
  4610. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.2)
  4611. end
  4612. else
  4613. if 30 <= torvel and hitfloor ~= nil then
  4614. Anim = "Run"
  4615. if attack == false then
  4616. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  4617. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.2)
  4618. Neck.C0 = clerp(Neck.C0, necko * euler(0.1, 0, 0), 0.2)
  4619. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.1, 0, 0), 0.2)
  4620. RW.C0 = clerp(RW.C0, cf(1, 0.4, 0.2) * euler(-0.8, 0, -1) * euler(0, -0.2, 0), 0.2)
  4621. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4622. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.4, 0, -0.2) * euler(0, 0.5, 0), 0.2)
  4623. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  4624. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.2)
  4625. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.2)
  4626. end
  4627. end
  4628. end
  4629. end
  4630. end
  4631. end
  4632. end
  4633. if 0 < #Effects then
  4634. for e = 1, #Effects do
  4635. if Effects[e] ~= nil then
  4636. local Thing = Effects[e]
  4637. if Thing ~= nil then
  4638. local Part = Thing[1]
  4639. local Mode = Thing[2]
  4640. local Delay = Thing[3]
  4641. local IncX = Thing[4]
  4642. local IncY = Thing[5]
  4643. local IncZ = Thing[6]
  4644. if Thing[2] == "CylinderClang" then
  4645. if Thing[3] <= 1 then
  4646. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  4647. Thing[7] = Thing[1].CFrame
  4648. effect("New Yeller", 0, Thing[8], Thing[7], nil, 0.1, 2)
  4649. Thing[8] = Thing[7]
  4650. Thing[3] = Thing[3] + Thing[4]
  4651. else
  4652. Part.Parent = nil
  4653. table.remove(Effects, e)
  4654. end
  4655. end
  4656. if Thing[2] == "showDamage" then
  4657. if Thing[6] < Thing[5] then
  4658. Thing[6] = Thing[6] + 1
  4659. else
  4660. if Thing[6] < Thing[7] then
  4661. Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
  4662. Thing[6] = Thing[6] + 1
  4663. else
  4664. if Thing[6] < Thing[8] then
  4665. Thing[6] = Thing[6] + 1
  4666. else
  4667. if Thing[6] < Thing[9] then
  4668. Thing[6] = Thing[6] + 1
  4669. Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
  4670. Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  4671. Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  4672. else
  4673. Thing[1].Parent = nil
  4674. table.remove(Effects, e)
  4675. end
  4676. end
  4677. end
  4678. end
  4679. end
  4680. if Thing[2] == "Shoot" then
  4681. local Look = Thing[1]
  4682. local hit, pos = rayCast(Thing[4], Look, 5, Character)
  4683. local mag = Thing[4] - pos.magnitude
  4684. Thing[7].CFrame = CFrame.new((Thing[4] + pos) / 2, pos) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  4685. MagicHead(BrickColor.new(NewCol2), CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  4686. Thing[4] = Thing[4] + Look * 5
  4687. Thing[3] = Thing[3] - 1
  4688. if hit ~= nil then
  4689. Thing[3] = 0
  4690. end
  4691. if Thing[3] <= 0 then
  4692. ref = part(3, workspace, 0, 1, BrickColor.new("Really red"), "Reference", vt())
  4693. ref.Anchored = true
  4694. ref.CFrame = cf(pos)
  4695. so("161006093", ref, 1, 2)
  4696. so("377357774", ref, 1, 1.5)
  4697. game:GetService("Debris"):AddItem(ref, 0.2)
  4698. MagicCircle(BrickColor.new(NewCol2), cf(pos), 10, 10, 10, 5, 5, 5, 0.07)
  4699. dra = math.random(-50, 50)
  4700. for i = 0.785, 6.28, 0.785 do
  4701. MagicCircle2(BrickColor.new(NewCol2), cf(pos) * euler(dra, 0, i), 4, 5, 4, -0.05, 2, -0.05, 0.07, 0.8)
  4702. end
  4703. MagniDamage(ref, 10, Thing[5], Thing[6], 0, "Normal", ref, 0, 1, (math.random(3, 8)), nil, nil, true)
  4704. MagniHeal(ref, 10, 3, 5)
  4705. Thing[7].Parent = nil
  4706. Thing[8].Parent = nil
  4707. table.remove(Effects, e)
  4708. end
  4709. end
  4710. do
  4711. if Thing[2] == "ShootSeek" then
  4712. local Look = Thing[1]
  4713. local hit, pos = rayCast(Thing[8], Look, 5, Character)
  4714. local mag = Thing[8] - pos.magnitude
  4715. Thing[6].CFrame = CFrame.new((Thing[8] + pos) / 2, pos) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  4716. MagicHead(BrickColor.new(NewCol2), CFrame.new((Thing[8] + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  4717. Thing[8] = Thing[8] + Look * 5
  4718. Thing[3] = Thing[3] - 1
  4719. if hit ~= nil then
  4720. Thing[3] = 0
  4721. end
  4722. if Thing[4].Parent == nil then
  4723. Thing[3] = 0
  4724. end
  4725. if Thing[3] <= 0 and Thing[4].Parent ~= nil then
  4726. ref = part(3, workspace, 0, 1, BrickColor.new("Really red"), "Reference", vt())
  4727. ref.Anchored = true
  4728. ref.CFrame = cf(pos)
  4729. so("161006093", ref, 1, 2)
  4730. so("315748970", ref, 1, 1.5)
  4731. game:GetService("Debris"):AddItem(ref, 0.2)
  4732. MagicCircle(BrickColor.new(NewCol2), cf(pos), 10, 10, 10, 5, 5, 5, 0.07)
  4733. dra = math.random(-50, 50)
  4734. for i = 0.785, 6.28, 0.785 do
  4735. MagicCircle2(BrickColor.new(NewCol2), cf(pos) * euler(dra, 0, i), 4, 5, 4, -0.05, 2, -0.05, 0.07, 0.8)
  4736. end
  4737. MagniDamage(ref, 10, Thing[9], Thing[10], math.random(-10, -5), "Knockdown2", ref, 0, 1, (math.random(3, 8)), nil, nil, true, "Damage", 0.1, 100)
  4738. Thing[4].Anchored = true
  4739. Thing[4].CFrame = ref.CFrame
  4740. table.insert(Effects, {10, "DoSeek", math.random(200, 400), Thing[4], Thing[5], Thing[6], Thing[7]})
  4741. table.remove(Effects, e)
  4742. end
  4743. end
  4744. do
  4745. if Thing[2] == "DoSeek" then
  4746. if 0 <= Thing[3] and Thing[4].Parent ~= nil then
  4747. Thing[3] = Thing[3] - 1
  4748. if Thing[3] % 100 == 0 then
  4749. MagniDebuff(Thing[6], 10, "Damage", math.random(4, 6) / 100, 200)
  4750. local dasd = math.random(-50, 50)
  4751. for d = 0, 1.57 do
  4752. for i = 0.785, 6.28, 0.785 do
  4753. MagicCircle2(BrickColor.new(NewCol2), cf(Thing[6].Position) * euler(dasd, 0, 0) * euler(d, 0, i) * cf(0, 10, 0), 2, 5, 2, -0.05, 1, -0.05, 0.07, -0.4)
  4754. end
  4755. end
  4756. end
  4757. else
  4758. do
  4759. if Thing[4].Parent ~= nil then
  4760. targetd = findNearestTorso(Thing[6].Position)
  4761. if targetd ~= nil then
  4762. bleh = targetd.Position + vt(math.random(-500, 500) / 100, math.random(-500, 500) / 100, math.random(-500, 500) / 100)
  4763. local MouseLook = cf((Thing[6].Position + bleh) / 2, bleh)
  4764. local targ = Thing[6].Position - bleh
  4765. local mag = targ.magnitude / 5 * math.random(80, 120) / 100
  4766. if 50 < mag then
  4767. mag = 50
  4768. end
  4769. so("377357731", Thing[4], 1, 1.4)
  4770. table.insert(Effects, {MouseLook.lookVector, "ShootSeek", mag, Thing[4], Thing[5], Thing[6], Thing[7], Thing[6].Position, 4, 6})
  4771. else
  4772. do
  4773. table.insert(Effects, {10, "DoSeek", 100, Thing[4], Thing[5], Thing[6], Thing[7]})
  4774. table.remove(Effects, e)
  4775. if Thing[2] == "BuffEff" then
  4776. if 0 < Thing[3] then
  4777. Thing[3] = Thing[3] - 1
  4778. tc = math.random(40, 100) / 100
  4779. MagicCircle2(BrickColor.new(NewCol), Thing[1] * cf(math.random(-900, 900) / 100, math.random(-150, -100) / 100, math.random(-900, 900) / 100), 2, 5, 2, -0.025 * tc, 0.7, -0.025 * tc, 0.06 * tc, 0.2)
  4780. else
  4781. table.remove(Effects, e)
  4782. end
  4783. end
  4784. if Thing[2] == "BuffEff2" then
  4785. if 0 < Thing[3] then
  4786. Thing[3] = Thing[3] - 1
  4787. MagicCircle(BrickColor.new(NewCol2), Thing[1].CFrame, 15, 15, 15, -0.5, -0.5, -0.5, 0.05, 1, nil, nil, 0)
  4788. else
  4789. table.remove(Effects, e)
  4790. end
  4791. end
  4792. if Thing[2] == "BuffEff3" then
  4793. if 0 < Thing[3] then
  4794. Thing[3] = Thing[3] - 1
  4795. local mag = Thing[4].Position - Thing[5].Position.magnitude
  4796. Thing[6].CFrame = cf(Thing[4].Position, Thing[5].Position)
  4797. MagicCircle2(BrickColor.new(NewCol2), Thing[6].CFrame * euler(1.57, 0, 0) * cf(math.random(-100, 100) / 100, 0, math.random(-100, 100) / 100), 1.5, 5, 1.5, -0.05, mag / 10, -0.05, 0.08, -mag / 10)
  4798. else
  4799. do
  4800. Thing[6].Parent = nil
  4801. table.remove(Effects, e)
  4802. if Thing[2] == "ShootBuff" then
  4803. local Look = Thing[1]
  4804. local hit, pos = rayCast(Thing[4], Look, 3, Character)
  4805. local mag = Thing[4] - pos.magnitude
  4806. MagicHead(BrickColor.new(NewCol), CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  4807. Thing[4] = Thing[4] + Look * 3
  4808. Thing[3] = Thing[3] - 1
  4809. if hit ~= nil then
  4810. Thing[3] = 0
  4811. end
  4812. if Thing[3] <= 0 then
  4813. ref = part(3, workspace, 0, 1, BrickColor.new("Really red"), "Reference", vt())
  4814. ref.Anchored = true
  4815. ref.CFrame = cf(pos)
  4816. so("161006093", ref, 0.5, 2.5)
  4817. so("199145350", ref, 1, 1.5)
  4818. game:GetService("Debris"):AddItem(ref, 0.2)
  4819. MagicCircle(BrickColor.new(NewCol), cf(pos), 10, 10, 10, 6, 6, 6, 0.07)
  4820. dra = math.random(-50, 50)
  4821. table.insert(Effects, {cf(pos), "BuffEff", 10})
  4822. MagniBuff(ref, 9, "Damage", -math.random(5, 7) / 100, 300)
  4823. MagniBuff(ref, 9, "Movement", -math.random(6, 8) / 100, 100)
  4824. table.remove(Effects, e)
  4825. end
  4826. end
  4827. do
  4828. if Thing[2] == "Shoot2" then
  4829. local Look = Thing[1]
  4830. local hit, pos = rayCast(Thing[4], Look, 5, Character)
  4831. local mag = Thing[4] - pos.magnitude
  4832. MagicHead(BrickColor.new(NewCol2), CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  4833. Thing[4] = Thing[4] + Look * 5
  4834. Thing[3] = Thing[3] - 1
  4835. if hit ~= nil then
  4836. Thing[3] = 0
  4837. end
  4838. if Thing[3] <= 0 then
  4839. ref = part(3, workspace, 0, 1, BrickColor.new("Really red"), "Reference", vt())
  4840. ref.Anchored = true
  4841. ref.CFrame = cf(pos)
  4842. so("161006093", ref, 0.5, 2.5)
  4843. game:GetService("Debris"):AddItem(ref, 0.2)
  4844. MagicCircle(BrickColor.new(NewCol2), cf(pos), 10, 10, 10, 3, 3, 3, 0.07)
  4845. dra = math.random(-50, 50)
  4846. for i = 0.785, 6.28, 0.785 do
  4847. MagicCircle2(BrickColor.new(NewCol2), cf(pos) * euler(dra, 0, i), 2, 2.5, 2, -0.025, 1, -0.025, 0.08, 0.7)
  4848. end
  4849. MagniDamage(ref, 7, Thing[5], Thing[6], 0, "Normal", ref, 0, 1, (math.random(3, 8)), nil, nil, true)
  4850. table.remove(Effects, e)
  4851. end
  4852. end
  4853. do
  4854. if Thing[2] == "Sentry" then
  4855. if Thing[1].Parent ~= nil then
  4856. Thing[4] = Thing[4] + 1
  4857. if Thing[5] <= Thing[4] then
  4858. MagicCircle(BrickColor.new(NewCol2), Thing[3].CFrame, 5, 5, 5, 4, 4, 4, 0.1, 1, nil, nil, 0)
  4859. MagicCircle(BrickColor.new(NewCol), Thing[3].CFrame, 5, 5, 5, 2, 2, 2, 0.1, 1, nil, nil, 0)
  4860. target = findNearestTorso(Thing[3].Position)
  4861. if target ~= nil then
  4862. tpos = target.Position + vt(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100)
  4863. local MouseLook = cf((Thing[3].Position + tpos) / 2, tpos)
  4864. table.insert(Effects, {MouseLook.lookVector, "Shoot2", 30, Thing[3].Position, 5, 7})
  4865. end
  4866. do
  4867. t2 = findNearestAlly(Thing[3].Position)
  4868. if t2 == nil then
  4869. t2 = Torso
  4870. end
  4871. if t2 ~= nil then
  4872. tpos = t2.Position + vt(0, 0, 0)
  4873. local MouseLook = cf((Thing[3].Position + tpos) / 2, tpos)
  4874. table.insert(Effects, {MouseLook.lookVector, "ShootBuff", 30, Thing[3].Position})
  4875. end
  4876. do
  4877. Thing[4] = 0
  4878. Thing[5] = math.random(100, 150)
  4879. table.remove(Effects, e)
  4880. if Thing[2] == "Protect" then
  4881. if Thing[1].Parent ~= nil then
  4882. Thing[4] = Thing[4] + 1
  4883. if Thing[5] <= Thing[4] then
  4884. MagicCircle(BrickColor.new(NewCol), Thing[6].CFrame, 30, 30, 30, -1, -1, -1, 0.05, 1, nil, nil, 0)
  4885. so("199145350", Thing[6], 1, 1)
  4886. if math.random(1, 2) == 1 then
  4887. table.insert(Effects, {Thing[3], "BuffEff2", 15})
  4888. DecreaseStat(Thing[7], "Damage", -math.random(5, 7) / 100, 300)
  4889. DecreaseStat(Thing[7], "Defense", -math.random(3, 5) / 100, 500)
  4890. else
  4891. MagniHeal(Thing[6], 5, 2, 3)
  4892. local refbb = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  4893. refbb.Anchored = true
  4894. refbb.CFrame = cf(Thing[3].Position)
  4895. game:GetService("Debris"):AddItem(refbb, 10)
  4896. table.insert(Effects, {Thing[3], "BuffEff3", 20, Thing[3], Thing[6], refbb})
  4897. end
  4898. do
  4899. do
  4900. Thing[4] = 0
  4901. Thing[5] = math.random(100, 150)
  4902. table.remove(Effects, e)
  4903. if Thing[2] == "Orb" then
  4904. if 0 < Thing[3] then
  4905. Thing[3] = Thing[3] - 1
  4906. da = math.random(500, 700) / 100
  4907. MagicCircle(BrickColor.new(NewCol2), Thing[1], da, da, da, 1, 1, 1, 0.3, 1, nil, nil, 0)
  4908. if Thing[3] % 10 == 0 then
  4909. MagicRing(BrickColor.new(NewCol2), Thing[1] * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 1, 1, 0, 0.2)
  4910. end
  4911. else
  4912. refd = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  4913. refd.Anchored = true
  4914. refd.CFrame = Thing[1]
  4915. game:GetService("Debris"):AddItem(refd, 1)
  4916. MagniDamage(refd, 5, 6, 8, 0, "Normal", RootPart, 0, 1, (math.random(2, 3)), nil, nil, true)
  4917. so("315744661", refd, 0.4, 1)
  4918. so("315748949", refd, 1, 1.5)
  4919. MagicCircle(BrickColor.new(NewCol2), Thing[1], 8, 8, 8, 6, 6, 6, 0.1, 1, nil, nil, 0)
  4920. for i = 1, 3 do
  4921. MagicBlock(BrickColor.new(NewCol2), Thing[1] * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 10, 10, 10, -0.8, -0.8, -0.8, 0.08, 3)
  4922. end
  4923. table.remove(Effects, e)
  4924. end
  4925. end
  4926. if Thing[2] == "ShieldEf" then
  4927. if 0.5 < Thing[1].Transparency then
  4928. Thing[1].Transparency = Thing[1].Transparency - 0.02
  4929. else
  4930. table.remove(Effects, e)
  4931. end
  4932. end
  4933. if Thing[2] == "Shield" then
  4934. if Thing[1].Parent ~= nil then
  4935. if 0 <= Thing[3] then
  4936. Thing[3] = Thing[3] - 1
  4937. else
  4938. MagniBuff(Thing[1], 20, "Defense", -0.1, 200)
  4939. Thing[3] = 50
  4940. end
  4941. else
  4942. table.remove(Effects, e)
  4943. end
  4944. end
  4945. if Thing[2] == "Smite" then
  4946. if 0 <= Thing[3] then
  4947. MagicCircle(BrickColor.new(NewCol2), cf(Thing[11].Position), 50, 50, 50, -10, -10, -10, 0.2, 1, nil, nil, 0.5)
  4948. MagicBlock(BrickColor.new(NewCol2), cf(Thing[11].Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cf(0, -10, 0), 2, 2, 2, -0.5, -0.5, -0.5, 0.1, 3)
  4949. if Thing[3] % 3 == 0 then
  4950. Thing[12].CFrame = cf(Thing[11].Position) * cf(math.random(-1000, 1000) / 100, 0, math.random(-1000, 1000) / 100)
  4951. hitfloor2a = rayCast(Thing[12].Position, CFrame.new(Thing[12].Position, Thing[12].Position - Vector3.new(0, 1, 0)).lookVector, 50, Thing[1])
  4952. if hitfloor2a ~= nil then
  4953. Lightning(Thing[11].Position, RootPart.Position, 5, 0.5, NewCol2, 0.5, 0.4, 0.1)
  4954. end
  4955. end
  4956. Thing[3] = Thing[3] - 1
  4957. Thing[4].Parent = Thing[10]
  4958. Thing[5].Parent = Thing[10]
  4959. Thing[6].Parent = Thing[10]
  4960. Thing[7].Value = 9999
  4961. Thing[8].Value = 9999
  4962. Thing[9].Value = 9999
  4963. else
  4964. Thing[4].Parent = nil
  4965. Thing[5].Parent = nil
  4966. Thing[6].Parent = nil
  4967. table.remove(Effects, e)
  4968. end
  4969. end
  4970. if Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Orb" and Thing[2] ~= "Shoot" and Thing[2] ~= "Sentry" and Thing[2] ~= "Shoot2" and Thing[2] ~= "ShootBuff" and Thing[2] ~= "BuffEff" and Thing[2] ~= "Protect" and Thing[2] ~= "BuffEff2" and Thing[2] ~= "BuffEff3" and Thing[2] ~= "ShootSeek" and Thing[2] ~= "DoSeek" and Thing[2] ~= "Shield" and Thing[2] ~= "ShieldEf" and Thing[2] ~= "Smite" then
  4971. if Thing[1].Transparency <= 1 then
  4972. if Thing[2] == "Block1" then
  4973. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  4974. Mesh = Thing[7]
  4975. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4976. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4977. else
  4978. if Thing[2] == "Block2" then
  4979. Thing[1].CFrame = Thing[1].CFrame
  4980. Mesh = Thing[7]
  4981. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4982. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4983. else
  4984. if Thing[2] == "Block3" then
  4985. Thing[8] = Thing[8] * cf(0, math.random(50, 80) / 100, 0)
  4986. Thing[1].CFrame = Thing[8] * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  4987. Mesh = Thing[7]
  4988. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4989. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4990. else
  4991. if Thing[2] == "Block4" then
  4992. Thing[8].C0 = euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * Thing[9]
  4993. Mesh = Thing[7]
  4994. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4995. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4996. else
  4997. if Thing[2] == "Cylinder" then
  4998. Mesh = Thing[7]
  4999. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  5000. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  5001. else
  5002. if Thing[2] == "Blood" then
  5003. Mesh = Thing[7]
  5004. Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0)
  5005. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  5006. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  5007. else
  5008. if Thing[2] == "Elec" then
  5009. Mesh = Thing[7]
  5010. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  5011. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  5012. else
  5013. if Thing[2] == "Disappear" then
  5014. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  5015. end
  5016. end
  5017. end
  5018. end
  5019. end
  5020. end
  5021. end
  5022. end
  5023. else
  5024. Part.Parent = nil
  5025. table.remove(Effects, e)
  5026. end
  5027. end
  5028. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out DO_STMT
  5029.  
  5030. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_THEN_STMT
  5031.  
  5032. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_STMT
  5033.  
  5034. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_THEN_STMT
  5035.  
  5036. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_STMT
  5037.  
  5038. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_THEN_STMT
  5039.  
  5040. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_STMT
  5041.  
  5042. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out DO_STMT
  5043.  
  5044. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out DO_STMT
  5045.  
  5046. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_THEN_STMT
  5047.  
  5048. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_STMT
  5049.  
  5050. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_THEN_STMT
  5051.  
  5052. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_STMT
  5053.  
  5054. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_THEN_STMT
  5055.  
  5056. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_STMT
  5057.  
  5058. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out DO_STMT
  5059.  
  5060. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out DO_STMT
  5061.  
  5062. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out DO_STMT
  5063.  
  5064. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  5065.  
  5066. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_STMT
  5067.  
  5068. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_THEN_STMT
  5069.  
  5070. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_STMT
  5071.  
  5072. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out DO_STMT
  5073.  
  5074. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  5075.  
  5076. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_STMT
  5077.  
  5078. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_THEN_STMT
  5079.  
  5080. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_STMT
  5081.  
  5082. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out DO_STMT
  5083.  
  5084. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  5085.  
  5086. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_STMT
  5087.  
  5088. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_THEN_STMT
  5089.  
  5090. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_STMT
  5091.  
  5092. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out DO_STMT
  5093.  
  5094. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out DO_STMT
  5095.  
  5096. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_THEN_STMT
  5097.  
  5098. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_STMT
  5099.  
  5100. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_THEN_STMT
  5101.  
  5102. -- DECOMPILER ERROR at PC8462: LeaveBlock: unexpected jumping out IF_STMT
  5103.  
  5104. end
  5105. end
  5106. end
  5107. end
  5108. end
  5109. end
  5110. end
  5111. end
  5112. end
  5113. end
  5114. end
  5115. end
  5116. end
  5117. end
  5118. end
  5119. end
  5120. end
  5121. end
  5122. end
  5123. end
  5124. end
  5125. end
  5126. end
  5127. end
  5128. end
  5129. end
  5130. end
  5131. fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true)
  5132. fenbarmana4.Text = "Mana(" .. mana.Value .. ")"
  5133. fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0)
  5134. fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true)
  5135. fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
  5136. fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  5137. fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  5138. fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  5139. fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  5140. for _,c in pairs(Decrease:children()) do
  5141. if (c:findFirstChild("Duration")) ~= nil then
  5142. c.Duration.Value = c.Duration.Value - 1
  5143. if c.Duration.Value <= 0 then
  5144. c.Parent = nil
  5145. end
  5146. end
  5147. if c.Name == "DecreaseAtk" then
  5148. decreaseatk = decreaseatk + c.Value
  5149. else
  5150. if c.Name == "DecreaseDef" then
  5151. decreasedef = decreasedef + c.Value
  5152. else
  5153. if c.Name == "DecreaseMvmt" then
  5154. decreasemvmt = decreasemvmt + c.Value
  5155. end
  5156. end
  5157. end
  5158. end
  5159. Atk.Value = 1 - (decreaseatk)
  5160. if Atk.Value <= 0 then
  5161. Atk.Value = 0
  5162. end
  5163. Def.Value = 1 - (decreasedef)
  5164. if Def.Value <= 0 then
  5165. Def.Value = 0.01
  5166. end
  5167. Mvmt.Value = 1 - (decreasemvmt)
  5168. if Mvmt.Value <= 0 then
  5169. Mvmt.Value = 0
  5170. end
  5171. decreaseatk = 0
  5172. decreasedef = 0
  5173. decreasemvmt = 0
  5174. AtkVal = Atk.Value * 100
  5175. AtkVal = math.floor(AtkVal)
  5176. AtkVal = AtkVal / 100
  5177. fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
  5178. DefVal = Def.Value * 100
  5179. DefVal = math.floor(DefVal)
  5180. DefVal = DefVal / 100
  5181. fenbardef.Text = "Defense\n(" .. DefVal .. ")"
  5182. MvmtVal = Mvmt.Value * 100
  5183. MvmtVal = math.floor(MvmtVal)
  5184. MvmtVal = MvmtVal / 100
  5185. if Rooted.Value == true then
  5186. MvmtVal = 0
  5187. end
  5188. fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
  5189. fenbarammo1.Text = "Orbs\n" .. #Orbs .. "/" .. #OOrbs .. ""
  5190. if StunT.Value <= Stun.Value then
  5191. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true)
  5192. else
  5193. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true)
  5194. end
  5195. fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
  5196. if 100 <= mana.Value then
  5197. mana.Value = 100
  5198. else
  5199. if mananum <= 15 then
  5200. mananum = mananum + 1
  5201. else
  5202. mananum = 0
  5203. mana.Value = mana.Value + 1
  5204. end
  5205. end
  5206. for i = 1, #cooldowns do
  5207. if cooldownmax <= cooldowns[i] then
  5208. cooldowns[i] = cooldownmax
  5209. else
  5210. cooldowns[i] = cooldowns[i] + cooldownsadd[i]
  5211. end
  5212. end
  5213. -- DECOMPILER ERROR at PC8831: LeaveBlock: unexpected jumping out DO_STMT
  5214.  
  5215. end
  5216. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement