Dark_EccentricYT

Untitled

Sep 17th, 2020
20,012
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 110.89 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 = "AthPO_"..CountSCIFIMOVIELOL
  19. local AttachmentB=Instance.new('Attachment',Part0); AttachmentB.Name = "AthPO_"..CountSCIFIMOVIELOL
  20. AttachmentA.Orientation = Angle or Vector3.new(0,0,0)
  21. AttachmentA.Position = (Position or Vector3.new(0,0,0)) + Part0.CenterOfMass
  22. AlignPos.Attachment1 = AttachmentA;
  23. AlignPos.Attachment0 = AttachmentB;
  24. AlignOri.Attachment1 = AttachmentA;
  25. AlignOri.Attachment0 = AttachmentB;
  26. CountSCIFIMOVIELOL = CountSCIFIMOVIELOL + 1
  27. return {AlignPos,AttachmentA,AttachmentB,AlignOri,AttachmentC,AttachmentD}
  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.ThrottleAdjustTime = math.huge*math.huge
  35. settings().Physics.AllowSleep = false
  36. game:GetService("RunService").RenderStepped:Connect(function()
  37. game:FindFirstChildOfClass("Players").LocalPlayer.MaximumSimulationRadius=math.pow(math.huge,math.huge)
  38. sethiddenproperty(game:FindFirstChildOfClass("Players").LocalPlayer,"SimulationRadius",math.huge*math.huge)
  39. end)
  40. end)()
  41. end
  42.  
  43. warn([==[
  44.  
  45. Bypass made by Mizt
  46. Thanks for choosing my bypass
  47.  
  48. ]==])
  49. game:FindFirstChildOfClass("Players").LocalPlayer["Character"].Archivable = true
  50. local hatnameclone = {}
  51. for _,v in next, game:FindFirstChildOfClass("Players").LocalPlayer["Character"]:GetChildren() do
  52. if v:IsA("Accessory") then
  53. if hatnameclone[v.Name] then
  54. if hatnameclone[v.Name] == "s" then
  55. hatnameclone[v.Name] = {}
  56. end
  57. table.insert(hatnameclone[v.Name],v)
  58. else
  59. hatnameclone[v.Name] = "s"
  60. end
  61. end
  62. end
  63. for _,v in pairs(hatnameclone) do
  64. if type(v) == "table" then
  65. local num = 1
  66. for _,w in pairs(v) do
  67. w.Name = w.Name..num
  68. num = num + 1
  69. end
  70. end
  71. end
  72. hatnameclone = nil
  73.  
  74. local DeadChar = game:FindFirstChildOfClass("Players").LocalPlayer.Character
  75.  
  76. local fldr = Instance.new("Folder",workspace)
  77. fldr.Name = "Bypass by Mizt"
  78. local CloneChar = game:GetObjects("rbxassetid://5227463276")[1]
  79. CloneChar.Parent = fldr
  80. CloneChar.HumanoidRootPart.CFrame = game:FindFirstChildOfClass("Players").LocalPlayer["Character"].HumanoidRootPart.CFrame
  81. CloneChar.Humanoid.BreakJointsOnDeath = false
  82. CloneChar.Name = "non"
  83. CloneChar.Humanoid.DisplayDistanceType = "None"
  84.  
  85. for _,v in next, DeadChar:GetChildren() do
  86. if v:IsA("Accessory") then
  87. local topacc = false
  88. if v.Handle:FindFirstChildOfClass("Weld") then v.Handle:FindFirstChildOfClass("Weld"):Destroy() end
  89. local clonnedhat = v:Clone()
  90. clonnedhat.Parent = CloneChar
  91. local hatath = clonnedhat.Handle:FindFirstChildOfClass("Attachment")
  92. local partath
  93. for _,v in pairs(CloneChar:GetChildren()) do
  94. if v:IsA("BasePart") then
  95. for _,w in pairs(v:GetChildren()) do
  96. if w.Name == hatath.Name then
  97. partath = w
  98. break
  99. end
  100. end
  101. if partath then break end
  102. end
  103. end
  104. local accweld = Instance.new("Weld",clonnedhat.Handle)
  105. accweld.Name = "AccessoryWeld"
  106. accweld.Part0 = clonnedhat.Handle
  107. accweld.Part1 = partath.Parent
  108. accweld.C0 = hatath.CFrame
  109. accweld.C1 = partath.CFrame
  110. if v.Handle:FindFirstChildOfClass("Attachment") then
  111. local ath__ = v.Handle:FindFirstChildOfClass("Attachment")
  112. if ath__.Name == "HatAttachment" or ath__.Name == "HairAttachment" or ath__.Name == "FaceFrontAttachment" or ath__.Name == "FaceCenterAttachment" then
  113. topacc = ath__.Name
  114. end
  115. end
  116. local bv = Instance.new("BodyVelocity",v.Handle)
  117. bv.Velocity = Vector3.new(0,0,0)
  118. coroutine.wrap(function()
  119. if topacc then
  120. local allthings = SCIFIMOVIELOL(v.Handle,DeadChar.UpperTorso,Vector3.new(0,1.35,0)+ (DeadChar.Head[topacc].Position + (v.Handle[topacc].Position*-1)),Vector3.new(0,0,0))
  121. local normaltop = allthings[1].Attachment1
  122. local alipos = allthings[1]
  123. local alirot = allthings[4]
  124. local p0 = v.Handle
  125. local p1 = DeadChar.Head
  126. while true do
  127. game:GetService("RunService").RenderStepped:wait()
  128. if HumanDied then break end
  129. coroutine.wrap(function()
  130. if alipos.Attachment1 == normaltop then
  131. p0.CFrame = (((DeadChar.UpperTorso.CFrame * CFrame.new(0,1.35,0)) * p1[topacc].CFrame) * p0[topacc].CFrame:inverse())
  132. else
  133. v.Handle.CFrame = alipos.Attachment1.Parent.CFrame * CFrame.new(alipos.Attachment1.Position) * CFrame.Angles(math.rad(alirot.Attachment1.Rotation.X),math.rad(alirot.Attachment1.Rotation.Y),math.rad(alirot.Attachment1.Rotation.Z))
  134. end
  135. end)()
  136. end
  137. else
  138. SCIFIMOVIELOL(v.Handle,CloneChar[v.Name].Handle,Vector3.new(0,0,0),Vector3.new(0,0,0))
  139. --[[while true do
  140. game:GetService("RunService").RenderStepped:wait()
  141. if HumanDied then break end
  142. local alipos = CloneChar[v.Name].Handle:FindFirstChildOfClass("AlignPosition")
  143. local alirot = CloneChar[v.Name].Handle:FindFirstChildOfClass("AlignOrientation")
  144. v.Handle.CFrame = alipos.Attachment1.Parent.CFrame * CFrame.new(alipos.Attachment1.Position) * CFrame.Angles(math.rad(alirot.Attachment1.Rotation.X),math.rad(alirot.Attachment1.Rotation.Y),math.rad(alirot.Attachment1.Rotation.Z))
  145. end]]
  146. end
  147. end)()
  148. end
  149. end
  150.  
  151. game:FindFirstChildOfClass("Players").LocalPlayer.Character = CloneChar
  152. game:FindFirstChildOfClass("Players").LocalPlayer.Character = DeadChar
  153. DeadChar.Parent = game
  154. local a = DeadChar.UpperTorso
  155. local b = DeadChar.HumanoidRootPart
  156. local c = DeadChar.Humanoid
  157. DeadChar.LowerTorso.Root.Parent = b
  158. DeadChar.Head.Neck.Parent = a
  159. a.Parent = game:FindFirstChildOfClass("Workspace")
  160. c.Parent = game:FindFirstChildOfClass("Workspace")
  161. local told = a:Clone()
  162. local told1 = c:Clone()
  163. b["Root"].Part1 = told
  164. b["Root"].Part0 = DeadChar.Head
  165. a.Name = "torso"
  166. a.Neck:Destroy()
  167. c.Name = "hum"
  168. told.Parent = DeadChar
  169. told1.Parent = DeadChar
  170. DeadChar.PrimaryPart = told
  171. told1.Health = 0
  172. a.Parent = DeadChar
  173. c.Parent = DeadChar
  174. b["Root"]:Destroy()
  175. DeadChar.HumanoidRootPart.Parent = workspace
  176.  
  177. told:Destroy()
  178. told1:Destroy()
  179. a.Name = "UpperTorso"
  180. DeadChar.Parent = workspace
  181.  
  182. if CloneChar.Head:FindFirstChildOfClass("Decal") then CloneChar.Head:FindFirstChildOfClass("Decal").Transparency = 1 end
  183. if DeadChar:FindFirstChild("Animate") then DeadChar:FindFirstChild("Animate"):Destroy() end
  184.  
  185.  
  186. local con
  187. function UnCollide()
  188. if HumanDied then con:Disconnect(); return end
  189. --[[for _,Parts in next, CloneChar:GetDescendants() do
  190. if Parts:IsA("BasePart") then
  191. Parts.CanCollide = false
  192. end
  193. end]]
  194. for _,Parts in next, DeadChar:GetDescendants() do
  195. if Parts:IsA("BasePart") then
  196. Parts.CanCollide = false
  197. end
  198. end
  199. end
  200. con = game:GetService("RunService").Stepped:Connect(UnCollide)
  201.  
  202. local resetBindable = Instance.new("BindableEvent")
  203. resetBindable.Event:connect(function()
  204. game:GetService("StarterGui"):SetCore("ResetButtonCallback", true)
  205. resetBindable:Destroy()
  206. pcall(function()
  207. game:FindFirstChildOfClass("Players").LocalPlayer.Character = DeadChar
  208. DeadChar.Head:Destroy()
  209. DeadChar:FindFirstChildOfClass("Humanoid"):Destroy()
  210. game:FindFirstChildOfClass("Players").LocalPlayer.Character = CloneChar
  211. if DeadChar:FindFirstChildOfClass("Folder") then DeadChar:FindFirstChildOfClass("Folder"):Destroy() end
  212. end)
  213. end)
  214. game:GetService("StarterGui"):SetCore("ResetButtonCallback", resetBindable)
  215.  
  216. coroutine.wrap(function()
  217. while true do
  218. game:GetService("RunService").RenderStepped:wait()
  219. 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
  220. HumanDied = true
  221. print("DEAD")
  222. pcall(function()
  223. game:FindFirstChildOfClass("Players").LocalPlayer.Character = DeadChar
  224. DeadChar.Head:Destroy()
  225. DeadChar:FindFirstChildOfClass("Humanoid"):Destroy()
  226. game:FindFirstChildOfClass("Players").LocalPlayer.Character = CloneChar
  227. if DeadChar:FindFirstChildOfClass("Folder") then DeadChar:FindFirstChildOfClass("Folder"):Destroy() end
  228. end)
  229. if resetBindable then
  230. game:GetService("StarterGui"):SetCore("ResetButtonCallback", true)
  231. resetBindable:Destroy()
  232. end
  233. break
  234. end
  235. end
  236. end)()
  237.  
  238. SCIFIMOVIELOL(DeadChar["Head"],CloneChar["Head"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  239. SCIFIMOVIELOL(DeadChar["UpperTorso"],CloneChar["Torso"],Vector3.new(0,0.15,0),Vector3.new(0,0,0))
  240. SCIFIMOVIELOL(DeadChar["LowerTorso"],CloneChar["Torso"],Vector3.new(0,-0.78,0),Vector3.new(0,0,0))
  241.  
  242. SCIFIMOVIELOL(DeadChar["LeftUpperArm"],CloneChar["Left Arm"],Vector3.new(0,0.375,0),Vector3.new(0,0,0))
  243. SCIFIMOVIELOL(DeadChar["LeftLowerArm"],CloneChar["Left Arm"],Vector3.new(0,-0.215,0),Vector3.new(0,0,0))
  244. SCIFIMOVIELOL(DeadChar["LeftHand"],CloneChar["Left Arm"],Vector3.new(0,-0.825,0),Vector3.new(0,0,0))
  245. SCIFIMOVIELOL(DeadChar["RightUpperArm"],CloneChar["Right Arm"],Vector3.new(0,0.375,0),Vector3.new(0,0,0))
  246. SCIFIMOVIELOL(DeadChar["RightLowerArm"],CloneChar["Right Arm"],Vector3.new(0,-0.215,0),Vector3.new(0,0,0))
  247. SCIFIMOVIELOL(DeadChar["RightHand"],CloneChar["Right Arm"],Vector3.new(0,-0.825,0),Vector3.new(0,0,0))
  248.  
  249. SCIFIMOVIELOL(DeadChar["LeftUpperLeg"],CloneChar["Left Leg"],Vector3.new(0,0.575,0),Vector3.new(0,0,0))
  250. SCIFIMOVIELOL(DeadChar["LeftLowerLeg"],CloneChar["Left Leg"],Vector3.new(0,-0.2,0),Vector3.new(0,0,0))
  251. SCIFIMOVIELOL(DeadChar["LeftFoot"],CloneChar["Left Leg"],Vector3.new(0,-0.85,0),Vector3.new(0,0,0))
  252. SCIFIMOVIELOL(DeadChar["RightUpperLeg"],CloneChar["Right Leg"],Vector3.new(0,0.575,0),Vector3.new(0,0,0))
  253. SCIFIMOVIELOL(DeadChar["RightLowerLeg"],CloneChar["Right Leg"],Vector3.new(0,-0.2,0),Vector3.new(0,0,0))
  254. SCIFIMOVIELOL(DeadChar["RightFoot"],CloneChar["Right Leg"],Vector3.new(0,-0.85,0),Vector3.new(0,0,0))
  255.  
  256. for _,v in pairs(DeadChar:GetChildren()) do
  257. if v:IsA("BasePart") and v.Name ~= "Head" then
  258. --[[local bv = Instance.new("BodyVelocity",v)
  259. bv.Velocity = Vector3.new(0,0,0)
  260. coroutine.wrap(function()
  261. while true do
  262. game:GetService("RunService").RenderStepped:wait()
  263. if HumanDied then break end
  264. v.CFrame = CloneChar[v.Name].CFrame
  265. end
  266. end)()]]
  267. elseif v:IsA("BasePart") and v.Name == "Head" then
  268. local bv = Instance.new("BodyVelocity",v)
  269. bv.Velocity = Vector3.new(0,0,0)
  270. coroutine.wrap(function()
  271. while true do
  272. game:GetService("RunService").RenderStepped:wait()
  273. if HumanDied then break end
  274. v.CFrame = DeadChar.UpperTorso.CFrame * CFrame.new(0,1.35,0)
  275. end
  276. end)()
  277. end
  278. end
  279.  
  280. for _,BodyParts in next, CloneChar:GetDescendants() do
  281. if BodyParts:IsA("BasePart") or BodyParts:IsA("Part") then
  282. BodyParts.Transparency = 1 end end
  283. game:GetService("RunService").RenderStepped:wait()
  284. game:FindFirstChildOfClass("Players").LocalPlayer.Character = CloneChar
  285. game:FindFirstChildOfClass("Workspace"):FindFirstChildOfClass("Camera").CameraSubject = CloneChar.Humanoid
  286.  
  287. for _,v in pairs(DeadChar:GetDescendants()) do
  288. if v.ClassName == "Motor6D" then
  289. v:Destroy()
  290. end
  291. end
  292. fldr.Parent = DeadChar
  293.  
  294. function RUNANIMATESCRIPT(FOLDER)
  295.  
  296. local Figure = FOLDER.Parent
  297. local Torso = Figure:WaitForChild("Torso")
  298. local RightShoulder = Torso:WaitForChild("Right Shoulder")
  299. local LeftShoulder = Torso:WaitForChild("Left Shoulder")
  300. local RightHip = Torso:WaitForChild("Right Hip")
  301. local LeftHip = Torso:WaitForChild("Left Hip")
  302. local Neck = Torso:WaitForChild("Neck")
  303. local Humanoid = Figure:WaitForChild("Humanoid")
  304. local pose = "Standing"
  305.  
  306. local currentAnim = ""
  307. local currentAnimInstance = nil
  308. local currentAnimTrack = nil
  309. local currentAnimKeyframeHandler = nil
  310. local currentAnimSpeed = 1.0
  311. local animTable = {}
  312. local animNames = {
  313. idle = {
  314. { id = "http://www.roblox.com/asset/?id=180435571", weight = 9 },
  315. { id = "http://www.roblox.com/asset/?id=180435792", weight = 1 }
  316. },
  317. walk = {
  318. { id = "http://www.roblox.com/asset/?id=180426354", weight = 10 }
  319. },
  320. run = {
  321. { id = "run.xml", weight = 10 }
  322. },
  323. jump = {
  324. { id = "http://www.roblox.com/asset/?id=125750702", weight = 10 }
  325. },
  326. fall = {
  327. { id = "http://www.roblox.com/asset/?id=180436148", weight = 10 }
  328. },
  329. climb = {
  330. { id = "http://www.roblox.com/asset/?id=180436334", weight = 10 }
  331. },
  332. sit = {
  333. { id = "http://www.roblox.com/asset/?id=178130996", weight = 10 }
  334. },
  335. toolnone = {
  336. { id = "http://www.roblox.com/asset/?id=182393478", weight = 10 }
  337. },
  338. toolslash = {
  339. { id = "http://www.roblox.com/asset/?id=129967390", weight = 10 }
  340. -- { id = "slash.xml", weight = 10 }
  341. },
  342. toollunge = {
  343. { id = "http://www.roblox.com/asset/?id=129967478", weight = 10 }
  344. },
  345. wave = {
  346. { id = "http://www.roblox.com/asset/?id=128777973", weight = 10 }
  347. },
  348. point = {
  349. { id = "http://www.roblox.com/asset/?id=128853357", weight = 10 }
  350. },
  351. dance1 = {
  352. { id = "http://www.roblox.com/asset/?id=182435998", weight = 10 },
  353. { id = "http://www.roblox.com/asset/?id=182491037", weight = 10 },
  354. { id = "http://www.roblox.com/asset/?id=182491065", weight = 10 }
  355. },
  356. dance2 = {
  357. { id = "http://www.roblox.com/asset/?id=182436842", weight = 10 },
  358. { id = "http://www.roblox.com/asset/?id=182491248", weight = 10 },
  359. { id = "http://www.roblox.com/asset/?id=182491277", weight = 10 }
  360. },
  361. dance3 = {
  362. { id = "http://www.roblox.com/asset/?id=182436935", weight = 10 },
  363. { id = "http://www.roblox.com/asset/?id=182491368", weight = 10 },
  364. { id = "http://www.roblox.com/asset/?id=182491423", weight = 10 }
  365. },
  366. laugh = {
  367. { id = "http://www.roblox.com/asset/?id=129423131", weight = 10 }
  368. },
  369. cheer = {
  370. { id = "http://www.roblox.com/asset/?id=129423030", weight = 10 }
  371. },
  372. }
  373. local dances = {"dance1", "dance2", "dance3"}
  374.  
  375. -- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
  376. local emoteNames = { wave = false, point = false, dance1 = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
  377.  
  378. function configureAnimationSet(name, fileList)
  379. if (animTable[name] ~= nil) then
  380. for _, connection in pairs(animTable[name].connections) do
  381. connection:disconnect()
  382. end
  383. end
  384. animTable[name] = {}
  385. animTable[name].count = 0
  386. animTable[name].totalWeight = 0
  387. animTable[name].connections = {}
  388.  
  389. -- check for config values
  390. local config = FOLDER:FindFirstChild(name)
  391. if (config ~= nil) then
  392. -- print("Loading anims " .. name)
  393. table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
  394. table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
  395. local idx = 1
  396. for _, childPart in pairs(config:GetChildren()) do
  397. if (childPart:IsA("Animation")) then
  398. table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
  399. animTable[name][idx] = {}
  400. animTable[name][idx].anim = childPart
  401. local weightObject = childPart:FindFirstChild("Weight")
  402. if (weightObject == nil) then
  403. animTable[name][idx].weight = 1
  404. else
  405. animTable[name][idx].weight = weightObject.Value
  406. end
  407. animTable[name].count = animTable[name].count + 1
  408. animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
  409. -- print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
  410. idx = idx + 1
  411. end
  412. end
  413. end
  414.  
  415. -- fallback to defaults
  416. if (animTable[name].count <= 0) then
  417. for idx, anim in pairs(fileList) do
  418. animTable[name][idx] = {}
  419. animTable[name][idx].anim = Instance.new("Animation")
  420. animTable[name][idx].anim.Name = name
  421. animTable[name][idx].anim.AnimationId = anim.id
  422. animTable[name][idx].weight = anim.weight
  423. animTable[name].count = animTable[name].count + 1
  424. animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
  425. -- print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
  426. end
  427. end
  428. end
  429.  
  430. -- Setup animation objects
  431. function scriptChildModified(child)
  432. local fileList = animNames[child.Name]
  433. if (fileList ~= nil) then
  434. configureAnimationSet(child.Name, fileList)
  435. end
  436. end
  437.  
  438. FOLDER.ChildAdded:connect(scriptChildModified)
  439. FOLDER.ChildRemoved:connect(scriptChildModified)
  440.  
  441.  
  442. for name, fileList in pairs(animNames) do
  443. configureAnimationSet(name, fileList)
  444. end
  445.  
  446. -- ANIMATION
  447.  
  448. -- declarations
  449. local toolAnim = "None"
  450. local toolAnimTime = 0
  451.  
  452. local jumpAnimTime = 0
  453. local jumpAnimDuration = 0.3
  454.  
  455. local toolTransitionTime = 0.1
  456. local fallTransitionTime = 0.3
  457. local jumpMaxLimbVelocity = 0.75
  458.  
  459. -- functions
  460.  
  461. function stopAllAnimations()
  462. local oldAnim = currentAnim
  463.  
  464. -- return to idle if finishing an emote
  465. if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
  466. oldAnim = "idle"
  467. end
  468.  
  469. currentAnim = ""
  470. currentAnimInstance = nil
  471. if (currentAnimKeyframeHandler ~= nil) then
  472. currentAnimKeyframeHandler:disconnect()
  473. end
  474.  
  475. if (currentAnimTrack ~= nil) then
  476. currentAnimTrack:Stop()
  477. currentAnimTrack:Destroy()
  478. currentAnimTrack = nil
  479. end
  480. return oldAnim
  481. end
  482.  
  483. function setAnimationSpeed(speed)
  484. if speed ~= currentAnimSpeed then
  485. currentAnimSpeed = speed
  486. currentAnimTrack:AdjustSpeed(currentAnimSpeed)
  487. end
  488. end
  489.  
  490. function keyFrameReachedFunc(frameName)
  491. if (frameName == "End") then
  492.  
  493. local repeatAnim = currentAnim
  494. -- return to idle if finishing an emote
  495. if (emoteNames[repeatAnim] ~= nil and emoteNames[repeatAnim] == false) then
  496. repeatAnim = "idle"
  497. end
  498.  
  499. local animSpeed = currentAnimSpeed
  500. playAnimation(repeatAnim, 0.0, Humanoid)
  501. setAnimationSpeed(animSpeed)
  502. end
  503. end
  504.  
  505. -- Preload animations
  506. function playAnimation(animName, transitionTime, humanoid)
  507.  
  508. local roll = math.random(1, animTable[animName].totalWeight)
  509. local origRoll = roll
  510. local idx = 1
  511. while (roll > animTable[animName][idx].weight) do
  512. roll = roll - animTable[animName][idx].weight
  513. idx = idx + 1
  514. end
  515. -- print(animName .. " " .. idx .. " [" .. origRoll .. "]")
  516. local anim = animTable[animName][idx].anim
  517.  
  518. -- switch animation
  519. if (anim ~= currentAnimInstance) then
  520.  
  521. if (currentAnimTrack ~= nil) then
  522. currentAnimTrack:Stop(transitionTime)
  523. currentAnimTrack:Destroy()
  524. end
  525.  
  526. currentAnimSpeed = 1.0
  527.  
  528. -- load it to the humanoid; get AnimationTrack
  529. currentAnimTrack = humanoid:LoadAnimation(anim)
  530. currentAnimTrack.Priority = Enum.AnimationPriority.Core
  531.  
  532. -- play the animation
  533. currentAnimTrack:Play(transitionTime)
  534. currentAnim = animName
  535. currentAnimInstance = anim
  536.  
  537. -- set up keyframe name triggers
  538. if (currentAnimKeyframeHandler ~= nil) then
  539. currentAnimKeyframeHandler:disconnect()
  540. end
  541. currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
  542.  
  543. end
  544.  
  545. end
  546.  
  547. -------------------------------------------------------------------------------------------
  548. -------------------------------------------------------------------------------------------
  549.  
  550. local toolAnimName = ""
  551. local toolAnimTrack = nil
  552. local toolAnimInstance = nil
  553. local currentToolAnimKeyframeHandler = nil
  554.  
  555. function toolKeyFrameReachedFunc(frameName)
  556. if (frameName == "End") then
  557. -- print("Keyframe : ".. frameName)
  558. playToolAnimation(toolAnimName, 0.0, Humanoid)
  559. end
  560. end
  561.  
  562.  
  563. function playToolAnimation(animName, transitionTime, humanoid, priority)
  564.  
  565. local roll = math.random(1, animTable[animName].totalWeight)
  566. local origRoll = roll
  567. local idx = 1
  568. while (roll > animTable[animName][idx].weight) do
  569. roll = roll - animTable[animName][idx].weight
  570. idx = idx + 1
  571. end
  572. -- print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
  573. local anim = animTable[animName][idx].anim
  574.  
  575. if (toolAnimInstance ~= anim) then
  576.  
  577. if (toolAnimTrack ~= nil) then
  578. toolAnimTrack:Stop()
  579. toolAnimTrack:Destroy()
  580. transitionTime = 0
  581. end
  582.  
  583. -- load it to the humanoid; get AnimationTrack
  584. toolAnimTrack = humanoid:LoadAnimation(anim)
  585. if priority then
  586. toolAnimTrack.Priority = priority
  587. end
  588.  
  589. -- play the animation
  590. toolAnimTrack:Play(transitionTime)
  591. toolAnimName = animName
  592. toolAnimInstance = anim
  593.  
  594. currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
  595. end
  596. end
  597.  
  598. function stopToolAnimations()
  599. local oldAnim = toolAnimName
  600.  
  601. if (currentToolAnimKeyframeHandler ~= nil) then
  602. currentToolAnimKeyframeHandler:disconnect()
  603. end
  604.  
  605. toolAnimName = ""
  606. toolAnimInstance = nil
  607. if (toolAnimTrack ~= nil) then
  608. toolAnimTrack:Stop()
  609. toolAnimTrack:Destroy()
  610. toolAnimTrack = nil
  611. end
  612.  
  613.  
  614. return oldAnim
  615. end
  616.  
  617. -------------------------------------------------------------------------------------------
  618. -------------------------------------------------------------------------------------------
  619.  
  620.  
  621. function onRunning(speed)
  622. if speed > 0.01 then
  623. playAnimation("walk", 0.1, Humanoid)
  624. if currentAnimInstance and currentAnimInstance.AnimationId == "http://www.roblox.com/asset/?id=180426354" then
  625. setAnimationSpeed(speed / 14.5)
  626. end
  627. pose = "Running"
  628. else
  629. if emoteNames[currentAnim] == nil then
  630. playAnimation("idle", 0.1, Humanoid)
  631. pose = "Standing"
  632. end
  633. end
  634. end
  635.  
  636. function onDied()
  637. pose = "Dead"
  638. end
  639.  
  640. function onJumping()
  641. playAnimation("jump", 0.1, Humanoid)
  642. jumpAnimTime = jumpAnimDuration
  643. pose = "Jumping"
  644. end
  645.  
  646. function onClimbing(speed)
  647. playAnimation("climb", 0.1, Humanoid)
  648. setAnimationSpeed(speed / 12.0)
  649. pose = "Climbing"
  650. end
  651.  
  652. function onGettingUp()
  653. pose = "GettingUp"
  654. end
  655.  
  656. function onFreeFall()
  657. if (jumpAnimTime <= 0) then
  658. playAnimation("fall", fallTransitionTime, Humanoid)
  659. end
  660. pose = "FreeFall"
  661. end
  662.  
  663. function onFallingDown()
  664. pose = "FallingDown"
  665. end
  666.  
  667. function onSeated()
  668. pose = "Seated"
  669. end
  670.  
  671. function onPlatformStanding()
  672. pose = "PlatformStanding"
  673. end
  674.  
  675. function onSwimming(speed)
  676. if speed > 0 then
  677. pose = "Running"
  678. else
  679. pose = "Standing"
  680. end
  681. end
  682.  
  683. function getTool()
  684. for _, kid in ipairs(Figure:GetChildren()) do
  685. if kid.className == "Tool" then return kid end
  686. end
  687. return nil
  688. end
  689.  
  690. function getToolAnim(tool)
  691. for _, c in ipairs(tool:GetChildren()) do
  692. if c.Name == "toolanim" and c.className == "StringValue" then
  693. return c
  694. end
  695. end
  696. return nil
  697. end
  698.  
  699. function animateTool()
  700.  
  701. if (toolAnim == "None") then
  702. playToolAnimation("toolnone", toolTransitionTime, Humanoid, Enum.AnimationPriority.Idle)
  703. return
  704. end
  705.  
  706. if (toolAnim == "Slash") then
  707. playToolAnimation("toolslash", 0, Humanoid, Enum.AnimationPriority.Action)
  708. return
  709. end
  710.  
  711. if (toolAnim == "Lunge") then
  712. playToolAnimation("toollunge", 0, Humanoid, Enum.AnimationPriority.Action)
  713. return
  714. end
  715. end
  716.  
  717. function moveSit()
  718. RightShoulder.MaxVelocity = 0.15
  719. LeftShoulder.MaxVelocity = 0.15
  720. RightShoulder:SetDesiredAngle(3.14 /2)
  721. LeftShoulder:SetDesiredAngle(-3.14 /2)
  722. RightHip:SetDesiredAngle(3.14 /2)
  723. LeftHip:SetDesiredAngle(-3.14 /2)
  724. end
  725.  
  726. local lastTick = 0
  727.  
  728. function move(time)
  729. local amplitude = 1
  730. local frequency = 1
  731. local deltaTime = time - lastTick
  732. lastTick = time
  733.  
  734. local climbFudge = 0
  735. local setAngles = false
  736.  
  737. if (jumpAnimTime > 0) then
  738. jumpAnimTime = jumpAnimTime - deltaTime
  739. end
  740.  
  741. if (pose == "FreeFall" and jumpAnimTime <= 0) then
  742. playAnimation("fall", fallTransitionTime, Humanoid)
  743. elseif (pose == "Seated") then
  744. playAnimation("sit", 0.5, Humanoid)
  745. return
  746. elseif (pose == "Running") then
  747. playAnimation("walk", 0.1, Humanoid)
  748. elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
  749. -- print("Wha " .. pose)
  750. stopAllAnimations()
  751. amplitude = 0.1
  752. frequency = 1
  753. setAngles = true
  754. end
  755.  
  756. if (setAngles) then
  757. local desiredAngle = amplitude * math.sin(time * frequency)
  758.  
  759. RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
  760. LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
  761. RightHip:SetDesiredAngle(-desiredAngle)
  762. LeftHip:SetDesiredAngle(-desiredAngle)
  763. end
  764.  
  765. -- Tool Animation handling
  766. local tool = getTool()
  767. if tool and tool:FindFirstChild("Handle") then
  768.  
  769. local animStringValueObject = getToolAnim(tool)
  770.  
  771. if animStringValueObject then
  772. toolAnim = animStringValueObject.Value
  773. -- message recieved, delete StringValue
  774. animStringValueObject.Parent = nil
  775. toolAnimTime = time + .3
  776. end
  777.  
  778. if time > toolAnimTime then
  779. toolAnimTime = 0
  780. toolAnim = "None"
  781. end
  782.  
  783. animateTool()
  784. else
  785. stopToolAnimations()
  786. toolAnim = "None"
  787. toolAnimInstance = nil
  788. toolAnimTime = 0
  789. end
  790. end
  791.  
  792.  
  793. local events = {}
  794. local eventHum = Humanoid
  795.  
  796. local function onUnhook()
  797. for i = 1, #events do
  798. events[i]:Disconnect()
  799. end
  800. events = {}
  801. end
  802.  
  803. local function onHook()
  804. onUnhook()
  805.  
  806. pose = eventHum.Sit and "Seated" or "Standing"
  807.  
  808. events = {
  809. eventHum.Died:connect(onDied),
  810. eventHum.Running:connect(onRunning),
  811. eventHum.Jumping:connect(onJumping),
  812. eventHum.Climbing:connect(onClimbing),
  813. eventHum.GettingUp:connect(onGettingUp),
  814. eventHum.FreeFalling:connect(onFreeFall),
  815. eventHum.FallingDown:connect(onFallingDown),
  816. eventHum.Seated:connect(onSeated),
  817. eventHum.PlatformStanding:connect(onPlatformStanding),
  818. eventHum.Swimming:connect(onSwimming)
  819. }
  820. end
  821.  
  822.  
  823. onHook()
  824. --FOLDER:WaitForChild("Loaded").Value = true
  825.  
  826.  
  827. -- main program
  828.  
  829. -- initialize to idle
  830. playAnimation("idle", 0.1, Humanoid)
  831. pose = "Standing"
  832.  
  833. spawn(function()
  834. while Figure.Parent ~= nil do
  835. local _, time = wait(0.1)
  836. move(time)
  837. end
  838. end)
  839.  
  840. return {
  841. onRunning = onRunning,
  842. onDied = onDied,
  843. onJumping = onJumping,
  844. onClimbing = onClimbing,
  845. onGettingUp = onGettingUp,
  846. onFreeFall = onFreeFall,
  847. onFallingDown = onFallingDown,
  848. onSeated = onSeated,
  849. onPlatformStanding = onPlatformStanding,
  850. onHook = onHook,
  851. onUnhook = onUnhook
  852. }
  853.  
  854. end
  855. RUNANIMATESCRIPT(CloneChar.Animate)
  856.  
  857. Player = game:GetService("Players").LocalPlayer
  858. Character = Player.Character
  859. PlayerGui = Player.PlayerGui
  860. Backpack = Player.Backpack
  861. Torso = Character.Torso
  862. Head = Character.Head
  863. Humanoid = Character.Humanoid
  864. RootPart = Character.HumanoidRootPart
  865. RootJoint = RootPart.RootJoint
  866. LeftArm = Character["Left Arm"]
  867. LeftLeg = Character["Left Leg"]
  868. RightArm = Character["Right Arm"]
  869. RightLeg = Character["Right Leg"]
  870. LS = Torso["Left Shoulder"]
  871. LH = Torso["Left Hip"]
  872. RS = Torso["Right Shoulder"]
  873. RH = Torso["Right Hip"]
  874. ------Gonzales---------
  875. CV="Maroon"
  876. Player = game.Players.LocalPlayer
  877. char = Player.Character
  878. local txt = Instance.new("BillboardGui", Character)
  879. txt.Adornee = Character .Head
  880. txt.Name = "_status"
  881. txt.Size = UDim2.new(2, 0, 1.2, 0)
  882. txt.StudsOffset = Vector3.new(-9, 8, 0)
  883. local text = Instance.new("TextLabel", txt)
  884. text.Size = UDim2.new(10, 0, 7, 0)
  885. text.FontSize = "Size24"
  886. text.TextScaled = true
  887. text.TextTransparency = 0
  888. text.BackgroundTransparency = 1
  889. text.TextTransparency = 0
  890. text.TextStrokeTransparency = 0
  891. text.Font = "Bodoni"
  892. text.TextStrokeColor3 = Color3.new(255,255,255)
  893.  
  894. v=Instance.new("Part")
  895. v.Name = "ColorBrick"
  896. v.Parent=Player.Character
  897. v.FormFactor="Symmetric"
  898. v.Anchored=true
  899. v.CanCollide=false
  900. v.BottomSurface="Smooth"
  901. v.TopSurface="Smooth"
  902. v.Size=Vector3.new(10,5,3)
  903. v.Transparency=1
  904. v.CFrame=Character.Torso.CFrame
  905. v.BrickColor=BrickColor.new(CV)
  906. v.Transparency=1
  907. text.TextColor3 = Color3.new(255,0,0)
  908. v.Shape="Block"
  909. text.Text = ""
  910. --------------------
  911. Face = Head.face
  912. shirt = Instance.new("Shirt", char)
  913. shirt.Name = "Shirt"
  914. pants = Instance.new("Pants", char)
  915. pants.Name = "Pants"
  916. char.Shirt.ShirtTemplate = "rbxassetid://61921144"
  917. char.Pants.PantsTemplate = "rbxassetid://61921182"
  918. ------Face----------
  919. Character.Head.face.Texture = "rbxassetid://840490876"
  920. ------Remover-------
  921. local ss = Instance.new("Sound",char)
  922. ss.Volume = 3
  923. ss.Looped = true
  924. ss.Pitch = 1
  925. ss.SoundId = "rbxassetid://1171341451"
  926. ss:Play()
  927. local p = game.Players.LocalPlayer
  928. local char = p.Character
  929. local mouse = p:GetMouse()
  930. local larm = char["Left Arm"]
  931. local rarm = char["Right Arm"]
  932. local lleg = char["Left Leg"]
  933. local rleg = char["Right Leg"]
  934. local hed = char.Head
  935. local torso = char.Torso
  936. local hum = char.Humanoid
  937. local cam = game.Workspace.CurrentCamera
  938. local root = char.HumanoidRootPart
  939. local rj = root.RootJoint
  940. local deb = false
  941. local shot = 0
  942. local animpose = "Idle"
  943. local lastanimpose = "Idle"
  944. local stanceToggle = "Normal"
  945. local l = game:GetService("Lighting")
  946. local rs = game:GetService("RunService").RenderStepped
  947. local hb = game:GetService("RunService").Heartbeat
  948. local Stepped = game:GetService("RunService").Stepped
  949. local Touche = {char.Name, }
  950. ----
  951.  
  952.  
  953. Neck = Torso.Neck
  954. it = Instance.new
  955. vt = Vector3.new
  956. cf = CFrame.new
  957. rad = math.rad
  958. euler = CFrame.fromEulerAnglesXYZ
  959. angles = CFrame.Angles
  960. Mouse = Player:GetMouse()
  961. coroutine.resume(coroutine.create(function()
  962. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  963. Text = "Fixed by PixelFir3 / Cortana#8155";
  964. Color = Color7.new(0, 1, 1);
  965. Font = Enum.Font.Code;
  966. FontSize = Enum.FontSize.Size24;
  967. })
  968. end))
  969. ArtificialHB = Instance.new("BindableEvent", script)
  970. ArtificialHB.Name = "ArtificialHB"
  971. script:WaitForChild("ArtificialHB")
  972. frame = 0.016666666666667
  973. tf = 0
  974. allowframeloss = false
  975. tossremainder = false
  976. lastframe = tick()
  977. script.ArtificialHB:Fire()
  978. game:GetService("RunService").Heartbeat:connect(function(s, p)
  979.  
  980. tf = tf + s
  981. if frame <= tf then
  982. if allowframeloss then
  983. script.ArtificialHB:Fire()
  984. lastframe = tick()
  985. else
  986. for i = 1, math.floor(tf / frame) do
  987. script.ArtificialHB:Fire()
  988. end
  989. lastframe = tick()
  990. end
  991. if tossremainder then
  992. tf = 0
  993. else
  994. tf = tf - frame * math.floor(tf / frame)
  995. end
  996. end
  997. end
  998. )
  999. local animationspeed = 2
  1000. hbwait = function(number)
  1001.  
  1002. if number == 0 or number == nil then
  1003. ArtificialHB.Event:wait()
  1004. else
  1005. for i = 0, number do
  1006. ArtificialHB.Event:wait()
  1007. end
  1008. end
  1009. end
  1010.  
  1011. local Stats = Instance.new("Folder", Character)
  1012. Stats.Name = "Stats"
  1013. local Defense = Instance.new("NumberValue", Stats)
  1014. Defense.Name = "Defense"
  1015. Defense.Value = 0.1
  1016. local Movement = Instance.new("NumberValue", Stats)
  1017. Movement.Name = "Movement"
  1018. Movement.Value = 0.35
  1019. local Damage = Instance.new("NumberValue", Stats)
  1020. Damage.Name = "Damage"
  1021. Damage.Value = 0
  1022. local Mana = Instance.new("NumberValue", Stats)
  1023. Mana.Name = "Mana"
  1024. Mana.Value = 0
  1025. local Rooted = Instance.new("BoolValue", Stats)
  1026. Rooted.Name = "Rooted"
  1027. Rooted.Value = false
  1028. local BlockValue = Instance.new("BoolValue", Stats)
  1029. BlockValue.Name = "BlockValue"
  1030. BlockValue.Value = false
  1031. local StaggerHitAnim = Instance.new("BoolValue", Stats)
  1032. StaggerHitAnim.Name = "StaggerHitAnim"
  1033. StaggerHitAnim.Value = false
  1034. local StaggerAnim = Instance.new("BoolValue", Stats)
  1035. StaggerAnim.Name = "StaggerAnim"
  1036. StaggerAnim.Value = false
  1037. local StunAnim = Instance.new("BoolValue", Stats)
  1038. StunAnim.Name = "StunAnim"
  1039. StunAnim.Value = false
  1040. local StunValue = Instance.new("NumberValue", Stats)
  1041. StunValue.Name = "StunValue"
  1042. StunValue.Value = 0
  1043. local CanCrit = Instance.new("BoolValue", Stats)
  1044. CanCrit.Name = "CanCrit"
  1045. CanCrit.Value = false
  1046. local CritChance = Instance.new("NumberValue", Stats)
  1047. CritChance.Name = "CritChance"
  1048. CritChance.Value = 20
  1049. local CanPenetrateArmor = Instance.new("BoolValue", Stats)
  1050. CanPenetrateArmor.Name = "CanPenetrateArmor"
  1051. CanPenetrateArmor.Value = false
  1052. local AntiTeamKill = Instance.new("BoolValue", Stats)
  1053. AntiTeamKill.Name = "AntiTeamKill"
  1054. AntiTeamKill.Value = false
  1055. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  1056. RootCF = angles(rad(-90), 0, rad(180))
  1057. local idle = 0
  1058. local Anim = "Idle"
  1059. local animtype = math.floor(math.random(1, 3))
  1060. local attacktype = 1
  1061. local attack = false
  1062. local equipped = false
  1063. local LastPoint = nil
  1064. local staggerhitanim = false
  1065. local staggeranim = false
  1066. local stunanim = false
  1067. local CritChanceNumber = 0
  1068. local idlen = 0
  1069. local donum = 0
  1070. local sine = 0
  1071. local change = 2 / animationspeed
  1072. local walkinganim = false
  1073. local handidle = false
  1074. local walk = 0
  1075. local stundelay = 0
  1076. local manadelay = 0
  1077. local robloxidleanimation = Instance.new("Animation", Torso)
  1078. robloxidleanimation.Name = "robloxidleanimation"
  1079. robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1080. local Animator = Humanoid:FindFirstChild("Animator")
  1081. local Animate = Character:FindFirstChild("Animate")
  1082. local HitPlayerSounds = {199149137, 199149186, 199149221, 199149235, 199149269, 199149297}
  1083. local HitArmorSounds = {199149321, 199149338, 199149367, 199149409, 199149452}
  1084. local HitWeaponSounds = {199148971, 199149025, 199149072, 199149109, 199149119}
  1085. local HitBlockSounds = {199148933, 199148947}
  1086. local cooldown1 = 0
  1087. local cooldown2 = 0
  1088. local cooldown3 = 0
  1089. local cooldown4 = 0
  1090. local scrn = Instance.new("ScreenGui", PlayerGui)
  1091. local ud = UDim2.new
  1092. local c3 = Color3.new
  1093. local skillcolorscheme = c3(1, 1, 1)
  1094. subtractmana = function(k)
  1095.  
  1096. if k <= Mana.Value then
  1097. Mana.Value = Mana.Value - k
  1098. end
  1099. end
  1100.  
  1101. local co1 = 0
  1102. local co2 = 0
  1103. local co3 = 0
  1104. local co4 = 0
  1105. local maxmana = 0
  1106. local maxstun = 1
  1107. local recovermana = 0
  1108. local losestun = 0
  1109. local stunwait = 0
  1110. local manawait = 0
  1111. local skill1mana = 0
  1112. local skill2mana = 0
  1113. local skill3mana = 0
  1114. local skill4mana = 0
  1115. local menuupdatespeed = 0
  1116. local constantupdate = false
  1117. local showstats = false
  1118. local allowstunbar = false
  1119. local CustomColor = Torso.BrickColor
  1120. local Colorpart1 = CustomColor.r
  1121. local Colorpart2 = CustomColor.g
  1122. local Colorpart3 = CustomColor.b
  1123. local InverseColor = BrickColor.new(Color3.new(1 - Colorpart1, 1 - Colorpart2, 1 - Colorpart3))
  1124. makeframe = function(par, trans, pos, size, color, name)
  1125.  
  1126. local frame = Instance.new("Frame")
  1127. frame.Parent = par
  1128. frame.BackgroundTransparency = trans
  1129. frame.BorderSizePixel = 2
  1130. frame.Position = pos
  1131. frame.Size = size
  1132. frame.BackgroundColor3 = color
  1133. frame.Name = name
  1134. return frame
  1135. end
  1136.  
  1137. makelabel = function(par, text, trans, stroketrans, name)
  1138.  
  1139. local label = Instance.new("TextLabel")
  1140. label.Parent = par
  1141. label.BackgroundTransparency = 1
  1142. label.Size = ud(1, 0, 1, 0)
  1143. label.Position = ud(0, 0, 0, 0)
  1144. label.TextColor3 = c3(255, 255, 255)
  1145. label.TextStrokeTransparency = stroketrans
  1146. label.TextTransparency = trans
  1147. label.FontSize = Enum.FontSize.Size32
  1148. label.Font = Enum.Font.Legacy
  1149. label.BorderSizePixel = 0
  1150. label.TextScaled = true
  1151. label.Text = text
  1152. label.Name = name
  1153. return label
  1154. end
  1155.  
  1156. framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 1")
  1157. framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 2")
  1158. framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 3")
  1159. framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 4")
  1160. bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 1")
  1161. bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 2")
  1162. bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 3")
  1163. bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 4")
  1164. text1 = makelabel(framesk1, "[C] Ability 3", 1, 1, "Text 1")
  1165. text2 = makelabel(framesk2, "[V] Ability 4", 1, 1, "Text 2")
  1166. text3 = makelabel(framesk3, "[X] Ability 2", 1, 1, "Text 3")
  1167. text4 = makelabel(framesk4, "[Z] Ability 1", 1, 1, "Text 4")
  1168. manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar")
  1169. manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover")
  1170. manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text")
  1171. 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")
  1172. healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137255, 0.19607843137255), "Health Cover")
  1173. healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text")
  1174. if allowstunbar == true then
  1175. 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")
  1176. stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137255), "Stun Bar")
  1177. stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text")
  1178. end
  1179. if showstats == true then
  1180. 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")
  1181. 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")
  1182. 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")
  1183. defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text")
  1184. damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text")
  1185. movementtext = makelabel(movementframe, "Movement: " .. Movement.Value, 1, 1, "Movement Text")
  1186. end
  1187. NoOutline = function(Part)
  1188.  
  1189. Part.TopSurface = 10
  1190. end
  1191.  
  1192. local weldBetween = function(a, b)
  1193.  
  1194. local weldd = Instance.new("ManualWeld")
  1195. weldd.Part0 = a
  1196. weldd.Part1 = b
  1197. weldd.C0 = CFrame.new()
  1198. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1199. weldd.Parent = a
  1200. return weldd
  1201. end
  1202.  
  1203. nooutline = function(part)
  1204.  
  1205. part.TopSurface = 10
  1206. end
  1207.  
  1208. part = function(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  1209.  
  1210. local fp = it("Part")
  1211. fp.formFactor = formfactor
  1212. fp.Parent = parent
  1213. fp.Reflectance = reflectance
  1214. fp.Transparency = transparency
  1215. fp.CanCollide = false
  1216. fp.Locked = true
  1217. fp.BrickColor = BrickColor.new(tostring(brickcolor))
  1218. fp.Name = name
  1219. fp.Size = size
  1220. fp.Position = Character.Torso.Position
  1221. nooutline(fp)
  1222. fp.Material = material
  1223. fp:BreakJoints()
  1224. return fp
  1225. end
  1226.  
  1227. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  1228.  
  1229. local mesh = it(Mesh)
  1230. mesh.Parent = part
  1231. if Mesh == "SpecialMesh" then
  1232. mesh.MeshType = meshtype
  1233. mesh.MeshId = meshid
  1234. end
  1235. mesh.Offset = offset
  1236. mesh.Scale = scale
  1237. return mesh
  1238. end
  1239.  
  1240. weld = function(parent, part0, part1, c0, c1)
  1241.  
  1242. local weld = it("Motor")
  1243. weld.Parent = parent
  1244. weld.Part0 = part0
  1245. weld.Part1 = part1
  1246. weld.C0 = c0
  1247. weld.C1 = c1
  1248. return weld
  1249. end
  1250.  
  1251. local WeaponName = "Russian Kick"
  1252. local ClassName = "Russian Kick"
  1253. local PlayerSize = 1
  1254. local RWC0 = cf(-0.5, 0, 0) * angles(rad(0), rad(90), rad(0))
  1255. local LWC0 = cf(0.5, 0, 0) * angles(rad(0), rad(-90), rad(0))
  1256. if PlayerSize ~= 1 then
  1257. RootPart.Size = RootPart.Size * PlayerSize
  1258. Torso.Size = Torso.Size * PlayerSize
  1259. Head.Size = Head.Size * PlayerSize
  1260. RightArm.Size = RightArm.Size * PlayerSize
  1261. LeftArm.Size = LeftArm.Size * PlayerSize
  1262. RightLeg.Size = RightLeg.Size * PlayerSize
  1263. LeftLeg.Size = LeftLeg.Size * PlayerSize
  1264. RootJoint.Parent = RootPart
  1265. Neck.Parent = Torso
  1266. LS.Parent = Torso
  1267. RS.Parent = Torso
  1268. LH.Parent = Torso
  1269. RH.Parent = Torso
  1270. RootJoint.C0 = RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0))
  1271. Neck.C0 = necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0))
  1272. Neck.C1 = angles(rad(90), rad(180), 0) * cf(0, 0, -0.5 * PlayerSize)
  1273. RS.C0 = cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0
  1274. LS.C0 = cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0
  1275. RS.C1 = angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5)
  1276. LS.C1 = angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5)
  1277. RH.C0 = cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0))
  1278. LH.C0 = cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0))
  1279. RH.C1 = angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize)
  1280. LH.C1 = angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize)
  1281. for _,v in pairs(Character:GetChildren()) do
  1282. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  1283. v.Parent = nil
  1284. v.Parent = Character
  1285. v.Handle.Mesh.Scale = v.Handle.Mesh.Scale * PlayerSize
  1286. for _,b in pairs(v.Handle:GetChildren()) do
  1287. if b.ClassName == "Weld" or b.ClassName == "Motor" then
  1288. local p1 = b.Part1
  1289. b.Part1 = nil
  1290. local c01, c02, c03, c04, c05, c06, c07, c08, c09, c010, c011, c012 = b.C0:components()
  1291. local c11, c12, c13, c14, c15, c16, c17, c18, c19, c110, c111, c112 = b.C1:components()
  1292. b.C0 = cf(c01 * PlayerSize, c02 * PlayerSize, c03 * PlayerSize, c04, c05, c06, c07, c08, c09, c010, c011, c012)
  1293. b.C1 = cf(c11 * PlayerSize, c12 * PlayerSize, c13 * PlayerSize, c14, c15, c16, c17, c18, c19, c110, c111, c112)
  1294. b.Part1 = p1
  1295. end
  1296. end
  1297. end
  1298. end
  1299. end
  1300. m = Instance.new("Model", Character)
  1301. m.Name = WeaponName
  1302. Effects = Instance.new("Folder", m)
  1303. Effects.Name = "Effects"
  1304. Humanoid.Died:connect(function()
  1305.  
  1306. attack = true
  1307. for _,v in pairs(Character:GetChildren()) do
  1308. if v.ClassName == "Model" then
  1309. v:Destroy()
  1310. end
  1311. end
  1312. end
  1313. )
  1314. for i,v in pairs(Character:GetChildren()) do
  1315. if v.ClassName == "Model" then
  1316. for _,c in pairs(v:GetChildren()) do
  1317. if c.ClassName == "Part" then
  1318. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1319. end
  1320. end
  1321. end
  1322. end
  1323. print(ClassName .. " loaded.")
  1324. clerp = function(a, b, t)
  1325. return a:lerp(b, t)
  1326. end
  1327.  
  1328. positiveangle = function(number)
  1329.  
  1330. if number > 0 then
  1331. number = 0
  1332. end
  1333. return number
  1334. end
  1335.  
  1336. negativeangle = function(number)
  1337.  
  1338. if number < 0 then
  1339. number = 0
  1340. end
  1341. return number
  1342. end
  1343.  
  1344. so = function(id, par, vol, pit)
  1345.  
  1346. coroutine.resume(coroutine.create(function()
  1347.  
  1348. local sou = Instance.new("Sound", par or workspace)
  1349. sou.Volume = vol
  1350. sou.Pitch = pit or 1
  1351. sou.SoundId = "http://roblox.com/asset/?id=" .. id
  1352. hbwait()
  1353. sou:play()
  1354. game:GetService("Debris"):AddItem(sou, 10)
  1355. end
  1356. ))
  1357. end
  1358.  
  1359. GetDistance = function(Part1, Part2, magnitude)
  1360.  
  1361. local target = Part1.Position - Part2.Position
  1362. local mag = target.magnitude
  1363. if mag <= magnitude then
  1364. return true
  1365. else
  1366. return false
  1367. end
  1368. end
  1369.  
  1370. rayCast = function(Pos, Dir, Max, Ignore)
  1371.  
  1372. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1373. end
  1374.  
  1375. DamageStatLabel = function(labeltype, cframe, text, color)
  1376.  
  1377. local c = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt(0, 0, 0))
  1378. c.CFrame = cf(cframe.p + vt(0, 1.5, 0))
  1379. game:GetService("Debris"):AddItem(c, 5)
  1380. Instance.new("BodyGyro", c)
  1381. local f = Instance.new("BodyPosition", c)
  1382. f.P = 2000
  1383. f.D = 100
  1384. f.maxForce = vt(math.huge, math.huge, math.huge)
  1385. if labeltype == "Normal" then
  1386. f.position = c.Position + vt(math.random(-2, 2), 6, math.random(-2, 2))
  1387. else
  1388. if labeltype == "Debuff" then
  1389. f.position = c.Position + vt(math.random(-2, 2), 8, math.random(-2, 2))
  1390. else
  1391. if labeltype == "Interruption" then
  1392. f.position = c.Position + vt(math.random(-2, 2), 8, math.random(-2, 2))
  1393. end
  1394. end
  1395. end
  1396. game:GetService("Debris"):AddItem(c, 5)
  1397. local bg = Instance.new("BillboardGui", c)
  1398. bg.Adornee = c
  1399. bg.Size = UDim2.new(2.5, 0, 2.5, 0)
  1400. bg.StudsOffset = vt(-2, 2, 0)
  1401. bg.AlwaysOnTop = false
  1402. local tl = Instance.new("TextLabel", bg)
  1403. tl.BackgroundTransparency = 1
  1404. tl.Size = UDim2.new(2.5, 0, 2.5, 0)
  1405. tl.Text = text
  1406. tl.Font = Enum.Font.SourceSans
  1407. tl.FontSize = Enum.FontSize.Size42
  1408. tl.TextColor3 = color
  1409. tl.TextScaled = false
  1410. tl.TextStrokeTransparency = 0
  1411. tl.TextScaled = true
  1412. tl.TextWrapped = true
  1413. f.Parent = c
  1414. coroutine.resume(coroutine.create(function(Part, BodyPosition, TextLabel)
  1415.  
  1416. wait(0.25)
  1417. for i = 1, 5 do
  1418. wait()
  1419. BodyPosition.position = Part.Position - vt(0, 0.5, 0)
  1420. end
  1421. wait(1.25)
  1422. for i = 1, 5 do
  1423. wait()
  1424. TextLabel.TextTransparency = TextLabel.TextTransparency + 0.2
  1425. TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency + 0.2
  1426. BodyPosition.position = Part.Position + vt(0, 0.5, 0)
  1427. end
  1428. Part.Parent = nil
  1429. end
  1430. ), c, f, tl)
  1431. end
  1432.  
  1433. IncreaseStat = function(Location, Stat, Amount, Duration, ShowTheStat)
  1434.  
  1435. -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
  1436.  
  1437. -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
  1438.  
  1439. if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil and Location.Stats:FindFirstChild("BlockValue").Value ~= true and Location.Stats[Stat] ~= nil then
  1440. Location.Stats[Stat].Value = Location.Stats[Stat].Value + Amount
  1441. if ShowTheStat == true then
  1442. if Stat == "Defense" then
  1443. DamageStatLabel("Debuff", Location.Head.CFrame, "+Defense", c3(1, 1, 1))
  1444. else
  1445. if Stat == "Damage" then
  1446. DamageStatLabel("Debuff", Location.Head.CFrame, "+Damage", c3(1, 1, 1))
  1447. else
  1448. if Stat == "Movement" then
  1449. DamageStatLabel("Debuff", Location.Head.CFrame, "+Movement", c3(1, 1, 1))
  1450. end
  1451. end
  1452. end
  1453. end
  1454. coroutine.resume(coroutine.create(function(CurrentDecrease)
  1455.  
  1456. wait(Duration)
  1457. CurrentDecrease.Value = CurrentDecrease.Value - Amount
  1458. end
  1459. ), Location.Stats[Stat])
  1460. end
  1461. DamageStatLabel("Interruption", Location.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
  1462. end
  1463.  
  1464. DecreaseStat = function(Location, Stat, Amount, Duration, ShowTheStat)
  1465.  
  1466. -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
  1467.  
  1468. -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1
  1469.  
  1470. if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil and Location.Stats:FindFirstChild("BlockValue").Value ~= true and Location.Stats[Stat] ~= nil then
  1471. Location.Stats[Stat].Value = Location.Stats[Stat].Value - Amount
  1472. if ShowTheStat == true then
  1473. if Stat == "Defense" then
  1474. DamageStatLabel("Debuff", Location.Head.CFrame, "-Defense", c3(1, 1, 1))
  1475. else
  1476. if Stat == "Damage" then
  1477. DamageStatLabel("Debuff", Location.Head.CFrame, "-Damage", c3(1, 1, 1))
  1478. else
  1479. if Stat == "Movement" then
  1480. DamageStatLabel("Debuff", Location.Head.CFrame, "-Movement", c3(1, 1, 1))
  1481. end
  1482. end
  1483. end
  1484. end
  1485. coroutine.resume(coroutine.create(function(CurrentDecrease)
  1486.  
  1487. wait(Duration)
  1488. CurrentDecrease.Value = CurrentDecrease.Value + Amount
  1489. end
  1490. ), Location.Stats[Stat])
  1491. end
  1492. DamageStatLabel("Interruption", Location.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
  1493. end
  1494.  
  1495. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, DecreaseTheStat, DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  1496.  
  1497. if hit.Parent == nil then
  1498. return
  1499. end
  1500. h = hit.Parent:FindFirstChild("Humanoid")
  1501. for _,v in pairs(hit.Parent:GetChildren()) do
  1502. if v:IsA("Humanoid") then
  1503. h = v
  1504. end
  1505. end
  1506. if hit.Name == "Hitbox" and ranged ~= true and hit.Parent ~= m then
  1507. StaggerHitAnim.Value = true
  1508. so(HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1)
  1509. return
  1510. end
  1511. if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
  1512. h = hit.Parent.Parent:FindFirstChild("Humanoid")
  1513. end
  1514. if hit.Parent.className == "Hat" then
  1515. hit = hit.Parent.Parent:FindFirstChild("Head")
  1516. end
  1517. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1518. if hit.Parent:FindFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1519. return
  1520. end
  1521. 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
  1522. return
  1523. end
  1524. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health <= 0 then
  1525. return
  1526. end
  1527. if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("StunValue") ~= nil then
  1528. hit.Parent.Stats:FindFirstChild("StunValue").Value = hit.Parent.Stats:FindFirstChild("StunValue").Value + incstun
  1529. end
  1530. if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("StaggerAnim") ~= nil and stagger == true then
  1531. hit.Parent.Stats:FindFirstChild("StaggerAnim").Value = true
  1532. end
  1533. if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("BlockValue") ~= nil and hit.Parent.Stats:FindFirstChild("BlockValue").Value == true then
  1534. if hit.Parent.Stats:FindFirstChild("BlockDebounce") == nil then
  1535. DamageStatLabel("Interruption", hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
  1536. local BlockDebounce = Instance.new("BoolValue", hit.Parent.Stats)
  1537. BlockDebounce.Name = "BlockDebounce"
  1538. BlockDebounce.Value = true
  1539. game:GetService("Debris"):AddItem(BlockDebounce, 0.1)
  1540. end
  1541. do
  1542. if ranged ~= true then
  1543. do
  1544. if hit.Parent.Stats:FindFirstChild("BlockDebounce2") == nil then
  1545. local BlockDebounce2 = Instance.new("BoolValue", hit.Parent.Stats)
  1546. BlockDebounce2.Name = "BlockDebounce2"
  1547. BlockDebounce2.Value = true
  1548. game:GetService("Debris"):AddItem(BlockDebounce2, 0.1)
  1549. so(HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1)
  1550. end
  1551. hit.Parent.Stats:FindFirstChild("BlockValue").Value = false
  1552. StaggerAnim.Value = true
  1553. do return end
  1554. if DecreaseTheStat ~= nil and hit.Parent:FindFirstChild("Stats") ~= nil then
  1555. if DecreaseTheStat == "Defense" then
  1556. DecreaseStat(hit.Parent, "Defense", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  1557. else
  1558. if DecreaseTheStat == "Damage" then
  1559. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  1560. else
  1561. if DecreaseTheStat == "Movement" then
  1562. DecreaseStat(hit.Parent, "Movement", DecreaseAmount, DecreaseDuration, ShowDecreasedStat)
  1563. end
  1564. end
  1565. end
  1566. end
  1567. local D = math.random(minim, maxim) * Damage.Value
  1568. if hit.Parent:FindFirstChild("Stats") ~= nil then
  1569. if hit.Parent.Stats:FindFirstChild("Defense") then
  1570. if CanPenetrateArmor.Value == true then
  1571. D = D / hit.Parent.Stats:FindFirstChild("Defense").Value
  1572. -- DECOMPILER ERROR at PC377: Unhandled construct in 'MakeBoolean' P1
  1573.  
  1574. if hit.Parent.Stats:FindFirstChild("Defense") ~= nil or CanCrit.Value == true then
  1575. CritChanceNumber = math.random(1, CritChance.Value)
  1576. if CritChanceNumber == CritChance.Value then
  1577. D = D * 2
  1578. end
  1579. end
  1580. D = math.floor(D)
  1581. h.Health = h.Health - D
  1582. if D <= 3 and staggerhit == true then
  1583. if ranged ~= true then
  1584. StaggerHitAnim.Value = true
  1585. end
  1586. if ranged ~= true then
  1587. so(HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1)
  1588. end
  1589. else
  1590. if D > 3 and ranged ~= true then
  1591. so(HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1)
  1592. end
  1593. end
  1594. if D > 3 and D < 20 then
  1595. if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
  1596. DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
  1597. so("296102734", hit, 1, 1)
  1598. else
  1599. DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(1, 0.86274509803922, 0))
  1600. end
  1601. else
  1602. if D >= 20 then
  1603. if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
  1604. DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
  1605. so("296102734", hit, 1, 1)
  1606. else
  1607. DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(1, 0, 0))
  1608. end
  1609. else
  1610. if D <= 3 then
  1611. if CanCrit.Value == true and CritChanceNumber == CritChance.Value then
  1612. DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
  1613. so("296102734", hit, 1, 1)
  1614. else
  1615. DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(0.88235294117647, 0.88235294117647, 0.88235294117647))
  1616. end
  1617. end
  1618. end
  1619. end
  1620. do
  1621. if Type == "Normal" then
  1622. local vp = Instance.new("BodyVelocity")
  1623. vp.P = 500
  1624. vp.maxForce = vt(math.huge, 0, math.huge)
  1625. if KnockbackType == 1 then
  1626. vp.Velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1627. else
  1628. if KnockbackType == 2 then
  1629. vp.Velocity = Property.CFrame.lookVector * knockback
  1630. end
  1631. end
  1632. if knockback > 0 then
  1633. vp.Parent = hit.Parent.Torso
  1634. end
  1635. game:GetService("Debris"):AddItem(vp, 0.5)
  1636. end
  1637. local DebounceHit = Instance.new("BoolValue", hit.Parent)
  1638. DebounceHit.Name = "DebounceHit"
  1639. DebounceHit.Value = true
  1640. game:GetService("Debris"):AddItem(DebounceHit, Delay)
  1641. end
  1642. end
  1643. end
  1644. end
  1645. end
  1646. end
  1647. end
  1648. end
  1649. end
  1650. end
  1651.  
  1652. MagniDamage = function(Part, magni, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat)
  1653.  
  1654. for _,c in pairs(workspace:GetChildren()) do
  1655. local hum = (c:FindFirstChild("Humanoid"))
  1656. local head = nil
  1657. if hum ~= nil then
  1658. head = c:FindFirstChild("Torso")
  1659. if head ~= nil then
  1660. local targ = head.Position - Part.Position
  1661. local mag = targ.magnitude
  1662. if mag <= magni and c.Name ~= Player.Name then
  1663. Damagefunc(head, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat)
  1664. end
  1665. end
  1666. do
  1667. for _,d in pairs(c:GetChildren()) do
  1668. if d.ClassName == "Model" and ranged ~= true then
  1669. head = d:FindFirstChild("Hitbox")
  1670. if head ~= nil then
  1671. local targ = head.Position - Part.Position
  1672. local mag = targ.magnitude
  1673. if mag <= magni and c.Name ~= Player.Name then
  1674. local hitrefpart = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt())
  1675. hitrefpart.Anchored = true
  1676. hitrefpart.CFrame = cf(head.Position)
  1677. so(HitWeaponSounds[math.random(1, #HitWeaponSounds)], hitrefpart, 1, 1)
  1678. StaggerHitAnim.Value = true
  1679. end
  1680. end
  1681. end
  1682. end
  1683. do
  1684. -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out DO_STMT
  1685.  
  1686. -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1687.  
  1688. -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out IF_STMT
  1689.  
  1690. end
  1691. end
  1692. end
  1693. end
  1694. end
  1695.  
  1696. MagniBufforDebuff = function(Part, Magni, Type, Stat, Amount, Duration, ShowTheBufforDebuff, ApplyToOthersInstead)
  1697.  
  1698. if Player.Neutral == true then
  1699. if Type == "Buff" then
  1700. IncreaseStat(Character, Stat, Amount, Duration, ShowTheBufforDebuff)
  1701. else
  1702. if Type == "Debuff" then
  1703. DecreaseStat(Character, Stat, Amount, Duration, ShowTheBufforDebuff)
  1704. end
  1705. end
  1706. end
  1707. for _,c in pairs(workspace:GetChildren()) do
  1708. local hum = (c:FindFirstChild("Humanoid"))
  1709. local head = nil
  1710. if hum ~= nil then
  1711. head = c:FindFirstChild("Torso")
  1712. if head ~= nil then
  1713. local targ = head.Position - Part.Position
  1714. local mag = targ.magnitude
  1715. -- DECOMPILER ERROR at PC83: Unhandled construct in 'MakeBoolean' P1
  1716.  
  1717. 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
  1718. if Type == "Buff" then
  1719. IncreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff)
  1720. else
  1721. if Type == "Debuff" then
  1722. DecreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff)
  1723. end
  1724. end
  1725. end
  1726. end
  1727. end
  1728. 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
  1729. if Type == "Buff" then
  1730. IncreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff)
  1731. else
  1732. if Type == "Debuff" then
  1733. DecreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff)
  1734. end
  1735. end
  1736. end
  1737. end
  1738. end
  1739.  
  1740. Lightning = function(p0, p1, tym, ofs, brickcolor, material, th, tra, last)
  1741.  
  1742. local magz = p0 - p1.magnitude
  1743. local curpos = p0
  1744. local trz = {-ofs, ofs}
  1745. for i = 1, tym do
  1746. local li = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt(th, th, magz / tym))
  1747. do
  1748. li.Anchored = true
  1749. local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  1750. local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz
  1751. if tym == i then
  1752. local magz2 = curpos - p1.magnitude
  1753. li.Size = vt(th, th, magz2)
  1754. li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2)
  1755. else
  1756. do
  1757. do
  1758. li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2)
  1759. curpos = li.CFrame * cf(0, 0, magz / tym / 2).p
  1760. game.Debris:AddItem(li, last)
  1761. coroutine.resume(coroutine.create(function()
  1762.  
  1763. while li.Transparency ~= 1 do
  1764. for i = 0, 1, last do
  1765. hbwait()
  1766. li.Transparency = li.Transparency + 0.1 / last
  1767. end
  1768. end
  1769. end
  1770. ))
  1771. end
  1772. -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  1773.  
  1774. -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out IF_STMT
  1775.  
  1776. -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out DO_STMT
  1777.  
  1778. end
  1779. end
  1780. end
  1781. end
  1782. end
  1783.  
  1784. MagicRing = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1785.  
  1786. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1787. prt.Anchored = true
  1788. prt.CFrame = cframe
  1789. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
  1790. game:GetService("Debris"):AddItem(prt, 10)
  1791. coroutine.resume(coroutine.create(function(Part, Mesh)
  1792.  
  1793. for i = 0, 1, delay do
  1794. hbwait()
  1795. Part.CFrame = Part.CFrame
  1796. Part.Transparency = i
  1797. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1798. end
  1799. Part.Parent = nil
  1800. end
  1801. ), prt, msh)
  1802. end
  1803.  
  1804. MagicWave = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1805.  
  1806. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1807. prt.Anchored = true
  1808. prt.CFrame = cframe
  1809. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, -0.1 * z1), vt(x1, y1, z1))
  1810. game:GetService("Debris"):AddItem(prt, 10)
  1811. coroutine.resume(coroutine.create(function(Part, Mesh)
  1812.  
  1813. for i = 0, 1, delay do
  1814. hbwait()
  1815. Part.CFrame = Part.CFrame
  1816. Part.Transparency = i
  1817. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1818. end
  1819. Part.Parent = nil
  1820. end
  1821. ), prt, msh)
  1822. end
  1823.  
  1824. MagicBlock = function(brickcolor, material, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
  1825.  
  1826. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1827. prt.Anchored = true
  1828. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1829. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1830. game:GetService("Debris"):AddItem(prt, 10)
  1831. coroutine.resume(coroutine.create(function(Part, Mesh)
  1832.  
  1833. for i = 0, 1, delay do
  1834. hbwait()
  1835. if rotate == true then
  1836. Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1837. end
  1838. Part.Transparency = i
  1839. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1840. end
  1841. Part.Parent = nil
  1842. end
  1843. ), prt, msh)
  1844. end
  1845.  
  1846. MagicBlock2 = function(brickcolor, material, rotate, cframe, x1, y1, z1, x3, y3, z3, delay)
  1847.  
  1848. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1849. prt.Anchored = true
  1850. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1851. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1852. game:GetService("Debris"):AddItem(prt, 10)
  1853. CF = prt.CFrame
  1854. num = math.random(5, 20)
  1855. coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num)
  1856.  
  1857. for i = 0, 1, delay do
  1858. hbwait()
  1859. if rotate == true then
  1860. Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1861. else
  1862. Part.CFrame = CF2 * cf(0, i * Num, 0)
  1863. end
  1864. Part.Transparency = i
  1865. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1866. end
  1867. Part.Parent = nil
  1868. end
  1869. ), prt, msh, CF, num)
  1870. end
  1871.  
  1872. MagicCylinder = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1873.  
  1874. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1875. prt.Anchored = true
  1876. prt.CFrame = cframe
  1877. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1878. game:GetService("Debris"):AddItem(prt, 10)
  1879. coroutine.resume(coroutine.create(function(Part, Mesh)
  1880.  
  1881. for i = 0, 1, delay do
  1882. hbwait()
  1883. Part.Transparency = i
  1884. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1885. end
  1886. Part.Parent = nil
  1887. end
  1888. ), prt, msh)
  1889. end
  1890.  
  1891. MagicCircle = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1892.  
  1893. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1894. prt.Anchored = true
  1895. prt.CFrame = cframe
  1896. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1897. game:GetService("Debris"):AddItem(prt, 10)
  1898. coroutine.resume(coroutine.create(function(Part, Mesh)
  1899.  
  1900. for i = 0, 1, delay do
  1901. hbwait()
  1902. Part.Transparency = i
  1903. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1904. end
  1905. Part.Parent = nil
  1906. end
  1907. ), prt, msh)
  1908. end
  1909.  
  1910. MagicHead = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  1911.  
  1912. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1913. prt.Anchored = true
  1914. prt.CFrame = cframe
  1915. local msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
  1916. game:GetService("Debris"):AddItem(prt, 10)
  1917. coroutine.resume(coroutine.create(function(Part, Mesh)
  1918.  
  1919. for i = 0, 1, delay do
  1920. hbwait()
  1921. Part.Transparency = i
  1922. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  1923. end
  1924. Part.Parent = nil
  1925. end
  1926. ), prt, msh)
  1927. end
  1928.  
  1929. BreakEffect = function(brickcolor, material, rotate, cframe, x1, y1, z1, delay)
  1930.  
  1931. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1932. prt.Anchored = true
  1933. prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1934. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  1935. game:GetService("Debris"):AddItem(prt, 10)
  1936. coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb)
  1937.  
  1938. CF = Part.CFrame
  1939. Numbb = 0
  1940. randnumb = math.random() - math.random()
  1941. for i = 0, 1, delay do
  1942. hbwait()
  1943. CF = CF * cf(0, 1, 0)
  1944. if rotate == true then
  1945. Part.CFrame = CF * angles(Numbb, 0, 0)
  1946. else
  1947. if rotate == false then
  1948. Part.CFrame = CF
  1949. end
  1950. end
  1951. Part.Transparency = i
  1952. Numbb = Numbb + (randnumb)
  1953. end
  1954. Part.Parent = nil
  1955. end
  1956. ), prt, CF, Numbb, randnumb)
  1957. end
  1958.  
  1959. ElecEffect = function(brickcolor, material, cf, x, y, z, delay)
  1960.  
  1961. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  1962. prt.Anchored = true
  1963. prt.CFrame = cf
  1964. xval = math.random()
  1965. yval = math.random()
  1966. zval = math.random()
  1967. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z))
  1968. game:GetService("Debris"):AddItem(prt, 10)
  1969. coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal)
  1970.  
  1971. for i = 0, 1, delay do
  1972. hbwait()
  1973. Part.CFrame = Part.CFrame
  1974. xvaal = xvaal - 0.1 * (delay * 10)
  1975. yvaal = yvaal - 0.1 * (delay * 10)
  1976. zvaal = zvaal - 0.1 * (delay * 10)
  1977. Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal)
  1978. Part.Transparency = i
  1979. end
  1980. Part.Parent = nil
  1981. end
  1982. ), prt, msh, xval, yval, zval)
  1983. end
  1984.  
  1985. TrailEffect = function(brickcolor, material, currentcf, oldcf, meshtype, reflectance, size, x, y, z, delay)
  1986.  
  1987. local magnitudecframe = currentcf.p - oldcf.p.magnitude
  1988. if magnitudecframe > 0.01 then
  1989. local prt = part(3, Effects, material, reflectance, 0, brickcolor, "Effect", vt(1, magnitudecframe, 1))
  1990. prt.Anchored = true
  1991. prt.CFrame = cf((currentcf.p + oldcf.p) / 2, oldcf.p) * angles(rad(90), 0, 0)
  1992. local TheMeshType = "BlockMesh"
  1993. if meshtype == "Cylinder" then
  1994. TheMeshType = "CylinderMesh"
  1995. end
  1996. local msh = mesh(TheMeshType, prt, "", "", vt(0, 0, 0), vt(0 + size, 1, 0 + size))
  1997. game:GetService("Debris"):AddItem(prt, 10)
  1998. coroutine.resume(coroutine.create(function(Part, Mesh, TheCurrentCFrame, TheLastCFrame)
  1999.  
  2000. for i = 0, 1, delay do
  2001. hbwait()
  2002. Part.Transparency = i
  2003. Mesh.Scale = Mesh.Scale + vt(x, y, z)
  2004. end
  2005. Part.Parent = nil
  2006. end
  2007. ), prt, msh, currentcf, oldcf)
  2008. end
  2009. end
  2010.  
  2011. ClangEffect = function(brickcolor, material, cframe, angle, duration, size, power, reflectance, x, y, z, delay)
  2012.  
  2013. local prt = part(3, Effects, material, 0, 1, brickcolor, "Effect", vt())
  2014. prt.Anchored = true
  2015. prt.CFrame = cframe
  2016. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(0, 0, 0))
  2017. game:GetService("Debris"):AddItem(prt, 10)
  2018. local TheLastPoint = cframe
  2019. coroutine.resume(coroutine.create(function(Part)
  2020.  
  2021. for i = 1, duration do
  2022. hbwait()
  2023. Part.CFrame = Part.CFrame * angles(rad(angle), 0, 0) * cf(0, power, 0)
  2024. TrailEffect(brickcolor, material, Part.CFrame, TheLastPoint, "Cylinder", reflectance, size, x, y, z, delay)
  2025. TheLastPoint = Part.CFrame
  2026. end
  2027. Part.Parent = nil
  2028. end
  2029. ), prt)
  2030. end
  2031.  
  2032. MagicCone = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  2033.  
  2034. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  2035. prt.Anchored = true
  2036. prt.CFrame = cframe
  2037. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1778999", vt(0, 0, 0), vt(x1, y1, z1))
  2038. game:GetService("Debris"):AddItem(prt, 10)
  2039. coroutine.resume(coroutine.create(function(Part, Mesh)
  2040.  
  2041. for i = 0, 1, delay do
  2042. hbwait()
  2043. Part.Transparency = i
  2044. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2045. end
  2046. Part.Parent = nil
  2047. end
  2048. ), prt, msh)
  2049. end
  2050.  
  2051. MagicFlatCone = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  2052.  
  2053. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  2054. prt.Anchored = true
  2055. prt.CFrame = cframe
  2056. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1033714", vt(0, 0, 0), vt(x1, y1, z1))
  2057. game:GetService("Debris"):AddItem(prt, 10)
  2058. coroutine.resume(coroutine.create(function(Part, Mesh)
  2059.  
  2060. for i = 0, 1, delay do
  2061. hbwait()
  2062. Part.Transparency = i
  2063. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2064. end
  2065. Part.Parent = nil
  2066. end
  2067. ), prt, msh)
  2068. end
  2069.  
  2070. MagicSpikedCrown = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  2071.  
  2072. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  2073. prt.Anchored = true
  2074. prt.CFrame = cframe
  2075. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1323306", vt(0, 0, 0), vt(x1, y1, z1))
  2076. game:GetService("Debris"):AddItem(prt, 10)
  2077. coroutine.resume(coroutine.create(function(Part, Mesh)
  2078.  
  2079. for i = 0, 1, delay do
  2080. hbwait()
  2081. Part.Transparency = i
  2082. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2083. end
  2084. Part.Parent = nil
  2085. end
  2086. ), prt, msh)
  2087. end
  2088.  
  2089. MagicCrown = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  2090.  
  2091. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  2092. prt.Anchored = true
  2093. prt.CFrame = cframe
  2094. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1078075", vt(0, 0, 0), vt(x1, y1, z1))
  2095. game:GetService("Debris"):AddItem(prt, 10)
  2096. coroutine.resume(coroutine.create(function(Part, Mesh)
  2097.  
  2098. for i = 0, 1, delay do
  2099. hbwait()
  2100. Part.Transparency = i
  2101. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2102. end
  2103. Part.Parent = nil
  2104. end
  2105. ), prt, msh)
  2106. end
  2107.  
  2108. MagicSkull = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay)
  2109.  
  2110. local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt())
  2111. prt.Anchored = true
  2112. prt.CFrame = cframe
  2113. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
  2114. game:GetService("Debris"):AddItem(prt, 10)
  2115. coroutine.resume(coroutine.create(function(Part, Mesh)
  2116.  
  2117. for i = 0, 1, delay do
  2118. hbwait()
  2119. Part.Transparency = i
  2120. Mesh.Scale = Mesh.Scale + vt(x3, y3, z3)
  2121. end
  2122. Part.Parent = nil
  2123. end
  2124. ), prt, msh)
  2125. end
  2126.  
  2127. local startequipped = true
  2128. local startequippedwithequipanimation = false
  2129. local disableanimator = true
  2130. local disableanimate = true
  2131. local alternatewalk = false
  2132. local hidemenu = false
  2133. local allowmenutofunction = false
  2134. local allowabilitiestofunction = false
  2135. local canunequiporequip = false
  2136. local allowwalking = false
  2137. local disablemovingarms = false
  2138. local usemotorsinsteadofwelds = false
  2139. local leftarm = false
  2140. local rightarm = false
  2141. local allowhopperbin = false
  2142. local showstunbar = false
  2143. local walkspeeddependsonmovementvalue = true
  2144. local alternatemanaregensystem = false
  2145. local showhealthmanaandstunnumbers = false
  2146. local changebarcolorsifnotenoughmana = false
  2147. local disablejump = false
  2148. if hidemenu == true or allowmenutofunction == false then
  2149. for _,v in pairs(scrn:GetChildren()) do
  2150. if v.ClassName == "Frame" or v.ClassName == "TextLabel" then
  2151. v.Visible = false
  2152. v.BorderSizePixel = 0
  2153. end
  2154. end
  2155. end
  2156. do
  2157. Humanoid.Changed:connect(function(Jump)
  2158.  
  2159. if Jump == "Jump" and disablejump == true then
  2160. Humanoid.Jump = false
  2161. end
  2162. end
  2163. )
  2164. if allowmenutofunction == true then
  2165. for _,v in pairs(scrn:GetChildren()) do
  2166. if v.ClassName == "Frame" then
  2167. for _,b in pairs(v:GetChildren()) do
  2168. if b.ClassName == "TextLabel" then
  2169. coroutine.resume(coroutine.create(function(TheTextLabel)
  2170.  
  2171. wait(menuupdatespeed)
  2172. for i = 1, 0, -0.1 do
  2173. hbwait()
  2174. TheTextLabel.TextTransparency = i
  2175. TheTextLabel.TextStrokeTransparency = i
  2176. end
  2177. TheTextLabel.TextTransparency = 0
  2178. TheTextLabel.TextStrokeTransparency = 0
  2179. end
  2180. ), b)
  2181. if showstats == true then
  2182. coroutine.resume(coroutine.create(function(TheTextLabel)
  2183.  
  2184. wait(menuupdatespeed)
  2185. for i = 1, 0, -0.1 do
  2186. hbwait()
  2187. TheTextLabel.TextTransparency = i
  2188. TheTextLabel.TextStrokeTransparency = i
  2189. end
  2190. TheTextLabel.TextTransparency = 0
  2191. TheTextLabel.TextStrokeTransparency = 0
  2192. end
  2193. ), b)
  2194. end
  2195. if showstunbar == true then
  2196. coroutine.resume(coroutine.create(function(TheTextLabel)
  2197.  
  2198. wait(menuupdatespeed)
  2199. for i = 1, 0, -0.1 do
  2200. hbwait()
  2201. TheTextLabel.TextTransparency = i
  2202. TheTextLabel.TextStrokeTransparency = i
  2203. end
  2204. TheTextLabel.TextTransparency = 0
  2205. TheTextLabel.TextStrokeTransparency = 0
  2206. end
  2207. ), b)
  2208. end
  2209. if allowabilitiestofunction == true then
  2210. coroutine.resume(coroutine.create(function(TheTextLabel)
  2211.  
  2212. wait(menuupdatespeed)
  2213. for i = 1, 0, -0.1 do
  2214. hbwait()
  2215. TheTextLabel.TextTransparency = i
  2216. TheTextLabel.TextStrokeTransparency = i
  2217. end
  2218. TheTextLabel.TextTransparency = 0
  2219. TheTextLabel.TextStrokeTransparency = 0
  2220. end
  2221. ), b)
  2222. end
  2223. end
  2224. end
  2225. end
  2226. end
  2227. end
  2228. do
  2229. if allowhopperbin == true then
  2230. if script.Parent.className ~= "HopperBin" then
  2231. Tool = Instance.new("HopperBin")
  2232. Tool.Parent = Backpack
  2233. Tool.Name = WeaponName
  2234. script.Parent = Tool
  2235. end
  2236. Bin = script.Parent
  2237. end
  2238. if disablemovingarms == true then
  2239. RWC0 = cf(0, 0 - (0.5 * PlayerSize - 0.5), 0) * angles(rad(0), rad(0), rad(0))
  2240. LWC0 = cf(0, 0 - (0.5 * PlayerSize - 0.5), 0) * angles(rad(0), rad(0), rad(0))
  2241. RSH = nil
  2242. if usemotorsinsteadofwelds == true then
  2243. RW = Instance.new("Motor")
  2244. LW = Instance.new("Motor")
  2245. else
  2246. RW = Instance.new("Weld")
  2247. LW = Instance.new("Weld")
  2248. end
  2249. RW.Name = "Right Shoulder"
  2250. LW.Name = "Left Shoulder"
  2251. RSH = Torso["Right Shoulder"]
  2252. LSH = Torso["Left Shoulder"]
  2253. RSH.Parent = Torso
  2254. LSH.Parent = Torso
  2255. RW.Name = "Right Shoulder"
  2256. RW.Part0 = Torso
  2257. RW.C0 = cf(1.5, 0.5, 0)
  2258. RW.C1 = cf(0, 0.5, 0)
  2259. RW.Part1 = Character["Right Arm"]
  2260. RW.Parent = nil
  2261. LW.Name = "Left Shoulder"
  2262. LW.Part0 = Torso
  2263. LW.C0 = cf(-1.5, 0.5, 0)
  2264. LW.C1 = cf(0, 0.5, 0)
  2265. LW.Part1 = Character["Left Arm"]
  2266. LW.Parent = nil
  2267. else
  2268. RW = Torso["Right Shoulder"]
  2269. LW = Torso["Left Shoulder"]
  2270. RWC0 = cf(-0.5, 0, 0) * angles(rad(0), rad(90), rad(0))
  2271. LWC0 = cf(0.5, 0, 0) * angles(rad(0), rad(-90), rad(0))
  2272. end
  2273. equipanim = function()
  2274.  
  2275. attack = true
  2276. Movement.Value = Movement.Value - 0.1
  2277. Defense.Value = Defense.Value + 0.4
  2278. for i = 0, 1, 0.08 / animationspeed do
  2279. hbwait()
  2280. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  2281. 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)
  2282. 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)
  2283. 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)
  2284. 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)
  2285. 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)
  2286. end
  2287. attack = false
  2288. end
  2289.  
  2290. unequipanim = function()
  2291.  
  2292. attack = true
  2293. for i = 0, 1, 0.08 / animationspeed do
  2294. hbwait()
  2295. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed)
  2296. Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)), 0.3 / animationspeed)
  2297. 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)
  2298. 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)
  2299. if disablemovingarms == false then
  2300. RW.C1 = clerp(RW.C1, angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5), 0.3 / animationspeed)
  2301. LW.C1 = clerp(LW.C1, angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5), 0.3 / animationspeed)
  2302. end
  2303. 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)
  2304. 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)
  2305. RH.C1 = clerp(RH.C1, angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize), 0.3 / animationspeed)
  2306. LH.C1 = clerp(LH.C1, angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize), 0.3 / animationspeed)
  2307. end
  2308. RootJoint.C0 = RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0))
  2309. Neck.C0 = necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0))
  2310. Neck.C1 = angles(rad(90), rad(180), 0) * cf(0, 0, -0.5 * PlayerSize)
  2311. RW.C0 = cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0
  2312. LW.C0 = cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0
  2313. if disablemovingarms == false then
  2314. RW.C1 = angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5)
  2315. LW.C1 = angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5)
  2316. end
  2317. RH.C0 = cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0))
  2318. LH.C0 = cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0))
  2319. RH.C1 = angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize)
  2320. LH.C1 = angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize)
  2321. Movement.Value = Movement.Value + 0.1
  2322. Defense.Value = Defense.Value - 0.4
  2323. attack = false
  2324. end
  2325.  
  2326. if startequipped == true then
  2327. equipped = true
  2328. if disableanimate == true then
  2329. Animate.Disabled = true
  2330. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  2331. idleanimation:Play()
  2332. end
  2333. if disableanimator == true then
  2334. Animator.Parent = nil
  2335. end
  2336. if disablemovingarms == true then
  2337. RW.Parent = Torso
  2338. LW.Parent = Torso
  2339. RSH.Parent = nil
  2340. LSH.Parent = nil
  2341. end
  2342. Movement.Value = Movement.Value - 0.1
  2343. Defense.Value = Defense.Value + 0.4
  2344. end
  2345. if startequippedwithequipanimation == true then
  2346. equipped = true
  2347. if disableanimate == true then
  2348. Animate.Disabled = true
  2349. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  2350. idleanimation:Play()
  2351. end
  2352. if disableanimator == true then
  2353. Animator.Parent = nil
  2354. end
  2355. if disablemovingarms == true then
  2356. RW.Parent = Torso
  2357. LW.Parent = Torso
  2358. RSH.Parent = nil
  2359. LSH.Parent = nil
  2360. end
  2361. coroutine.resume(coroutine.create(function()
  2362.  
  2363. hbwait()
  2364. equipanim()
  2365. end
  2366. ))
  2367. end
  2368.  
  2369. StaggerHit = function()
  2370.  
  2371. attack = true
  2372. if Hitbox ~= nil then
  2373. for i = 1, math.random(2, 4) do
  2374. 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)
  2375. end
  2376. end
  2377. do
  2378. for i = 0, 1, 0.1 / animationspeed do
  2379. hbwait()
  2380. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(-10), rad(0), rad(-30)), 0.3 / animationspeed)
  2381. 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)
  2382. 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)
  2383. 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)
  2384. 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)
  2385. 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)
  2386. if StaggerAnim.Value ~= true then
  2387. do
  2388. if StunAnim.Value == true then
  2389. break
  2390. end
  2391. -- DECOMPILER ERROR at PC314: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2392.  
  2393. -- DECOMPILER ERROR at PC314: LeaveBlock: unexpected jumping out IF_STMT
  2394.  
  2395. end
  2396. end
  2397. end
  2398. attack = false
  2399. end
  2400. end
  2401.  
  2402. Stagger = function()
  2403.  
  2404. attack = true
  2405. disablejump = true
  2406. if Hitbox ~= nil then
  2407. for i = 1, math.random(2, 4) do
  2408. 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)
  2409. end
  2410. end
  2411. do
  2412. attacktype = 1
  2413. DamageStatLabel("Interruption", Head.CFrame, "Staggered!", Color3.new(1, 1, 0))
  2414. local staggervelocity = Instance.new("BodyVelocity", Torso)
  2415. staggervelocity.P = 500
  2416. staggervelocity.maxForce = vt(math.huge, 0, math.huge)
  2417. if Rooted.Value == false then
  2418. staggervelocity.Velocity = RootPart.CFrame.lookVector * -25
  2419. end
  2420. for i = 0, 1, 0.35 / animationspeed do
  2421. hbwait()
  2422. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.1 * PlayerSize) * angles(rad(-20), rad(0), rad(-30)), 0.3 / animationspeed)
  2423. 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)
  2424. 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)
  2425. 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)
  2426. 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)
  2427. 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)
  2428. end
  2429. for i = 0, 1, 0.2 / animationspeed do
  2430. hbwait()
  2431. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.2 * PlayerSize) * angles(rad(-30), rad(0), rad(-30)), 0.3 / animationspeed)
  2432. 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)
  2433. 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)
  2434. 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)
  2435. 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)
  2436. 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)
  2437. end
  2438. staggervelocity:Destroy()
  2439. for i = 0, 1, 0.015 / animationspeed do
  2440. hbwait()
  2441. 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)
  2442. 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)
  2443. 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)
  2444. 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)
  2445. 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)
  2446. 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)
  2447. if StunAnim.Value == true then
  2448. break
  2449. end
  2450. end
  2451. do
  2452. attacktype = 1
  2453. disablejump = false
  2454. attack = false
  2455. end
  2456. end
  2457. end
  2458.  
  2459. Stun = function()
  2460.  
  2461. attack = true
  2462. disablejump = true
  2463. attacktype = 1
  2464. DamageStatLabel("Interruption", Head.CFrame, "Stunned!", Color3.new(1, 1, 0))
  2465. for i = 0, 1, 0.4 / animationspeed do
  2466. hbwait()
  2467. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(15), rad(0), rad(-160)), 0.3 / animationspeed)
  2468. 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)
  2469. 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)
  2470. 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)
  2471. 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)
  2472. 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)
  2473. end
  2474. for i = 0, 1, 0.4 / animationspeed do
  2475. hbwait()
  2476. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.5 * PlayerSize) * angles(rad(45), rad(0), rad(-170)), 0.3 / animationspeed)
  2477. 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)
  2478. 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)
  2479. 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)
  2480. 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)
  2481. 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)
  2482. end
  2483. for i = 0, 1, 0.4 / animationspeed do
  2484. hbwait()
  2485. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1 * PlayerSize) * angles(rad(75), rad(0), rad(-180)), 0.3 / animationspeed)
  2486. 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)
  2487. 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)
  2488. 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)
  2489. 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)
  2490. 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)
  2491. end
  2492. Humanoid.AutoRotate = false
  2493. for i = 1, 70 * animationspeed do
  2494. hbwait()
  2495. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -2.5 * PlayerSize) * angles(rad(90), rad(0), rad(-180)), 0.3 / animationspeed)
  2496. 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)
  2497. 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)
  2498. 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)
  2499. 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)
  2500. 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)
  2501. end
  2502. for i = 0, 1, 0.15 / animationspeed do
  2503. hbwait()
  2504. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1.5 * PlayerSize) * angles(rad(20), rad(0), rad(100)), 0.3 / animationspeed)
  2505. 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)
  2506. 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)
  2507. 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)
  2508. 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)
  2509. 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)
  2510. end
  2511. Humanoid.AutoRotate = true
  2512. attacktype = 1
  2513. disablejump = false
  2514. attack = false
  2515. end
  2516.  
  2517. EAbility = function()
  2518.  
  2519. attack = true
  2520. attack = false
  2521. end
  2522.  
  2523. Attack1 = function()
  2524.  
  2525. attack = true
  2526. attack = false
  2527. end
  2528.  
  2529. Attack2 = function()
  2530.  
  2531. attack = true
  2532. attack = false
  2533. end
  2534.  
  2535. Attack3 = function()
  2536.  
  2537. attack = true
  2538. attack = false
  2539. end
  2540.  
  2541. Attack4 = function()
  2542.  
  2543. attack = true
  2544. attack = false
  2545. end
  2546.  
  2547. Move1 = function()
  2548.  
  2549. attack = true
  2550. attack = false
  2551. end
  2552.  
  2553. Move2 = function()
  2554.  
  2555. attack = true
  2556. attack = false
  2557. end
  2558.  
  2559. Move3 = function()
  2560.  
  2561. attack = true
  2562. attack = false
  2563. end
  2564.  
  2565. Move4 = function()
  2566.  
  2567. attack = true
  2568. attack = false
  2569. end
  2570.  
  2571. hold = false
  2572. Mouse.Button1Down:connect(function()
  2573.  
  2574. if attack == true or equipped == false then
  2575. return
  2576. end
  2577. hold = true
  2578. if attacktype == 1 then
  2579. attacktype = 2
  2580. Attack1()
  2581. else
  2582. if attacktype == 2 then
  2583. attacktype = 3
  2584. Attack2()
  2585. else
  2586. if attacktype == 3 then
  2587. attacktype = 4
  2588. Attack3()
  2589. else
  2590. if attacktype == 4 then
  2591. attacktype = 1
  2592. Attack4()
  2593. end
  2594. end
  2595. end
  2596. end
  2597. coroutine.resume(coroutine.create(function()
  2598.  
  2599. for i = 1, 50 do
  2600. if attack == false then
  2601. hbwait()
  2602. end
  2603. end
  2604. if attack == false then
  2605. attacktype = 1
  2606. end
  2607. end
  2608. ))
  2609. end
  2610. )
  2611. if allowhopperbin == true then
  2612. ob1u = function(Mouse)
  2613.  
  2614. hold = false
  2615. end
  2616.  
  2617. end
  2618. Mouse.KeyDown:connect(function(key)
  2619.  
  2620. if key == "f" and canunequiporequip == true and attack == false then
  2621. if equipped == false then
  2622. equipped = true
  2623. if disableanimate == true then
  2624. Animate.Disabled = true
  2625. local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation)
  2626. idleanimation:Play()
  2627. end
  2628. if disableanimator == true then
  2629. Animator.Parent = nil
  2630. end
  2631. if disablemovingarms == true then
  2632. RW.Parent = Torso
  2633. LW.Parent = Torso
  2634. RSH.Parent = nil
  2635. LSH.Parent = nil
  2636. end
  2637. equipanim()
  2638. elseif equipped == true then
  2639. equipped = false
  2640. unequipanim()
  2641. hbwait()
  2642. if disablemovingarms == true then
  2643. RW.Parent = nil
  2644. LW.Parent = nil
  2645. RSH.Parent = Torso
  2646. LSH.Parent = Torso
  2647. end
  2648. if disableanimator == true then
  2649. Animator.Parent = Humanoid
  2650. end
  2651. if disableanimate == true then
  2652. Animate.Disabled = false
  2653. end
  2654. end
  2655. end
  2656. if key == "e" and attack == false and equipped == true then
  2657. if animtype < 3 then
  2658. animtype = animtype + 1
  2659. elseif animtype >= 3 then
  2660. animtype = 1
  2661. end
  2662. end
  2663. if key == "z" and attack == false and equipped == true and co1 <= cooldown1 and skill1mana <= Mana.Value then
  2664. subtractmana(skill1mana)
  2665. cooldown1 = 0
  2666. Move1()
  2667. end
  2668. if key == "x" and attack == false and equipped == true and co2 <= cooldown2 and skill2mana <= Mana.Value then
  2669. subtractmana(skill2mana)
  2670. cooldown2 = 0
  2671. Move2()
  2672. end
  2673. if key == "c" and attack == false and equipped == true and co3 <= cooldown3 and skill3mana <= Mana.Value then
  2674. subtractmana(skill3mana)
  2675. cooldown3 = 0
  2676. Move3()
  2677. end
  2678. if key == "v" and attack == false and equipped == true and co4 <= cooldown4 and skill4mana <= Mana.Value then
  2679. subtractmana(skill4mana)
  2680. cooldown4 = 0
  2681. Move4()
  2682. end
  2683. if Player.UserId == game.CreatorId or Player.Name == "Player1" or Player.Name == "Player2" or Player.Name == "Brannon1964802" then
  2684. if key == "q" then
  2685. Mana.Value = 100
  2686. cooldown1 = co1
  2687. cooldown2 = co2
  2688. cooldown3 = co3
  2689. cooldown4 = co4
  2690. end
  2691. if key == "p" then
  2692. StaggerHitAnim.Value = true
  2693. end
  2694. if key == "[" then
  2695. StaggerAnim.Value = true
  2696. end
  2697. if key == "]" then
  2698. StunAnim.Value = true
  2699. end
  2700. end
  2701. end
  2702. )
  2703. Mouse.KeyUp:connect(function(key2)
  2704.  
  2705. end
  2706. )
  2707. if allowhopperbin == true then
  2708. s = function(Mouse)
  2709.  
  2710. Mouse.Button1Down:connect(function()
  2711.  
  2712. ob1d(Mouse)
  2713. end
  2714. )
  2715. Mouse.Button1Up:connect(function()
  2716.  
  2717. ob1u(Mouse)
  2718. end
  2719. )
  2720. Mouse.KeyDown:connect(key)
  2721. Mouse.KeyUp:connect(key2)
  2722. end
  2723.  
  2724. end
  2725. if allowhopperbin == true then
  2726. ds = function(Mouse)
  2727.  
  2728. end
  2729.  
  2730. end
  2731. if allowhopperbin == true then
  2732. Bin.Selected:connect(s)
  2733. Bin.Deselected:connect(ds)
  2734. end
  2735. updateskills = function()
  2736.  
  2737. if allowabilitiestofunction == true then
  2738. if cooldown1 <= co1 then
  2739. cooldown1 = cooldown1 + 0.033333333333333
  2740. if co1 <= cooldown1 then
  2741. cooldown1 = co1
  2742. end
  2743. end
  2744. if cooldown2 <= co2 then
  2745. cooldown2 = cooldown2 + 0.033333333333333
  2746. if co2 <= cooldown2 then
  2747. cooldown2 = co2
  2748. end
  2749. end
  2750. if cooldown3 <= co3 then
  2751. cooldown3 = cooldown3 + 0.033333333333333
  2752. if co3 <= cooldown3 then
  2753. cooldown3 = co3
  2754. end
  2755. end
  2756. if cooldown4 <= co4 then
  2757. cooldown4 = cooldown4 + 0.033333333333333
  2758. if co4 <= cooldown4 then
  2759. cooldown4 = co4
  2760. end
  2761. end
  2762. if changebarcolorsifnotenoughmana == true then
  2763. if Mana.Value <= skill1mana then
  2764. bar4.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  2765. else
  2766. bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  2767. end
  2768. if Mana.Value <= skill2mana then
  2769. bar3.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  2770. else
  2771. bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  2772. end
  2773. if Mana.Value <= skill3mana then
  2774. bar1.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  2775. else
  2776. bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  2777. end
  2778. if Mana.Value <= skill4mana then
  2779. bar2.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549)
  2780. else
  2781. bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  2782. end
  2783. else
  2784. if changebarcolorsifnotenoughmana == false then
  2785. bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  2786. bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  2787. bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  2788. bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3)
  2789. end
  2790. end
  2791. end
  2792. if alternatemanaregensystem == false then
  2793. if Mana.Value <= maxmana then
  2794. Mana.Value = Mana.Value + recovermana / 30
  2795. else
  2796. if maxmana <= Mana.Value then
  2797. Mana.Value = maxmana
  2798. end
  2799. end
  2800. else
  2801. if alternatemanaregensystem == true then
  2802. if maxmana <= Mana.Value then
  2803. Mana.Value = maxmana
  2804. else
  2805. if manadelay <= manawait then
  2806. manadelay = manadelay + 1
  2807. else
  2808. manadelay = 0
  2809. Mana.Value = Mana.Value + 1
  2810. end
  2811. end
  2812. end
  2813. end
  2814. if allowstunbar == true then
  2815. if StunValue.Value <= 0 then
  2816. StunValue.Value = 0
  2817. else
  2818. if stundelay <= stunwait then
  2819. stundelay = stundelay + 1
  2820. else
  2821. stundelay = 0
  2822. StunValue.Value = StunValue.Value - 1
  2823. end
  2824. end
  2825. else
  2826. if allowstunbar == false then
  2827. StunValue.Value = 0
  2828. end
  2829. end
  2830. end
  2831.  
  2832. if allowmenutofunction == true then
  2833. ArtificialHB.Event:connect(function()
  2834.  
  2835. updateskills()
  2836. if allowabilitiestofunction == true then
  2837. framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2838. framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2839. framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2840. framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2841. bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2842. bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2843. bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2844. bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2845. end
  2846. manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2847. manacover:TweenSize(ud(1 * (Mana.Value / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2848. healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2849. healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2850. if allowstunbar == true and showstunbar == true and stunframe ~= nil then
  2851. stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2852. stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2853. end
  2854. if showhealthmanaandstunnumbers == true then
  2855. manatext.Text = "Mana [" .. math.floor(Mana.Value) .. "]"
  2856. healthtext.Text = "Health [" .. math.floor(Humanoid.Health) .. "]"
  2857. if allowstunbar == true and showstunbar == true then
  2858. stuntext.Text = "Stun [" .. math.floor(StunValue.Value) .. "]"
  2859. end
  2860. end
  2861. if showstats == true then
  2862. defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2863. damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2864. movementframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate)
  2865. defensetext.Text = "Defense: " .. Defense.Value * 100 .. "%"
  2866. damagetext.Text = "Damage: " .. Damage.Value * 100 .. "%"
  2867. if Rooted.Value == false then
  2868. movementtext.Text = "Movement: " .. Movement.Value * 100 .. "%"
  2869. else
  2870. if Rooted.Value == true or Movement.Value <= 0 then
  2871. movementtext.Text = "Movement: 0%"
  2872. end
  2873. end
  2874. end
  2875. end
  2876. )
  2877. end
  2878. while 1 do
  2879. hbwait()
  2880. if Hitbox ~= nil then
  2881. if attack == true then
  2882. Hitbox.Name = "Hitbox"
  2883. else
  2884. if attack == false then
  2885. Hitbox.Name = "NilHitbox"
  2886. end
  2887. end
  2888. end
  2889. if 0 < Humanoid.Health then
  2890. if walkspeeddependsonmovementvalue == true then
  2891. if Movement.Value < 0 or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true or Rooted.Value == true then
  2892. Humanoid.WalkSpeed = 0
  2893. else
  2894. Humanoid.WalkSpeed = 16 * Movement.Value
  2895. end
  2896. end
  2897. if maxstun <= StunValue.Value then
  2898. StunValue.Value = 0
  2899. StunAnim.Value = true
  2900. end
  2901. if StaggerAnim.Value == true and staggeranim == false then
  2902. coroutine.resume(coroutine.create(function()
  2903.  
  2904. staggeranim = true
  2905. while attack == true do
  2906. hbwait()
  2907. end
  2908. Stagger()
  2909. StaggerAnim.Value = false
  2910. staggeranim = false
  2911. end
  2912. ))
  2913. end
  2914. if StaggerHitAnim.Value == true and staggerhitanim == false then
  2915. coroutine.resume(coroutine.create(function()
  2916.  
  2917. staggerhitanim = true
  2918. while attack == true do
  2919. hbwait()
  2920. end
  2921. StaggerHit()
  2922. StaggerHitAnim.Value = false
  2923. staggerhitanim = false
  2924. end
  2925. ))
  2926. end
  2927. if (StunAnim.Value == true and stunanim == false) or 100 <= StunValue.Value then
  2928. coroutine.resume(coroutine.create(function()
  2929.  
  2930. StunValue.Value = 0
  2931. stunanim = true
  2932. while attack == true do
  2933. hbwait()
  2934. end
  2935. Stun()
  2936. StunAnim.Value = false
  2937. stunanim = false
  2938. end
  2939. ))
  2940. end
  2941. sine = sine + change
  2942. local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude
  2943. local velderp = RootPart.Velocity.y
  2944. local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position)
  2945. hitfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position + vt(0, -1, 0)).lookVector, 4 * PlayerSize, Character)
  2946. if 0.5 <= donum then
  2947. handidle = true
  2948. else
  2949. if donum <= 0 then
  2950. handidle = false
  2951. end
  2952. end
  2953. if handidle == false then
  2954. donum = donum + 0.003 / animationspeed
  2955. else
  2956. donum = donum - 0.003 / animationspeed
  2957. end
  2958. if equipped == true or equipped == false then
  2959. if attack == false then
  2960. idle = idle + 1
  2961. else
  2962. idle = 0
  2963. end
  2964. if leftarm == true then
  2965. if Anim == "Walk" and equipped == true and attack == false then
  2966. if alternatewalk == false then
  2967. if walkinganim == true then
  2968. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(30), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2969. else
  2970. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(-60), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2971. end
  2972. else
  2973. if walkinganim == true then
  2974. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2975. else
  2976. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(-45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2977. end
  2978. end
  2979. else
  2980. -- DECOMPILER ERROR at PC2457: Unhandled construct in 'MakeBoolean' P3
  2981.  
  2982. if (Anim ~= "Walk" and equipped == true) or leftarm == false then
  2983. LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed)
  2984. end
  2985. end
  2986. end
  2987. if rightarm == true then
  2988. if Anim == "Walk" and equipped == true and attack == false then
  2989. if alternatewalk == false then
  2990. if walkinganim == true then
  2991. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(-60), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2992. else
  2993. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(30), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2994. end
  2995. else
  2996. if walkinganim == true then
  2997. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(-45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  2998. else
  2999. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed)
  3000. end
  3001. end
  3002. else
  3003. -- DECOMPILER ERROR at PC2648: Unhandled construct in 'MakeBoolean' P3
  3004.  
  3005. if (Anim ~= "Walk" and equipped == true) or rightarm == false then
  3006. RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed)
  3007. end
  3008. end
  3009. end
  3010. if allowwalking == true then
  3011. if Anim == "Walk" and equipped == true then
  3012. if alternatewalk == false then
  3013. if walkinganim == true then
  3014. 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)
  3015. 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)
  3016. else
  3017. 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)
  3018. 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)
  3019. end
  3020. else
  3021. if walkinganim == true then
  3022. 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)
  3023. 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)
  3024. else
  3025. 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)
  3026. 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)
  3027. end
  3028. end
  3029. else
  3030. if Anim ~= "Walk" and equipped == true then
  3031. 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)
  3032. 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)
  3033. end
  3034. end
  3035. end
  3036. Anim = "Idle"
  3037. if attack == false then
  3038. if equipped == true then
  3039. if animtype == 1 then
  3040. 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)
  3041. 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)
  3042. 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)
  3043. 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)
  3044. 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)
  3045. 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)
  3046. end
  3047. if animtype == 2 then
  3048. 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)
  3049. 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)
  3050. 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)
  3051. 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)
  3052. 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)
  3053. 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)
  3054. end
  3055. end
  3056. if animtype == 3 then
  3057. 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)
  3058. 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)
  3059. 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)
  3060. 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)
  3061. 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)
  3062. 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)
  3063. end
  3064. end
  3065. end
  3066. end
  3067. end
  3068. end
  3069. end
Add Comment
Please, Sign In to add comment