Dark_EccentricYT

Untitled

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