Advertisement
ConTheKoala

Pyro kicks

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