Advertisement
Daniel_TV

[ROBLOX] Spy TF2 Dance

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