Advertisement
saba1517

Untitled

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