D0MiN0_FX

Obsidian [ RARE ]

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