Dark_EccentricYT

Untitled

Jun 28th, 2017
647
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 119.20 KB | None | 0 0
  1. -- http://hastebin.com/raw/losesotuwa.lua
  2.  
  3. Player = game:GetService("Players").LocalPlayer
  4. Character = Player.Character
  5. PlayerGui = Player.PlayerGui
  6. Backpack = Player.Backpack
  7. Torso = Character.Torso
  8. Head = Character.Head
  9. Humanoid = Character.Humanoid
  10. LeftArm = Character["Left Arm"]
  11. LeftLeg = Character["Left Leg"]
  12. RightArm = Character["Right Arm"]
  13. RightLeg = Character["Right Leg"]
  14. LS = Torso["Left Shoulder"]
  15. LH = Torso["Left Hip"]
  16. RS = Torso["Right Shoulder"]
  17. RH = Torso["Right Hip"]
  18. Neck = Torso.Neck
  19. it = Instance.new
  20. vt = Vector3.new
  21. cf = CFrame.new
  22. euler = CFrame.fromEulerAnglesXYZ
  23. angles = CFrame.Angles
  24. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  25. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  26. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  27. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  28. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  29. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  30. RootPart = Character.HumanoidRootPart
  31. RootJoint = RootPart.RootJoint
  32. RootCF = euler(-1.57, 0, 3.14)
  33. attack = false
  34. attackdebounce = false
  35. MMouse = Player:GetMouse()
  36. combo = 0
  37. local hitfloor, posfloor = nil, nil
  38. local idle = 0
  39. local Anim = "Idle"
  40. local graviting = false
  41. local distort = 100
  42. local doanim = true
  43. local Effects = {}
  44. local Weapon = {}
  45. local Welds = {}
  46. local decreaseatk = 0
  47. local decreasedef = 0
  48. local decreasemvmt = 0
  49. local doingcomb = false
  50. local distorcharge = false
  51. local move4do = false
  52. local move1 = "(Z)\nClock"
  53. local move2 = "(X)\nGravity Impact"
  54. local move3 = "(C)\nTime Blink"
  55. local move4 = "(V)\nTemporal Waltz"
  56. local cooldowns = {}
  57. local cooldown1 = 0
  58. table.insert(cooldowns, cooldown1)
  59. local cooldown2 = 0
  60. table.insert(cooldowns, cooldown2)
  61. local cooldown3 = 0
  62. table.insert(cooldowns, cooldown3)
  63. local cooldown4 = 0
  64. table.insert(cooldowns, cooldown4)
  65. local cooldownsadd = {}
  66. local cooldownadd1 = 0.2
  67. table.insert(cooldownsadd, cooldownadd1)
  68. local cooldownadd2 = 0.25
  69. table.insert(cooldownsadd, cooldownadd2)
  70. local cooldownadd3 = 0.4
  71. table.insert(cooldownsadd, cooldownadd3)
  72. local cooldownadd4 = 0.1
  73. table.insert(cooldownsadd, cooldownadd4)
  74. local cooldownmax = 100
  75. player = nil
  76. RSH = nil
  77. RW = Instance.new("Motor")
  78. LW = Instance.new("Motor")
  79. RW.Name = "Right Shoulder"
  80. LW.Name = "Left Shoulder"
  81. LH = Torso["Left Hip"]
  82. RH = Torso["Right Hip"]
  83. TorsoColor = Torso.BrickColor
  84. TorsoRed = TorsoColor.Color.r
  85. TorsoGreen = TorsoColor.Color.g
  86. NewCol = BrickColor.new("Dark green").Color
  87. NewCol2 = Color3.new(0, 0.86274509803922, 0.86274509803922)
  88. print(BrickColor.new(NewCol2))
  89. local mdec = Instance.new("NumberValue", Decrease)
  90. mdec.Name = "DecreaseDef"
  91. mdec.Value = 0.4
  92. local mdec2 = Instance.new("NumberValue", Decrease)
  93. mdec2.Name = "DecreaseMvmt"
  94. mdec2.Value = 0.1
  95. local Animate = Humanoid.Animator
  96. local canjump = true
  97. removeControl = function()
  98. canjump = false
  99. end
  100. resumeControl = function()
  101. canjump = true
  102. end
  103. Player.Character.Humanoid.Changed:connect(function()
  104. if canjump == false then
  105. Player.Character.Humanoid.Jump = false
  106. end
  107. end)
  108. ArtificialHB = Instance.new("BindableEvent", script)
  109. ArtificialHB.Name = "Heartbeat"
  110.  
  111. script:WaitForChild("Heartbeat")
  112.  
  113. frame = 1 / 40
  114. tf = 0
  115. allowframeloss = true
  116. tossremainder = false
  117. lastframe = tick()
  118. script.Heartbeat:Fire()
  119.  
  120. game:GetService("RunService").Heartbeat:connect(function(s, p)
  121. tf = tf + s
  122. if tf >= frame then
  123. if allowframeloss then
  124. script.Heartbeat:Fire()
  125. lastframe = tick()
  126. else
  127. for i = 1, math.floor(tf / frame) do
  128. script.Heartbeat:Fire()
  129. end
  130. lastframe = tick()
  131. end
  132. if tossremainder then
  133. tf = 0
  134. else
  135. tf = tf - frame * math.floor(tf / frame)
  136. end
  137. end
  138. end)
  139.  
  140. function swait(num)
  141. if num == 0 or num == nil then
  142. ArtificialHB.Event:wait()
  143. else
  144. for i = 0, num do
  145. ArtificialHB.Event:wait()
  146. end
  147. end
  148. end
  149. if Character:findFirstChild("Kam\'s Hand", true) ~= nil then
  150. Character:findFirstChild("Kam\'s Hand", true).Parent = nil
  151. end
  152. if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then
  153. Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil
  154. end
  155. if Character:findFirstChild("Stats", true) ~= nil then
  156. Character:findFirstChild("Stats", true).Parent = nil
  157. end
  158. local Stats = Instance.new("BoolValue")
  159. Stats.Name = "Stats"
  160. Stats.Parent = Character
  161. local Atk = Instance.new("NumberValue")
  162. Atk.Name = "Damage"
  163. Atk.Parent = Stats
  164. Atk.Value = 1
  165. local Def = Instance.new("NumberValue")
  166. Def.Name = "Defense"
  167. Def.Parent = Stats
  168. Def.Value = 1
  169. local Mvmt = Instance.new("NumberValue")
  170. Mvmt.Name = "Movement"
  171. Mvmt.Parent = Stats
  172. Mvmt.Value = 1
  173. local Block = Instance.new("BoolValue")
  174. Block.Name = "Block"
  175. Block.Parent = Stats
  176. Block.Value = false
  177. local Stun = Instance.new("NumberValue")
  178. Stun.Name = "Stun"
  179. Stun.Parent = Stats
  180. Stun.Value = 0
  181. local StunT = Instance.new("NumberValue")
  182. StunT.Name = "StunThreshold"
  183. StunT.Parent = Stats
  184. StunT.Value = 100
  185. local Rooted = Instance.new("BoolValue")
  186. Rooted.Name = "Rooted"
  187. Rooted.Parent = Stats
  188. Rooted.Value = false
  189. local Stunned = Instance.new("BoolValue")
  190. Stunned.Name = "Stunned"
  191. Stunned.Parent = Stats
  192. Stunned.Value = false
  193. local Stagger = Instance.new("BoolValue")
  194. Stagger.Name = "Stagger"
  195. Stagger.Parent = Stats
  196. Stagger.Value = false
  197. local StaggerHit = Instance.new("BoolValue")
  198. StaggerHit.Name = "StaggerHit"
  199. StaggerHit.Parent = Stats
  200. StaggerHit.Value = false
  201. local RecentEnemy = Instance.new("ObjectValue")
  202. RecentEnemy.Name = "RecentEnemy"
  203. RecentEnemy.Parent = Stats
  204. RecentEnemy.Value = nil
  205. local Decrease = Instance.new("BoolValue")
  206. Decrease.Name = "Decrease"
  207. Decrease.Parent = Stats
  208. Decrease.Value = false
  209. local mana = Instance.new("NumberValue")
  210. mana.Name = "Mana"
  211. mana.Parent = Stats
  212. mana.Value = 0
  213. passive1 = Instance.new("NumberValue", nil)
  214. passive1.Name = "DecreaseAtk"
  215. passive1.Value = -0.3
  216. passive2 = Instance.new("NumberValue", nil)
  217. passive2.Name = "DecreaseDef"
  218. passive2.Value = 0.1
  219. NoOutline = function(Part)
  220. Part.TopSurface = 10
  221. end
  222. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  223. local fp = it("Part")
  224. fp.formFactor = formfactor
  225. fp.Parent = parent
  226. fp.Reflectance = reflectance
  227. fp.Transparency = transparency
  228. fp.CanCollide = false
  229. fp.Locked = true
  230. fp.BrickColor = brickcolor
  231. fp.Name = name
  232. fp.Size = size
  233. fp.Position = Torso.Position
  234. NoOutline(fp)
  235. fp.Material = "SmoothPlastic"
  236. fp:BreakJoints()
  237. return fp
  238. end
  239. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  240. local mesh = it(Mesh)
  241. mesh.Parent = part
  242. if Mesh == "SpecialMesh" then
  243. mesh.MeshType = meshtype
  244. if meshid ~= "nil" then
  245. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  246. end
  247. end
  248. mesh.Offset = offset
  249. mesh.Scale = scale
  250. return mesh
  251. end
  252. weld = function(parent, part0, part1, c0)
  253. local weld = it("Motor")
  254. weld.Parent = parent
  255. weld.Part0 = part0
  256. weld.Part1 = part1
  257. weld.C0 = c0
  258. return weld
  259. end
  260. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  261. local gui = it(GuiType)
  262. gui.Parent = parent
  263. gui.Text = text
  264. gui.BackgroundTransparency = backtrans
  265. gui.BackgroundColor3 = backcol
  266. gui.SizeConstraint = "RelativeXY"
  267. gui.TextXAlignment = "Center"
  268. gui.TextYAlignment = "Center"
  269. gui.Position = pos
  270. gui.Size = size
  271. gui.Font = "SourceSans"
  272. gui.FontSize = "Size14"
  273. gui.TextWrapped = false
  274. gui.TextStrokeTransparency = 0
  275. gui.TextColor = BrickColor.new("White")
  276. return gui
  277. end
  278. local Color1 = Torso.BrickColor
  279. local fengui = it("GuiMain")
  280. fengui.Parent = Player.PlayerGui
  281. fengui.Name = "WeaponGUI"
  282. local fenframe = it("Frame")
  283. fenframe.Parent = fengui
  284. fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
  285. fenframe.BackgroundTransparency = 1
  286. fenframe.BorderColor3 = Color3.new(17, 17, 17)
  287. fenframe.Size = UDim2.new(0.1, 0, 0.1, 0)
  288. fenframe.Position = UDim2.new(0.95, 0, 0.7, 0)
  289. local fenframe2 = it("Frame")
  290. fenframe2.Parent = fengui
  291. fenframe2.BackgroundColor3 = Color3.new(255, 255, 255)
  292. fenframe2.BackgroundTransparency = 1
  293. fenframe2.BorderColor3 = Color3.new(17, 17, 17)
  294. fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0)
  295. fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0)
  296. local fenframe3 = it("Frame")
  297. fenframe3.Parent = fengui
  298. fenframe3.BackgroundColor3 = Color3.new(255, 255, 255)
  299. fenframe3.BackgroundTransparency = 1
  300. fenframe3.BorderColor3 = Color3.new(17, 17, 17)
  301. fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0)
  302. fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0)
  303. local fenframe4 = it("Frame")
  304. fenframe4.Parent = fengui
  305. fenframe4.BackgroundColor3 = Color3.new(255, 255, 255)
  306. fenframe4.BackgroundTransparency = 1
  307. fenframe4.BorderColor3 = Color3.new(17, 17, 17)
  308. fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0)
  309. fenframe4.Position = UDim2.new(0, 0, 0.7, 0)
  310. local pressedf = false
  311. local fenframe5 = it("Frame")
  312. fenframe5.Parent = fengui
  313. fenframe5.BackgroundColor3 = Color3.new(0, 0, 0)
  314. fenframe5.BackgroundTransparency = 1
  315. fenframe5.BorderColor3 = Color3.new(0, 0, 0)
  316. fenframe5.Size = UDim2.new(1, 0, 1, 0)
  317. fenframe5.Position = UDim2.new(0, 0, 0, 0)
  318. fenframe5.ZIndex = 2
  319. local tellbar = gui("TextLabel", fenframe5, "-Fixed by AureIion_sol =D (+)\n-Temporal Image changed to Distortion Charge where Tempus uses up all Distortion to, for a couple of seconds, gains increased damage and enemies around Tempus gets decreased movement (+)\n-All abilities can target an enemy for Time Blink (+)\n-Clock changed such that Tempus throws Kam\'s Hand forward first. Clock no longer buffs allies, and Tempus cannot move during the ability (+/-)\n-Graviga changed to Gravity Impact where Tempus stabs Kam\'s Hand to the ground to create a gravity wave to pull enemies towards Tempus\' self (+/-)\n-Time Crack changed to Time Blink where Tempus blinks towards the target, then hits normally with Time Crack (+/-)\n-Temporal Stun changed to Temporal Waltz where Tempus teleports to a random area near the targeted enemy, then do a Time Crack slash with increased damage and debuffs damage. Tempus does this 5 times (+/-)\n-Distortion charges up slower (-)\n-Abilities no longer uses Distortion as a substitute for mana (-)", 1, Color3.new(0, 0, 0), UDim2.new(0.25, 0, 0.25, 0), UDim2.new(0.5, 0, 0.5, 0))
  320. tellbar.Font = "Arial"
  321. tellbar.TextScaled = true
  322. tellbar.TextTransparency = 1
  323. tellbar.TextStrokeTransparency = 1
  324. tellbar.ZIndex = 2
  325. local fnumb = 0
  326. local fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  327. local fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  328. local fenbarmana4 = gui("TextLabel", fenframe, "Wakfu(" .. mana.Value .. ")", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
  329. local fenbarblock1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(-0.7, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  330. local fenbarblock2 = gui("TextLabel", fenframe, "", 0, BrickColor.new("White").Color, UDim2.new(-0.7, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  331. local fenbarblock3 = gui("TextLabel", fenframe, "Distortion(" .. distort .. ")", 1, Color3.new(0, 0, 0), UDim2.new(-0.7, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
  332. local fenbardamage = gui("TextLabel", fenframe2, "Damage", 0.55, Color3.new(0.6078431372549, 0, 0), UDim2.new(-0.23, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
  333. local fenbardef = gui("TextLabel", fenframe2, "Defense", 0.55, Color3.new(0, 0, 0.6078431372549), UDim2.new(-0.46, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
  334. local fenbarmove = gui("TextLabel", fenframe2, "Walkspeed", 0.55, Color3.new(0, 0.6078431372549, 0), UDim2.new(1.03, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
  335. local fenbarhp1 = gui("TextLabel", fenframe2, "", 0, Color3.new(0, 0, 0), UDim2.new(-0.46, 0, 1, 0), UDim2.new(1.92, 0, 0.4, 0))
  336. local fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  337. local fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  338. local fenbarstun1 = gui("TextLabel", fenframe4, "", 0, Color3.new(0, 0, 0), UDim2.new(0.2, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  339. local fenbarstun2 = gui("TextLabel", fenframe4, "", 0, Color3.new(0.960784, 0.803922, 0.188235), UDim2.new(0.2, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  340. local fenbarstun3 = gui("TextLabel", fenframe4, "Stun(" .. Stun.Value .. ")", 1, Color3.new(0.960784, 0.803922, 0.188235), UDim2.new(0.2, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
  341. local fenbarmove1 = gui("TextButton", fenframe3, move1, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.1, 0, 0.1, 0), UDim2.new(0.4, 0, 0.4, 0))
  342. fenbarmove1.ZIndex = 2
  343. local fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  344. local fenbarmove2 = gui("TextButton", fenframe3, move2, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.6, 0, 0.1, 0), UDim2.new(0.4, 0, 0.4, 0))
  345. fenbarmove2.ZIndex = 2
  346. local fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new("Navy blue").Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  347. local fenbarmove3 = gui("TextButton", fenframe3, move3, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.1, 0, 0.6, 0), UDim2.new(0.4, 0, 0.4, 0))
  348. fenbarmove3.ZIndex = 2
  349. local fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  350. local fenbarmove4 = gui("TextButton", fenframe3, move4, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.6, 0, 0.6, 0), UDim2.new(0.4, 0, 0.4, 0))
  351. fenbarmove4.ZIndex = 2
  352. local fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new(NewCol2).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  353. local modelzorz = Instance.new("Model")
  354. modelzorz.Parent = Character
  355. modelzorz.Name = "Kam\'s Hand"
  356. local handle = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Handle", vt())
  357. local prt1 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part01", vt())
  358. local prt2 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part02", vt())
  359. local prt4 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part04", vt())
  360. local prt5 = part(3, modelzorz, 0.5, 0, BrickColor.new("Medium blue"), "Part05", vt())
  361. local prt6 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part06", vt())
  362. local prt11 = part(3, modelzorz, 0.5, 0, BrickColor.new("Medium blue"), "Part11", vt())
  363. local prt12 = part(3, modelzorz, 0.5, 0, BrickColor.new("Medium blue"), "Part12", vt())
  364. local prt13 = part(3, modelzorz, 0.5, 0, BrickColor.new("Medium blue"), "Part13", vt())
  365. local prt14 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part14", vt())
  366. local prt17 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part17", vt())
  367. msh1 = mesh("CylinderMesh", prt1, "", "", vt(0, 0, 0), vt(1, 10, 1))
  368. msh2 = mesh("SpecialMesh", prt2, "FileMesh", "3270017", vt(0, 0, 0), vt(0.6, 0.6, 2))
  369. msh4 = mesh("SpecialMesh", prt4, "FileMesh", "1778999", vt(0, 0, 0), vt(0.2, 0.3, 0.2))
  370. msh5 = mesh("SpecialMesh", prt5, "FileMesh", "1778999", vt(0, 0, 0), vt(0.3, 0.2, 0.5))
  371. msh6 = mesh("BlockMesh", prt6, "", "", vt(0, 0, 0), vt(2, 1, 3))
  372. msh11 = mesh("SpecialMesh", prt11, "Torso", "nil", vt(0, 0, 0), vt(2.6, 1, 1))
  373. msh12 = mesh("BlockMesh", prt12, "", "", vt(0, 0, 0), vt(2, 25, 0.5))
  374. msh13 = mesh("SpecialMesh", prt13, "Torso", "nil", vt(0, 0, 0), vt(2.3, 1, 0.5))
  375. msh14 = mesh("BlockMesh", prt14, "", "", vt(0, 0, 0), vt(1, 2, 1))
  376. msh17 = mesh("SpecialMesh", prt17, "FileMesh", "1778999", vt(0, 0, 0), vt(0.4, 0.4, 0.1))
  377. local handlewld = weld(handle, handle, Torso, euler(-2.5, 1.57, 0) * cf(-2, -2.5, -0.5))
  378. local wld1 = weld(prt1, prt1, handle, cf(0, 0, 0) * euler(0, 0, 0))
  379. local wld2 = weld(prt1, prt2, prt1, euler(0, 1.57, 0) * cf(0, 1.3, 0))
  380. local wld4 = weld(prt1, prt4, prt2, euler(0, 0, 3.14) * cf(0, 0.55, 0))
  381. local wld5 = weld(prt1, prt5, prt1, euler(0, 0, 3.14) * cf(0, -1, 0))
  382. local wld6 = weld(prt1, prt6, prt5, euler(0, 0, 3.14) * cf(0, 0.25, 0))
  383. local wld11 = weld(prt1, prt11, prt6, euler(0, 1.57, 0) * cf(0, -0.2, 0))
  384. local wld12 = weld(prt1, prt12, prt11, euler(0, 0, 0) * cf(0, -2.6, 0))
  385. local wld13 = weld(prt1, prt13, prt12, euler(0, 0, 3.14) * cf(0, -2.6, 0))
  386. local wld14 = weld(prt1, prt14, prt13, euler(0, 0, 0) * cf(0, 0.3, 0))
  387. local wld17 = weld(prt1, prt17, prt14, euler(0, 0, 3.14) * cf(0, 0.53, 0))
  388. for i = 0.785, 6.28, 0.785 do
  389. if i ~= 6.28 and i ~= 3.14 then
  390. local prt3 = part(3, modelzorz, 0.5, 0, BrickColor.new("Medium blue"), "Part03", vt())
  391. msh3 = mesh("BlockMesh", prt3, "", "", vt(0, 0, 0), vt(1, 0.8, 1))
  392. local wld3 = weld(prt1, prt3, prt2, cf(0, 0.4, 0) * euler(0, 0, i))
  393. end
  394. end
  395. oldprt = prt6
  396. num = 0.2
  397. ulnum = 0.4
  398. num2 = 1
  399. num3 = 2
  400. for i = 1, 3 do
  401. local prt7 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part07", vt())
  402. msh7 = mesh("BlockMesh", prt7, "", "", vt(0, 0, 0), vt(num3, num2, 1.5))
  403. local wld7 = weld(prt1, prt7, oldprt, euler(num, 0, 0) * cf(0, num / 10, ulnum))
  404. local prt8 = part(3, modelzorz, 0.5, 0, BrickColor.new("Medium blue"), "Part08", vt())
  405. msh8 = mesh("BlockMesh", prt8, "", "", vt(0, 0, 0), vt(num3 / 2, 1, 1))
  406. local wld8 = weld(prt1, prt8, prt7, euler(0, 0, 0) * cf(0, -num2 * 0.1 - 0.1, 0))
  407. oldprt = prt7
  408. num = num + 0.05
  409. ulnum = 0.25
  410. num2 = num2 - 0.2
  411. num3 = num3 - 0.5
  412. end
  413. oldprt = prt6
  414. num = 0.2
  415. ulnum = -0.4
  416. num2 = 1
  417. num3 = 2
  418. for i = 1, 3 do
  419. local prt9 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part09", vt())
  420. msh9 = mesh("BlockMesh", prt9, "", "", vt(0, 0, 0), vt(num3, num2, 1.5))
  421. local wld9 = weld(prt1, prt9, oldprt, euler(-num, 0, 0) * cf(0, num / 10, ulnum))
  422. local prt10 = part(3, modelzorz, 0.5, 0, BrickColor.new("Medium blue"), "Part08", vt())
  423. msh10 = mesh("BlockMesh", prt10, "", "", vt(0, 0, 0), vt(num3 / 2, 1, 1))
  424. local wld10 = weld(prt1, prt10, prt9, euler(0, 0, 0) * cf(0, -num2 * 0.1 - 0.1, 0))
  425. oldprt = prt9
  426. num = num + 0.05
  427. ulnum = -0.25
  428. num2 = num2 - 0.2
  429. num3 = num3 - 0.5
  430. end
  431. eul1 = 0.785
  432. eul2 = 2.355
  433. eul3 = 0.785
  434. for i = 0.2, -0.2, -0.4 do
  435. local prt15 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part15", vt())
  436. msh15 = mesh("SpecialMesh", prt15, "FileMesh", "3270017", vt(0, 0, 0), vt(0.5, 0.5, 0.5))
  437. local wld15 = weld(prt1, prt15, prt14, euler(0, 0, 0) * cf(i, 0, 0))
  438. for i = eul1, eul2, eul3 do
  439. local prt16 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part03", vt())
  440. msh16 = mesh("BlockMesh", prt16, "", "", vt(0, 0, 0), vt(0.5, 0.8, 0.3))
  441. local wld16 = weld(prt1, prt16, prt15, cf(0, 0.3, 0) * euler(0, 0, i))
  442. end
  443. eul1 = -0.785
  444. eul2 = -2.355
  445. eul3 = -0.785
  446. end
  447. for _,c in pairs(modelzorz:children()) do
  448. table.insert(Weapon, c)
  449. end
  450. for _,c in pairs(prt1:children()) do
  451. if c.className == "Motor" then
  452. table.insert(Welds, c)
  453. end
  454. end
  455. local hitbox = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Hitbox2", vt())
  456. hitbox.Anchored = false
  457. local hbwld = weld(hitbox, hitbox, RootPart, euler(0, 0, 0) * cf(0, 0, 0))
  458. local hitbox2 = part(3, nil, 0, 1, BrickColor.new("Black"), "Hitbox", vt(1, 1, 1))
  459. hitbox2.Anchored = true
  460. local hitboxCF = cf(0, 0, 0)
  461. hboxpos = Instance.new("BodyPosition", nil)
  462. hboxpos.P = 2000
  463. hboxpos.D = 100
  464. hboxpos.maxForce = Vector3.new(545000, 545000, 545000)
  465. hitboxweld = function()
  466. hbwld.Parent = modelzorz
  467. hbwld.Part0 = hitbox
  468. hbwld.Part1 = prt12
  469. end
  470. local Image = it("Model")
  471. Image.Name = "Image"
  472. local CloneJoints = {}
  473. ImageRoot = RootPart:Clone()
  474. table.insert(CloneJoints, ImageRoot)
  475. ImageTors = Torso:Clone()
  476. table.insert(CloneJoints, ImageTors)
  477. ImageHead = Head:Clone()
  478. table.insert(CloneJoints, ImageHead)
  479. ImageLA = LeftArm:Clone()
  480. table.insert(CloneJoints, ImageLA)
  481. ImageRA = RightArm:Clone()
  482. table.insert(CloneJoints, ImageRA)
  483. ImageLG = LeftLeg:Clone()
  484. table.insert(CloneJoints, ImageLG)
  485. ImageRG = RightLeg:Clone()
  486. table.insert(CloneJoints, ImageRG)
  487. RootJointClone = cf(0, 0, 0)
  488. NeckClone = cf(0, 0, 0)
  489. RWClone = cf(0, 0, 0)
  490. LWClone = cf(0, 0, 0)
  491. RHClone = cf(0, 0, 0)
  492. LHClone = cf(0, 0, 0)
  493. for i = 1, #CloneJoints do
  494. CloneJoints[i].Parent = Image
  495. if CloneJoints[i] ~= ImageRoot then
  496. CloneJoints[i].Transparency = 0.5
  497. end
  498. CloneJoints[i].Anchored = true
  499. CloneJoints[i].CanCollide = false
  500. CloneJoints[i].BrickColor = BrickColor.new(NewCol2)
  501. NoOutline(CloneJoints[i])
  502. for _,c in pairs(CloneJoints[i]:children()) do
  503. if c.className ~= "SpecialMesh" then
  504. c.Parent = nil
  505. end
  506. end
  507. end
  508. if script.Parent.className ~= "HopperBin" then
  509. Tool = Instance.new("HopperBin")
  510. Tool.Parent = Backpack
  511. Tool.Name = "Kam\'s Hand"
  512. script.Parent = Tool
  513. end
  514. Bin = script.Parent
  515. if Bin.Name == "Tempus: Epoch Knight" then
  516. Bin.Name = "Kam\'s Hand"
  517. end
  518. local bodvel = Instance.new("BodyVelocity")
  519. local bg = Instance.new("BodyGyro")
  520. so = function(id, par, vol, pit)
  521. local sou = Instance.new("Sound", par or workspace)
  522. sou.Volume = vol
  523. sou.Pitch = pit or 1
  524. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  525. coroutine.resume(coroutine.create(function(Sound)
  526. swait()
  527. Sound:play()
  528. end), sou)
  529. game:GetService("Debris"):AddItem(sou, 6)
  530. end
  531. function clerp(a,b,t)
  532. local qa = {QuaternionFromCFrame(a)}
  533. local qb = {QuaternionFromCFrame(b)}
  534. local ax, ay, az = a.x, a.y, a.z
  535. local bx, by, bz = b.x, b.y, b.z
  536. local _t = 1-t
  537. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  538. end
  539.  
  540. function QuaternionFromCFrame(cf)
  541. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  542. local trace = m00 + m11 + m22
  543. if trace > 0 then
  544. local s = math.sqrt(1 + trace)
  545. local recip = 0.5/s
  546. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  547. else
  548. local i = 0
  549. if m11 > m00 then
  550. i = 1
  551. end
  552. if m22 > (i == 0 and m00 or m11) then
  553. i = 2
  554. end
  555. if i == 0 then
  556. local s = math.sqrt(m00-m11-m22+1)
  557. local recip = 0.5/s
  558. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  559. elseif i == 1 then
  560. local s = math.sqrt(m11-m22-m00+1)
  561. local recip = 0.5/s
  562. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  563. elseif i == 2 then
  564. local s = math.sqrt(m22-m00-m11+1)
  565. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  566. end
  567. end
  568. end
  569.  
  570. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  571. local xs, ys, zs = x + x, y + y, z + z
  572. local wx, wy, wz = w*xs, w*ys, w*zs
  573. local xx = x*xs
  574. local xy = x*ys
  575. local xz = x*zs
  576. local yy = y*ys
  577. local yz = y*zs
  578. local zz = z*zs
  579. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  580. end
  581.  
  582. function QuaternionSlerp(a, b, t)
  583. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  584. local startInterp, finishInterp;
  585. if cosTheta >= 0.0001 then
  586. if (1 - cosTheta) > 0.0001 then
  587. local theta = math.acos(cosTheta)
  588. local invSinTheta = 1/math.sin(theta)
  589. startInterp = math.sin((1-t)*theta)*invSinTheta
  590. finishInterp = math.sin(t*theta)*invSinTheta
  591. else
  592. startInterp = 1-t
  593. finishInterp = t
  594. end
  595. else
  596. if (1+cosTheta) > 0.0001 then
  597. local theta = math.acos(-cosTheta)
  598. local invSinTheta = 1/math.sin(theta)
  599. startInterp = math.sin((t-1)*theta)*invSinTheta
  600. finishInterp = math.sin(t*theta)*invSinTheta
  601. else
  602. startInterp = t-1
  603. finishInterp = t
  604. end
  605. end
  606. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  607. end
  608.  
  609. hideanim = function()
  610. equipped = false
  611. for i = 0, 1, 0.1 do
  612. swait()
  613. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, -0.5), 0.3)
  614. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.3)
  615. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  616. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  617. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 1.57), 0.3)
  618. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  619. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.57), 0.3)
  620. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  621. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.3)
  622. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.3)
  623. end
  624. so("206083107", handle, 1, 1)
  625. handlewld.Part1 = Torso
  626. handlewld.C0 = euler(1.57, 0, 1.57) * cf(-3, 0, 0)
  627. wld1.C0 = euler(0, 0, 0) * cf(0, 0, 0)
  628. mdec2.Parent = nil
  629. mdec.Parent = Decrease
  630. for i = 0, 1, 0.1 do
  631. swait()
  632. handlewld.C0 = clerp(handlewld.C0, euler(-2.5, 1.57, 0) * cf(-2, -2.5, -0.5), 0.5)
  633. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
  634. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  635. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  636. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  637. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  638. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  639. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.3)
  640. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.3)
  641. end
  642. handlewld.Part1 = Torso
  643. handlewld.C0 = euler(-2.5, 1.57, 0) * cf(-2, -2.5, -0.5)
  644. wld1.C0 = euler(0, 0, 0) * cf(0, 0, 0)
  645. end
  646. mdec.Parent = Decrease
  647. equipanim = function()
  648. equipped = true
  649. mdec.Parent = nil
  650. for i = 0, 1, 0.1 do
  651. swait()
  652. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  653. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  654. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 1.57), 0.3)
  655. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  656. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.57), 0.3)
  657. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  658. end
  659. local dec = Instance.new("NumberValue", Decrease)
  660. dec.Name = "DecreaseMvmt"
  661. dec.Value = 10
  662. handlewld.Part1 = RootPart
  663. n = 2
  664. so("206083107", handle, 1, 1)
  665. for i = 0, 1, 0.1 do
  666. swait()
  667. handlewld.C0 = clerp(handlewld.C0, euler(3.14, 1.57, 0) * cf(0, -2.5, 2), 0.3)
  668. wld1.C0 = euler(0, 0, 6.28 * i * n) * cf(0, 0, 0)
  669. n = n - 0.1
  670. end
  671. for i = 0, 1, 0.1 do
  672. swait()
  673. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.8) * euler(-0.1, 0, 0), 0.3)
  674. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.8), 0.3)
  675. RW.C0 = clerp(RW.C0, cf(1, 0.8, -0.5) * euler(2.5, 0, 0.4), 0.3)
  676. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  677. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.3)
  678. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  679. end
  680. handlewld.Part1 = RightArm
  681. handlewld.C0 = euler(1.57, 0, 0) * cf(0, 1.2, 0.5)
  682. wld1.C0 = euler(0, 1.57, 0) * euler(3.8, 0, 0) * euler(0, 0, 0) * cf(0, 0, 0)
  683. dec.Parent = nil
  684. mdec2.Parent = Decrease
  685. end
  686. StaggerAnim = function()
  687. attack = true
  688. removeControl()
  689. for i = 1, math.random(2, 4) do
  690. ClangEffect(BrickColor.new("New Yeller"), cf(hitbox.Position) * euler(math.random(-50, 50) / 100, math.random(-50, 50), math.random(-50, 50) / 100), 0, 0.1, 0.2, math.random(150, 300) / 1000)
  691. end
  692. for i = 0, 1, 0.35 do
  693. swait()
  694. if Rooted.Value == false then
  695. Torso.Velocity = RootPart.CFrame.lookVector * -40
  696. end
  697. handlewld.Part1 = RightArm
  698. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.2)
  699. wld1.C0 = clerp(wld1.C0, euler(0.1, 0, 0) * cf(0, 0.5, 0), 0.2)
  700. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.3)
  701. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.4), 0.3)
  702. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.3)
  703. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  704. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  705. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  706. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.3)
  707. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  708. end
  709. for i = 0, 1, 0.2 do
  710. swait()
  711. if Rooted.Value == false then
  712. Torso.Velocity = RootPart.CFrame.lookVector * -40
  713. end
  714. handlewld.Part1 = RightArm
  715. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.2)
  716. wld1.C0 = clerp(wld1.C0, euler(0.1, 0, 0) * cf(0, 0.5, 0), 0.2)
  717. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.4)
  718. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(-0.5, 0, -0.4), 0.4)
  719. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.4)
  720. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  721. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.4)
  722. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  723. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.4)
  724. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.5), 0.4)
  725. end
  726. for i = 0, 1, 0.1 do
  727. swait()
  728. handlewld.Part1 = RightArm
  729. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.2)
  730. wld1.C0 = clerp(wld1.C0, euler(0.1, 0, 0) * cf(0, 0.5, 0), 0.2)
  731. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.5, 0, 0), 0.3)
  732. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, -0.4), 0.3)
  733. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.3, 0, 0.4) * euler(0, -0.4, 0), 0.3)
  734. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  735. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2) * euler(0, 0.4, 0), 0.3)
  736. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  737. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 1.2), 0.3)
  738. LH.C0 = clerp(LH.C0, cf(-1, 0, -1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  739. end
  740. for i = 1, 40 do
  741. swait()
  742. if StunT.Value <= Stun.Value then
  743. break
  744. end
  745. end
  746. do
  747. resumeControl()
  748. combo = 0
  749. attack = false
  750. end
  751. end
  752. StaggerHitt = function()
  753. attack = true
  754. for i = 1, math.random(2, 4) do
  755. ClangEffect(BrickColor.new("New Yeller"), cf(hitbox.Position) * euler(math.random(-50, 50) / 100, math.random(-50, 50), math.random(-50, 50) / 100), 0, 0.1, 0.2, math.random(150, 300) / 1000)
  756. end
  757. for i = 0, 1, 0.1 do
  758. swait()
  759. handlewld.Part1 = RightArm
  760. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.2)
  761. wld1.C0 = clerp(wld1.C0, euler(0.1, 0, 0) * cf(0, 0.5, 0), 0.2)
  762. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.7) * euler(0.1, 0, 0), 0.3)
  763. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.6), 0.3)
  764. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.9) * euler(0, -0.7, 0), 0.3)
  765. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  766. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  767. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  768. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.4), 0.3)
  769. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  770. end
  771. attack = false
  772. end
  773. StunAnim = function()
  774. attack = true
  775. removeControl()
  776. Stunned.Value = true
  777. showDamage(Character, "Stunned", "Interrupt")
  778. local dec = Instance.new("NumberValue", Decrease)
  779. dec.Name = "DecreaseMvmt"
  780. dec.Value = 10
  781. for i = 0, 1, 0.3 do
  782. swait()
  783. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2)
  784. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2)
  785. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2)
  786. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  787. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2)
  788. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  789. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25)
  790. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
  791. end
  792. for i = 0, 1, 0.3 do
  793. swait()
  794. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2)
  795. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2)
  796. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  797. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  798. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1.2, 0, 0.8) * euler(0, -0.1, 0), 0.2)
  799. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  800. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25)
  801. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25)
  802. end
  803. for i = 0, 1, 0.3 do
  804. swait()
  805. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2)
  806. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2)
  807. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  808. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  809. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2)
  810. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  811. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25)
  812. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25)
  813. end
  814. local gairost = Instance.new("BodyGyro")
  815. gairost.Parent = RootPart
  816. gairost.maxTorque = Vector3.new(400000, 0, 400000) * math.huge
  817. gairost.P = 20000
  818. gairost.cframe = cf(0, 0, 0)
  819. for i = 0, 1, 0.1 do
  820. swait()
  821. if hitfloor ~= nil then
  822. Torso.Velocity = vt(0, 0, 0)
  823. end
  824. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3)
  825. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3)
  826. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 0, 0), 0.3)
  827. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  828. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3)
  829. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  830. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3)
  831. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3)
  832. end
  833. for i = 1, 70 do
  834. swait()
  835. gairost.cframe = RootPart.CFrame
  836. if hitfloor ~= nil then
  837. Torso.Velocity = vt(0, 0, 0)
  838. end
  839. end
  840. for i = 0, 1, 0.2 do
  841. swait()
  842. Stun.Value = 0
  843. gairost.cframe = RootPart.CFrame
  844. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  845. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3)
  846. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3)
  847. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  848. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3)
  849. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  850. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3)
  851. LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3)
  852. end
  853. resumeControl()
  854. gairost.Parent = nil
  855. dec.Parent = nil
  856. Stun.Value = 0
  857. combo = 0
  858. Stunned.Value = false
  859. attack = false
  860. for i = 1, 10 do
  861. swait()
  862. Stun.Value = 0
  863. end
  864. end
  865. attackone = function()
  866. attack = true
  867. for i = 0, 1, 0.15 do
  868. swait()
  869. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.6, -0.3), 0.4)
  870. wld1.C0 = clerp(wld1.C0, euler(1, 0, 0) * cf(0, 0, 0), 0.4)
  871. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.2) * euler(0.1, 0, 0), 0.4)
  872. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1.2), 0.4)
  873. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.5, 0, 1.2) * euler(0, -0.6, 0), 0.4)
  874. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  875. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.4, 0, -1.3), 0.4)
  876. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  877. RH.C0 = clerp(RH.C0, cf(0.7, -1, -0.5) * euler(0, 1.57, 0) * euler(-0.1, 1.2, 0), 0.4)
  878. LH.C0 = clerp(LH.C0, cf(-0.7, -1, 0.5) * euler(0, -1.57, 0) * euler(0, 1.2, 0.1), 0.4)
  879. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  880. do
  881. if StaggerHit.Value == true then
  882. break
  883. end
  884. -- DECOMPILER ERROR at PC219: LeaveBlock: unexpected jumping out IF_THEN_STMT
  885.  
  886. -- DECOMPILER ERROR at PC219: LeaveBlock: unexpected jumping out IF_STMT
  887.  
  888. end
  889. end
  890. end
  891. so("199145887", prt12, 1, 1.2)
  892. hbwld.Parent = nil
  893. hboxpos.Parent = hitbox
  894. hitbox.Parent = modelzorz
  895. hitbox.Size = vt(1, 7, 0.5)
  896. hitboxCF = prt12.CFrame
  897. hitbox.CFrame = hitboxCF
  898. blcf = nil
  899. scfr = nil
  900. for i = 0, 1, 0.1 do
  901. swait()
  902. hitboxCF = prt12.CFrame
  903. hitbox.CFrame = hitboxCF
  904. MagniDamage(hitbox, 6, 4, 8, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(3, 6)), nil, true)
  905. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.6, -0.3), 0.4)
  906. wld1.C0 = clerp(wld1.C0, euler(1, 0, 0) * cf(0, 0, 0), 0.4)
  907. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.2, 0, 0), 0.4)
  908. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1.4), 0.4)
  909. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(0.5, 0, -1) * euler(0, -0.6, 0), 0.4)
  910. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  911. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.2), 0.4)
  912. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  913. RH.C0 = clerp(RH.C0, cf(0.8, -1, 0.3) * euler(0, 1.57, 0) * euler(0, -1, -0.1), 0.4)
  914. LH.C0 = clerp(LH.C0, cf(-0.8, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -1, 0), 0.4)
  915. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  916. do
  917. if StaggerHit.Value == true then
  918. break
  919. end
  920. -- DECOMPILER ERROR at PC496: LeaveBlock: unexpected jumping out IF_THEN_STMT
  921.  
  922. -- DECOMPILER ERROR at PC496: LeaveBlock: unexpected jumping out IF_STMT
  923.  
  924. end
  925. end
  926. end
  927. hitbox.Parent = modelzorz
  928. hitbox.Size = vt()
  929. hitboxweld()
  930. hboxpos.Parent = nil
  931. attack = false
  932. end
  933. attacktwo = function()
  934. attack = true
  935. handlewld.Part1 = Torso
  936. handlewld.C0 = euler(1.57, 0, 1.57) * cf(-3, 1, 0)
  937. wld1.C1 = euler(0, 0, 0)
  938. for i = 0, 1, 0.15 do
  939. swait()
  940. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 1.57) * cf(0, -1, 0), 0.3)
  941. wld1.C0 = clerp(wld1.C0, euler(1, 0, 0) * cf(0, -7, 0) * euler(1, 0, 0), 0.3)
  942. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.4) * euler(0, 0, 0), 0.3)
  943. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1.4), 0.3)
  944. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.57, 0, -1) * euler(0, 1.4, 0), 0.3)
  945. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  946. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.2), 0.3)
  947. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  948. RH.C0 = clerp(RH.C0, cf(0.8, -1, 0.3) * euler(0, 1.57, 0) * euler(0, -1, -0.1), 0.2)
  949. LH.C0 = clerp(LH.C0, cf(-0.8, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -1, 0), 0.2)
  950. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  951. do
  952. if StaggerHit.Value == true then
  953. break
  954. end
  955. -- DECOMPILER ERROR at PC248: LeaveBlock: unexpected jumping out IF_THEN_STMT
  956.  
  957. -- DECOMPILER ERROR at PC248: LeaveBlock: unexpected jumping out IF_STMT
  958.  
  959. end
  960. end
  961. end
  962. so("199145841", prt12, 1, 0.8)
  963. hbwld.Parent = nil
  964. hboxpos.Parent = hitbox
  965. hitbox.Parent = modelzorz
  966. hitbox.Size = vt(1, 7, 0.5)
  967. hitboxCF = prt12.CFrame
  968. hitbox.CFrame = hitboxCF
  969. blcf = nil
  970. scfr = nil
  971. num = 0
  972. for i = 0, 1, 0.1 do
  973. swait()
  974. num = num + 0.6
  975. hitboxCF = prt12.CFrame
  976. hitbox.CFrame = hitboxCF
  977. MagniDamage(hitbox, 6, 4, 8, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(3, 6)), nil, true)
  978. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 1.57) * cf(0, -1, 0), 0.3)
  979. wld1.C0 = euler(1, 0, 0) * cf(0, -4, 0) * euler(1 - num, 0, 0)
  980. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.6) * euler(0.2, 0, 0), 0.4)
  981. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1.2), 0.4)
  982. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.2) * euler(0, 1.7, 0), 0.4)
  983. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  984. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -1.3), 0.4)
  985. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  986. RH.C0 = clerp(RH.C0, cf(0.7, -1, -0.5) * euler(0, 1.57, 0) * euler(-0.1, 1.2, 0), 0.4)
  987. LH.C0 = clerp(LH.C0, cf(-0.7, -1, 0.5) * euler(0, -1.57, 0) * euler(0, 1.2, 0.1), 0.4)
  988. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  989. do
  990. if StaggerHit.Value == true then
  991. break
  992. end
  993. -- DECOMPILER ERROR at PC532: LeaveBlock: unexpected jumping out IF_THEN_STMT
  994.  
  995. -- DECOMPILER ERROR at PC532: LeaveBlock: unexpected jumping out IF_STMT
  996.  
  997. end
  998. end
  999. end
  1000. hitbox.Parent = modelzorz
  1001. hitbox.Size = vt()
  1002. hitboxweld()
  1003. hboxpos.Parent = nil
  1004. handlewld.Part1 = RightArm
  1005. handlewld.C0 = euler(1.57, 0, 1.57) * cf(0, -1, 0)
  1006. wld1.C0 = euler(-1, 1.57, 0) * cf(0, -4, 0) * euler(0, 0, 0)
  1007. attack = false
  1008. end
  1009. attackthree = function()
  1010. attack = true
  1011. handlewld.Part1 = Torso
  1012. handlewld.C0 = euler(1.57, 0, 1.57) * cf(-3, 1, 0)
  1013. wld1.C1 = euler(0, 0, 0)
  1014. n = 7
  1015. for i = 0, 1, 0.1 do
  1016. swait()
  1017. n = n + 1
  1018. if n >= 7 then
  1019. so("199145146", prt12, 1, 1.2)
  1020. n = 0
  1021. end
  1022. handlewld.C0 = clerp(handlewld.C0, euler(0, 1.57, 1.3) * euler(0.2, 0, 0) * cf(0, -1, 3), 0.3)
  1023. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 3, 0), 0.3)
  1024. wld1.C1 = wld1.C1 * euler(0.6, 0, 0)
  1025. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.2) * euler(-0.05, 0, 0), 0.3)
  1026. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1.4), 0.3)
  1027. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.57, 0, -1) * euler(0, 1.4, 0), 0.3)
  1028. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1029. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.7, 0, 0.4), 0.3)
  1030. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1031. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.3) * euler(0, 1.57, 0) * euler(0, -1.4, -0.1), 0.2)
  1032. LH.C0 = clerp(LH.C0, cf(-1, -0.9, -0.2) * euler(0, -1.57, 0) * euler(0, -0.5, 0) * euler(-0.2, 0, 0), 0.2)
  1033. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1034. do
  1035. if StaggerHit.Value == true then
  1036. break
  1037. end
  1038. -- DECOMPILER ERROR at PC280: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1039.  
  1040. -- DECOMPILER ERROR at PC280: LeaveBlock: unexpected jumping out IF_STMT
  1041.  
  1042. end
  1043. end
  1044. end
  1045. wld1.C1 = euler(0, 0, 0)
  1046. so("199145913", prt12, 1, 1.4)
  1047. hbwld.Parent = nil
  1048. hboxpos.Parent = hitbox
  1049. hitbox.Parent = modelzorz
  1050. hitbox.Size = vt(1, 7, 0.5)
  1051. hitboxCF = prt12.CFrame
  1052. hitbox.CFrame = hitboxCF
  1053. blcf = nil
  1054. scfr = nil
  1055. for i = 0, 1, 0.1 do
  1056. swait()
  1057. hitboxCF = prt12.CFrame
  1058. hitbox.CFrame = hitboxCF
  1059. MagniDamage(hitbox, 6, 4, 8, math.random(5, 10), "Normal", RootPart, 0.5, 1, (math.random(3, 6)), nil, true)
  1060. handlewld.C0 = clerp(handlewld.C0, euler(1.7, -1, 0) * euler(0, 0, 0) * cf(7, -0.5, 1.5), 0.5)
  1061. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 3, 0), 0.5)
  1062. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.2) * euler(-0.05, 0, 0), 0.5)
  1063. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1.2), 0.5)
  1064. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.2, 0, 0.5) * euler(0, 0, 0), 0.3)
  1065. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1066. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.6, 0, -1), 0.3)
  1067. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1068. RH.C0 = clerp(RH.C0, cf(0.6, -1, -0.4) * euler(0, 1.57, 0) * euler(0, 1.2, 0), 0.2)
  1069. LH.C0 = clerp(LH.C0, cf(-0.6, -1, 0.4) * euler(0, -1.57, 0) * euler(0, 1.2, -0.1) * euler(0, 0, 0), 0.2)
  1070. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1071. do
  1072. if StaggerHit.Value == true then
  1073. break
  1074. end
  1075. -- DECOMPILER ERROR at PC576: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1076.  
  1077. -- DECOMPILER ERROR at PC576: LeaveBlock: unexpected jumping out IF_STMT
  1078.  
  1079. end
  1080. end
  1081. end
  1082. hitbox.Parent = modelzorz
  1083. hitbox.Size = vt()
  1084. hitboxweld()
  1085. hboxpos.Parent = nil
  1086. handlewld.Part1 = RightArm
  1087. attack = false
  1088. end
  1089. attackfour = function()
  1090. attack = true
  1091. for i = 0, 1, 0.15 do
  1092. swait()
  1093. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, -0.3), 0.4)
  1094. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.4)
  1095. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.2) * euler(0.1, 0, 0), 0.4)
  1096. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1.2), 0.4)
  1097. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.5, 0, 0.8) * euler(0, -0.6, 0), 0.4)
  1098. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1099. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.4, 0, -1.3), 0.4)
  1100. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1101. RH.C0 = clerp(RH.C0, cf(0.7, -1, -0.5) * euler(0, 1.57, 0) * euler(-0.1, 1.2, 0), 0.4)
  1102. LH.C0 = clerp(LH.C0, cf(-0.7, -1, 0.5) * euler(0, -1.57, 0) * euler(0, 1.2, 0.1), 0.4)
  1103. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1104. do
  1105. if StaggerHit.Value == true then
  1106. break
  1107. end
  1108. -- DECOMPILER ERROR at PC219: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1109.  
  1110. -- DECOMPILER ERROR at PC219: LeaveBlock: unexpected jumping out IF_STMT
  1111.  
  1112. end
  1113. end
  1114. end
  1115. handlewld.Part1 = RootPart
  1116. handlewld.C0 = euler(-0.7, 0, -0.6) * cf(-1, -3, -4)
  1117. wld1.C0 = euler(0, 0, 0) * cf(0, 3, 0)
  1118. wld1.C1 = euler(0, 0, 0)
  1119. hbwld.Parent = nil
  1120. hboxpos.Parent = hitbox
  1121. hitbox.Parent = modelzorz
  1122. hitbox.Size = vt(1, 7, 0.5)
  1123. hitboxCF = prt12.CFrame
  1124. hitbox.CFrame = hitboxCF
  1125. blcf = nil
  1126. scfr = nil
  1127. n = 4
  1128. mov = 0
  1129. for i = 0, 1, 0.1 do
  1130. swait()
  1131. mov = mov + 3
  1132. n = n + 1
  1133. if n >= 4 then
  1134. so("199145146", prt12, 1, 1.4)
  1135. n = 0
  1136. end
  1137. hitboxCF = prt12.CFrame
  1138. hitbox.CFrame = hitboxCF
  1139. MagniDamage(hitbox, 6, 5, 8, 0, "Normal", RootPart, 0.5, 1, (math.random(3, 6)), nil, true)
  1140. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, -1, mov), 0.4)
  1141. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.4)
  1142. wld1.C1 = wld1.C1 * euler(-0.6, 0, 0)
  1143. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57) * euler(0.1, 0, 0), 0.4)
  1144. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1.57), 0.4)
  1145. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.57) * euler(0, 0, 0), 0.4)
  1146. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1147. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -1), 0.4)
  1148. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1149. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.3) * euler(0, 1.57, 0) * euler(0, -1.57, -0.1), 0.4)
  1150. LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -1.57, 0.2), 0.4)
  1151. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1152. do
  1153. if StaggerHit.Value == true then
  1154. break
  1155. end
  1156. -- DECOMPILER ERROR at PC553: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1157.  
  1158. -- DECOMPILER ERROR at PC553: LeaveBlock: unexpected jumping out IF_STMT
  1159.  
  1160. end
  1161. end
  1162. end
  1163. hitbox.Parent = modelzorz
  1164. hitbox.Size = vt()
  1165. hitboxweld()
  1166. hboxpos.Parent = nil
  1167. handlewld.Part1 = RightArm
  1168. wld1.C1 = euler(0, 0, 0)
  1169. attack = false
  1170. end
  1171. DistortionCharge = function()
  1172. if distort == 100 then
  1173. distort = 0
  1174. distorcharge = true
  1175. table.insert(Effects, {nil, "DisCharge", 400, 0})
  1176. end
  1177. end
  1178. do1 = function()
  1179. if attack == true then
  1180. return
  1181. end
  1182. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1183. return
  1184. end
  1185. if cooldownmax <= cooldowns[1] and mana.Value >= 20 then
  1186. attack = true
  1187. doingcomb = true
  1188. cooldowns[1] = 0
  1189. for i = 0, 1, 0.15 do
  1190. swait()
  1191. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, -0.3), 0.4)
  1192. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0), 0.4)
  1193. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.2) * euler(0.1, 0, 0), 0.4)
  1194. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1.2), 0.4)
  1195. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.5, 0, 0.8) * euler(0, -0.6, 0), 0.4)
  1196. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1197. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.4, 0, -1.3), 0.4)
  1198. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1199. RH.C0 = clerp(RH.C0, cf(0.7, -1, -0.5) * euler(0, 1.57, 0) * euler(-0.1, 1.2, 0), 0.4)
  1200. LH.C0 = clerp(LH.C0, cf(-0.7, -1, 0.5) * euler(0, -1.57, 0) * euler(0, 1.2, 0.1), 0.4)
  1201. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1202. do
  1203. if StaggerHit.Value == true then
  1204. break
  1205. end
  1206. end
  1207. end
  1208. end
  1209. local dec = Instance.new("NumberValue", Decrease)
  1210. dec.Name = "DecreaseMvmt"
  1211. dec.Value = 10
  1212. handlewld.Part1 = RootPart
  1213. handlewld.C0 = euler(-0.7, 0, -0.6) * cf(-1, -3, -4)
  1214. wld1.C0 = euler(0, 0, 0) * cf(0, 3, 0)
  1215. wld1.C1 = euler(0, 0, 0)
  1216. so("199145146", prt12, 1, 0.8)
  1217. mov = 0
  1218. for i = 0, 1, 0.15 do
  1219. swait()
  1220. mov = mov + 5
  1221. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, -1, mov), 0.4)
  1222. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 3, 0), 0.4)
  1223. wld1.C1 = wld1.C1 * euler(-0.6, 0, 0)
  1224. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57) * euler(0.1, 0, 0), 0.4)
  1225. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1.57), 0.4)
  1226. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.57) * euler(0, 0, 0), 0.4)
  1227. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1228. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -1), 0.4)
  1229. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1230. RH.C0 = clerp(RH.C0, cf(0.6, -1, 0.3) * euler(0, 1.57, 0) * euler(0, -1.57, -0.1), 0.4)
  1231. LH.C0 = clerp(LH.C0, cf(-0.6, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -1.57, 0.2), 0.4)
  1232. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1233. do
  1234. if StaggerHit.Value == true then
  1235. break
  1236. end
  1237. end
  1238. end
  1239. end
  1240. n = 5
  1241. for i = 0, 1, 0.1 do
  1242. swait()
  1243. mov = mov + n
  1244. n = n / 2
  1245. handlewld.C0 = clerp(handlewld.C0, euler(0, 1.57, 0) * cf(0, -2, mov), 0.4)
  1246. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 3, 0), 0.4)
  1247. wld1.C1 = clerp(wld1.C1, euler(0, 0, 0) * cf(0, 0, 0), 0.3)
  1248. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  1249. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  1250. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 1.57), 0.3)
  1251. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1252. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, -1.57), 0.3)
  1253. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1254. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.3)
  1255. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.3)
  1256. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1257. do
  1258. if StaggerHit.Value == true then
  1259. break
  1260. end
  1261. end
  1262. end
  1263. end
  1264. mana.Value = mana.Value - 20
  1265. so("206083122", handle, 1, 1)
  1266. CF = cf(prt12.Position)
  1267. MagicCircle(BrickColor.new(NewCol2), CF, 150, 150, 150, 1, 1, 1, 0.02)
  1268. MagniDamage(prt12, 20, 5, 10, math.random(20, 30), "Knockdown2", prt12, 0, 1, (math.random(5, 10)), nil, nil, true, "Movement", 0.2, 300)
  1269. num = 0
  1270. eul = math.random(-50, 50)
  1271. eul2 = math.random(-50, 50)
  1272. for i = 0, 1, 0.05 do
  1273. swait()
  1274. wld1.C0 = cf(0, 3, 0) * euler(-6.6 * i, 0, 0)
  1275. if num >= 3 then
  1276. num = 0
  1277. eul = eul - 0.5
  1278. eul2 = eul2 - 0.05
  1279. MagicCircle2(BrickColor.new(NewCol2), CF * euler(-1.57, 0, eul) * cf(0, 0, 0), 3, 7, 3, -0.1, 9, -0.1, 0.1, 1.2)
  1280. MagicCircle2(BrickColor.new(NewCol2), CF * euler(-1.57, 0, eul2) * cf(0, 0, 0), 3, 5, 3, -0.1, 6, -0.1, 0.1, 1.2)
  1281. end
  1282. num = num + 1
  1283. for i = 0.523, 6.28, 0.523 do
  1284. MagicBlock(BrickColor.new(NewCol2), CF * euler(0, i, 0) * cf(0, 0, 20), 1, 1, 1, 1, 1, 1, 0.1, 1)
  1285. end
  1286. end
  1287. swait(10)
  1288. handlewld.Part1 = RightArm
  1289. dec.Parent = nil
  1290. doingcomb = false
  1291. attack = false
  1292. end
  1293. end
  1294. do2 = function()
  1295. if attack == true then
  1296. return
  1297. end
  1298. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1299. return
  1300. end
  1301. if cooldownmax <= cooldowns[2] and mana.Value >= 15 then
  1302. attack = true
  1303. doingcomb = true
  1304. cooldowns[2] = 0
  1305. for i = 0, 1, 0.15 do
  1306. swait()
  1307. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, -0.3) * euler(0, -0.1, 0), 0.4)
  1308. wld1.C0 = clerp(wld1.C0, euler(0, 1.1, 0) * cf(0, 0, 0), 0.4)
  1309. Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, 0), 0.3)
  1310. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  1311. RW.C0 = clerp(RW.C0, cf(1, 1, -0.5) * euler(2.8, 0, -0.8) * euler(0, 0, 0), 0.3)
  1312. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1313. LW.C0 = clerp(LW.C0, cf(-1, 1, -0.5) * euler(2.8, 0, 0.8), 0.3)
  1314. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1315. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.3)
  1316. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.3)
  1317. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1318. do
  1319. if StaggerHit.Value == true then
  1320. break
  1321. end
  1322. end
  1323. end
  1324. end
  1325. local dec = Instance.new("NumberValue", Decrease)
  1326. dec.Name = "DecreaseMvmt"
  1327. dec.Value = 10
  1328. for i = 0, 1, 0.1 do
  1329. swait()
  1330. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.4)
  1331. wld1.C0 = clerp(wld1.C0, euler(3.14, 0, 0) * cf(0, -0.5, 0), 0.4)
  1332. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
  1333. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.3, 0, 0), 0.4)
  1334. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.87, 0, -0.8) * euler(0, 0, 0), 0.4)
  1335. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1336. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.97, 0, 0.8) * euler(0, 0, 0), 0.4)
  1337. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1338. RH.C0 = clerp(RH.C0, cf(1, -0.7, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.2), 0.4)
  1339. LH.C0 = clerp(LH.C0, cf(-1, -0.7, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, -0.2), 0.4)
  1340. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1341. do
  1342. if StaggerHit.Value == true then
  1343. break
  1344. end
  1345. end
  1346. end
  1347. end
  1348. hitfloor2, posfloor2 = rayCast(prt1.Position, CFrame.new(prt1.Position, prt1.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character)
  1349. if hitfloor2 ~= nil then
  1350. mana.Value = mana.Value - 15
  1351. MagicWave(BrickColor.new("Navy blue"), cf(posfloor2), 60, 5, 60, -1, -0.2, -1, 0.05)
  1352. MagicCircle(BrickColor.new("Navy blue"), cf(posfloor2), 550, 5, 550, -10, 1, -10, 0.03)
  1353. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1354. ref.Anchored = true
  1355. ref.CFrame = cf(posfloor2)
  1356. game:GetService("Debris"):AddItem(ref, 3)
  1357. so("183763487", ref, 1, 0.4)
  1358. so("183763487", ref, 1, 1)
  1359. so("161006182", ref, 1, 0.2)
  1360. so("158210228", ref, 1, 0.4)
  1361. MagniDamage(ref, 55, 4, 6, math.random(-40, -30), "Knockdown2", ref, 0, 1, (math.random(4, 7)), nil, nil, true, nil, nil, nil)
  1362. end
  1363. for i = 1, 10 do
  1364. swait()
  1365. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1366. do
  1367. if StaggerHit.Value == true then
  1368. break
  1369. end
  1370. end
  1371. end
  1372. end
  1373. dec.Parent = nil
  1374. doingcomb = false
  1375. attack = false
  1376. end
  1377. end
  1378. do3 = function()
  1379. doanim = true
  1380. if attack == true then
  1381. return
  1382. end
  1383. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1384. return
  1385. end
  1386. if cooldownmax <= cooldowns[3] and mana.Value >= 15 and RecentEnemy.Value ~= nil then
  1387. decreasemana = true
  1388. hits = 0
  1389. num1 = 0
  1390. hits2 = 0
  1391. attack = true
  1392. doingcomb = true
  1393. cooldowns[3] = 0
  1394. local BodGy = Instance.new("BodyGyro", RootPart)
  1395. BodGy.maxTorque = Vector3.new(0, math.huge, 0)
  1396. BodGy.P = 2000
  1397. BodGy.D = 100
  1398. Guy = nil
  1399. Tors = nil
  1400. if RecentEnemy.Value ~= nil then
  1401. Guy = RecentEnemy.Value
  1402. if RecentEnemy.Value:findFirstChild("Torso") ~= nil then
  1403. Tors = RecentEnemy.Value.Torso
  1404. BodGy.cframe = cf(Torso.Position, RecentEnemy.Value.Torso.Position)
  1405. end
  1406. end
  1407. for i = 0, 1, 0.1 do
  1408. swait()
  1409. if Tors.Parent ~= nil then
  1410. BodGy.cframe = cf(Torso.Position, Tors.Position)
  1411. end
  1412. handlewld.Part1 = RightArm
  1413. handlewld.C0 = clerp(handlewld.C0, euler(1.7, 0, 0) * cf(0, 0.9, 0), 0.3)
  1414. wld1.C0 = clerp(wld1.C0, euler(0.1, 0, 0) * cf(0, 0.5, 0), 0.3)
  1415. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.2, 0, 0), 0.3)
  1416. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.6), 0.3)
  1417. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.7, 0, -1) * euler(0, 1.4, 0), 0.3)
  1418. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1419. LW.C0 = clerp(LW.C0, cf(-1, 0.3, -0.5) * euler(1.2, 0, 1) * euler(0, -1.57, 0), 0.3)
  1420. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1421. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.6, 0), 0.3)
  1422. LH.C0 = clerp(LH.C0, cf(-0.9, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -0.6, 0.1), 0.3)
  1423. end
  1424. if Tors.Parent ~= nil then
  1425. so("206083431", RootPart, 1, 1)
  1426. Clone()
  1427. BodGy.Parent = nil
  1428. local targ = Torso.Position - Tors.Position
  1429. local mag = targ.magnitude
  1430. oldpos = Torso.Position
  1431. Torso.CFrame = cf(Torso.Position, Tors.Position) * cf(0, 0, -mag * 0.8)
  1432. effect(NewCol2, 0, Torso.CFrame, (cf(oldpos)), nil, 1, 1)
  1433. MagicSpecial(BrickColor.new(NewCol2), cf(Torso.Position), 1, 1, 1, 5, 5, 5, 0.2)
  1434. MagicSpecial(BrickColor.new(NewCol2), cf(oldpos), 1, 1, 1, 5, 5, 5, 0.2)
  1435. swait(5)
  1436. so("199145913", prt12, 1, 1.2)
  1437. for i = 0, 1, 0.3 do
  1438. swait()
  1439. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.6, -0.3), 0.5)
  1440. wld1.C0 = clerp(wld1.C0, euler(1, 0, 0) * cf(0, 0, 0), 0.5)
  1441. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.6) * euler(0.2, 0, 0), 0.5)
  1442. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1.2), 0.5)
  1443. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.2) * euler(0, 1.4, 0), 0.5)
  1444. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1445. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -1.3), 0.5)
  1446. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1447. RH.C0 = clerp(RH.C0, cf(0.7, -1, -0.5) * euler(0, 1.57, 0) * euler(-0.1, 1.2, 0), 0.5)
  1448. LH.C0 = clerp(LH.C0, cf(-0.7, -1, 0.5) * euler(0, -1.57, 0) * euler(0, 1.2, 0.1), 0.5)
  1449. end
  1450. if Tors.Parent ~= nil then
  1451. mana.Value = mana.Value - 15
  1452. so("206083232", Tors, 1, 1)
  1453. so("206083252", Tors, 1, 1)
  1454. so("206083267", Tors, 1, 1)
  1455. for i = 1, 2 do
  1456. MagicCircle(BrickColor.new(NewCol2), cf(Tors.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 3, 5, 3, -0.2, 10, -0.2, 0.05)
  1457. end
  1458. for i = 1, 5 do
  1459. Lightning(Tors.Position + vt(math.random(-500, 500) / 100, math.random(-500, 500) / 100, math.random(-500, 500) / 100), Tors.Position + vt(math.random(-500, 500) / 100, math.random(-500, 500) / 100, math.random(-500, 500) / 100), 5, 2, NewCol2, 0.05, 0.4, 0.05)
  1460. end
  1461. if Tors.Parent ~= nil then
  1462. Damagefunc(Tors, 6, 8, 0, "Normal", RootPart, 0, 1, (math.random(1, 3)), nil, false, true, "Movement", 0.1, 300)
  1463. end
  1464. end
  1465. for i = 0, 1, 0.15 do
  1466. swait()
  1467. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.6, -0.3), 0.5)
  1468. wld1.C0 = clerp(wld1.C0, euler(1, 0, 0) * cf(0, 0, 0), 0.5)
  1469. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.6) * euler(0.2, 0, 0), 0.5)
  1470. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1.2), 0.5)
  1471. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.2) * euler(0, 1.4, 0), 0.5)
  1472. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1473. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -1.3), 0.5)
  1474. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1475. RH.C0 = clerp(RH.C0, cf(0.7, -1, -0.5) * euler(0, 1.57, 0) * euler(-0.1, 1.2, 0), 0.5)
  1476. LH.C0 = clerp(LH.C0, cf(-0.7, -1, 0.5) * euler(0, -1.57, 0) * euler(0, 1.2, 0.1), 0.5)
  1477. end
  1478. end
  1479. do
  1480. BodGy.Parent = nil
  1481. doingcomb = false
  1482. attack = false
  1483. end
  1484. end
  1485. end
  1486. do4 = function()
  1487. if attack == true then
  1488. return
  1489. end
  1490. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1491. return
  1492. end
  1493. if cooldownmax <= cooldowns[4] and mana.Value >= 25 and RecentEnemy.Value ~= nil then
  1494. attack = true
  1495. doingcomb = true
  1496. move4do = true
  1497. cooldowns[4] = 0
  1498. Guy = nil
  1499. Tors = nil
  1500. if RecentEnemy.Value ~= nil then
  1501. Guy = RecentEnemy.Value
  1502. if RecentEnemy.Value:findFirstChild("Torso") ~= nil then
  1503. Tors = RecentEnemy.Value.Torso
  1504. end
  1505. end
  1506. print(Guy)
  1507. for i = 0, 1, 0.1 do
  1508. swait()
  1509. handlewld.Part1 = RightArm
  1510. handlewld.C0 = clerp(handlewld.C0, euler(1.7, 0, 0) * cf(0, 0.9, 0), 0.3)
  1511. wld1.C0 = clerp(wld1.C0, euler(0.1, 0, 0) * cf(0, 0.5, 0), 0.3)
  1512. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.2, 0, 0), 0.3)
  1513. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.6), 0.3)
  1514. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.7, 0, -1) * euler(0, 1.4, 0), 0.3)
  1515. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1516. LW.C0 = clerp(LW.C0, cf(-1, 0.3, -0.5) * euler(1.2, 0, 1) * euler(0, -1.57, 0), 0.3)
  1517. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1518. RH.C0 = clerp(RH.C0, cf(0.9, -1, 0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.6, 0), 0.3)
  1519. LH.C0 = clerp(LH.C0, cf(-0.9, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -0.6, 0.1), 0.3)
  1520. end
  1521. if Tors.Parent ~= nil then
  1522. mana.Value = mana.Value - 25
  1523. for i = 1, 5 do
  1524. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1525. ref.Anchored = true
  1526. ref.CFrame = cf(Tors.Position) * cf(0, 10, 0)
  1527. game:GetService("Debris"):AddItem(ref, 1)
  1528. oldpos = Torso.Position
  1529. so("206083431", RootPart, 1, 1)
  1530. Clone()
  1531. ref.CFrame = ref.CFrame * euler(0, math.random(-50, 50), 0) * cf(0, 0, math.random(1000, 2000) / 100) * euler(0, 0, 0)
  1532. hitfloor2, posfloor2 = rayCast(ref.Position, CFrame.new(ref.Position, ref.Position - Vector3.new(0, 1, 0)).lookVector, 100, Character)
  1533. if hitfloor2 ~= nil then
  1534. RootPart.CFrame = cf(posfloor2) * cf(0, 3, 0)
  1535. end
  1536. RootPart.CFrame = cf(RootPart.Position, Tors.Position)
  1537. effect(NewCol2, 0, Torso.CFrame, (cf(oldpos)), nil, 1, 1)
  1538. MagicSpecial(BrickColor.new(NewCol2), cf(Torso.Position), 1, 1, 1, 5, 5, 5, 0.2)
  1539. MagicSpecial(BrickColor.new(NewCol2), cf(oldpos), 1, 1, 1, 5, 5, 5, 0.2)
  1540. so("199145913", prt12, 1, math.random(90, 120) / 100)
  1541. handlewld.C0 = euler(1.7, 0, 0) * cf(0, 0.9, 0)
  1542. wld1.C0 = euler(0.1, 0, 0) * cf(0, 0.5, 0)
  1543. Neck.C0 = necko * euler(0, 0, -0.6) * euler(0.2, 0, 0)
  1544. RootJoint.C0 = RootCF * euler(0, 0, 0.6)
  1545. RW.C0 = cf(1, 0.5, -0.5) * euler(1.7, 0, -1) * euler(0, 1.4, 0)
  1546. LW.C0 = cf(-1, 0.3, -0.5) * euler(1.2, 0, 1) * euler(0, -1.57, 0)
  1547. RH.C0 = cf(0.9, -1, 0.1) * euler(0, 1.57, 0) * euler(-0.1, -0.6, 0)
  1548. LH.C0 = cf(-0.9, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -0.6, 0.1)
  1549. d = math.random(1, 4)
  1550. for i = 0, 1, 0.3 do
  1551. swait()
  1552. if d == 1 then
  1553. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.6, -0.3), 0.5)
  1554. wld1.C0 = clerp(wld1.C0, euler(1, 0, 0) * cf(0, 0, 0), 0.5)
  1555. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.6) * euler(0.2, 0, 0), 0.5)
  1556. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -1.2), 0.5)
  1557. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.2) * euler(0, 1.4, 0), 0.5)
  1558. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1559. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -1.3), 0.5)
  1560. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1561. RH.C0 = clerp(RH.C0, cf(0.7, -1, -0.5) * euler(0, 1.57, 0) * euler(-0.1, 1.2, 0), 0.5)
  1562. LH.C0 = clerp(LH.C0, cf(-0.7, -1, 0.5) * euler(0, -1.57, 0) * euler(0, 1.2, 0.1), 0.5)
  1563. else
  1564. if d == 2 then
  1565. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.6, -0.3), 0.5)
  1566. wld1.C0 = clerp(wld1.C0, euler(1, 0, 0) * cf(0, 0, 0), 0.5)
  1567. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.2, 0, 0), 0.5)
  1568. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 1.4), 0.5)
  1569. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(0.5, 0, -1) * euler(0, -0.6, 0), 0.5)
  1570. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1571. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.2), 0.5)
  1572. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1573. RH.C0 = clerp(RH.C0, cf(0.8, -1, 0.3) * euler(0, 1.57, 0) * euler(0, -1, -0.1), 0.5)
  1574. LH.C0 = clerp(LH.C0, cf(-0.8, -1, -0.3) * euler(0, -1.57, 0) * euler(0, -1, 0), 0.5)
  1575. else
  1576. if d == 3 then
  1577. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, -0.3) * euler(0, -0.1, 0), 0.5)
  1578. wld1.C0 = clerp(wld1.C0, euler(0, 1.1, 0) * cf(0, 0, 0) * euler(0.5, 0, 0.5), 0.5)
  1579. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.5)
  1580. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.5)
  1581. RW.C0 = clerp(RW.C0, cf(1, 0.1, -0.5) * euler(0.2, 0, -0.8) * euler(0, 0, 0), 0.5)
  1582. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1583. LW.C0 = clerp(LW.C0, cf(-1, 0.1, -0.5) * euler(0.2, 0, 0.8), 0.5)
  1584. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1585. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.5)
  1586. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.5)
  1587. else
  1588. if d == 4 then
  1589. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.6, -0.3), 0.5)
  1590. wld1.C0 = clerp(wld1.C0, euler(1, 0, 0) * cf(0, 0, 0), 0.5)
  1591. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.4) * euler(0.2, 0, 0), 0.5)
  1592. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.4), 0.5)
  1593. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(0.4, 0, -0.8) * euler(0, -0.5, 0), 0.5)
  1594. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1595. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.7, 0, -0.7) * euler(0, 0, 0), 0.5)
  1596. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1597. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, -0.4, -0.1), 0.5)
  1598. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, -0.4, 0.3), 0.5)
  1599. end
  1600. end
  1601. end
  1602. end
  1603. end
  1604. if Tors.Parent ~= nil then
  1605. so("206083232", Tors, 1, 1)
  1606. so("206083252", Tors, 1, 1)
  1607. so("206083267", Tors, 1, 1)
  1608. for i = 1, 2 do
  1609. MagicCircle(BrickColor.new(NewCol2), cf(Tors.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 3, 5, 3, -0.2, 10, -0.2, 0.05)
  1610. end
  1611. for i = 1, 5 do
  1612. Lightning(Tors.Position + vt(math.random(-500, 500) / 100, math.random(-500, 500) / 100, math.random(-500, 500) / 100), Tors.Position + vt(math.random(-500, 500) / 100, math.random(-500, 500) / 100, math.random(-500, 500) / 100), 5, 2, NewCol2, 0.05, 0.4, 0.05)
  1613. end
  1614. if Tors.Parent ~= nil then
  1615. Damagefunc(Tors, 6, 8, 0, "Normal", RootPart, 0, 1, (math.random(1, 3)), nil, false, true, "Damage", 0.05, 300)
  1616. end
  1617. end
  1618. if Tors.Parent == nil then
  1619. break
  1620. end
  1621. swait(5)
  1622. end
  1623. end
  1624. do
  1625. move4do = false
  1626. doingcomb = false
  1627. attack = false
  1628. end
  1629. end
  1630. end
  1631. findNearestTorso = function(pos, distance)
  1632. local list = (game.Workspace:children())
  1633. local torso = nil
  1634. local dist = distance
  1635. local temp, human, temp2 = nil, nil, nil
  1636. for x = 1, #list do
  1637. temp2 = list[x]
  1638. canfind = true
  1639. -- DECOMPILER ERROR at PC36: Unhandled construct in 'MakeBoolean' P1
  1640.  
  1641. if game.Players:GetPlayerFromCharacter(temp2) ~= nil and game.Players:GetPlayerFromCharacter(temp2).TeamColor == Player.TeamColor and Player.Neutral == false then
  1642. canfind = false
  1643. end
  1644. canfind = true
  1645. if temp2.className == "Model" and temp2 ~= Character and canfind == true then
  1646. temp = temp2:findFirstChild("Torso")
  1647. human = temp2:findFirstChild("Humanoid")
  1648. if temp ~= nil and human ~= nil and human.Health > 0 and temp.Position - pos.magnitude < dist then
  1649. torso = temp
  1650. dist = temp.Position - pos.magnitude
  1651. end
  1652. end
  1653. end
  1654. return torso, dist
  1655. end
  1656. DecreaseStat = function(Model, Stat, Amount, Duration)
  1657. if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
  1658. Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
  1659. d = Instance.new("NumberValue", Model.Stats.Decrease)
  1660. dur = Instance.new("NumberValue", d)
  1661. dur.Name = "Duration"
  1662. dur.Value = Duration
  1663. game:GetService("Debris"):AddItem(d, 20)
  1664. if Stat == "Damage" then
  1665. d.Name = "DecreaseAtk"
  1666. else
  1667. if Stat == "Defense" then
  1668. d.Name = "DecreaseDef"
  1669. else
  1670. if Stat == "Movement" then
  1671. d.Name = "DecreaseMvmt"
  1672. end
  1673. end
  1674. end
  1675. if Model:findFirstChild("Torso") ~= nil then
  1676. display = ""
  1677. if Stat == "Damage" then
  1678. if Amount > 0 then
  1679. display = "-Damage"
  1680. else
  1681. display = "+Damage"
  1682. end
  1683. else
  1684. if Stat == "Defense" then
  1685. if Amount > 0 then
  1686. display = "-Defense"
  1687. else
  1688. display = "+Defense"
  1689. end
  1690. else
  1691. if Stat == "Movement" then
  1692. if Amount > 0 then
  1693. display = "-Movement"
  1694. else
  1695. display = "+Movement"
  1696. end
  1697. end
  1698. end
  1699. end
  1700. showDamage(Model, display, "Debuff")
  1701. end
  1702. d.Value = Amount
  1703. end
  1704. end
  1705. GetDist = function(Part1, Part2, magni)
  1706. local targ = Part1.Position - Part2.Position
  1707. local mag = targ.magnitude
  1708. if mag <= magni then
  1709. return true
  1710. else
  1711. return false
  1712. end
  1713. end
  1714. MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  1715. for _,c in pairs(workspace:children()) do
  1716. local hum = c:findFirstChild("Humanoid")
  1717. if hum ~= nil then
  1718. local head = nil
  1719. for _,d in pairs(c:children()) do
  1720. if d.className == "Model" and ranged ~= true then
  1721. head = d:findFirstChild("Hitbox")
  1722. if d.Parent == Character then
  1723. break
  1724. end
  1725. if head ~= nil then
  1726. local targ = head.Position - Part.Position
  1727. local mag = targ.magnitude
  1728. if mag <= magni and c.Name ~= Player.Name then
  1729. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1730. ref.Anchored = true
  1731. ref.CFrame = cf(head.Position)
  1732. game:GetService("Debris"):AddItem(ref, 1)
  1733. hitnum = math.random(1, 5)
  1734. if hitnum == 1 then
  1735. so("199148971", ref, 1, 1)
  1736. else
  1737. if hitnum == 2 then
  1738. so("199149025", ref, 1, 1)
  1739. else
  1740. if hitnum == 3 then
  1741. so("199149072", ref, 1, 1)
  1742. else
  1743. if hitnum == 4 then
  1744. so("199149109", ref, 1, 1)
  1745. else
  1746. if hitnum == 5 then
  1747. so("199149119", ref, 1, 1)
  1748. end
  1749. end
  1750. end
  1751. end
  1752. end
  1753. StaggerHit.Value = true
  1754. end
  1755. end
  1756. end
  1757. do
  1758. if d.className == "Part" and d.Name=="Torso" then
  1759. head = d
  1760. if head ~= nil then
  1761. local targ = head.Position - Part.Position
  1762. local mag = targ.magnitude
  1763. if mag <= magni and c.Name ~= Player.Name then
  1764. if stun == nil then
  1765. stun = math.random(5, 10)
  1766. end
  1767. local Rang = nil
  1768. if Ranged == false then
  1769. Rang = true
  1770. end
  1771. local stag = nil
  1772. if shbash == true then
  1773. stag = true
  1774. end
  1775. Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  1776. end
  1777. end
  1778. end
  1779. do
  1780. -- DECOMPILER ERROR at PC183: LeaveBlock: unexpected jumping out DO_STMT
  1781.  
  1782. end
  1783. end
  1784. end
  1785. end
  1786. end
  1787. end
  1788. MagniBuff = function(Part, magni, Dec, DecAm, Dur)
  1789. if Player.Neutral == true then
  1790. DecreaseStat(Character, Dec, DecAm, Dur)
  1791. end
  1792. for _,c in pairs(workspace:children()) do
  1793. local hum = c:findFirstChild("Humanoid")
  1794. if hum ~= nil then
  1795. local head = c:findFirstChild("Torso")
  1796. if head ~= nil then
  1797. local targ = head.Position - Part.Position
  1798. local mag = targ.magnitude
  1799. cando = true
  1800. if mag <= magni then
  1801. if Player.Neutral == false then
  1802. if game.Players:GetPlayerFromCharacter(head.Parent) ~= nil then
  1803. if game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
  1804. cando = true
  1805. else
  1806. cando = false
  1807. end
  1808. else
  1809. cando = false
  1810. end
  1811. if head.Parent:findFirstChild("Alignment") ~= nil and head.Parent.Alignment.Value == Player.TeamColor.Color then
  1812. cando = true
  1813. end
  1814. else
  1815. cando = false
  1816. end
  1817. if cando == true then
  1818. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  1819. end
  1820. end
  1821. end
  1822. end
  1823. end
  1824. end
  1825. MagniDebuff = function(Part, magni, Dec, DecAm, Dur)
  1826. for _,c in pairs(workspace:children()) do
  1827. local hum = c:findFirstChild("Humanoid")
  1828. if hum ~= nil then
  1829. local head = c:findFirstChild("Torso")
  1830. if head ~= nil then
  1831. local targ = head.Position - Part.Position
  1832. local mag = targ.magnitude
  1833. if mag <= magni and c.Name ~= Player.Name and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and (game.Players:GetPlayerFromCharacter(head.Parent).TeamColor ~= Player.TeamColor or Player.Neutral == true) then
  1834. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  1835. end
  1836. end
  1837. end
  1838. end
  1839. end
  1840. rayCast = function(Pos, Dir, Max, Ignore)
  1841. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1842. end
  1843. local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
  1844. LastPoint = Point
  1845. effect = function(Color, Ref, LP, P1, returnn, size, thing1)
  1846. if LP == nil or P1 == nil then
  1847. return
  1848. end
  1849. local effectsmsh = Instance.new("SpecialMesh")
  1850. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  1851. effectsmsh.MeshType = "Head"
  1852. effectsmsh.Name = "Mesh"
  1853. local effectsg = Instance.new("Part")
  1854. NoOutline(effectsg)
  1855. effectsg.formFactor = 3
  1856. effectsg.CanCollide = false
  1857. effectsg.Name = "Eff"
  1858. effectsg.Locked = true
  1859. effectsg.Anchored = true
  1860. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  1861. effectsg.Parent = workspace
  1862. effectsmsh.Parent = effectsg
  1863. effectsg.BrickColor = BrickColor.new(Color)
  1864. effectsg.Reflectance = Ref
  1865. local point1 = P1
  1866. local mg = (LP.p - point1.p).magnitude
  1867. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  1868. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  1869. effectsmsh.Scale = Vector3.new(size, 1, size)
  1870. game:GetService("Debris"):AddItem(effectsg, 2)
  1871. if returnn then
  1872. return effectsg
  1873. end
  1874. if not returnn then
  1875. if thing1 == 1 then
  1876. table.insert(Effects, {effectsg, "Cylinder", 0.05, 0.2, 0, 0.2, effectsmsh})
  1877. else
  1878. table.insert(Effects, {effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
  1879. end
  1880. end
  1881. end
  1882. local CFrameFromTopBack = function(at, top, back)
  1883. local right = top:Cross(back)
  1884. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  1885. end
  1886. Triangle = function(a, b, c)
  1887. local edg1 = c - a:Dot(b - a.unit)
  1888. local edg2 = a - b:Dot(c - b.unit)
  1889. local edg3 = b - c:Dot(a - c.unit)
  1890. if edg1 <= b - a.magnitude and edg1 >= 0 then
  1891. a = a
  1892. else
  1893. -- DECOMPILER ERROR at PC35: Overwrote pending register: R1 in 'AssignReg'
  1894.  
  1895. if edg2 <= c - b.magnitude and edg2 >= 0 then
  1896. a = b
  1897. else
  1898. -- DECOMPILER ERROR at PC46: Overwrote pending register: R2 in 'AssignReg'
  1899.  
  1900. -- DECOMPILER ERROR at PC47: Overwrote pending register: R1 in 'AssignReg'
  1901.  
  1902. if edg3 <= a - c.magnitude and edg3 >= 0 then
  1903. a = c
  1904. else
  1905. assert(false, "unreachable")
  1906. end
  1907. end
  1908. end
  1909. local len1 = c - a:Dot(b - a.unit)
  1910. local len2 = b - a.magnitude - len1
  1911. local width = a + b - a.unit * len1 - c.magnitude
  1912. local maincf = CFrameFromTopBack(a, b - a:Cross(c - b).unit, -b - a.unit)
  1913. local list = {}
  1914. if len1 > 0.01 then
  1915. local w1 = Instance.new("WedgePart", m)
  1916. w1.Name = "Triangle"
  1917. game:GetService("Debris"):AddItem(w1, 5)
  1918. w1.Material = "SmoothPlastic"
  1919. w1.FormFactor = "Custom"
  1920. w1.BrickColor = BrickColor.new("Medium blue")
  1921. w1.Transparency = 0
  1922. w1.Reflectance = 0
  1923. w1.Material = "SmoothPlastic"
  1924. w1.CanCollide = false
  1925. NoOutline(w1)
  1926. local sz = Vector3.new(0.2, width, len1)
  1927. w1.Size = sz
  1928. local sp = Instance.new("SpecialMesh", w1)
  1929. sp.MeshType = "Wedge"
  1930. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  1931. w1:BreakJoints()
  1932. w1.Anchored = true
  1933. w1.Parent = workspace
  1934. w1.Transparency = 0.7
  1935. table.insert(Effects, {w1, "Disappear", 0.05})
  1936. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  1937. table.insert(list, w1)
  1938. end
  1939. do
  1940. if len2 > 0.01 then
  1941. local w2 = Instance.new("WedgePart", m)
  1942. w2.Name = "Triangle"
  1943. game:GetService("Debris"):AddItem(w2, 5)
  1944. w2.Material = "SmoothPlastic"
  1945. w2.FormFactor = "Custom"
  1946. w2.BrickColor = BrickColor.new("Medium blue")
  1947. w2.Transparency = 0
  1948. w2.Reflectance = 0
  1949. w2.Material = "SmoothPlastic"
  1950. w2.CanCollide = false
  1951. NoOutline(w2)
  1952. local sz = Vector3.new(0.2, width, len2)
  1953. w2.Size = sz
  1954. local sp = Instance.new("SpecialMesh", w2)
  1955. sp.MeshType = "Wedge"
  1956. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  1957. w2:BreakJoints()
  1958. w2.Anchored = true
  1959. w2.Parent = workspace
  1960. w2.Transparency = 0.7
  1961. table.insert(Effects, {w2, "Disappear", 0.05})
  1962. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  1963. table.insert(list, w2)
  1964. end
  1965. do
  1966. return unpack(list)
  1967. end
  1968. end
  1969. end
  1970. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1971. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  1972. prt.Anchored = true
  1973. prt.CFrame = cframe
  1974. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  1975. game:GetService("Debris"):AddItem(prt, 10)
  1976. if Type == 1 or Type == nil then
  1977. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  1978. else
  1979. if Type == 2 then
  1980. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  1981. end
  1982. end
  1983. end
  1984. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1985. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  1986. prt.Anchored = true
  1987. prt.CFrame = cframe
  1988. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  1989. game:GetService("Debris"):AddItem(prt, 10)
  1990. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  1991. end
  1992. MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push)
  1993. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  1994. prt.Anchored = true
  1995. prt.CFrame = cframe
  1996. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  1997. game:GetService("Debris"):AddItem(prt, 10)
  1998. table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push})
  1999. end
  2000. MagicCircle3 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, partt)
  2001. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2002. prt.Anchored = true
  2003. prt.CFrame = cf(partt.Position) * cframe
  2004. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2005. game:GetService("Debris"):AddItem(prt, 10)
  2006. table.insert(Effects, {prt, "Cylinder2", delay, x3, y3, z3, msh, cframe, partt})
  2007. end
  2008. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2009. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2010. prt.Anchored = true
  2011. prt.CFrame = cframe
  2012. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2013. game:GetService("Debris"):AddItem(prt, 10)
  2014. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2015. end
  2016. MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2017. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2018. prt.Anchored = true
  2019. prt.CFrame = cframe
  2020. local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  2021. game:GetService("Debris"):AddItem(prt, 10)
  2022. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2023. end
  2024. ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
  2025. local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  2026. prt.Anchored = true
  2027. prt.CFrame = cframe
  2028. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
  2029. game:GetService("Debris"):AddItem(prt, 10)
  2030. table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
  2031. end
  2032. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2033. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2034. prt.Anchored = true
  2035. prt.CFrame = cframe
  2036. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  2037. game:GetService("Debris"):AddItem(prt, 10)
  2038. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2039. end
  2040. MagicSpecial = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2041. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2042. prt.Anchored = true
  2043. prt.CFrame = cframe
  2044. local msh = mesh("SpecialMesh", prt, "FileMesh", "24388358", vt(0, 0, 0), vt(x1, y1, z1))
  2045. game:GetService("Debris"):AddItem(prt, 10)
  2046. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  2047. end
  2048. Lightning = function(p0, p1, tym, ofs, col, th, tra, last)
  2049. local magz = (p0 - p1).magnitude
  2050. local curpos = p0
  2051. local trz = {-ofs, ofs}
  2052. for i = 1, tym do
  2053. local li = Instance.new("Part", workspace)
  2054. li.TopSurface = 0
  2055. li.BottomSurface = 0
  2056. li.Anchored = true
  2057. li.Transparency = tra or 0.4
  2058. li.BrickColor = BrickColor.new(col)
  2059. li.formFactor = "Custom"
  2060. li.CanCollide = false
  2061. li.Size = Vector3.new(th, th, magz / tym)
  2062. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  2063. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  2064. if tym == i then
  2065. local magz2 = (curpos - p1).magnitude
  2066. li.Size = Vector3.new(th, th, magz2)
  2067. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  2068. table.insert(Effects, {li, "Disappear", last})
  2069. else
  2070. do
  2071. do
  2072. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  2073. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  2074. game.Debris:AddItem(li, 10)
  2075. table.insert(Effects, {li, "Disappear", last})
  2076. end
  2077. end
  2078. end
  2079. end
  2080. end
  2081. Clone = function()
  2082. for _,v in pairs(Torso.Parent:children()) do
  2083. if v.className == "Part" and v.Name ~= "HumanoidRootPart" then
  2084. local c = part(3, workspace, 0, 0.5, BrickColor.new(NewCol2), "Effect", v.Size)
  2085. c.Anchored = true
  2086. c.CFrame = v.CFrame
  2087. game:GetService("Debris"):AddItem(c, 5)
  2088. if v.Name == "Head" then
  2089. cmsh = mesh("SpecialMesh", c, "Head", "nil", vt(0, 0, 0), v.Mesh.Scale)
  2090. end
  2091. table.insert(Effects, {c, "Disappear", 0.01})
  2092. end
  2093. end
  2094. end
  2095. CloneArms = function()
  2096. for _,v in pairs(Torso.Parent:children()) do
  2097. if v.Name == "Left Arm" or v.Name == "Right Arm" then
  2098. local c = part(3, workspace, 0, 0.5, v.BrickColor, "Effect", v.Size)
  2099. c.Anchored = true
  2100. c.CFrame = v.CFrame
  2101. game:GetService("Debris"):AddItem(c, 5)
  2102. if v.Name == "Head" then
  2103. cmsh = mesh("SpecialMesh", c, "Head", "nil", vt(0, 0, 0), v.Mesh.Scale)
  2104. end
  2105. table.insert(Effects, {c, "Disappear", 0.05})
  2106. end
  2107. end
  2108. end
  2109. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2110. if hit.Parent == nil then
  2111. return
  2112. end
  2113. if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then
  2114. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2115. ref.Anchored = true
  2116. ref.CFrame = cf(hit.Position)
  2117. game:GetService("Debris"):AddItem(ref, 1)
  2118. hitnum = math.random(1, 5)
  2119. if hitnum == 1 then
  2120. so("199148971", ref, 1, 1)
  2121. else
  2122. if hitnum == 2 then
  2123. so("199149025", ref, 1, 1)
  2124. else
  2125. if hitnum == 3 then
  2126. so("199149072", ref, 1, 1)
  2127. else
  2128. if hitnum == 4 then
  2129. so("199149109", ref, 1, 1)
  2130. else
  2131. if hitnum == 5 then
  2132. so("199149119", ref, 1, 1)
  2133. end
  2134. end
  2135. end
  2136. end
  2137. end
  2138. StaggerHit.Value = true
  2139. end
  2140. h = hit.Parent:FindFirstChild("Humanoid")
  2141. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  2142. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  2143. return
  2144. end
  2145. if Player.Neutral == false then
  2146. if hit.Parent:findFirstChild("Alignment") ~= nil and hit.Parent.Alignment.Value == Player.TeamColor.Color then
  2147. return
  2148. end
  2149. if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then
  2150. return
  2151. end
  2152. end
  2153. c = Instance.new("ObjectValue")
  2154. c.Name = "creator"
  2155. c.Value = game:service("Players").LocalPlayer
  2156. c.Parent = h
  2157. if doingcomb == true then
  2158. RecentEnemy.Value = hit.Parent
  2159. end
  2160. game:GetService("Debris"):AddItem(c, 0.5)
  2161. minim = minim * Atk.Value
  2162. maxim = maxim * Atk.Value
  2163. Damage = 0
  2164. if minim == maxim then
  2165. Damage = maxim
  2166. else
  2167. Damage = math.random(minim, maxim)
  2168. end
  2169. blocked = false
  2170. enblock = nil
  2171. Stats = hit.Parent:findFirstChild("Stats")
  2172. if Stats ~= nil then
  2173. invis = Stats:findFirstChild("Invisibility")
  2174. isinvis = Stats:findFirstChild("IsInvisible")
  2175. if (ranged == false or ranged == nil) and invis ~= nil and isinvis.Value == true then
  2176. invis.Value = 0
  2177. end
  2178. enblock = Stats:findFirstChild("Block")
  2179. if enblock ~= nil and enblock.Value == true then
  2180. blocked = true
  2181. end
  2182. if Stats:findFirstChild("Defense") ~= nil then
  2183. Damage = Damage / Stats.Defense.Value
  2184. if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then
  2185. hitnum = math.random(1, 5)
  2186. if hitnum == 1 then
  2187. so("199149321", hit, 1, 1)
  2188. else
  2189. if hitnum == 2 then
  2190. so("199149338", hit, 1, 1)
  2191. else
  2192. if hitnum == 3 then
  2193. so("199149367", hit, 1, 1)
  2194. else
  2195. if hitnum == 4 then
  2196. so("199149409", hit, 1, 1)
  2197. else
  2198. if hitnum == 5 then
  2199. so("199149452", hit, 1, 1)
  2200. end
  2201. end
  2202. end
  2203. end
  2204. end
  2205. else
  2206. if ranged == false or ranged == nil and blocked ~= true then
  2207. hitnum = math.random(1, 6)
  2208. if hitnum == 1 then
  2209. so("199149137", hit, 1, 1)
  2210. else
  2211. if hitnum == 2 then
  2212. so("199149186", hit, 1, 1)
  2213. else
  2214. if hitnum == 3 then
  2215. so("199149221", hit, 1, 1)
  2216. else
  2217. if hitnum == 4 then
  2218. so("199149235", hit, 1, 1)
  2219. else
  2220. if hitnum == 5 then
  2221. so("199149269", hit, 1, 1)
  2222. else
  2223. if hitnum == 6 then
  2224. so("199149297", hit, 1, 1)
  2225. end
  2226. end
  2227. end
  2228. end
  2229. end
  2230. end
  2231. end
  2232. end
  2233. if Damage <= 3 and staghit == true and ranged ~= true then
  2234. StaggerHit.Value = true
  2235. end
  2236. end
  2237. if Stats:findFirstChild("Stun") ~= nil then
  2238. if blocked == true then
  2239. incstun = incstun / 2
  2240. end
  2241. --[[if Stats.Stun.Value < Stats.StunThreshold.Value then
  2242. Stats.Stun.Value = Stats.Stun.Value + incstun
  2243. end--]]
  2244. end
  2245. if Stats:findFirstChild("Stagger") ~= nil and stagger == true then
  2246. Stats.Stagger.Value = true
  2247. end
  2248. end
  2249. if blocked == true then
  2250. showDamage(hit.Parent, "Block", "Damage")
  2251. if ranged ~= true then
  2252. enblock.Value = false
  2253. Stagger.Value = true
  2254. hitnum = math.random(1, 2)
  2255. if hitnum == 1 then
  2256. so("199148933", hit, 1, 1)
  2257. else
  2258. if hitnum == 2 then
  2259. so("199148947", hit, 1, 1)
  2260. end
  2261. end
  2262. end
  2263. else
  2264. Damage = math.floor(Damage)
  2265. coroutine.resume(coroutine.create(function(Hum, Dam)
  2266. hit.Parent.Humanoid:TakeDamage(Damage)
  2267. end
  2268. ), h, Damage)
  2269. showDamage(hit.Parent, Damage, "Damage")
  2270. if DecreaseState ~= nil then
  2271. if DecreaseState == "Temporal" then
  2272. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  2273. DecreaseStat(hit.Parent, "Defense", DecreaseAmount, Duration)
  2274. else
  2275. if DecreaseState == "Temporal2" then
  2276. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  2277. DecreaseStat(hit.Parent, "Movement", DecreaseAmount, Duration)
  2278. else
  2279. DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration)
  2280. end
  2281. end
  2282. end
  2283. if Type == "NormalDecreaseMvmt1" then
  2284. DecreaseStat(hit.Parent, "Movement", 0.1, 200)
  2285. end
  2286. if Type == "Knockdown" then
  2287. hum = hit.Parent.Humanoid
  2288. hum.PlatformStand = true
  2289. coroutine.resume(coroutine.create(function(HHumanoid)
  2290. swait(1)
  2291. HHumanoid.PlatformStand = false
  2292. end), hum)
  2293. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2294. local bodvol = Instance.new("BodyVelocity")
  2295. bodvol.velocity = angle * knockback
  2296. bodvol.P = 500
  2297. bodvol.maxForce = Vector3.new(3000, 3000, 3000)
  2298. bodvol.Parent = hit
  2299. rl = Instance.new("BodyAngularVelocity")
  2300. rl.P = 3000
  2301. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  2302. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  2303. rl.Parent = hit
  2304. game:GetService("Debris"):AddItem(bodvol, 0.5)
  2305. game:GetService("Debris"):AddItem(rl, 0.5)
  2306. else
  2307. do
  2308. if Type == "Knockdown2" then
  2309. hum = hit.Parent.Humanoid
  2310. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  2311. local bodvol = Instance.new("BodyVelocity")
  2312. bodvol.velocity = angle * knockback
  2313. bodvol.P = 500
  2314. bodvol.maxForce = Vector3.new(3000, 3000, 3000)
  2315. bodvol.Parent = hit
  2316. game:GetService("Debris"):AddItem(bodvol, 0.5)
  2317. else
  2318. do
  2319. if Type == "Normal" or Type == "NormalDecreaseMvmt1" then
  2320. vp = Instance.new("BodyVelocity")
  2321. vp.P = 500
  2322. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  2323. if KnockbackType == 1 then
  2324. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  2325. else
  2326. if KnockbackType == 2 then
  2327. vp.velocity = Property.CFrame.lookVector * knockback
  2328. end
  2329. end
  2330. game:GetService("Debris"):AddItem(vp, 0.5)
  2331. if knockback > 0 then
  2332. vp.Parent = hit.Parent.Torso
  2333. end
  2334. end
  2335. debounce = Instance.new("BoolValue")
  2336. debounce.Name = "DebounceHit"
  2337. debounce.Parent = hit.Parent
  2338. debounce.Value = true
  2339. game:GetService("Debris"):AddItem(debounce, Delay)
  2340. c = Instance.new("ObjectValue")
  2341. c.Name = "creator"
  2342. c.Value = Player
  2343. c.Parent = h
  2344. game:GetService("Debris"):AddItem(c, 0.5)
  2345. CRIT = false
  2346. end
  2347. end
  2348. end
  2349. end
  2350. end
  2351. end
  2352. end
  2353. showDamage = function(Char, Dealt, Type)
  2354. m = Instance.new("Model")
  2355. m.Name = "Effect"
  2356. c = Instance.new("Part")
  2357. c.Transparency = 1
  2358. c.Name = "Head"
  2359. c.TopSurface = 0
  2360. c.BottomSurface = 0
  2361. c.formFactor = "Plate"
  2362. c.Size = Vector3.new(1, 0.4, 1)
  2363. b = Instance.new("BillboardGui", c)
  2364. b.Size = UDim2.new(5, 0, 5, 0)
  2365. b.AlwaysOnTop = true
  2366. damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  2367. if Type == "Damage" then
  2368. damgui.Font = "SourceSans"
  2369. if Dealt == "Block" then
  2370. damgui.TextColor3 = BrickColor.new("Bright blue").Color
  2371. else
  2372. if Dealt < 3 then
  2373. damgui.TextColor3 = BrickColor.new("White").Color
  2374. else
  2375. if Dealt >= 3 and Dealt < 20 then
  2376. damgui.TextColor3 = BrickColor.new("Bright yellow").Color
  2377. else
  2378. damgui.TextColor3 = BrickColor.new("Really red").Color
  2379. damgui.Font = "SourceSansBold"
  2380. end
  2381. end
  2382. end
  2383. else
  2384. if Type == "Debuff" then
  2385. damgui.TextColor3 = BrickColor.new("White").Color
  2386. else
  2387. if Type == "Interrupt" then
  2388. damgui.TextColor3 = BrickColor.new("New Yeller").Color
  2389. end
  2390. end
  2391. end
  2392. damgui.TextScaled = true
  2393. ms = Instance.new("CylinderMesh")
  2394. ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  2395. ms.Parent = c
  2396. c.Reflectance = 0
  2397. Instance.new("BodyGyro").Parent = c
  2398. c.Parent = m
  2399. if Char:findFirstChild("Head") ~= nil then
  2400. c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  2401. else
  2402. if Char.Parent:findFirstChild("Head") ~= nil then
  2403. c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  2404. end
  2405. end
  2406. f = Instance.new("BodyPosition")
  2407. f.P = 2000
  2408. f.D = 100
  2409. f.maxForce = Vector3.new(545000, 545000, 545000)
  2410. if Type == "Damage" then
  2411. f.position = c.Position + Vector3.new(0, 3, 0)
  2412. else
  2413. if Type == "Debuff" or Type == "Interrupt" then
  2414. f.position = c.Position + Vector3.new(0, 5, 0)
  2415. end
  2416. end
  2417. f.Parent = c
  2418. game:GetService("Debris"):AddItem(m, 5)
  2419. table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
  2420. c.CanCollide = false
  2421. m.Parent = workspace
  2422. c.CanCollide = false
  2423. end
  2424. combo = 0
  2425. ob1d = function(mouse)
  2426. if attack == true or equipped == false then
  2427. return
  2428. end
  2429. hold = true
  2430. doingcomb = true
  2431. if combo == 0 then
  2432. combo = 1
  2433. attackone()
  2434. else
  2435. if combo == 1 then
  2436. combo = 2
  2437. attacktwo()
  2438. else
  2439. if combo == 2 then
  2440. combo = 3
  2441. attackthree()
  2442. else
  2443. if combo == 3 then
  2444. combo = 0
  2445. attackfour()
  2446. end
  2447. end
  2448. end
  2449. end
  2450. doingcomb = false
  2451. coroutine.resume(coroutine.create(function()
  2452. for i = 1, 50 do
  2453. if doingcomb == false then
  2454. swait()
  2455. end
  2456. end
  2457. if doingcomb == false then
  2458. combo = 0
  2459. RecentEnemy.Value = nil
  2460. end
  2461. end))
  2462. end
  2463. ob1u = function(mouse)
  2464. hold = false
  2465. end
  2466. buttonhold = false
  2467. fenbarmove1.MouseButton1Click:connect(do1)
  2468. fenbarmove2.MouseButton1Click:connect(do2)
  2469. fenbarmove3.MouseButton1Click:connect(do3)
  2470. fenbarmove4.MouseButton1Click:connect(do4)
  2471. eul = 0
  2472. equipped = false
  2473. key = function(key)
  2474. if key == "e" then
  2475. DistortionCharge()
  2476. end
  2477. if key == "x" and graviting == true then
  2478. do2()
  2479. return
  2480. end
  2481. if key == "c" and doanim == false then
  2482. do3()
  2483. return
  2484. end
  2485. if attack == true then
  2486. return
  2487. end
  2488. if key == "f" then
  2489. pressedf = true
  2490. fnumb = 0
  2491. attack = true
  2492. if equipped == false then
  2493. equipped = true
  2494. RSH = ch.Torso["Right Shoulder"]
  2495. LSH = ch.Torso["Left Shoulder"]
  2496. RSH.Parent = nil
  2497. LSH.Parent = nil
  2498. RW.Name = "Right Shoulder"
  2499. RW.Part0 = ch.Torso
  2500. RW.C0 = cf(1.5, 0.5, 0)
  2501. RW.C1 = cf(0, 0.5, 0)
  2502. RW.Part1 = ch["Right Arm"]
  2503. RW.Parent = ch.Torso
  2504. LW.Name = "Left Shoulder"
  2505. LW.Part0 = ch.Torso
  2506. LW.C0 = cf(-1.5, 0.5, 0)
  2507. LW.C1 = cf(0, 0.5, 0)
  2508. LW.Part1 = ch["Left Arm"]
  2509. LW.Parent = ch.Torso
  2510. Animate.Parent = nil
  2511. equipanim()
  2512. else
  2513. equipped = false
  2514. hideanim()
  2515. LH.C1 = LHC1
  2516. RH.C1 = RHC1
  2517. Animate.Parent = Humanoid
  2518. swait(0)
  2519. RW.Parent = nil
  2520. LW.Parent = nil
  2521. RSH.Parent = player.Character.Torso
  2522. LSH.Parent = player.Character.Torso
  2523. end
  2524. attack = false
  2525. end
  2526. if equipped == false then
  2527. return
  2528. end
  2529. if key == "z" then
  2530. do1()
  2531. end
  2532. if key == "x" then
  2533. do2()
  2534. end
  2535. if key == "c" then
  2536. do3()
  2537. end
  2538. if key == "v" then
  2539. do4()
  2540. end
  2541. end
  2542. key2 = function(key)
  2543. end
  2544. s = function(mouse)
  2545. mouse.Button1Down:connect(function()
  2546. ob1d(mouse)
  2547. end)
  2548. mouse.Button1Up:connect(function()
  2549. ob1u(mouse)
  2550. end)
  2551. mouse.KeyDown:connect(key)
  2552. mouse.KeyUp:connect(key2)
  2553. player = Player
  2554. ch = Character
  2555. end
  2556. ds = function(mouse)
  2557. end
  2558. Bin.Selected:connect(s)
  2559. Bin.Deselected:connect(ds)
  2560. print("Tempus loaded.")
  2561. local mananum = 0
  2562. local donum = 0
  2563. local stunnum = 0
  2564. local staggeranim = false
  2565. local stunanim = false
  2566. local passivenum = 0
  2567. local passivenum2 = 0
  2568. local walk = 0
  2569. local walkforw = true
  2570. while 1 do
  2571. swait()
  2572. if Humanoid.Health <= 0 then
  2573. attack = true
  2574. resumeControl()
  2575. modelzorz.Parent = workspace
  2576. game:GetService("Debris"):AddItem(modelzorz, 30)
  2577. for i = 1, #Weapon do
  2578. Weapon[i].Parent = modelzorz
  2579. Weapon[i].CanCollide = true
  2580. end
  2581. for i = 1, #Welds do
  2582. if Welds[i].Part0.Parent == Character or Welds[i].Part1.Parent == Character then
  2583. Welds[i].Parent = nil
  2584. else
  2585. Welds[i].Parent = prt1
  2586. end
  2587. end
  2588. end
  2589. do
  2590. if fnumb < 21 then
  2591. fnumb = fnumb + 1
  2592. if pressedf == false then
  2593. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025
  2594. tellbar.TextTransparency = tellbar.TextTransparency - 0.05
  2595. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05
  2596. else
  2597. if fnumb == 20 then
  2598. fenframe5.Parent = nil
  2599. print("daigui")
  2600. end
  2601. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025
  2602. tellbar.TextTransparency = tellbar.TextTransparency + 0.05
  2603. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05
  2604. end
  2605. end
  2606. if hbwld.Parent == nil then
  2607. hitbox2.Name = "Hitbox"
  2608. else
  2609. hitbox2.Name = "Hitbox2"
  2610. end
  2611. hitbox2.Parent = hitbox.Parent
  2612. hitbox2.Size = hitbox.Size
  2613. hitbox2.CFrame = hitboxCF
  2614. hboxpos.position = hitbox2.Position + vt(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100)
  2615. if Humanoid.Health <= 0 then
  2616. Image.Parent = nil
  2617. end
  2618. passivenum = passivenum + 1
  2619. if 8 <= passivenum then
  2620. passivenum = 0
  2621. distort = distort + 1
  2622. end
  2623. if 100 <= distort then
  2624. distort = 100
  2625. end
  2626. if 30 <= passivenum2 then
  2627. if Image.Parent ~= nil and RootPart.Position - ImageRoot.Position.magnitude <= 150 then
  2628. Lightning(RootPart.Position, ImageRoot.Position, 5, 1, NewCol2, 0.05, 0.4, 0.1)
  2629. end
  2630. passivenum2 = 0
  2631. end
  2632. passivenum2 = passivenum2 + 1
  2633. if Stagger.Value == true and staggeranim == false then
  2634. coroutine.resume(coroutine.create(function()
  2635. staggeranim = true
  2636. while attack == true do
  2637. swait()
  2638. end
  2639. StaggerAnim()
  2640. StaggerHit.Value = false
  2641. Stagger.Value = false
  2642. staggeranim = false
  2643. end))
  2644. end
  2645. if StaggerHit.Value == true and staggeranim == false then
  2646. coroutine.resume(coroutine.create(function()
  2647. staggeranim = true
  2648. while attack == true do
  2649. swait()
  2650. end
  2651. StaggerHitt()
  2652. StaggerHit.Value = false
  2653. Stagger.Value = false
  2654. staggeranim = false
  2655. end))
  2656. end
  2657. if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then
  2658. Humanoid.WalkSpeed = 0
  2659. else
  2660. Humanoid.WalkSpeed = 16 * Mvmt.Value
  2661. end
  2662. if StunT.Value <= Stun.Value and stunanim == false then
  2663. coroutine.resume(coroutine.create(function()
  2664. stunanim = true
  2665. while attack == true do
  2666. swait()
  2667. end
  2668. StunAnim()
  2669. Stun.Value = 0
  2670. stunanim = false
  2671. end))
  2672. end
  2673. local stunnum2 = 50
  2674. if stunnum2 <= stunnum then
  2675. if 0 < Stun.Value then
  2676. Stun.Value = Stun.Value - 1
  2677. end
  2678. stunnum = 0
  2679. end
  2680. stunnum = stunnum + 1
  2681. if 0.5 <= donum then
  2682. handidle = true
  2683. else
  2684. if donum <= 0 then
  2685. handidle = false
  2686. end
  2687. end
  2688. if handidle == false then
  2689. donum = donum + 0.003
  2690. else
  2691. donum = donum - 0.003
  2692. end
  2693. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2694. local velderp = RootPart.Velocity.y
  2695. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  2696. if equipped == true then
  2697. if attack == false then
  2698. idle = idle + 1
  2699. else
  2700. idle = 0
  2701. end
  2702. if (500 <= idle and attack ~= false) or Anim == "Walk" then
  2703. if walkforw == true then
  2704. RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  2705. LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  2706. else
  2707. RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  2708. LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  2709. end
  2710. else
  2711. RH.C1 = clerp(RH.C1, RHC1, 0.2)
  2712. LH.C1 = clerp(LH.C1, LHC1, 0.2)
  2713. end
  2714. if 1 < RootPart.Velocity.y and hitfloor == nil then
  2715. Anim = "Jump"
  2716. if attack == false then
  2717. handlewld.Part1 = RightArm
  2718. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  2719. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0.5, 0), 0.2)
  2720. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2)
  2721. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  2722. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  2723. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1, 0, 0.2), 0.2)
  2724. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2725. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, 0), 0.2)
  2726. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2727. RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
  2728. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
  2729. end
  2730. else
  2731. if RootPart.Velocity.y < -1 and hitfloor == nil then
  2732. Anim = "Fall"
  2733. if attack == false then
  2734. handlewld.Part1 = RightArm
  2735. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  2736. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0.5, 0), 0.2)
  2737. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  2738. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  2739. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  2740. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.8), 0.2)
  2741. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2742. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, 0), 0.2)
  2743. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2744. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  2745. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  2746. end
  2747. else
  2748. if torvel < 1 and hitfloor ~= nil then
  2749. Anim = "Idle"
  2750. if attack == false then
  2751. handlewld.Part1 = RightArm
  2752. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 0.9, 0), 0.2)
  2753. wld1.C0 = clerp(wld1.C0, euler(0.1, 0, 0) * cf(0, 0.5, 0), 0.2)
  2754. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.6) * euler(0.05, 0, 0), 0.15)
  2755. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, -0.6), 0.15)
  2756. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2 + (donum) / 3, 0, 0.2 + (donum) / 3) * euler(0, -0.3, 0), 0.15)
  2757. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  2758. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2 - (donum) / 3, 0, -0.2 - (donum) / 3), 0.15)
  2759. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  2760. RH.C0 = clerp(RH.C0, cf(0.9, -1, -0.3) * euler(0, 1.57, 0) * euler(-0.1, 0.6, 0), 0.2)
  2761. LH.C0 = clerp(LH.C0, cf(-0.9, -1, 0.1) * euler(0, -1.57, 0) * euler(0, 0.6, 0.1), 0.2)
  2762. end
  2763. else
  2764. if 2 < torvel and torvel < 30 and hitfloor ~= nil then
  2765. Anim = "Walk"
  2766. walk = walk + 1
  2767. if 15 - 5 * Mvmt.Value <= walk then
  2768. walk = 0
  2769. if walkforw == true then
  2770. walkforw = false
  2771. else
  2772. if walkforw == false then
  2773. walkforw = true
  2774. end
  2775. end
  2776. end
  2777. if attack == false then
  2778. handlewld.Part1 = RightArm
  2779. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  2780. wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0.5, 0), 0.2)
  2781. Neck.C0 = clerp(Neck.C0, necko * euler(0.1, 0, 0), 0.2)
  2782. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.1, 0, 0), 0.2)
  2783. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.4) * euler(0, -1, 0), 0.2)
  2784. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2785. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.2)
  2786. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2787. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.2)
  2788. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.2)
  2789. end
  2790. else
  2791. if 30 <= torvel and hitfloor ~= nil then
  2792. Anim = "Run"
  2793. if attack == false then
  2794. handlewld.Part1 = RightArm
  2795. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.2)
  2796. wld1.C0 = clerp(wld1.C0, euler(3.14, 0, 0) * cf(0, -0.5, 0), 0.2)
  2797. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
  2798. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.3, 0, 0), 0.4)
  2799. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.87, 0, -0.8) * euler(0, 0, 0), 0.4)
  2800. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2801. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1.97, 0, 0.8) * euler(0, 0, 0), 0.4)
  2802. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2803. RH.C0 = clerp(RH.C0, cf(1, -0.7, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.2), 0.4)
  2804. LH.C0 = clerp(LH.C0, cf(-1, -0.7, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, -0.2), 0.4)
  2805. end
  2806. end
  2807. end
  2808. end
  2809. end
  2810. end
  2811. end
  2812. if 0 < #Effects then
  2813. for e = 1, #Effects do
  2814. if Effects[e] ~= nil then
  2815. local Thing = Effects[e]
  2816. if Thing ~= nil then
  2817. local Part = Thing[1]
  2818. local Mode = Thing[2]
  2819. local Delay = Thing[3]
  2820. local IncX = Thing[4]
  2821. local IncY = Thing[5]
  2822. local IncZ = Thing[6]
  2823. if Thing[2] == "CylinderClang" then
  2824. if Thing[3] <= 1 then
  2825. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2826. Thing[7] = Thing[1].CFrame
  2827. effect("New Yeller", 0, Thing[8], Thing[7], nil, 0.1, 2)
  2828. Thing[8] = Thing[7]
  2829. Thing[3] = Thing[3] + Thing[4]
  2830. else
  2831. Part.Parent = nil
  2832. table.remove(Effects, e)
  2833. end
  2834. end
  2835. if Thing[2] == "showDamage" then
  2836. if Thing[6] < Thing[5] then
  2837. Thing[6] = Thing[6] + 1
  2838. else
  2839. if Thing[6] < Thing[7] then
  2840. Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
  2841. Thing[6] = Thing[6] + 1
  2842. else
  2843. if Thing[6] < Thing[8] then
  2844. Thing[6] = Thing[6] + 1
  2845. else
  2846. if Thing[6] < Thing[9] then
  2847. Thing[6] = Thing[6] + 1
  2848. Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
  2849. Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  2850. Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  2851. else
  2852. Thing[1].Parent = nil
  2853. table.remove(Effects, e)
  2854. end
  2855. end
  2856. end
  2857. end
  2858. end
  2859. if Thing[2] == "CloneEf" then
  2860. if Thing[3] <= 500 then
  2861. Thing[3] = Thing[3] + 1
  2862. if 10 <= Thing[4] then
  2863. Thing[4] = 0
  2864. Clone()
  2865. end
  2866. Thing[4] = Thing[4] + 1
  2867. else
  2868. table.remove(Effects, e)
  2869. end
  2870. end
  2871. if Thing[2] == "DisCharge" then
  2872. if 0 <= Thing[3] then
  2873. passive1.Parent = Decrease
  2874. passive2.Parent = Decrease
  2875. if Thing[4] % 100 == 0 then
  2876. MagniDebuff(prt14, 50, "Movement", 0.2, 120)
  2877. end
  2878. if Thing[4] % 5 == 0 then
  2879. MagicCircle3(BrickColor.new(NewCol2), euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 5, 1, 5, -0.5, 5, -0.5, 0.1, prt14)
  2880. end
  2881. Thing[4] = Thing[4] + 1
  2882. Thing[3] = Thing[3] - 1
  2883. else
  2884. print("end")
  2885. distortcharge = false
  2886. passive1.Parent = nil
  2887. passive2.Parent = nil
  2888. table.remove(Effects, e)
  2889. end
  2890. end
  2891. if Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "CloneEf" and Thing[2] ~= "DisCharge" then
  2892. if Thing[1].Transparency <= 1 then
  2893. if Thing[2] == "Block1" then
  2894. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2895. Mesh = Thing[7]
  2896. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  2897. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2898. else
  2899. if Thing[2] == "Block2" then
  2900. Thing[1].CFrame = Thing[1].CFrame
  2901. Mesh = Thing[7]
  2902. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  2903. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2904. else
  2905. if Thing[2] == "Cylinder" then
  2906. Mesh = Thing[7]
  2907. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  2908. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2909. else
  2910. if Thing[2] == "Cylinder2" then
  2911. Mesh = Thing[7]
  2912. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  2913. Thing[1].CFrame = cf(Thing[9].Position) * Thing[8]
  2914. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2915. else
  2916. if Thing[2] == "Blood" then
  2917. Mesh = Thing[7]
  2918. Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0)
  2919. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  2920. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2921. else
  2922. if Thing[2] == "Elec" then
  2923. Mesh = Thing[7]
  2924. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  2925. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2926. else
  2927. if Thing[2] == "Disappear" then
  2928. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2929. end
  2930. end
  2931. end
  2932. end
  2933. end
  2934. end
  2935. end
  2936. else
  2937. Part.Parent = nil
  2938. table.remove(Effects, e)
  2939. end
  2940. end
  2941. end
  2942. end
  2943. end
  2944. end
  2945. do
  2946. fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true)
  2947. fenbarmana4.Text = "Wakfu(" .. mana.Value .. ")"
  2948. fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0)
  2949. fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true)
  2950. fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
  2951. fenbarblock2:TweenSize((UDim2.new(0.4, 0, -4 * distort / 100, 0)), nil, 1, 0.4, true)
  2952. fenbarblock3.Text = "Distortion(" .. distort .. ")"
  2953. fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  2954. fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  2955. fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  2956. fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  2957. for _,c in pairs(Decrease:children()) do
  2958. if (c:findFirstChild("Duration")) ~= nil then
  2959. c.Duration.Value = c.Duration.Value - 1
  2960. if c.Duration.Value <= 0 then
  2961. c.Parent = nil
  2962. end
  2963. end
  2964. if c.Name == "DecreaseAtk" then
  2965. decreaseatk = decreaseatk + c.Value
  2966. else
  2967. if c.Name == "DecreaseDef" then
  2968. decreasedef = decreasedef + c.Value
  2969. else
  2970. if c.Name == "DecreaseMvmt" then
  2971. decreasemvmt = decreasemvmt + c.Value
  2972. end
  2973. end
  2974. end
  2975. end
  2976. Atk.Value = 1 - (decreaseatk)
  2977. if Atk.Value <= 0 then
  2978. Atk.Value = 0
  2979. end
  2980. Def.Value = 1 - (decreasedef)
  2981. if Def.Value <= 0 then
  2982. Def.Value = 0.01
  2983. end
  2984. Mvmt.Value = 1 - (decreasemvmt)
  2985. if Mvmt.Value <= 0 then
  2986. Mvmt.Value = 0
  2987. end
  2988. decreaseatk = 0
  2989. decreasedef = 0
  2990. decreasemvmt = 0
  2991. AtkVal = Atk.Value * 100
  2992. AtkVal = math.floor(AtkVal)
  2993. AtkVal = AtkVal / 100
  2994. fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
  2995. DefVal = Def.Value * 100
  2996. DefVal = math.floor(DefVal)
  2997. DefVal = DefVal / 100
  2998. fenbardef.Text = "Defense\n(" .. DefVal .. ")"
  2999. MvmtVal = Mvmt.Value * 100
  3000. MvmtVal = math.floor(MvmtVal)
  3001. MvmtVal = MvmtVal / 100
  3002. if Rooted.Value == true then
  3003. MvmtVal = 0
  3004. end
  3005. fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
  3006. if StunT.Value <= Stun.Value then
  3007. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true)
  3008. else
  3009. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true)
  3010. end
  3011. fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
  3012. if 100 <= mana.Value then
  3013. mana.Value = 100
  3014. else
  3015. if mananum <= 15 then
  3016. mananum = mananum + 1
  3017. else
  3018. mananum = 0
  3019. mana.Value = mana.Value + 1
  3020. end
  3021. end
  3022. for i = 1, #cooldowns do
  3023. if cooldownmax <= cooldowns[i] then
  3024. cooldowns[i] = cooldownmax
  3025. else
  3026. cooldowns[i] = cooldowns[i] + cooldownsadd[i]
  3027. end
  3028. end
  3029. -- DECOMPILER ERROR at PC5600: LeaveBlock: unexpected jumping out DO_STMT
  3030.  
  3031. -- DECOMPILER ERROR at PC5600: LeaveBlock: unexpected jumping out DO_STMT
  3032.  
  3033. end
  3034. end
  3035. end
Add Comment
Please, Sign In to add comment