Advertisement
TaiShiRoCe876

Touka Anime

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