Advertisement
XskillyX

cheeki breeki

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