Advertisement
replic8

Untitled

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