Advertisement
Infintyboy

dance m8

Aug 31st, 2018
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 84.98 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. local RealPlayer = Player
  4. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
  5. ---
  6.  
  7. Player = game:GetService("Players").LocalPlayer
  8. Character = Player.Character
  9. PlayerGui = Player.PlayerGui
  10. Backpack = Player.Backpack
  11. Torso = Character.Torso
  12. Head = Character.Head
  13. Humanoid = Character.Humanoid
  14. RootPart = Character.HumanoidRootPart
  15. RootJoint = RootPart.RootJoint
  16. LeftArm = Character["Left Arm"]
  17. LeftLeg = Character["Left Leg"]
  18. RightArm = Character["Right Arm"]
  19. RightLeg = Character["Right Leg"]
  20. LS = Torso["Left Shoulder"]
  21. LH = Torso["Left Hip"]
  22. RS = Torso["Right Shoulder"]
  23. RH = Torso["Right Hip"]
  24. Face = Head.face
  25. Neck = Torso.Neck
  26. it = Instance.new
  27. vt = Vector3.new
  28. cf = CFrame.new
  29. rad = math.rad
  30. euler = CFrame.fromEulerAnglesXYZ
  31. angles = CFrame.Angles
  32. Mouse = Player:GetMouse()
  33. coroutine.resume(coroutine.create(function()
  34. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  35.     Text = "Fixed by PixelFir3 / Cortana#8155";
  36.     Color = Color3.new(0, 1, 1);
  37.     Font = Enum.Font.Code;
  38.     FontSize = Enum.FontSize.Size24;
  39. })
  40. end))
  41. ArtificialHB = Instance.new("BindableEvent", script)
  42. ArtificialHB.Name = "ArtificialHB"
  43. script:WaitForChild("ArtificialHB")
  44. frame = 0.016666666666667
  45. tf = 0
  46. allowframeloss = false
  47. tossremainder = false
  48. lastframe = tick()
  49. script.ArtificialHB:Fire()
  50. game:GetService("RunService").Heartbeat:connect(function(s, p)
  51.    
  52.     tf = tf + s
  53.     if frame <= tf then
  54.         if allowframeloss then
  55.             script.ArtificialHB:Fire()
  56.             lastframe = tick()
  57.         else
  58.             for i = 1, math.floor(tf / frame) do
  59.                 script.ArtificialHB:Fire()
  60.             end
  61.             lastframe = tick()
  62.         end
  63.         if tossremainder then
  64.             tf = 0
  65.         else
  66.             tf = tf - frame * math.floor(tf / frame)
  67.         end
  68.     end
  69. end
  70. )
  71. local animationspeed = 2
  72. hbwait = function(number)
  73.    
  74.     if number == 0 or number == nil then
  75.         ArtificialHB.Event:wait()
  76.     else
  77.         for i = 0, number do
  78.             ArtificialHB.Event:wait()
  79.         end
  80.     end
  81. end
  82.  
  83. local Stats = Instance.new("Folder", Character)
  84. Stats.Name = "Stats"
  85. local Defense = Instance.new("NumberValue", Stats)
  86. Defense.Name = "Defense"
  87. Defense.Value = 0.1
  88. local Movement = Instance.new("NumberValue", Stats)
  89. Movement.Name = "Movement"
  90. Movement.Value = 0.35
  91. local Damage = Instance.new("NumberValue", Stats)
  92. Damage.Name = "Damage"
  93. Damage.Value = 0
  94. local Mana = Instance.new("NumberValue", Stats)
  95. Mana.Name = "Mana"
  96. Mana.Value = 0
  97. local Rooted = Instance.new("BoolValue", Stats)
  98. Rooted.Name = "Rooted"
  99. Rooted.Value = false
  100. local BlockValue = Instance.new("BoolValue", Stats)
  101. BlockValue.Name = "BlockValue"
  102. BlockValue.Value = false
  103. local StaggerHitAnim = Instance.new("BoolValue", Stats)
  104. StaggerHitAnim.Name = "StaggerHitAnim"
  105. StaggerHitAnim.Value = false
  106. local StaggerAnim = Instance.new("BoolValue", Stats)
  107. StaggerAnim.Name = "StaggerAnim"
  108. StaggerAnim.Value = false
  109. local StunAnim = Instance.new("BoolValue", Stats)
  110. StunAnim.Name = "StunAnim"
  111. StunAnim.Value = false
  112. local StunValue = Instance.new("NumberValue", Stats)
  113. StunValue.Name = "StunValue"
  114. StunValue.Value = 0
  115. local CanCrit = Instance.new("BoolValue", Stats)
  116. CanCrit.Name = "CanCrit"
  117. CanCrit.Value = false
  118. local CritChance = Instance.new("NumberValue", Stats)
  119. CritChance.Name = "CritChance"
  120. CritChance.Value = 20
  121. local CanPenetrateArmor = Instance.new("BoolValue", Stats)
  122. CanPenetrateArmor.Name = "CanPenetrateArmor"
  123. CanPenetrateArmor.Value = false
  124. local AntiTeamKill = Instance.new("BoolValue", Stats)
  125. AntiTeamKill.Name = "AntiTeamKill"
  126. AntiTeamKill.Value = false
  127. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  128. RootCF = angles(rad(-90), 0, rad(180))
  129. local idle = 0
  130. local Anim = "Idle"
  131. local animtype = math.floor(math.random(1, 3))
  132. local attacktype = 1
  133. local attack = false
  134. local equipped = false
  135. local LastPoint = nil
  136. local staggerhitanim = false
  137. local staggeranim = false
  138. local stunanim = false
  139. local CritChanceNumber = 0
  140. local idlen = 0
  141. local donum = 0
  142. local sine = 0
  143. local change = 2 / animationspeed
  144. local walkinganim = false
  145. local handidle = false
  146. local walk = 0
  147. local stundelay = 0
  148. local manadelay = 0
  149. local robloxidleanimation = Instance.new("Animation", Torso)
  150. robloxidleanimation.Name = "robloxidleanimation"
  151. robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  152. local Animator = Humanoid:FindFirstChild("Animator")
  153. local Animate = Character:FindFirstChild("Animate")
  154. local HitPlayerSounds = {199149137, 199149186, 199149221, 199149235, 199149269, 199149297}
  155. local HitArmorSounds = {199149321, 199149338, 199149367, 199149409, 199149452}
  156. local HitWeaponSounds = {199148971, 199149025, 199149072, 199149109, 199149119}
  157. local HitBlockSounds = {199148933, 199148947}
  158. local cooldown1 = 0
  159. local cooldown2 = 0
  160. local cooldown3 = 0
  161. local cooldown4 = 0
  162. local scrn = Instance.new("ScreenGui", PlayerGui)
  163. local ud = UDim2.new
  164. local c3 = Color3.new
  165. local skillcolorscheme = c3(1, 1, 1)
  166. subtractmana = function(k)
  167.    
  168.     if k <= Mana.Value then
  169.         Mana.Value = Mana.Value - k
  170.     end
  171. end
  172.  
  173. local co1 = 0
  174. local co2 = 0
  175. local co3 = 0
  176. local co4 = 0
  177. local maxmana = 0
  178. local maxstun = 1
  179. local recovermana = 0
  180. local losestun = 0
  181. local stunwait = 0
  182. local manawait = 0
  183. local skill1mana = 0
  184. local skill2mana = 0
  185. local skill3mana = 0
  186. local skill4mana = 0
  187. local menuupdatespeed = 0
  188. local constantupdate = false
  189. local showstats = false
  190. local allowstunbar = false
  191. local CustomColor = Torso.BrickColor
  192. local Colorpart1 = CustomColor.r
  193. local Colorpart2 = CustomColor.g
  194. local Colorpart3 = CustomColor.b
  195. local InverseColor = BrickColor.new(Color3.new(1 - Colorpart1, 1 - Colorpart2, 1 - Colorpart3))
  196. makeframe = function(par, trans, pos, size, color, name)
  197.    
  198.     local frame = Instance.new("Frame")
  199.     frame.Parent = par
  200.     frame.BackgroundTransparency = trans
  201.     frame.BorderSizePixel = 2
  202.     frame.Position = pos
  203.     frame.Size = size
  204.     frame.BackgroundColor3 = color
  205.     frame.Name = name
  206.     return frame
  207. end
  208.  
  209. makelabel = function(par, text, trans, stroketrans, name)
  210.    
  211.     local label = Instance.new("TextLabel")
  212.     label.Parent = par
  213.     label.BackgroundTransparency = 1
  214.     label.Size = ud(1, 0, 1, 0)
  215.     label.Position = ud(0, 0, 0, 0)
  216.     label.TextColor3 = c3(255, 255, 255)
  217.     label.TextStrokeTransparency = stroketrans
  218.     label.TextTransparency = trans
  219.     label.FontSize = Enum.FontSize.Size32
  220.     label.Font = Enum.Font.Legacy
  221.     label.BorderSizePixel = 0
  222.     label.TextScaled = true
  223.     label.Text = text
  224.     label.Name = name
  225.     return label
  226. end
  227.  
  228. framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 1")
  229. framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 2")
  230. framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 3")
  231. framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 4")
  232. bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 1")
  233. bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 2")
  234. bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 3")
  235. bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 4")
  236. text1 = makelabel(framesk1, "[C] Ability 3", 1, 1, "Text 1")
  237. text2 = makelabel(framesk2, "[V] Ability 4", 1, 1, "Text 2")
  238. text3 = makelabel(framesk3, "[X] Ability 2", 1, 1, "Text 3")
  239. text4 = makelabel(framesk4, "[Z] Ability 1", 1, 1, "Text 4")
  240. manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar")
  241. manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover")
  242. manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text")
  243. healthbar = makeframe(scrn, 0.5, ud(0.5, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(1, 0.19607843137255, 0.19607843137255), "Health Bar")
  244. healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137255, 0.19607843137255), "Health Cover")
  245. healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text")
  246. if allowstunbar == true then
  247.     stunframe = makeframe(scrn, 0.5, ud(0.5, 0, 0.78, 0), ud(0.26, 0, 0, 0), c3(1, 1, 0.19607843137255), "Stun Frame")
  248.     stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137255), "Stun Bar")
  249.     stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text")
  250. end
  251. if showstats == true then
  252.     defenseframe = makeframe(scrn, 0.5, ud(0.23, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.3921568627451, 0.3921568627451, 1), "Defense Frame")
  253.     damageframe = makeframe(scrn, 0.5, ud(0.3225, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(1, 0.3921568627451, 0.3921568627451), "Damage Frame")
  254.     movementframe = makeframe(scrn, 0.5, ud(0.415, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.3921568627451, 1, 0.3921568627451), "Movement Frame")
  255.     defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text")
  256.     damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text")
  257.     movementtext = makelabel(movementframe, "Movement: " .. Movement.Value, 1, 1, "Movement Text")
  258. end
  259. NoOutline = function(Part)
  260.    
  261.     Part.TopSurface = 10
  262. end
  263.  
  264. local weldBetween = function(a, b)
  265.    
  266.     local weldd = Instance.new("ManualWeld")
  267.     weldd.Part0 = a
  268.     weldd.Part1 = b
  269.     weldd.C0 = CFrame.new()
  270.     weldd.C1 = b.CFrame:inverse() * a.CFrame
  271.     weldd.Parent = a
  272.     return weldd
  273. end
  274.  
  275. nooutline = function(part)
  276.    
  277.     part.TopSurface = 10
  278. end
  279.  
  280. part = function(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  281.    
  282.     local fp = it("Part")
  283.     fp.formFactor = formfactor
  284.     fp.Parent = parent
  285.     fp.Reflectance = reflectance
  286.     fp.Transparency = transparency
  287.     fp.CanCollide = false
  288.     fp.Locked = true
  289.     fp.BrickColor = BrickColor.new(tostring(brickcolor))
  290.     fp.Name = name
  291.     fp.Size = size
  292.     fp.Position = Character.Torso.Position
  293.     nooutline(fp)
  294.     fp.Material = material
  295.     fp:BreakJoints()
  296.     return fp
  297. end
  298.  
  299. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  300.    
  301.     local mesh = it(Mesh)
  302.     mesh.Parent = part
  303.     if Mesh == "SpecialMesh" then
  304.         mesh.MeshType = meshtype
  305.         mesh.MeshId = meshid
  306.     end
  307.     mesh.Offset = offset
  308.     mesh.Scale = scale
  309.     return mesh
  310. end
  311.  
  312. weld = function(parent, part0, part1, c0, c1)
  313.    
  314.     local weld = it("Motor")
  315.     weld.Parent = parent
  316.     weld.Part0 = part0
  317.     weld.Part1 = part1
  318.     weld.C0 = c0
  319.     weld.C1 = c1
  320.     return weld
  321. end
  322.  
  323. local WeaponName = "Russian Kick"
  324. local ClassName = "Russian Kick"
  325. local PlayerSize = 1
  326. local RWC0 = cf(-0.5, 0, 0) * angles(rad(0), rad(90), rad(0))
  327. local LWC0 = cf(0.5, 0, 0) * angles(rad(0), rad(-90), rad(0))
  328. if PlayerSize ~= 1 then
  329.     RootPart.Size = RootPart.Size * PlayerSize
  330.     Torso.Size = Torso.Size * PlayerSize
  331.     Head.Size = Head.Size * PlayerSize
  332.     RightArm.Size = RightArm.Size * PlayerSize
  333.     LeftArm.Size = LeftArm.Size * PlayerSize
  334.     RightLeg.Size = RightLeg.Size * PlayerSize
  335.     LeftLeg.Size = LeftLeg.Size * PlayerSize
  336.     RootJoint.Parent = RootPart
  337.     Neck.Parent = Torso
  338.     LS.Parent = Torso
  339.     RS.Parent = Torso
  340.     LH.Parent = Torso
  341.     RH.Parent = Torso
  342.     RootJoint.C0 = RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0))
  343.     Neck.C0 = necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0))
  344.     Neck.C1 = angles(rad(90), rad(180), 0) * cf(0, 0, -0.5 * PlayerSize)
  345.     RS.C0 = cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0
  346.     LS.C0 = cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0
  347.     RS.C1 = angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5)
  348.     LS.C1 = angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5)
  349.     RH.C0 = cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0))
  350.     LH.C0 = cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0))
  351.     RH.C1 = angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize)
  352.     LH.C1 = angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize)
  353.     for _,v in pairs(Character:GetChildren()) do
  354.         if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  355.             v.Parent = nil
  356.             v.Parent = Character
  357.             v.Handle.Mesh.Scale = v.Handle.Mesh.Scale * PlayerSize
  358.             for _,b in pairs(v.Handle:GetChildren()) do
  359.                 if b.ClassName == "Weld" or b.ClassName == "Motor" then
  360.                     local p1 = b.Part1
  361.                     b.Part1 = nil
  362.                     local c01, c02, c03, c04, c05, c06, c07, c08, c09, c010, c011, c012 = b.C0:components()
  363.                     local c11, c12, c13, c14, c15, c16, c17, c18, c19, c110, c111, c112 = b.C1:components()
  364.                     b.C0 = cf(c01 * PlayerSize, c02 * PlayerSize, c03 * PlayerSize, c04, c05, c06, c07, c08, c09, c010, c011, c012)
  365.                     b.C1 = cf(c11 * PlayerSize, c12 * PlayerSize, c13 * PlayerSize, c14, c15, c16, c17, c18, c19, c110, c111, c112)
  366.                     b.Part1 = p1
  367.                 end
  368.             end
  369.         end
  370.     end
  371. end
  372.     m = Instance.new("Model", Character)
  373.     m.Name = WeaponName
  374.     Effects = Instance.new("Folder", m)
  375.     Effects.Name = "Effects"
  376.     Humanoid.Died:connect(function()
  377.    
  378.     attack = true
  379.     for _,v in pairs(Character:GetChildren()) do
  380.         if v.ClassName == "Model" then
  381.             v:Destroy()
  382.         end
  383.     end
  384. end
  385. )
  386.     for i,v in pairs(Character:GetChildren()) do
  387.         if v.ClassName == "Model" then
  388.             for _,c in pairs(v:GetChildren()) do
  389.                 if c.ClassName == "Part" then
  390.                     c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  391.                 end
  392.             end
  393.         end
  394.     end
  395.     print(ClassName .. " loaded.")
  396.     clerp = function(a, b, t)
  397. return a:lerp(b, t)
  398. end
  399.  
  400.     positiveangle = function(number)
  401.    
  402.     if number > 0 then
  403.         number = 0
  404.     end
  405.     return number
  406. end
  407.  
  408.     negativeangle = function(number)
  409.    
  410.     if number < 0 then
  411.         number = 0
  412.     end
  413.     return number
  414. end
  415.  
  416.     so = function(id, par, vol, pit)
  417.    
  418.     coroutine.resume(coroutine.create(function()
  419.        
  420.         local sou = Instance.new("Sound", par or workspace)
  421.         sou.Volume = vol
  422.         sou.Pitch = pit or 1
  423.         sou.SoundId = "http://roblox.com/asset/?id=" .. id
  424.         hbwait()
  425.         sou:play()
  426.         game:GetService("Debris"):AddItem(sou, 10)
  427.     end
  428. ))
  429. end
  430.  
  431.     GetDistance = function(Part1, Part2, magnitude)
  432.    
  433.     local target = Part1.Position - Part2.Position
  434.     local mag = target.magnitude
  435.     if mag <= magnitude then
  436.         return true
  437.     else
  438.         return false
  439.     end
  440. end
  441.  
  442.     rayCast = function(Pos, Dir, Max, Ignore)
  443.    
  444.     return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  445. end
  446.  
  447.     DamageStatLabel = function(labeltype, cframe, text, color)
  448.    
  449.     local c = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt(0, 0, 0))
  450.     c.CFrame = cf(cframe.p + vt(0, 1.5, 0))
  451.     game:GetService("Debris"):AddItem(c, 5)
  452.     Instance.new("BodyGyro", c)
  453.     local f = Instance.new("BodyPosition", c)
  454.     f.P = 2000
  455.     f.D = 100
  456.     f.maxForce = vt(math.huge, math.huge, math.huge)
  457.     if labeltype == "Normal" then
  458.         f.position = c.Position + vt(math.random(-2, 2), 6, math.random(-2, 2))
  459.     else
  460.         if labeltype == "Debuff" then
  461.             f.position = c.Position + vt(math.random(-2, 2), 8, math.random(-2, 2))
  462.         else
  463.             if labeltype == "Interruption" then
  464.                 f.position = c.Position + vt(math.random(-2, 2), 8, math.random(-2, 2))
  465.             end
  466.         end
  467.     end
  468.     game:GetService("Debris"):AddItem(c, 5)
  469.     local bg = Instance.new("BillboardGui", c)
  470.     bg.Adornee = c
  471.     bg.Size = UDim2.new(2.5, 0, 2.5, 0)
  472.     bg.StudsOffset = vt(-2, 2, 0)
  473.     bg.AlwaysOnTop = false
  474.     local tl = Instance.new("TextLabel", bg)
  475.     tl.BackgroundTransparency = 1
  476.     tl.Size = UDim2.new(2.5, 0, 2.5, 0)
  477.     tl.Text = text
  478.     tl.Font = Enum.Font.SourceSans
  479.     tl.FontSize = Enum.FontSize.Size42
  480.     tl.TextColor3 = color
  481.     tl.TextScaled = false
  482.     tl.TextStrokeTransparency = 0
  483.     tl.TextScaled = true
  484.     tl.TextWrapped = true
  485.     f.Parent = c
  486.     coroutine.resume(coroutine.create(function(Part, BodyPosition, TextLabel)
  487.        
  488.         wait(0.25)
  489.         for i = 1, 5 do
  490.             wait()
  491.             BodyPosition.position = Part.Position - vt(0, 0.5, 0)
  492.         end
  493.         wait(1.25)
  494.         for i = 1, 5 do
  495.             wait()
  496.             TextLabel.TextTransparency = TextLabel.TextTransparency + 0.2
  497.             TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency + 0.2
  498.             BodyPosition.position = Part.Position + vt(0, 0.5, 0)
  499.         end
  500.         Part.Parent = nil
  501.     end
  502. ), c, f, tl)
  503. end
  504.  
  505.     IncreaseStat = function(Location, Stat, Amount, Duration, ShowTheStat)
  506.    
  507.     -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
  508.  
  509.     -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
  510.  
  511.     if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil and Location.Stats:FindFirstChild("BlockValue").Value ~= true and Location.Stats[Stat] ~= nil then
  512.         Location.Stats[Stat].Value = Location.Stats[Stat].Value + Amount
  513.         if ShowTheStat == true then
  514.             if Stat == "Defense" then
  515.                 DamageStatLabel("Debuff", Location.Head.CFrame, "+Defense", c3(1, 1, 1))
  516.             else
  517.                 if Stat == "Damage" then
  518.                     DamageStatLabel("Debuff", Location.Head.CFrame, "+Damage", c3(1, 1, 1))
  519.                 else
  520.                     if Stat == "Movement" then
  521.                         DamageStatLabel("Debuff", Location.Head.CFrame, "+Movement", c3(1, 1, 1))
  522.                     end
  523.                 end
  524.             end
  525.         end
  526.         coroutine.resume(coroutine.create(function(CurrentDecrease)
  527.        
  528.         wait(Duration)
  529.         CurrentDecrease.Value = CurrentDecrease.Value - Amount
  530.     end
  531. ), Location.Stats[Stat])
  532.     end
  533.     DamageStatLabel("Interruption", Location.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
  534. end
  535.  
  536.     DecreaseStat = function(Location, Stat, Amount, Duration, ShowTheStat)
  537.    
  538.     -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
  539.  
  540.     -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
  541.  
  542.     if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil and Location.Stats:FindFirstChild("BlockValue").Value ~= true and Location.Stats[Stat] ~= nil then
  543.         Location.Stats[Stat].Value = Location.Stats[Stat].Value - Amount
  544.         if ShowTheStat == true then
  545.             if Stat == "Defense" then
  546.                 DamageStatLabel("Debuff", Location.Head.CFrame, "-Defense", c3(1, 1, 1))
  547.             else
  548.                 if Stat == "Damage" then
  549.                     DamageStatLabel("Debuff", Location.Head.CFrame, "-Damage", c3(1, 1, 1))
  550.                 else
  551.                     if Stat == "Movement" then
  552.                         DamageStatLabel("Debuff", Location.Head.CFrame, "-Movement", c3(1, 1, 1))
  553.                     end
  554.                 end
  555.             end
  556.         end
  557.         coroutine.resume(coroutine.create(function(CurrentDecrease)
  558.        
  559.         wait(Duration)
  560.         CurrentDecrease.Value = CurrentDecrease.Value + Amount
  561.     end
  562. ), Location.Stats[Stat])
  563.     end
  564.     DamageStatLabel("Interruption", Location.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
  565. end
  566.  
  567.     Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, DecreaseTheStat, DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  568.    
  569.     if hit.Parent == nil then
  570.         return
  571.     end
  572.     h = hit.Parent:FindFirstChild("Humanoid")
  573.     for _,v in pairs(hit.Parent:GetChildren()) do
  574.         if v:IsA("Humanoid") then
  575.             h = v
  576.         end
  577.     end
  578.     if hit.Name == "Hitbox" and ranged ~= true and hit.Parent ~= m then
  579.         StaggerHitAnim.Value = true
  580.         so(HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1)
  581.         return
  582.     end
  583.     if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  584.         h = hit.Parent.Parent:FindFirstChild("Humanoid")
  585.     end
  586.     if hit.Parent.className == "Hat" then
  587.         hit = hit.Parent.Parent:FindFirstChild("Head")
  588.     end
  589.     if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  590.         if hit.Parent:FindFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  591.             return
  592.         end
  593.         if AntiTeamKill.Value == true and Player.Neutral == false and game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then
  594.             return
  595.         end
  596.         if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health <= 0 then
  597.             return
  598.         end
  599.         if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("StunValue") ~= nil then
  600.             hit.Parent.Stats:FindFirstChild("StunValue").Value = hit.Parent.Stats:FindFirstChild("StunValue").Value + incstun
  601.         end
  602.         if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("StaggerAnim") ~= nil and stagger == true then
  603.             hit.Parent.Stats:FindFirstChild("StaggerAnim").Value = true
  604.         end
  605.         if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("BlockValue") ~= nil and hit.Parent.Stats:FindFirstChild("BlockValue").Value == true then
  606.             if hit.Parent.Stats:FindFirstChild("BlockDebounce") == nil then
  607.                 DamageStatLabel("Interruption", hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
  608.                 local BlockDebounce = Instance.new("BoolValue", hit.Parent.Stats)
  609.                 BlockDebounce.Name = "BlockDebounce"
  610.                 BlockDebounce.Value = true
  611.                 game:GetService("Debris"):AddItem(BlockDebounce, 0.1)
  612.             end
  613.             do
  614.                 if ranged ~= true then
  615.                     do
  616.                         if hit.Parent.Stats:FindFirstChild("BlockDebounce2") == nil then
  617.                             local BlockDebounce2 = Instance.new("BoolValue", hit.Parent.Stats)
  618.                             BlockDebounce2.Name = "BlockDebounce2"
  619.                             BlockDebounce2.Value = true
  620.                             game:GetService("Debris"):AddItem(BlockDebounce2, 0.1)
  621.                             so(HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
  622.                         end
  623.                         hit.Parent.Stats:FindFirstChild("BlockValue").Value = false
  624.                         StaggerAnim.Value = true
  625.                         do return  end
  626.                         if DecreaseTheStat ~= nil and hit.Parent:FindFirstChild("Stats") ~= nil then
  627.                             if DecreaseTheStat == "Defense" then
  628.                                 DecreaseStat(hit.Parent, "Defense", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  629.                             else
  630.                                 if DecreaseTheStat == "Damage" then
  631.                                     DecreaseStat(hit.Parent, "Damage", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  632.                                 else
  633.                                     if DecreaseTheStat == "Movement" then
  634.                                         DecreaseStat(hit.Parent, "Movement", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  635.                                     end
  636.                                 end
  637.                             end
  638.                         end
  639.                         local D = math.random(minim, maxim) * Damage.Value
  640.                         if hit.Parent:FindFirstChild("Stats") ~= nil then
  641.                             if hit.Parent.Stats:FindFirstChild("Defense") then
  642.                                 if CanPenetrateArmor.Value == true then
  643.                                     D = D / hit.Parent.Stats:FindFirstChild("Defense").Value
  644.                                     -- DECOMPILER ERROR at PC377: Unhandled construct in 'MakeBoolean' P1
  645.  
  646.                                     if hit.Parent.Stats:FindFirstChild("Defense") ~= nil or CanCrit.Value == true then
  647.                                         CritChanceNumber = math.random(1, CritChance.Value)
  648.                                         if CritChanceNumber == CritChance.Value then
  649.                                             D = D * 2
  650.                                         end
  651.                                     end
  652.                                     D = math.floor(D)
  653.                                     h.Health = h.Health - D
  654.                                     if D <= 3 and staggerhit == true then
  655.                                         if ranged ~= true then
  656.                                             StaggerHitAnim.Value = true
  657.                                         end
  658.                                         if ranged ~= true then
  659.                                             so(HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1)
  660.                                         end
  661.                                     else
  662.                                         if D > 3 and ranged ~= true then
  663.                                             so(HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1)
  664.                                         end
  665.                                     end
  666.                                     if D > 3 and D < 20 then
  667.                                         if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
  668.                                             DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
  669.                                             so("296102734", hit, 1, 1)
  670.                                         else
  671.                                             DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(1, 0.86274509803922, 0))
  672.                                         end
  673.                                     else
  674.                                         if D >= 20 then
  675.                                             if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
  676.                                                 DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
  677.                                                 so("296102734", hit, 1, 1)
  678.                                             else
  679.                                                 DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(1, 0, 0))
  680.                                             end
  681.                                         else
  682.                                             if D <= 3 then
  683.                                                 if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
  684.                                                     DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
  685.                                                     so("296102734", hit, 1, 1)
  686.                                                 else
  687.                                                     DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(0.88235294117647, 0.88235294117647, 0.88235294117647))
  688.                                                 end
  689.                                             end
  690.                                         end
  691.                                     end
  692.                                     do
  693.                                         if Type == "Normal" then
  694.                                             local vp = Instance.new("BodyVelocity")
  695.                                             vp.P = 500
  696.                                             vp.maxForce = vt(math.huge, 0, math.huge)
  697.                                             if KnockbackType == 1 then
  698.                                                 vp.Velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  699.                                             else
  700.                                                 if KnockbackType == 2 then
  701.                                                     vp.Velocity = Property.CFrame.lookVector * knockback
  702.                                                 end
  703.                                             end
  704.                                             if knockback > 0 then
  705.                                                 vp.Parent = hit.Parent.Torso
  706.                                             end
  707.                                             game:GetService("Debris"):AddItem(vp, 0.5)
  708.                                         end
  709.                                         local DebounceHit = Instance.new("BoolValue", hit.Parent)
  710.                                         DebounceHit.Name = "DebounceHit"
  711.                                         DebounceHit.Value = true
  712.                                         game:GetService("Debris"):AddItem(DebounceHit, Delay)
  713.                                     end
  714.                                 end
  715.                             end
  716.                         end
  717.                     end
  718.                 end
  719.             end
  720.         end
  721.     end
  722. end
  723.  
  724.     MagniDamage = function(Part, magni, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat)
  725.    
  726.     for _,c in pairs(workspace:GetChildren()) do
  727.         local hum = (c:FindFirstChild("Humanoid"))
  728.         local head = nil
  729.         if hum ~= nil then
  730.             head = c:FindFirstChild("Torso")
  731.             if head ~= nil then
  732.                 local targ = head.Position - Part.Position
  733.                 local mag = targ.magnitude
  734.                 if mag <= magni and c.Name ~= Player.Name then
  735.                     Damagefunc(head, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat)
  736.                 end
  737.             end
  738.             do
  739.                 for _,d in pairs(c:GetChildren()) do
  740.                     if d.ClassName == "Model" and ranged ~= true then
  741.                         head = d:FindFirstChild("Hitbox")
  742.                         if head ~= nil then
  743.                             local targ = head.Position - Part.Position
  744.                             local mag = targ.magnitude
  745.                             if mag <= magni and c.Name ~= Player.Name then
  746.                                 local hitrefpart = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt())
  747.                                 hitrefpart.Anchored = true
  748.                                 hitrefpart.CFrame = cf(head.Position)
  749.                                 so(HitWeaponSounds[math.random(1, #HitWeaponSounds)], hitrefpart, 1, 1)
  750.                                 StaggerHitAnim.Value = true
  751.                             end
  752.                         end
  753.                     end
  754.                 end
  755.                 do
  756.                     -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out DO_STMT
  757.  
  758.                     -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out IF_THEN_STMT
  759.  
  760.                     -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out IF_STMT
  761.  
  762.                 end
  763.             end
  764.         end
  765.     end
  766. end
  767.  
  768.     MagniBufforDebuff = function(Part, Magni, Type, Stat, Amount, Duration, ShowTheBufforDebuff, ApplyToOthersInstead)
  769.    
  770.     if Player.Neutral == true then
  771.         if Type == "Buff" then
  772.             IncreaseStat(Character, Stat, Amount, Duration, ShowTheBufforDebuff)
  773.         else
  774.             if Type == "Debuff" then
  775.                 DecreaseStat(Character, Stat, Amount, Duration, ShowTheBufforDebuff)
  776.             end
  777.         end
  778.     end
  779.     for _,c in pairs(workspace:GetChildren()) do
  780.         local hum = (c:FindFirstChild("Humanoid"))
  781.         local head = nil
  782.         if hum ~= nil then
  783.             head = c:FindFirstChild("Torso")
  784.             if head ~= nil then
  785.                 local targ = head.Position - Part.Position
  786.                 local mag = targ.magnitude
  787.                 -- DECOMPILER ERROR at PC83: Unhandled construct in 'MakeBoolean' P1
  788.  
  789.                 if ApplyToOthersInstead == true and mag <= Magni and c.Name ~= Player.Name and Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
  790.                     if Type == "Buff" then
  791.                         IncreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff)
  792.                     else
  793.                         if Type == "Debuff" then
  794.                             DecreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff)
  795.                         end
  796.                     end
  797.                 end
  798.             end
  799.         end
  800.         if ApplyToOthersInstead == false and mag <= Magni and Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
  801.             if Type == "Buff" then
  802.                 IncreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff)
  803.             else
  804.                 if Type == "Debuff" then
  805.                     DecreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff)
  806.                 end
  807.             end
  808.         end
  809.     end
  810. end
  811.  
  812.     Lightning = function(p0, p1, tym, ofs, brickcolor, material, th, tra, last)
  813.    
  814.     local magz = p0 - p1.magnitude
  815.     local curpos = p0
  816.     local trz = {-ofs, ofs}
  817.     for i = 1, tym do
  818.         local li = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt(th, th, magz / tym))
  819.         do
  820.             li.Anchored = true
  821.             local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  822.             local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz
  823.             if tym == i then
  824.                 local magz2 = curpos - p1.magnitude
  825.                 li.Size = vt(th, th, magz2)
  826.                 li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2)
  827.             else
  828.                 do
  829.                     do
  830.                         li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2)
  831.                         curpos = li.CFrame * cf(0, 0, magz / tym / 2).p
  832.                         game.Debris:AddItem(li, last)
  833.                         coroutine.resume(coroutine.create(function()
  834.        
  835.         while li.Transparency ~= 1 do
  836.             for i = 0, 1, last do
  837.                 hbwait()
  838.                 li.Transparency = li.Transparency + 0.1 / last
  839.             end
  840.         end
  841.     end
  842. ))
  843.                     end
  844.                     -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  845.  
  846.                     -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out IF_STMT
  847.  
  848.                     -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out DO_STMT
  849.  
  850.                 end
  851.             end
  852.         end
  853.     end
  854. end
  855.  
  856.     MagicRing = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  857.    
  858.     local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  859.     prt.Anchored = true
  860.     prt.CFrame = cframe
  861.     local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  862.     game:GetService("Debris"):AddItem(prt, 10)
  863.     coroutine.resume(coroutine.create(function(Part, Mesh)
  864.        
  865.         for i = 0, 1, delay do
  866.             hbwait()
  867.             Part.CFrame = Part.CFrame
  868.             Part.Transparency = i
  869.             Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  870.         end
  871.         Part.Parent = nil
  872.     end
  873. ), prt, msh)
  874. end
  875.  
  876.     MagicWave = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  877.    
  878.     local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  879.     prt.Anchored = true
  880.     prt.CFrame = cframe
  881.     local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, -0.1 * z1), vt(x1, y1, z1))
  882.     game:GetService("Debris"):AddItem(prt, 10)
  883.     coroutine.resume(coroutine.create(function(Part, Mesh)
  884.        
  885.         for i = 0, 1, delay do
  886.             hbwait()
  887.             Part.CFrame = Part.CFrame
  888.             Part.Transparency = i
  889.             Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  890.         end
  891.         Part.Parent = nil
  892.     end
  893. ), prt, msh)
  894. end
  895.  
  896.     MagicBlock = function(brickcolor, material, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
  897.    
  898.     local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  899.     prt.Anchored = true
  900.     prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  901.     local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  902.     game:GetService("Debris"):AddItem(prt, 10)
  903.     coroutine.resume(coroutine.create(function(Part, Mesh)
  904.        
  905.         for i = 0, 1, delay do
  906.             hbwait()
  907.             if rotate == true then
  908.                 Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  909.             end
  910.             Part.Transparency = i
  911.             Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  912.         end
  913.         Part.Parent = nil
  914.     end
  915. ), prt, msh)
  916. end
  917.  
  918.     MagicBlock2 = function(brickcolor, material, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
  919.    
  920.     local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  921.     prt.Anchored = true
  922.     prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  923.     local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  924.     game:GetService("Debris"):AddItem(prt, 10)
  925.     CF = prt.CFrame
  926.     num = math.random(5, 20)
  927.     coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num)
  928.        
  929.         for i = 0, 1, delay do
  930.             hbwait()
  931.             if rotate == true then
  932.                 Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  933.             else
  934.                 Part.CFrame = CF2 * cf(0, i * Num, 0)
  935.             end
  936.             Part.Transparency = i
  937.             Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  938.         end
  939.         Part.Parent = nil
  940.     end
  941. ), prt, msh, CF, num)
  942. end
  943.  
  944.     MagicCylinder = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  945.    
  946.     local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  947.     prt.Anchored = true
  948.     prt.CFrame = cframe
  949.     local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  950.     game:GetService("Debris"):AddItem(prt, 10)
  951.     coroutine.resume(coroutine.create(function(Part, Mesh)
  952.        
  953.         for i = 0, 1, delay do
  954.             hbwait()
  955.             Part.Transparency = i
  956.             Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  957.         end
  958.         Part.Parent = nil
  959.     end
  960. ), prt, msh)
  961. end
  962.  
  963.     MagicCircle = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  964.    
  965.     local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  966.     prt.Anchored = true
  967.     prt.CFrame = cframe
  968.     local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  969.     game:GetService("Debris"):AddItem(prt, 10)
  970.     coroutine.resume(coroutine.create(function(Part, Mesh)
  971.        
  972.         for i = 0, 1, delay do
  973.             hbwait()
  974.             Part.Transparency = i
  975.             Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  976.         end
  977.         Part.Parent = nil
  978.     end
  979. ), prt, msh)
  980. end
  981.  
  982.     MagicHead = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  983.    
  984.     local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  985.     prt.Anchored = true
  986.     prt.CFrame = cframe
  987.     local msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
  988.     game:GetService("Debris"):AddItem(prt, 10)
  989.     coroutine.resume(coroutine.create(function(Part, Mesh)
  990.        
  991.         for i = 0, 1, delay do
  992.             hbwait()
  993.             Part.Transparency = i
  994.             Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  995.         end
  996.         Part.Parent = nil
  997.     end
  998. ), prt, msh)
  999. end
  1000.  
  1001.     BreakEffect = function(brickcolor, material, rotate, cframe, x1, y1, z1, delay)
  1002.    
  1003.     local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1004.     prt.Anchored = true
  1005.     prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1006.     local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1007.     game:GetService("Debris"):AddItem(prt, 10)
  1008.     coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
  1009.        
  1010.         CF = Part.CFrame
  1011.         Numbb = 0
  1012.         randnumb = math.random() - math.random()
  1013.         for i = 0, 1, delay do
  1014.             hbwait()
  1015.             CF = CF * cf(0, 1, 0)
  1016.             if rotate == true then
  1017.                 Part.CFrame = CF * angles(Numbb, 0, 0)
  1018.             else
  1019.                 if rotate == false then
  1020.                     Part.CFrame = CF
  1021.                 end
  1022.             end
  1023.             Part.Transparency = i
  1024.             Numbb = Numbb + (randnumb)
  1025.         end
  1026.         Part.Parent = nil
  1027.     end
  1028. ), prt, CF, Numbb, randnumb)
  1029. end
  1030.  
  1031.     ElecEffect = function(brickcolor, material, cf, x, y, z, delay)
  1032.    
  1033.     local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1034.     prt.Anchored = true
  1035.     prt.CFrame = cf
  1036.     xval = math.random()
  1037.     yval = math.random()
  1038.     zval = math.random()
  1039.     local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z))
  1040.     game:GetService("Debris"):AddItem(prt, 10)
  1041.     coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal)
  1042.        
  1043.         for i = 0, 1, delay do
  1044.             hbwait()
  1045.             Part.CFrame = Part.CFrame
  1046.             xvaal = xvaal - 0.1 * (delay * 10)
  1047.             yvaal = yvaal - 0.1 * (delay * 10)
  1048.             zvaal = zvaal - 0.1 * (delay * 10)
  1049.             Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal)
  1050.             Part.Transparency = i
  1051.         end
  1052.         Part.Parent = nil
  1053.     end
  1054. ), prt, msh, xval, yval, zval)
  1055. end
  1056.  
  1057.     TrailEffect = function(brickcolor, material, currentcf, oldcf, meshtype, reflectance, size, x, y, z, delay)
  1058.    
  1059.     local magnitudecframe = currentcf.p - oldcf.p.magnitude
  1060.     if magnitudecframe > 0.01 then
  1061.         local prt = part(3, Effects, material, reflectance, 0, brickcolor, "Effect", vt(1, magnitudecframe, 1))
  1062.         prt.Anchored = true
  1063.         prt.CFrame = cf((currentcf.p + oldcf.p) / 2, oldcf.p) * angles(rad(90), 0, 0)
  1064.         local TheMeshType = "BlockMesh"
  1065.         if meshtype == "Cylinder" then
  1066.             TheMeshType = "CylinderMesh"
  1067.         end
  1068.         local msh = mesh(TheMeshType, prt, "", "", vt(0, 0, 0), vt(0 + size, 1, 0 + size))
  1069.         game:GetService("Debris"):AddItem(prt, 10)
  1070.         coroutine.resume(coroutine.create(function(Part, Mesh, TheCurrentCFrame, TheLastCFrame)
  1071.        
  1072.         for i = 0, 1, delay do
  1073.             hbwait()
  1074.             Part.Transparency = i
  1075.             Mesh.Scale = Mesh.Scale + vt(x, y, z)
  1076.         end
  1077.         Part.Parent = nil
  1078.     end
  1079. ), prt, msh, currentcf, oldcf)
  1080.     end
  1081. end
  1082.  
  1083.     ClangEffect = function(brickcolor, material, cframe, angle, duration, size, power, reflectance, x, y, z, delay)
  1084.    
  1085.     local prt = part(3, Effects, material, 0, 1, brickcolor, "Effect", vt())
  1086.     prt.Anchored = true
  1087.     prt.CFrame = cframe
  1088.     local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(0, 0, 0))
  1089.     game:GetService("Debris"):AddItem(prt, 10)
  1090.     local TheLastPoint = cframe
  1091.     coroutine.resume(coroutine.create(function(Part)
  1092.        
  1093.         for i = 1, duration do
  1094.             hbwait()
  1095.             Part.CFrame = Part.CFrame * angles(rad(angle), 0, 0) * cf(0, power, 0)
  1096.             TrailEffect(brickcolor, material, Part.CFrame, TheLastPoint, "Cylinder", reflectance, size, x, y, z, delay)
  1097.             TheLastPoint = Part.CFrame
  1098.         end
  1099.         Part.Parent = nil
  1100.     end
  1101. ), prt)
  1102. end
  1103.  
  1104.     MagicCone = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1105.    
  1106.     local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1107.     prt.Anchored = true
  1108.     prt.CFrame = cframe
  1109.     local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1778999", vt(0, 0, 0), vt(x1, y1, z1))
  1110.     game:GetService("Debris"):AddItem(prt, 10)
  1111.     coroutine.resume(coroutine.create(function(Part, Mesh)
  1112.        
  1113.         for i = 0, 1, delay do
  1114.             hbwait()
  1115.             Part.Transparency = i
  1116.             Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1117.         end
  1118.         Part.Parent = nil
  1119.     end
  1120. ), prt, msh)
  1121. end
  1122.  
  1123.     MagicFlatCone = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1124.    
  1125.     local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1126.     prt.Anchored = true
  1127.     prt.CFrame = cframe
  1128.     local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1033714", vt(0, 0, 0), vt(x1, y1, z1))
  1129.     game:GetService("Debris"):AddItem(prt, 10)
  1130.     coroutine.resume(coroutine.create(function(Part, Mesh)
  1131.        
  1132.         for i = 0, 1, delay do
  1133.             hbwait()
  1134.             Part.Transparency = i
  1135.             Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1136.         end
  1137.         Part.Parent = nil
  1138.     end
  1139. ), prt, msh)
  1140. end
  1141.  
  1142.     MagicSpikedCrown = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1143.    
  1144.     local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1145.     prt.Anchored = true
  1146.     prt.CFrame = cframe
  1147.     local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1323306", vt(0, 0, 0), vt(x1, y1, z1))
  1148.     game:GetService("Debris"):AddItem(prt, 10)
  1149.     coroutine.resume(coroutine.create(function(Part, Mesh)
  1150.        
  1151.         for i = 0, 1, delay do
  1152.             hbwait()
  1153.             Part.Transparency = i
  1154.             Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1155.         end
  1156.         Part.Parent = nil
  1157.     end
  1158. ), prt, msh)
  1159. end
  1160.  
  1161.     MagicCrown = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1162.    
  1163.     local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1164.     prt.Anchored = true
  1165.     prt.CFrame = cframe
  1166.     local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1078075", vt(0, 0, 0), vt(x1, y1, z1))
  1167.     game:GetService("Debris"):AddItem(prt, 10)
  1168.     coroutine.resume(coroutine.create(function(Part, Mesh)
  1169.        
  1170.         for i = 0, 1, delay do
  1171.             hbwait()
  1172.             Part.Transparency = i
  1173.             Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1174.         end
  1175.         Part.Parent = nil
  1176.     end
  1177. ), prt, msh)
  1178. end
  1179.  
  1180.     MagicSkull = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1181.    
  1182.     local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1183.     prt.Anchored = true
  1184.     prt.CFrame = cframe
  1185.     local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
  1186.     game:GetService("Debris"):AddItem(prt, 10)
  1187.     coroutine.resume(coroutine.create(function(Part, Mesh)
  1188.        
  1189.         for i = 0, 1, delay do
  1190.             hbwait()
  1191.             Part.Transparency = i
  1192.             Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1193.         end
  1194.         Part.Parent = nil
  1195.     end
  1196. ), prt, msh)
  1197. end
  1198.  
  1199.     local startequipped = true
  1200.     local startequippedwithequipanimation = false
  1201.     local disableanimator = true
  1202.     local disableanimate = true
  1203.     local alternatewalk = false
  1204.     local hidemenu = false
  1205.     local allowmenutofunction = false
  1206.     local allowabilitiestofunction = false
  1207.     local canunequiporequip = false
  1208.     local allowwalking = false
  1209.     local disablemovingarms = false
  1210.     local usemotorsinsteadofwelds = false
  1211.     local leftarm = false
  1212.     local rightarm = false
  1213.     local allowhopperbin = false
  1214.     local showstunbar = false
  1215.     local walkspeeddependsonmovementvalue = true
  1216.     local alternatemanaregensystem = false
  1217.     local showhealthmanaandstunnumbers = false
  1218.     local changebarcolorsifnotenoughmana = false
  1219.     local disablejump = false
  1220.     if hidemenu == true or allowmenutofunction == false then
  1221.         for _,v in pairs(scrn:GetChildren()) do
  1222.             if v.ClassName == "Frame" or v.ClassName == "TextLabel" then
  1223.                 v.Visible = false
  1224.                 v.BorderSizePixel = 0
  1225.             end
  1226.         end
  1227.     end
  1228.     do
  1229.         Humanoid.Changed:connect(function(Jump)
  1230.    
  1231.     if Jump == "Jump" and disablejump == true then
  1232.         Humanoid.Jump = false
  1233.     end
  1234. end
  1235. )
  1236.         if allowmenutofunction == true then
  1237.             for _,v in pairs(scrn:GetChildren()) do
  1238.                 if v.ClassName == "Frame" then
  1239.                     for _,b in pairs(v:GetChildren()) do
  1240.                         if b.ClassName == "TextLabel" then
  1241.                             coroutine.resume(coroutine.create(function(TheTextLabel)
  1242.    
  1243.     wait(menuupdatespeed)
  1244.     for i = 1, 0, -0.1 do
  1245.         hbwait()
  1246.         TheTextLabel.TextTransparency = i
  1247.         TheTextLabel.TextStrokeTransparency = i
  1248.     end
  1249.     TheTextLabel.TextTransparency = 0
  1250.     TheTextLabel.TextStrokeTransparency = 0
  1251. end
  1252. ), b)
  1253.                             if showstats == true then
  1254.                                 coroutine.resume(coroutine.create(function(TheTextLabel)
  1255.    
  1256.     wait(menuupdatespeed)
  1257.     for i = 1, 0, -0.1 do
  1258.         hbwait()
  1259.         TheTextLabel.TextTransparency = i
  1260.         TheTextLabel.TextStrokeTransparency = i
  1261.     end
  1262.     TheTextLabel.TextTransparency = 0
  1263.     TheTextLabel.TextStrokeTransparency = 0
  1264. end
  1265. ), b)
  1266.                             end
  1267.                             if showstunbar == true then
  1268.                                 coroutine.resume(coroutine.create(function(TheTextLabel)
  1269.    
  1270.     wait(menuupdatespeed)
  1271.     for i = 1, 0, -0.1 do
  1272.         hbwait()
  1273.         TheTextLabel.TextTransparency = i
  1274.         TheTextLabel.TextStrokeTransparency = i
  1275.     end
  1276.     TheTextLabel.TextTransparency = 0
  1277.     TheTextLabel.TextStrokeTransparency = 0
  1278. end
  1279. ), b)
  1280.                             end
  1281.                             if allowabilitiestofunction == true then
  1282.                                 coroutine.resume(coroutine.create(function(TheTextLabel)
  1283.    
  1284.     wait(menuupdatespeed)
  1285.     for i = 1, 0, -0.1 do
  1286.         hbwait()
  1287.         TheTextLabel.TextTransparency = i
  1288.         TheTextLabel.TextStrokeTransparency = i
  1289.     end
  1290.     TheTextLabel.TextTransparency = 0
  1291.     TheTextLabel.TextStrokeTransparency = 0
  1292. end
  1293. ), b)
  1294.                             end
  1295.                         end
  1296.                     end
  1297.                 end
  1298.             end
  1299.         end
  1300.         do
  1301.             if allowhopperbin == true then
  1302.                 if script.Parent.className ~= "HopperBin" then
  1303.                     Tool = Instance.new("HopperBin")
  1304.                     Tool.Parent = Backpack
  1305.                     Tool.Name = WeaponName
  1306.                     script.Parent = Tool
  1307.                 end
  1308.                 Bin = script.Parent
  1309.             end
  1310.             if disablemovingarms == true then
  1311.                 RWC0 = cf(0, 0 - (0.5 * PlayerSize - 0.5), 0) * angles(rad(0), rad(0), rad(0))
  1312.                 LWC0 = cf(0, 0 - (0.5 * PlayerSize - 0.5), 0) * angles(rad(0), rad(0), rad(0))
  1313.                 RSH = nil
  1314.                 if usemotorsinsteadofwelds == true then
  1315.                     RW = Instance.new("Motor")
  1316.                     LW = Instance.new("Motor")
  1317.                 else
  1318.                     RW = Instance.new("Weld")
  1319.                     LW = Instance.new("Weld")
  1320.                 end
  1321.                 RW.Name = "Right Shoulder"
  1322.                 LW.Name = "Left Shoulder"
  1323.                 RSH = Torso["Right Shoulder"]
  1324.                 LSH = Torso["Left Shoulder"]
  1325.                 RSH.Parent = Torso
  1326.                 LSH.Parent = Torso
  1327.                 RW.Name = "Right Shoulder"
  1328.                 RW.Part0 = Torso
  1329.                 RW.C0 = cf(1.5, 0.5, 0)
  1330.                 RW.C1 = cf(0, 0.5, 0)
  1331.                 RW.Part1 = Character["Right Arm"]
  1332.                 RW.Parent = nil
  1333.                 LW.Name = "Left Shoulder"
  1334.                 LW.Part0 = Torso
  1335.                 LW.C0 = cf(-1.5, 0.5, 0)
  1336.                 LW.C1 = cf(0, 0.5, 0)
  1337.                 LW.Part1 = Character["Left Arm"]
  1338.                 LW.Parent = nil
  1339.             else
  1340.                 RW = Torso["Right Shoulder"]
  1341.                 LW = Torso["Left Shoulder"]
  1342.                 RWC0 = cf(-0.5, 0, 0) * angles(rad(0), rad(90), rad(0))
  1343.                 LWC0 = cf(0.5, 0, 0) * angles(rad(0), rad(-90), rad(0))
  1344.             end
  1345.             equipanim = function()
  1346.    
  1347.     attack = true
  1348.     Movement.Value = Movement.Value - 0.1
  1349.     Defense.Value = Defense.Value + 0.4
  1350.     for i = 0, 1, 0.08 / animationspeed do
  1351.         hbwait()
  1352.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1353.         Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1354.         RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0, 0.3 / animationspeed)
  1355.         LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0, 0.3 / animationspeed)
  1356.         RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1357.         LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1358.     end
  1359.     attack = false
  1360. end
  1361.  
  1362.             unequipanim = function()
  1363.    
  1364.     attack = true
  1365.     for i = 0, 1, 0.08 / animationspeed do
  1366.         hbwait()
  1367.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1368.         Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)), 0.3 / animationspeed)
  1369.         RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0, 0.3 / animationspeed)
  1370.         LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0, 0.3 / animationspeed)
  1371.         if disablemovingarms == false then
  1372.             RW.C1 = clerp(RW.C1, angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5), 0.3 / animationspeed)
  1373.             LW.C1 = clerp(LW.C1, angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5), 0.3 / animationspeed)
  1374.         end
  1375.         RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1376.         LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1377.         RH.C1 = clerp(RH.C1, angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize), 0.3 / animationspeed)
  1378.         LH.C1 = clerp(LH.C1, angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize), 0.3 / animationspeed)
  1379.     end
  1380.     RootJoint.C0 = RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0))
  1381.     Neck.C0 = necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0))
  1382.     Neck.C1 = angles(rad(90), rad(180), 0) * cf(0, 0, -0.5 * PlayerSize)
  1383.     RW.C0 = cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0
  1384.     LW.C0 = cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0
  1385.     if disablemovingarms == false then
  1386.         RW.C1 = angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5)
  1387.         LW.C1 = angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5)
  1388.     end
  1389.     RH.C0 = cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0))
  1390.     LH.C0 = cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0))
  1391.     RH.C1 = angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize)
  1392.     LH.C1 = angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize)
  1393.     Movement.Value = Movement.Value + 0.1
  1394.     Defense.Value = Defense.Value - 0.4
  1395.     attack = false
  1396. end
  1397.  
  1398.             if startequipped == true then
  1399.                 equipped = true
  1400.                 if disableanimate == true then
  1401.                     Animate.Disabled = true
  1402.                     local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  1403.                     idleanimation:Play()
  1404.                 end
  1405.                     if disableanimator == true then
  1406.                         Animator.Parent = nil
  1407.                     end
  1408.                     if disablemovingarms == true then
  1409.                         RW.Parent = Torso
  1410.                         LW.Parent = Torso
  1411.                         RSH.Parent = nil
  1412.                         LSH.Parent = nil
  1413.                     end
  1414.                     Movement.Value = Movement.Value - 0.1
  1415.                     Defense.Value = Defense.Value + 0.4
  1416. end
  1417.                     if startequippedwithequipanimation == true then
  1418.                         equipped = true
  1419.                         if disableanimate == true then
  1420.                             Animate.Disabled = true
  1421.                             local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  1422.                             idleanimation:Play()
  1423.                         end
  1424.                             if disableanimator == true then
  1425.                                 Animator.Parent = nil
  1426.                             end
  1427.                             if disablemovingarms == true then
  1428.                                 RW.Parent = Torso
  1429.                                 LW.Parent = Torso
  1430.                                 RSH.Parent = nil
  1431.                                 LSH.Parent = nil
  1432.                             end
  1433.                             coroutine.resume(coroutine.create(function()
  1434.    
  1435.     hbwait()
  1436.     equipanim()
  1437. end
  1438. ))
  1439. end
  1440.  
  1441.                             StaggerHit = function()
  1442.    
  1443.     attack = true
  1444.     if Hitbox ~= nil then
  1445.         for i = 1, math.random(2, 4) do
  1446.             ClangEffect("Bright yellow", "Neon", cf(Hitbox.Position) * angles(rad(math.random(-50, 50)), rad(math.random(-50, 50)), rad(math.random(-50, 50))), 20, 5, 0.2, math.random(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
  1447.         end
  1448.     end
  1449.     do
  1450.         for i = 0, 1, 0.1 / animationspeed do
  1451.             hbwait()
  1452.             RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(-10), rad(0), rad(-30)), 0.3 / animationspeed)
  1453.             Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(30)) * angles(rad(5), rad(0), rad(0)), 0.3 / animationspeed)
  1454.             RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-30), rad(0), rad(60)) * angles(rad(0), rad(-30), rad(0)) * RWC0, 0.3 / animationspeed)
  1455.             LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-20), rad(0), rad(-20)) * angles(rad(0), rad(20), rad(0)) * LWC0, 0.3 / animationspeed)
  1456.             RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.9 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-10), rad(0), rad(-20)), 0.3 / animationspeed)
  1457.             LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-70), rad(0)) * angles(rad(-5), rad(0), rad(10)), 0.3 / animationspeed)
  1458.             if StaggerAnim.Value ~= true then
  1459.                 do
  1460.                     if StunAnim.Value == true then
  1461.                         break
  1462.                     end
  1463.                     -- DECOMPILER ERROR at PC314: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1464.  
  1465.                     -- DECOMPILER ERROR at PC314: LeaveBlock: unexpected jumping out IF_STMT
  1466.  
  1467.                 end
  1468.             end
  1469.         end
  1470.         attack = false
  1471.     end
  1472. end
  1473.  
  1474.                             Stagger = function()
  1475.    
  1476.     attack = true
  1477.     disablejump = true
  1478.     if Hitbox ~= nil then
  1479.         for i = 1, math.random(2, 4) do
  1480.             ClangEffect("Bright yellow", "Neon", cf(Hitbox.Position) * angles(rad(math.random(-50, 50)), rad(math.random(-50, 50)), rad(math.random(-50, 50))), 20, 5, 0.2, math.random(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
  1481.         end
  1482.     end
  1483.     do
  1484.         attacktype = 1
  1485.         DamageStatLabel("Interruption", Head.CFrame, "Staggered!", Color3.new(1, 1, 0))
  1486.         local staggervelocity = Instance.new("BodyVelocity", Torso)
  1487.         staggervelocity.P = 500
  1488.         staggervelocity.maxForce = vt(math.huge, 0, math.huge)
  1489.         if Rooted.Value == false then
  1490.             staggervelocity.Velocity = RootPart.CFrame.lookVector * -25
  1491.         end
  1492.         for i = 0, 1, 0.35 / animationspeed do
  1493.             hbwait()
  1494.             RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.1 * PlayerSize) * angles(rad(-20), rad(0), rad(-30)), 0.3 / animationspeed)
  1495.             Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(35)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1496.             RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(20), rad(-30), rad(40)) * RWC0, 0.3 / animationspeed)
  1497.             LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(10), rad(5), rad(-20)) * LWC0, 0.3 / animationspeed)
  1498.             RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 * PlayerSize, -0.25 * PlayerSize) * angles(rad(0), rad(100), rad(0)) * angles(rad(-20), rad(0), rad(40)), 0.3 / animationspeed)
  1499.             LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0.25 * PlayerSize) * angles(rad(0), rad(-60), rad(0)) * angles(rad(-5), rad(0), rad(10)), 0.3 / animationspeed)
  1500.         end
  1501.         for i = 0, 1, 0.2 / animationspeed do
  1502.             hbwait()
  1503.             RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.2 * PlayerSize) * angles(rad(-30), rad(0), rad(-30)), 0.3 / animationspeed)
  1504.             Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(35)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1505.             RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(20), rad(-30), rad(40)) * RWC0, 0.3 / animationspeed)
  1506.             LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(10), rad(5), rad(-20)) * LWC0, 0.3 / animationspeed)
  1507.             RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 * PlayerSize, -0.25 * PlayerSize) * angles(rad(0), rad(100), rad(0)) * angles(rad(-20), rad(0), rad(40)), 0.3 / animationspeed)
  1508.             LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.9 * PlayerSize, 0.25 * PlayerSize) * angles(rad(0), rad(-60), rad(0)) * angles(rad(-5), rad(0), rad(30)), 0.3 / animationspeed)
  1509.         end
  1510.         staggervelocity:Destroy()
  1511.         for i = 0, 1, 0.015 / animationspeed do
  1512.             hbwait()
  1513.             RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1.8 * PlayerSize) * angles(rad(0), rad(0), rad(-20)) * angles(rad(-5), rad(-5), rad(0)), 0.3 / animationspeed)
  1514.             Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(20), rad(0), rad(20)) * angles(rad(0), rad(5), rad(0)), 0.3 / animationspeed)
  1515.             RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(20)) * angles(rad(0), rad(-20), rad(0)) * RWC0, 0.3 / animationspeed)
  1516.             LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-15), rad(0), rad(-10)) * angles(rad(0), rad(20), rad(0)) * LWC0, 0.3 / animationspeed)
  1517.             RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.5 * PlayerSize, -0.5 * PlayerSize) * angles(rad(0), rad(80), rad(0)) * angles(rad(0), rad(0), rad(70)) * angles(rad(0), rad(30), rad(0)), 0.3 / animationspeed)
  1518.             LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, 0.4 * PlayerSize, -0.5 * PlayerSize) * angles(rad(0), rad(-80), rad(0)) * angles(rad(-2.5), rad(0), rad(-10)), 0.3 / animationspeed)
  1519.             if StunAnim.Value == true then
  1520.                 break
  1521.             end
  1522.         end
  1523.         do
  1524.             attacktype = 1
  1525.             disablejump = false
  1526.             attack = false
  1527.         end
  1528.     end
  1529. end
  1530.  
  1531.                             Stun = function()
  1532.    
  1533.     attack = true
  1534.     disablejump = true
  1535.     attacktype = 1
  1536.     DamageStatLabel("Interruption", Head.CFrame, "Stunned!", Color3.new(1, 1, 0))
  1537.     for i = 0, 1, 0.4 / animationspeed do
  1538.         hbwait()
  1539.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(15), rad(0), rad(-160)), 0.3 / animationspeed)
  1540.         Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(10), rad(0), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1541.         RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(70), rad(0), rad(15)) * RWC0, 0.3 / animationspeed)
  1542.         LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(70), rad(0), rad(-15)) * LWC0, 0.3 / animationspeed)
  1543.         RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed)
  1544.         LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed)
  1545.     end
  1546.     for i = 0, 1, 0.4 / animationspeed do
  1547.         hbwait()
  1548.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.5 * PlayerSize) * angles(rad(45), rad(0), rad(-170)), 0.3 / animationspeed)
  1549.         Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(-30)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1550.         RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(80), rad(0), rad(45)) * RWC0, 0.3 / animationspeed)
  1551.         LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(80), rad(0), rad(-45)) * LWC0, 0.3 / animationspeed)
  1552.         RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-5), rad(0), rad(-40)), 0.3 / animationspeed)
  1553.         LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed)
  1554.     end
  1555.     for i = 0, 1, 0.4 / animationspeed do
  1556.         hbwait()
  1557.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1 * PlayerSize) * angles(rad(75), rad(0), rad(-180)), 0.3 / animationspeed)
  1558.         Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(-60)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1559.         RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(90), rad(0), rad(75)) * RWC0, 0.3 / animationspeed)
  1560.         LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-45), rad(0), rad(-75)) * LWC0, 0.3 / animationspeed)
  1561.         RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-5), rad(0), rad(-40)), 0.3 / animationspeed)
  1562.         LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-5), rad(0), rad(-30)), 0.3 / animationspeed)
  1563.     end
  1564.     Humanoid.AutoRotate = false
  1565.     for i = 1, 70 * animationspeed do
  1566.         hbwait()
  1567.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -2.5 * PlayerSize) * angles(rad(90), rad(0), rad(-180)), 0.3 / animationspeed)
  1568.         Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(-90)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1569.         RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(90), rad(-10), rad(90)) * RWC0, 0.3 / animationspeed)
  1570.         LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-90), rad(0), rad(-90)) * LWC0, 0.3 / animationspeed)
  1571.         RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0.2 * PlayerSize) * angles(rad(0), rad(70), rad(0)) * angles(rad(-10), rad(0), rad(0)), 0.3 / animationspeed)
  1572.         LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-100), rad(0)) * angles(rad(-10), rad(0), rad(0)), 0.3 / animationspeed)
  1573.     end
  1574.     for i = 0, 1, 0.15 / animationspeed do
  1575.         hbwait()
  1576.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1.5 * PlayerSize) * angles(rad(20), rad(0), rad(100)), 0.3 / animationspeed)
  1577.         Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(-30)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  1578.         RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-20), rad(0), rad(30)) * RWC0, 0.3 / animationspeed)
  1579.         LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(80), rad(0), rad(20)) * LWC0, 0.3 / animationspeed)
  1580.         RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(60), rad(0)) * angles(rad(-5), rad(0), rad(70)), 0.3 / animationspeed)
  1581.         LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.25 * PlayerSize, -1 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-10), rad(0), rad(20)), 0.3 / animationspeed)
  1582.     end
  1583.     Humanoid.AutoRotate = true
  1584.     attacktype = 1
  1585.     disablejump = false
  1586.     attack = false
  1587. end
  1588.  
  1589.                             EAbility = function()
  1590.    
  1591.     attack = true
  1592.     attack = false
  1593. end
  1594.  
  1595.                             Attack1 = function()
  1596.    
  1597.     attack = true
  1598.     attack = false
  1599. end
  1600.  
  1601.                             Attack2 = function()
  1602.    
  1603.     attack = true
  1604.     attack = false
  1605. end
  1606.  
  1607.                             Attack3 = function()
  1608.    
  1609.     attack = true
  1610.     attack = false
  1611. end
  1612.  
  1613.                             Attack4 = function()
  1614.    
  1615.     attack = true
  1616.     attack = false
  1617. end
  1618.  
  1619.                             Move1 = function()
  1620.    
  1621.     attack = true
  1622.     attack = false
  1623. end
  1624.  
  1625.                             Move2 = function()
  1626.    
  1627.     attack = true
  1628.     attack = false
  1629. end
  1630.  
  1631.                             Move3 = function()
  1632.    
  1633.     attack = true
  1634.     attack = false
  1635. end
  1636.  
  1637.                             Move4 = function()
  1638.    
  1639.     attack = true
  1640.     attack = false
  1641. end
  1642.  
  1643.                             hold = false
  1644.                             Mouse.Button1Down:connect(function()
  1645.    
  1646.     if attack == true or equipped == false then
  1647.         return
  1648.     end
  1649.     hold = true
  1650.     if attacktype == 1 then
  1651.         attacktype = 2
  1652.         Attack1()
  1653.     else
  1654.         if attacktype == 2 then
  1655.             attacktype = 3
  1656.             Attack2()
  1657.         else
  1658.             if attacktype == 3 then
  1659.                 attacktype = 4
  1660.                 Attack3()
  1661.             else
  1662.                 if attacktype == 4 then
  1663.                     attacktype = 1
  1664.                     Attack4()
  1665.                 end
  1666.             end
  1667.         end
  1668.     end
  1669.     coroutine.resume(coroutine.create(function()
  1670.        
  1671.         for i = 1, 50 do
  1672.             if attack == false then
  1673.                 hbwait()
  1674.             end
  1675.         end
  1676.         if attack == false then
  1677.             attacktype = 1
  1678.         end
  1679.     end
  1680. ))
  1681. end
  1682. )
  1683.                             if allowhopperbin == true then
  1684.                                 ob1u = function(Mouse)
  1685.    
  1686.     hold = false
  1687. end
  1688.  
  1689.                             end
  1690.                             Mouse.KeyDown:connect(function(key)
  1691.    
  1692.     if key == "f" and canunequiporequip == true and attack == false then
  1693.         if equipped == false then
  1694.             equipped = true
  1695.             if disableanimate == true then
  1696.                 Animate.Disabled = true
  1697.                 local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  1698.                 idleanimation:Play()
  1699.             end
  1700.                 if disableanimator == true then
  1701.                     Animator.Parent = nil
  1702.                 end
  1703.                 if disablemovingarms == true then
  1704.                     RW.Parent = Torso
  1705.                     LW.Parent = Torso
  1706.                     RSH.Parent = nil
  1707.                     LSH.Parent = nil
  1708.                 end
  1709.                 equipanim()
  1710.                 elseif equipped == true then
  1711.                     equipped = false
  1712.                     unequipanim()
  1713.                     hbwait()
  1714.                     if disablemovingarms == true then
  1715.                         RW.Parent = nil
  1716.                         LW.Parent = nil
  1717.                         RSH.Parent = Torso
  1718.                         LSH.Parent = Torso
  1719.                     end
  1720.                     if disableanimator == true then
  1721.                         Animator.Parent = Humanoid
  1722.                     end
  1723.                     if disableanimate == true then
  1724.                         Animate.Disabled = false
  1725.                     end
  1726.                 end
  1727. end
  1728.                 if key == "e" and attack == false and equipped == true then
  1729.                     if animtype < 3 then
  1730.                         animtype = animtype + 1
  1731.                     elseif animtype >= 3 then
  1732.                         animtype = 1
  1733.                     end
  1734.                 end
  1735.                 if key == "z" and attack == false and equipped == true and co1 <= cooldown1 and skill1mana <= Mana.Value then
  1736.                     subtractmana(skill1mana)
  1737.                     cooldown1 = 0
  1738.                     Move1()
  1739.                 end
  1740.                 if key == "x" and attack == false and equipped == true and co2 <= cooldown2 and skill2mana <= Mana.Value then
  1741.                     subtractmana(skill2mana)
  1742.                     cooldown2 = 0
  1743.                     Move2()
  1744.                 end
  1745.                 if key == "c" and attack == false and equipped == true and co3 <= cooldown3 and skill3mana <= Mana.Value then
  1746.                     subtractmana(skill3mana)
  1747.                     cooldown3 = 0
  1748.                     Move3()
  1749.                 end
  1750.                 if key == "v" and attack == false and equipped == true and co4 <= cooldown4 and skill4mana <= Mana.Value then
  1751.                     subtractmana(skill4mana)
  1752.                     cooldown4 = 0
  1753.                     Move4()
  1754.                 end
  1755.                 if Player.UserId == game.CreatorId or Player.Name == "Player1" or Player.Name == "Player2" or Player.Name == "Brannon1964802" then
  1756.                     if key == "q" then
  1757.                         Mana.Value = 100
  1758.                         cooldown1 = co1
  1759.                         cooldown2 = co2
  1760.                         cooldown3 = co3
  1761.                         cooldown4 = co4
  1762.                     end
  1763.                     if key == "p" then
  1764.                         StaggerHitAnim.Value = true
  1765.                     end
  1766.                     if key == "[" then
  1767.                         StaggerAnim.Value = true
  1768.                     end
  1769.                     if key == "]" then
  1770.                         StunAnim.Value = true
  1771.                     end
  1772. end
  1773.                 end
  1774. )
  1775.                             Mouse.KeyUp:connect(function(key2)
  1776.    
  1777. end
  1778. )
  1779.                             if allowhopperbin == true then
  1780.                                 s = function(Mouse)
  1781.    
  1782.     Mouse.Button1Down:connect(function()
  1783.        
  1784.         ob1d(Mouse)
  1785.     end
  1786. )
  1787.     Mouse.Button1Up:connect(function()
  1788.        
  1789.         ob1u(Mouse)
  1790.     end
  1791. )
  1792.     Mouse.KeyDown:connect(key)
  1793.     Mouse.KeyUp:connect(key2)
  1794. end
  1795.  
  1796.                             end
  1797.                             if allowhopperbin == true then
  1798.                                 ds = function(Mouse)
  1799.    
  1800. end
  1801.  
  1802.                             end
  1803.                             if allowhopperbin == true then
  1804.                                 Bin.Selected:connect(s)
  1805.                                 Bin.Deselected:connect(ds)
  1806.                             end
  1807.                             updateskills = function()
  1808.    
  1809.     if allowabilitiestofunction == true then
  1810.         if cooldown1 <= co1 then
  1811.             cooldown1 = cooldown1 + 0.033333333333333
  1812.             if co1 <= cooldown1 then
  1813.                 cooldown1 = co1
  1814.             end
  1815.         end
  1816.         if cooldown2 <= co2 then
  1817.             cooldown2 = cooldown2 + 0.033333333333333
  1818.             if co2 <= cooldown2 then
  1819.                 cooldown2 = co2
  1820.             end
  1821.         end
  1822.         if cooldown3 <= co3 then
  1823.             cooldown3 = cooldown3 + 0.033333333333333
  1824.             if co3 <= cooldown3 then
  1825.                 cooldown3 = co3
  1826.             end
  1827.         end
  1828.         if cooldown4 <= co4 then
  1829.             cooldown4 = cooldown4 + 0.033333333333333
  1830.             if co4 <= cooldown4 then
  1831.                 cooldown4 = co4
  1832.             end
  1833.         end
  1834.         if changebarcolorsifnotenoughmana == true then
  1835.             if Mana.Value <= skill1mana then
  1836.                 bar4.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  1837.             else
  1838.                 bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1839.             end
  1840.             if Mana.Value <= skill2mana then
  1841.                 bar3.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  1842.             else
  1843.                 bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1844.             end
  1845.             if Mana.Value <= skill3mana then
  1846.                 bar1.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  1847.             else
  1848.                 bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1849.             end
  1850.             if Mana.Value <= skill4mana then
  1851.                 bar2.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  1852.             else
  1853.                 bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1854.             end
  1855.         else
  1856.             if changebarcolorsifnotenoughmana == false then
  1857.                 bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1858.                 bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1859.                 bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1860.                 bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  1861.             end
  1862.         end
  1863.     end
  1864.     if alternatemanaregensystem == false then
  1865.         if Mana.Value <= maxmana then
  1866.             Mana.Value = Mana.Value + recovermana / 30
  1867.         else
  1868.             if maxmana <= Mana.Value then
  1869.                 Mana.Value = maxmana
  1870.             end
  1871.         end
  1872.     else
  1873.         if alternatemanaregensystem == true then
  1874.             if maxmana <= Mana.Value then
  1875.                 Mana.Value = maxmana
  1876.             else
  1877.                 if manadelay <= manawait then
  1878.                     manadelay = manadelay + 1
  1879.                 else
  1880.                     manadelay = 0
  1881.                     Mana.Value = Mana.Value + 1
  1882.                 end
  1883.             end
  1884.         end
  1885.     end
  1886.     if allowstunbar == true then
  1887.         if StunValue.Value <= 0 then
  1888.             StunValue.Value = 0
  1889.         else
  1890.             if stundelay <= stunwait then
  1891.                 stundelay = stundelay + 1
  1892.             else
  1893.                 stundelay = 0
  1894.                 StunValue.Value = StunValue.Value - 1
  1895.             end
  1896.         end
  1897.     else
  1898.         if allowstunbar == false then
  1899.             StunValue.Value = 0
  1900.         end
  1901.     end
  1902. end
  1903.  
  1904.                             if allowmenutofunction == true then
  1905.                                 ArtificialHB.Event:connect(function()
  1906.    
  1907.     updateskills()
  1908.     if allowabilitiestofunction == true then
  1909.         framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1910.         framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1911.         framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1912.         framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1913.         bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1914.         bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1915.         bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1916.         bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1917.     end
  1918.     manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1919.     manacover:TweenSize(ud(1 * (Mana.Value / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1920.     healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1921.     healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1922.     if allowstunbar == true and showstunbar == true and stunframe ~= nil then
  1923.         stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1924.         stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1925.     end
  1926.     if showhealthmanaandstunnumbers == true then
  1927.         manatext.Text = "Mana [" .. math.floor(Mana.Value) .. "]"
  1928.         healthtext.Text = "Health [" .. math.floor(Humanoid.Health) .. "]"
  1929.         if allowstunbar == true and showstunbar == true then
  1930.             stuntext.Text = "Stun [" .. math.floor(StunValue.Value) .. "]"
  1931.         end
  1932.     end
  1933.     if showstats == true then
  1934.         defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1935.         damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1936.         movementframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  1937.         defensetext.Text = "Defense: " .. Defense.Value * 100 .. "%"
  1938.         damagetext.Text = "Damage: " .. Damage.Value * 100 .. "%"
  1939.         if Rooted.Value == false then
  1940.             movementtext.Text = "Movement: " .. Movement.Value * 100 .. "%"
  1941.         else
  1942.             if Rooted.Value == true or Movement.Value <= 0 then
  1943.                 movementtext.Text = "Movement: 0%"
  1944.             end
  1945.         end
  1946.     end
  1947. end
  1948. )
  1949.                             end
  1950.                             while 1 do
  1951.                                         hbwait()
  1952.                                         if Hitbox ~= nil then
  1953.                                             if attack == true then
  1954.                                                 Hitbox.Name = "Hitbox"
  1955.                                             else
  1956.                                                 if attack == false then
  1957.                                                     Hitbox.Name = "NilHitbox"
  1958.                                                 end
  1959.                                             end
  1960.                                         end
  1961.                                         if 0 < Humanoid.Health then
  1962.                                             if walkspeeddependsonmovementvalue == true then
  1963.                                                 if Movement.Value < 0 or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true or Rooted.Value == true then
  1964.                                                     Humanoid.WalkSpeed = 0
  1965.                                                 else
  1966.                                                     Humanoid.WalkSpeed = 16 * Movement.Value
  1967.                                                 end
  1968.                                             end
  1969.                                             if maxstun <= StunValue.Value then
  1970.                                                 StunValue.Value = 0
  1971.                                                 StunAnim.Value = true
  1972.                                             end
  1973.                                             if StaggerAnim.Value == true and staggeranim == false then
  1974.                                                 coroutine.resume(coroutine.create(function()
  1975.    
  1976.     staggeranim = true
  1977.     while attack == true do
  1978.         hbwait()
  1979.     end
  1980.     Stagger()
  1981.     StaggerAnim.Value = false
  1982.     staggeranim = false
  1983. end
  1984. ))
  1985.                                             end
  1986.                                             if StaggerHitAnim.Value == true and staggerhitanim == false then
  1987.                                                 coroutine.resume(coroutine.create(function()
  1988.    
  1989.     staggerhitanim = true
  1990.     while attack == true do
  1991.         hbwait()
  1992.     end
  1993.     StaggerHit()
  1994.     StaggerHitAnim.Value = false
  1995.     staggerhitanim = false
  1996. end
  1997. ))
  1998.                                             end
  1999.                                             if (StunAnim.Value == true and stunanim == false) or 100 <= StunValue.Value then
  2000.                                                 coroutine.resume(coroutine.create(function()
  2001.    
  2002.     StunValue.Value = 0
  2003.     stunanim = true
  2004.     while attack == true do
  2005.         hbwait()
  2006.     end
  2007.     Stun()
  2008.     StunAnim.Value = false
  2009.     stunanim = false
  2010. end
  2011. ))
  2012.                                             end
  2013.                                             sine = sine + change
  2014.                                             local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude
  2015.                                             local velderp = RootPart.Velocity.y
  2016.                                             local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position)
  2017.                                             hitfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position + vt(0, -1, 0)).lookVector, 4 * PlayerSize, Character)
  2018.                                             if 0.5 <= donum then
  2019.                                                 handidle = true
  2020.                                             else
  2021.                                                 if donum <= 0 then
  2022.                                                     handidle = false
  2023.                                                 end
  2024.                                             end
  2025.                                             if handidle == false then
  2026.                                                 donum = donum + 0.003 / animationspeed
  2027.                                             else
  2028.                                                 donum = donum - 0.003 / animationspeed
  2029.                                             end
  2030.                                             if equipped == true or equipped == false then
  2031.                                                 if attack == false then
  2032.                                                     idle = idle + 1
  2033.                                                 else
  2034.                                                     idle = 0
  2035.                                                 end
  2036.                                                 if leftarm == true then
  2037.                                                     if Anim == "Walk" and equipped == true and attack == false then
  2038.                                                         if alternatewalk == false then
  2039.                                                             if walkinganim == true then
  2040.                                                                 LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(30), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2041.                                                             else
  2042.                                                                 LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(-60), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2043.                                                             end
  2044.                                                         else
  2045.                                                             if walkinganim == true then
  2046.                                                                 LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2047.                                                             else
  2048.                                                                 LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(-45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2049.                                                             end
  2050.                                                         end
  2051.                                                     else
  2052.                                                         -- DECOMPILER ERROR at PC2457: Unhandled construct in 'MakeBoolean' P3
  2053.  
  2054.                                                         if (Anim ~= "Walk" and equipped == true) or leftarm == false then
  2055.                                                             LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed)
  2056.                                                         end
  2057.                                                     end
  2058.                                                 end
  2059.                                                 if rightarm == true then
  2060.                                                     if Anim == "Walk" and equipped == true and attack == false then
  2061.                                                         if alternatewalk == false then
  2062.                                                             if walkinganim == true then
  2063.                                                                 RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(-60), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2064.                                                             else
  2065.                                                                 RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(30), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2066.                                                             end
  2067.                                                         else
  2068.                                                             if walkinganim == true then
  2069.                                                                 RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(-45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2070.                                                             else
  2071.                                                                 RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2072.                                                             end
  2073.                                                         end
  2074.                                                     else
  2075.                                                         -- DECOMPILER ERROR at PC2648: Unhandled construct in 'MakeBoolean' P3
  2076.  
  2077.                                                         if (Anim ~= "Walk" and equipped == true) or rightarm == false then
  2078.                                                             RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed)
  2079.                                                         end
  2080.                                                     end
  2081.                                                 end
  2082.                                                 if allowwalking == true then
  2083.                                                     if Anim == "Walk" and equipped == true then
  2084.                                                         if alternatewalk == false then
  2085.                                                             if walkinganim == true then
  2086.                                                                 RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2087.                                                                 LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2088.                                                             else
  2089.                                                                 RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2090.                                                                 LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2091.                                                             end
  2092.                                                         else
  2093.                                                             if walkinganim == true then
  2094.                                                                 RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2095.                                                                 LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2096.                                                             else
  2097.                                                                 RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2098.                                                                 LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2099.                                                             end
  2100.                                                         end
  2101.                                                     else
  2102.                                                         if Anim ~= "Walk" and equipped == true then
  2103.                                                             RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed)
  2104.                                                             LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed)
  2105.                                                         end
  2106.                                                     end
  2107.                                                 end
  2108.                                                 Anim = "Idle"
  2109.                                                 if attack == false then
  2110.                                                     if equipped == true then
  2111.                                                         if animtype == 1 then
  2112.                                                             RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.25 - 0.125 * math.cos((sine) / 4) * PlayerSize) * angles(rad(0), rad(5 * math.cos((sine) / 8)), rad(0)), 1 / animationspeed)
  2113.                                                             Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(5 * math.sin((sine) / 8)), rad(0)), 1 / animationspeed)
  2114.                                                             RW.C0 = clerp(RW.C0, cf(1 * PlayerSize, 0.5 * PlayerSize, -0.5 * PlayerSize) * angles(rad(100), rad(0), rad(-80)) * angles(rad(-5 * math.sin((sine) / 4)), rad(90), rad(0)) * (RWC0), 1 / animationspeed)
  2115.                                                             LW.C0 = clerp(LW.C0, cf(-1 * PlayerSize, 0.5 * PlayerSize, -0.5 * PlayerSize) * angles(rad(80), rad(0), rad(70)) * angles(rad(-5 * math.sin((sine) / 4)), rad(-90), rad(0)) * (LWC0), 1 / animationspeed)
  2116.                                                             RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 - 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(87.5), rad(0)) * angles(rad(-5 + 10 * math.cos((sine) / 8)), rad(0), rad(30 - 50 * math.cos((sine) / 8))), 1 / animationspeed)
  2117.                                                             LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 + 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(-87.5), rad(0)) * angles(rad(-5 - 10 * math.cos((sine) / 8)), rad(0), rad(-30 - 50 * math.cos((sine) / 8))), 1 / animationspeed)
  2118.                                                         end
  2119.                                     if animtype == 2 then
  2120.                                         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.25 - 0.125 * math.cos((sine) / 4) * PlayerSize) * angles(rad(2.5 + 2.5 * math.cos((sine) / 4)), rad(0), rad(0)), 1 / animationspeed)
  2121.                                         Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(2.5 * math.sin((sine) / 4)), rad(0), rad(0)), 1 / animationspeed)
  2122.                                         RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(5), rad(10)) * angles(rad(60 * math.cos((sine) / 8)), rad(5), rad(0)) * (RWC0), 1 / animationspeed)
  2123.                                         LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-5), rad(-10)) * angles(rad(-60 * math.cos((sine) / 8)), rad(-5), rad(0)) * (LWC0), 1 / animationspeed)
  2124.                                         RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 - 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(87.5), rad(0)) * angles(rad(-5 + 5 * math.cos((sine) / 8)), rad(0), rad(30 - 50 * math.cos((sine) / 8))), 1 / animationspeed)
  2125.                                         LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 + 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(-87.5), rad(0)) * angles(rad(-5 - 5 * math.cos((sine) / 8)), rad(0), rad(-30 - 50 * math.cos((sine) / 8))), 1 / animationspeed)
  2126.                                     end
  2127.                                 end
  2128.                                 if animtype == 3 then
  2129.                                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.25 - 0.125 * math.cos((sine) / 4) * PlayerSize) * angles(rad(0), rad(5 * math.cos((sine) / 8)), rad(0)), 1 / animationspeed)
  2130.                                     Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(5 * math.sin((sine) / 8)), rad(0)), 1 / animationspeed)
  2131.                                     RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(10), rad(0), rad(-20)) * angles(rad(0), rad(10), rad(0)) * (RWC0), 1 / animationspeed)
  2132.                                     LW.C0 = clerp(LW.C0, cf(-1.25 + 0.25 * math.sin((sine) / 8) * PlayerSize, 0.5 * PlayerSize, -0.25 - 0.25 * math.sin((sine) / 8) * PlayerSize) * angles(rad(80 - 30 * math.cos((sine) / 4)), rad(0), rad(60 * math.sin((sine) / 8))) * (LWC0), 1 / animationspeed)
  2133.                                     RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 - 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(87.5), rad(0)) * angles(rad(-5 + 10 * math.cos((sine) / 8)), rad(0), rad(30 - 50 * math.cos((sine) / 8))), 1 / animationspeed)
  2134.                                     LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 + 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(-87.5), rad(0)) * angles(rad(-5 - 10 * math.cos((sine) / 8)), rad(0), rad(-30 - 50 * math.cos((sine) / 8))), 1 / animationspeed)
  2135.                                 end
  2136.                             end
  2137.                         end
  2138.                     end
  2139.                 end
  2140.             end
  2141.         end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement