Advertisement
istealscripts

Rasputin Dance Script (Press E)

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