1nubloku

doge3

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