Dark_EccentricYT

Untitled

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