Advertisement
Daniel_TV

[ROBLOX] Big Smoke Dance

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