Advertisement
Mediakiller7Cool

Ondos Tres Quatro

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