derekiscool423

obsidian

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