AndrewTheMaster

Ameterasu Obsidian

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