Advertisement
azaz09-_____

Dancing Scout RED (Without music)

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