Advertisement
memberhero

Trump Script

Dec 13th, 2017
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 171.54 KB | None | 0 0
  1. Player = game:GetService("Players").LocalPlayer
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. Humanoid = Character.Humanoid
  8. LeftArm = Character["Left Arm"]
  9. LeftLeg = Character["Left Leg"]
  10. RightArm = Character["Right Arm"]
  11. RightLeg = Character["Right Leg"]
  12. LS = Torso["Left Shoulder"]
  13. LH = Torso["Left Hip"]
  14. RS = Torso["Right Shoulder"]
  15. RH = Torso["Right Hip"]
  16. Neck = Torso.Neck
  17. it = Instance.new
  18. vt = Vector3.new
  19. cf = CFrame.new
  20. isblarghing = false
  21. euler = CFrame.fromEulerAnglesXYZ
  22. angles = CFrame.Angles
  23. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  24. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  25. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  26. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  27. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  28. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  29. RootPart = Character.HumanoidRootPart
  30. RootJoint = RootPart.RootJoint
  31. RootCF = euler(-1.57, 0, 3.14)
  32. attack = false
  33. attackdebounce = false
  34. MMouse = nil
  35. combo = 0
  36. local idle = 0
  37. local Anim = "Idle"
  38. local Effects = {}
  39. local Weapon = {}
  40. local Welds = {}
  41. local hitted = false
  42. local HitTarget = nil
  43. local isjugg = false
  44. local decreaseatk = 0
  45. local decreasedef = 0
  46. local decreasemvmt = 0
  47. local doing2 = false
  48. local doing4 = false
  49. local move1 = "(Z)\nGreatWall"
  50. local move2 = "(X)\nDelete"
  51. local move3 = "(C)\nidk aa"
  52. local move4 = "(V)\nSMALL LOAN"
  53. local cooldowns = {}
  54. local cooldown1 = 0
  55. table.insert(cooldowns, cooldown1)
  56. local cooldown2 = 0
  57. table.insert(cooldowns, cooldown2)
  58. local cooldown3 = 0
  59. table.insert(cooldowns, cooldown3)
  60. local cooldown4 = 0
  61. table.insert(cooldowns, cooldown4)
  62. local cooldownsadd = {}
  63. local cooldownadd1 = 0.4
  64. table.insert(cooldownsadd, cooldownadd1)
  65. local cooldownadd2 = 0.35
  66. table.insert(cooldownsadd, cooldownadd2)
  67. local cooldownadd3 = 0.2
  68. table.insert(cooldownsadd, cooldownadd3)
  69. local cooldownadd4 = 0.15
  70. table.insert(cooldownsadd, cooldownadd4)
  71. local cooldownmax = 100
  72. --local damageFunc = workspace.damageFunc
  73. local manualguardend = false
  74. player = nil
  75. RSH = nil
  76. LW = Instance.new("Motor")
  77. RW = Instance.new("Motor")
  78. RW.Name = "Right Shoulder"
  79. LW.Name = "Left Shoulder"
  80. LH = Torso["Left Hip"]
  81. RH = Torso["Right Hip"]
  82. TorsoColor = Torso.BrickColor
  83. TorsoRed = TorsoColor.Color.r
  84. TorsoGreen = TorsoColor.Color.g
  85. TorsoBlue = TorsoColor.Color.b
  86. NewCol = BrickColor.new("Bright red").Color
  87. if Player:findFirstChild("Color1") ~= nil then
  88. NewCol = Player.Color1.Value
  89. end
  90. local mdec = Instance.new("NumberValue", Decrease)
  91. mdec.Name = "DecreaseDef"
  92. mdec.Value = 0.4
  93. local mdec2 = Instance.new("NumberValue", Decrease)
  94. mdec2.Name = "DecreaseMvmt"
  95. mdec2.Value = 0.1
  96. local Animate = Humanoid.Animator
  97. local canjump = true
  98. removeControl = function()
  99. canjump = false
  100. end
  101. resumeControl = function()
  102. canjump = true
  103. end
  104. Player.Character.Humanoid.Changed:connect(function()
  105. if canjump == false then
  106. Player.Character.Humanoid.Jump = false
  107. end
  108. end)
  109. xl = {"316012158", "316012174", "316012192"}
  110. xe = {"316012212", "316012229", "316012256", "316012287"}
  111. ArtificialHB = Instance.new("BindableEvent", script)
  112. ArtificialHB.Name = "Heartbeat"
  113.  
  114. script:WaitForChild("Heartbeat")
  115.  
  116. frame = 1 / 60
  117. tf = 0
  118. allowframeloss = false
  119. tossremainder = false
  120. lastframe = tick()
  121. script.Heartbeat:Fire()
  122.  
  123. game:GetService("RunService").Heartbeat:connect(function(s, p)
  124. tf = tf + s
  125. if tf >= frame then
  126. if allowframeloss then
  127. script.Heartbeat:Fire()
  128. lastframe = tick()
  129. else
  130. for i = 1, math.floor(tf / frame) do
  131. script.Heartbeat:Fire()
  132. end
  133. lastframe = tick()
  134. end
  135. if tossremainder then
  136. tf = 0
  137. else
  138. tf = tf - frame * math.floor(tf / frame)
  139. end
  140. end
  141. end)
  142.  
  143. function swait(num)
  144. if num == 0 or num == nil then
  145. ArtificialHB.Event:wait()
  146. else
  147. for i = 0, num do
  148. ArtificialHB.Event:wait()
  149. end
  150. end
  151. end
  152. createpassgui = function(parent)
  153. print("makegui111")
  154. local g = Instance.new("ScreenGui", parent)
  155. local f = Instance.new("Frame", g)
  156. f.Position = UDim2.new(0.3, 0, 0.25, 0)
  157. f.Size = UDim2.new(0.4, 0, 0.4, 0)
  158. f.Style = "DropShadow"
  159. local t = Instance.new("TextBox", f)
  160. t.BackgroundColor3 = Color3.new(0, 0, 0)
  161. t.BackgroundTransparency = 0.5
  162. t.BorderSizePixel = 0
  163. t.Position = UDim2.new(0.15, 0, 0.2, 0)
  164. t.Size = UDim2.new(0.7, 0, 0.2, 0)
  165. t.Font = "SourceSansLight"
  166. t.Text = "Enter Access Code."
  167. t.TextScaled = true
  168. t.TextColor3 = Color3.new(1, 1, 1)
  169. t.TextStrokeTransparency = 0
  170. local t2 = Instance.new("TextButton", f)
  171. t2.BackgroundColor3 = Color3.new(0, 0, 0)
  172. t2.BackgroundTransparency = 0.5
  173. t2.BorderSizePixel = 0
  174. t2.Position = UDim2.new(0.3, 0, 0.5, 0)
  175. t2.Size = UDim2.new(0.4, 0, 0.15, 0)
  176. t2.TextScaled = true
  177. t2.Font = "SourceSansLight"
  178. t2.Text = "Submit"
  179. t2.TextColor3 = Color3.new(1, 1, 1)
  180. t2.TextStrokeTransparency = 0
  181. print("done1")
  182. return t2
  183. end
  184. if Character:findFirstChild("Malleo", true) ~= nil then
  185. Character:findFirstChild("Malleo", true).Parent = nil
  186. end
  187. if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then
  188. Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil
  189. end
  190. if Character:findFirstChild("Stats", true) ~= nil then
  191. Character:findFirstChild("Stats", true).Parent = nil
  192. end
  193. local Stats = Instance.new("BoolValue")
  194. Stats.Name = "Stats"
  195. Stats.Parent = Character
  196. local Atk = Instance.new("NumberValue")
  197. Atk.Name = "Damage"
  198. Atk.Parent = Stats
  199. Atk.Value = 1
  200. local Def = Instance.new("NumberValue")
  201. Def.Name = "Defense"
  202. Def.Parent = Stats
  203. Def.Value = 1
  204. local Mvmt = Instance.new("NumberValue")
  205. Mvmt.Name = "Movement"
  206. Mvmt.Parent = Stats
  207. Mvmt.Value = 1
  208. local Block = Instance.new("BoolValue")
  209. Block.Name = "Block"
  210. Block.Parent = Stats
  211. Block.Value = false
  212. local Stun = Instance.new("NumberValue")
  213. Stun.Name = "Stun"
  214. Stun.Parent = Stats
  215. Stun.Value = 0
  216. local StunT = Instance.new("NumberValue")
  217. StunT.Name = "StunThreshold"
  218. StunT.Parent = Stats
  219. StunT.Value = 100
  220. local Rooted = Instance.new("BoolValue")
  221. Rooted.Name = "Rooted"
  222. Rooted.Parent = Stats
  223. Rooted.Value = false
  224. local Decrease = Instance.new("BoolValue")
  225. Decrease.Name = "Decrease"
  226. Decrease.Parent = Stats
  227. Decrease.Value = false
  228. local Stunned = Instance.new("BoolValue")
  229. Stunned.Name = "Stunned"
  230. Stunned.Parent = Stats
  231. Stunned.Value = false
  232. local Stagger = Instance.new("BoolValue")
  233. Stagger.Name = "Stagger"
  234. Stagger.Parent = Stats
  235. Stagger.Value = false
  236. local StaggerHit = Instance.new("BoolValue")
  237. StaggerHit.Name = "StaggerHit"
  238. StaggerHit.Parent = Stats
  239. StaggerHit.Value = false
  240. local RecentEnemy = Instance.new("ObjectValue")
  241. RecentEnemy.Name = "RecentEnemy"
  242. RecentEnemy.Parent = Stats
  243. RecentEnemy.Value = nil
  244. local mana = Instance.new("NumberValue")
  245. mana.Name = "Mana"
  246. mana.Parent = Stats
  247. local passive1 = Instance.new("NumberValue", Decrease)
  248. passive1.Name = "DecreaseAtk"
  249. passive1.Value = 0
  250. local passive2 = Instance.new("NumberValue", Decrease)
  251. passive2.Name = "DecreaseDef"
  252. passive2.Value = 0
  253. local passive3 = Instance.new("NumberValue", Decrease)
  254. passive3.Name = "DecreaseMvmt"
  255. passive3.Value = 0
  256. local passive4 = Instance.new("NumberValue", Decrease)
  257. passive4.Name = "DecreaseAtk"
  258. passive4.Value = 0.1
  259. walls = {}
  260. NoOutline = function(Part)
  261. Part.TopSurface = 10
  262. end
  263. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size, mat)
  264. local fp = it("Part")
  265. fp.formFactor = formfactor
  266. fp.Parent = parent
  267. fp.Reflectance = reflectance
  268. fp.Transparency = transparency
  269. fp.CanCollide = false
  270. fp.Locked = true
  271. fp.BrickColor = brickcolor
  272. fp.Name = name
  273. fp.Size = size
  274. fp.Position = Torso.Position
  275. NoOutline(fp)
  276. if mat then
  277. fp.Material = mat
  278. else
  279. fp.Material = "SmoothPlastic"
  280. end
  281. fp:BreakJoints()
  282. return fp
  283. end
  284. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  285. local mesh = it(Mesh)
  286. mesh.Parent = part
  287. if Mesh == "SpecialMesh" then
  288. mesh.MeshType = meshtype
  289. if meshid ~= "nil" then
  290. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  291. if meshid == "113216991" then
  292. mesh.TextureId = "rbxassetid://113216977"
  293. end
  294. end
  295. end
  296. mesh.Offset = offset
  297. mesh.Scale = scale
  298. return mesh
  299. end
  300. weld = function(parent, part0, part1, c0)
  301. local weld = it("Motor")
  302. weld.Parent = parent
  303. weld.Part0 = part0
  304. weld.Part1 = part1
  305. weld.C0 = c0
  306. return weld
  307. end
  308. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  309. local gui = it(GuiType)
  310. gui.Parent = parent
  311. gui.Text = text
  312. gui.BackgroundTransparency = backtrans
  313. gui.BackgroundColor3 = backcol
  314. gui.SizeConstraint = "RelativeXY"
  315. gui.TextXAlignment = "Center"
  316. gui.TextYAlignment = "Center"
  317. gui.Position = pos
  318. gui.Size = size
  319. gui.Font = "SourceSans"
  320. gui.FontSize = "Size14"
  321. gui.TextWrapped = false
  322. gui.TextStrokeTransparency = 0
  323. gui.TextColor = BrickColor.new("White")
  324. return gui
  325. end
  326. local Color1 = Torso.BrickColor
  327. local fengui = it("GuiMain")
  328. fengui.Parent = Player.PlayerGui
  329. fengui.Name = "WeaponGUI"
  330. local fenframe = it("Frame")
  331. fenframe.Parent = fengui
  332. fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
  333. fenframe.BackgroundTransparency = 1
  334. fenframe.BorderColor3 = Color3.new(17, 17, 17)
  335. fenframe.Size = UDim2.new(0.1, 0, 0.1, 0)
  336. fenframe.Position = UDim2.new(0.95, 0, 0.7, 0)
  337. local fenframe2 = it("Frame")
  338. fenframe2.Parent = fengui
  339. fenframe2.BackgroundColor3 = Color3.new(255, 255, 255)
  340. fenframe2.BackgroundTransparency = 1
  341. fenframe2.BorderColor3 = Color3.new(17, 17, 17)
  342. fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0)
  343. fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0)
  344. local fenframe3 = it("Frame")
  345. fenframe3.Parent = fengui
  346. fenframe3.BackgroundColor3 = Color3.new(255, 255, 255)
  347. fenframe3.BackgroundTransparency = 1
  348. fenframe3.BorderColor3 = Color3.new(17, 17, 17)
  349. fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0)
  350. fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0)
  351. fenframe3.Name = "MoveFrame"
  352. local fenframe4 = it("Frame")
  353. fenframe4.Parent = fengui
  354. fenframe4.BackgroundColor3 = Color3.new(255, 255, 255)
  355. fenframe4.BackgroundTransparency = 1
  356. fenframe4.BorderColor3 = Color3.new(17, 17, 17)
  357. fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0)
  358. fenframe4.Position = UDim2.new(0, 0, 0.7, 0)
  359. local pressedf = false
  360. local fenframe5 = it("Frame")
  361. fenframe5.Parent = fengui
  362. fenframe5.BackgroundColor3 = Color3.new(0, 0, 0)
  363. fenframe5.BackgroundTransparency = 1
  364. fenframe5.BorderColor3 = Color3.new(0, 0, 0)
  365. fenframe5.Size = UDim2.new(1, 0, 1, 0)
  366. fenframe5.Position = UDim2.new(0, 0, 0, 0)
  367. fenframe5.ZIndex = 2
  368. local tellbar = gui("TextLabel", fenframe5, "Press \'F\' to keep the mexicans out", 1, Color3.new(0, 0, 0), UDim2.new(0.25, 0, 0.25, 0), UDim2.new(0.5, 0, 0.5, 0))
  369. tellbar.Font = "Arial"
  370. tellbar.TextScaled = true
  371. tellbar.TextTransparency = 1
  372. tellbar.TextStrokeTransparency = 1
  373. tellbar.ZIndex = 2
  374. local fnumb = 0
  375. local fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  376. local fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  377. 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))
  378. 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))
  379. 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))
  380. 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))
  381. local fenbarhp1 = gui("TextLabel", fenframe2, "", 0, Color3.new(0, 0, 0), UDim2.new(-0.46, 0, 1, 0), UDim2.new(1.92, 0, 0.4, 0))
  382. local fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  383. local fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  384. 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))
  385. 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))
  386. 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))
  387. 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))
  388. fenbarmove1.ZIndex = 2
  389. local fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  390. 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))
  391. fenbarmove2.ZIndex = 2
  392. local fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  393. 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))
  394. fenbarmove3.ZIndex = 2
  395. local fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  396. 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))
  397. fenbarmove4.ZIndex = 2
  398. local fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  399. local modelzorz = Instance.new("Model")
  400. modelzorz.Parent = Character
  401. modelzorz.Name = "Malleo"
  402. local handle = part(3, modelzorz, 0, 0.5, TorsoColor, "Handle", vt())
  403. local prt1 = part(3, modelzorz, 0, 0, BrickColor.new("Reddish brown"), "Part01", vt(), "Wood")
  404. local prt2 = part(3, modelzorz, 0, 0, BrickColor.new(NewCol), "Part02", vt(), "Fabric")
  405. local prt3 = part(3, modelzorz, 0, 0, BrickColor.new("Reddish brown"), "Part03", vt(), "Wood")
  406. local prt4 = part(3, modelzorz, 0, 0, BrickColor.new("Reddish brown"), "Part04", vt(), "Wood")
  407. local prt5 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Part05", vt(), "Slate")
  408. local prt6 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Part06", vt(), "Slate")
  409. local prt7 = part(3, modelzorz, 0, 0, BrickColor.new("Dark stone grey"), "Part07", vt(), "Slate")
  410. local msh1 = mesh("BlockMesh", prt1, "", "", vt(0, 0, 0), vt(1, 7.5, 1))
  411. local msh2 = mesh("BlockMesh", prt2, "", "", vt(0, 0, 0), vt(1.05, 6, 1.05))
  412. local msh3 = mesh("BlockMesh", prt3, "", "", vt(0, 0, 0), vt(1.1, 2, 1.1))
  413. local msh4 = mesh("BlockMesh", prt4, "", "", vt(0, 0, 0), vt(2, 1, 3))
  414. local msh5 = mesh("BlockMesh", prt5, "", "", vt(0, 0, 0), vt(3, 3, 5))
  415. local msh6 = mesh("BlockMesh", prt6, "", "", vt(0, 0, 0), vt(2.5, 2.5, 0.5))
  416. local msh7 = mesh("BlockMesh", prt7, "", "", vt(0, 0, 0), vt(2.5, 2.5, 0.5))
  417. local handlewld = weld(handle, handle, Torso, euler(-1.8, 0, 0) * cf(-1.1, 1, 0))
  418. local wld1 = weld(prt1, prt1, handle, cf(0, 0, 0) * euler(0, 0, 0))
  419. local wld2 = weld(prt2, prt2, handle, cf(0, 0.046, 0) * euler(0, 0, 0))
  420. local wld3 = weld(prt3, prt3, handle, cf(0, 0.915, 0) * euler(0, 0, 0))
  421. local wld4 = weld(prt4, prt4, handle, cf(0, -0.749, 0) * euler(0, 0, 0))
  422. local wld5 = weld(prt5, prt5, handle, cf(0, -0.991, 0) * euler(0, 0, 0))
  423. local wld6 = weld(prt6, prt6, handle, cf(0, -0.991, 0.483) * euler(0, 0, 0))
  424. local wld7 = weld(prt7, prt7, handle, cf(0, -0.991, -0.483) * euler(0, 0, 0))
  425. local hitbox = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Hitbox2", vt())
  426. hitbox.Anchored = false
  427. local hbwld = weld(hitbox, hitbox, RootPart, euler(0, 0, 0) * cf(0, 0, 0))
  428. local hitbox2 = part(3, nil, 0, 1, BrickColor.new("Black"), "Hitbox", vt(1, 1, 1))
  429. hitbox2.Anchored = true
  430. local hitboxCF = cf(0, 0, 0)
  431. hboxpos = Instance.new("BodyPosition", nil)
  432. hboxpos.P = 2000
  433. hboxpos.D = 100
  434. hboxpos.maxForce = Vector3.new(545000, 545000, 545000)
  435. hitboxweld = function()
  436. hbwld.Parent = modelzorz
  437. hbwld.Part0 = hitbox
  438. hbwld.Part1 = RightArm
  439. end
  440. if script.Parent.className ~= "HopperBin" then
  441. Tool = Instance.new("HopperBin")
  442. Tool.Parent = Backpack
  443. Tool.Name = "Malleo"
  444. script.Parent = Tool
  445. end
  446. Bin = script.Parent
  447. if Bin.Name == "Bob" then
  448. Bin.Name = "Malleo"
  449. end
  450. local bodvel = Instance.new("BodyVelocity")
  451. local bg = Instance.new("BodyGyro")
  452. so = function(id, par, vol, pit)
  453. local sou = Instance.new("Sound", par or workspace)
  454. sou.Volume = vol
  455. sou.Pitch = pit or 1
  456. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  457. coroutine.resume(coroutine.create(function(Sound)
  458. swait()
  459. Sound:play()
  460. end), sou)
  461. game:GetService("Debris"):AddItem(sou, 6)
  462. end
  463. function clerp(a,b,t)
  464. local qa = {QuaternionFromCFrame(a)}
  465. local qb = {QuaternionFromCFrame(b)}
  466. local ax, ay, az = a.x, a.y, a.z
  467. local bx, by, bz = b.x, b.y, b.z
  468. local _t = 1-t
  469. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  470. end
  471. function QuaternionFromCFrame(cf)
  472. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  473. local trace = m00 + m11 + m22
  474. if trace > 0 then
  475. local s = math.sqrt(1 + trace)
  476. local recip = 0.5/s
  477. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  478. else
  479. local i = 0
  480. if m11 > m00 then
  481. i = 1
  482. end
  483. if m22 > (i == 0 and m00 or m11) then
  484. i = 2
  485. end
  486. if i == 0 then
  487. local s = math.sqrt(m00-m11-m22+1)
  488. local recip = 0.5/s
  489. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  490. elseif i == 1 then
  491. local s = math.sqrt(m11-m22-m00+1)
  492. local recip = 0.5/s
  493. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  494. elseif i == 2 then
  495. local s = math.sqrt(m22-m00-m11+1)
  496. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  497. end
  498. end
  499. end
  500.  
  501. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  502. local xs, ys, zs = x + x, y + y, z + z
  503. local wx, wy, wz = w*xs, w*ys, w*zs
  504. local xx = x*xs
  505. local xy = x*ys
  506. local xz = x*zs
  507. local yy = y*ys
  508. local yz = y*zs
  509. local zz = z*zs
  510. 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))
  511. end
  512.  
  513. function QuaternionSlerp(a, b, t)
  514. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  515. local startInterp, finishInterp;
  516. if cosTheta >= 0.0001 then
  517. if (1 - cosTheta) > 0.0001 then
  518. local theta = math.acos(cosTheta)
  519. local invSinTheta = 1/math.sin(theta)
  520. startInterp = math.sin((1-t)*theta)*invSinTheta
  521. finishInterp = math.sin(t*theta)*invSinTheta
  522. else
  523. startInterp = 1-t
  524. finishInterp = t
  525. end
  526. else
  527. if (1+cosTheta) > 0.0001 then
  528. local theta = math.acos(-cosTheta)
  529. local invSinTheta = 1/math.sin(theta)
  530. startInterp = math.sin((t-1)*theta)*invSinTheta
  531. finishInterp = math.sin(t*theta)*invSinTheta
  532. else
  533. startInterp = t-1
  534. finishInterp = t
  535. end
  536. end
  537. 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
  538. end
  539. hideanim = function()
  540. equipped = false
  541. for i = 0, 1, 0.1 do
  542. wait()
  543. Neck.C0 = clerp(Neck.C0, necko * euler(0.1, -0.15, -0.4), 0.3)
  544. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  545. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.25, 0, -0.2), 0.2)
  546. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  547. handlewld.C0 = clerp(handlewld.C0, euler(4.37, 0, 0) * cf(0, 1, 0), 0.2)
  548. end
  549. handlewld.Part1 = Torso
  550. handlewld.C0 = euler(-1.8, 0, 0) * cf(-1.1, 1, 0)
  551. for i = 0, 1, 0.1 do
  552. swait()
  553. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
  554. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  555. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  556. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  557. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  558. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  559. RH.C0 = clerp(RH.C0, RHC0, 0.4)
  560. RH.C1 = clerp(RH.C1, RHC1, 0.4)
  561. LH.C0 = clerp(LH.C0, LHC0, 0.4)
  562. LH.C1 = clerp(LH.C1, LHC1, 0.4)
  563. end
  564. mdec2.Parent = nil
  565. mdec.Parent = Decrease
  566. end
  567. mdec.Parent = Decrease
  568. equipanim = function()
  569. equipped = true
  570. mdec.Parent = nil
  571. mdec2.Parent = Decrease
  572. for i = 0, 0.6, 0.6 do
  573. swait()
  574. Neck.C0 = clerp(Neck.C0, necko * euler(0.1, -0.15, -0.4), 0.3)
  575. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  576. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.25, 0, -0.2), 0.3)
  577. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  578. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.3)
  579. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  580. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.3)
  581. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.3)
  582. end
  583. for i = 0, 1 do
  584. swait()
  585. Neck.C0 = clerp(Neck.C0, necko * euler(0.1, -0.15, -0.4), 0.3)
  586. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  587. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.25, 0, -0.2), 0.3)
  588. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  589. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.3)
  590. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  591. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.3)
  592. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.3)
  593. end
  594. handlewld.Part1 = RightArm
  595. handlewld.C0 = euler(-2, 0, 0) * cf(0, 1, 0)
  596. for i = 0, 1, 0.5 do
  597. wait()
  598. Neck.C0 = clerp(Neck.C0, necko * euler(0.1, -0.15, -0.4), 0.3)
  599. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  600. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.25, 0, -0.2), 0.3)
  601. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  602. handlewld.C0 = clerp(handlewld.C0, euler(-1.57, 0, 0) * cf(0, 1, 0), 0.3)
  603. end
  604. for i = 0, 1.5, 0.2 do
  605. wait()
  606. Neck.C0 = clerp(Neck.C0, necko * euler(0.1, -0.15, -0.25), 0.3)
  607. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.3)
  608. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, -0.2), 0.3)
  609. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  610. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  611. end
  612. end
  613. StaggerAnim = function()
  614. attack = true
  615. removeControl()
  616. for i = 1, math.random(2, 4) do
  617. 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)
  618. end
  619. for i = 0, 1, 0.35 do
  620. swait()
  621. if Rooted.Value == false then
  622. Torso.Velocity = RootPart.CFrame.lookVector * -40
  623. end
  624. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.3)
  625. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.4), 0.3)
  626. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.3)
  627. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  628. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  629. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  630. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.3)
  631. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  632. end
  633. for i = 0, 1, 0.2 do
  634. swait()
  635. if Rooted.Value == false then
  636. Torso.Velocity = RootPart.CFrame.lookVector * -40
  637. end
  638. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.4)
  639. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(-0.5, 0, -0.4), 0.4)
  640. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.4)
  641. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  642. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.4)
  643. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  644. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.4)
  645. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.5), 0.4)
  646. end
  647. for i = 0, 1, 0.1 do
  648. swait()
  649. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.5, 0, 0), 0.3)
  650. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, -0.4), 0.3)
  651. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.5, 0, 0.2) * euler(0, -0.4, 0), 0.3)
  652. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  653. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -0.2) * euler(0, 0.4, 0), 0.3)
  654. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  655. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 1.2), 0.3)
  656. LH.C0 = clerp(LH.C0, cf(-1, 0, -1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  657. end
  658. for i = 1, 40 do
  659. swait()
  660. if StunT.Value <= Stun.Value then
  661. break
  662. end
  663. end
  664. do
  665. resumeControl()
  666. combo = 0
  667. attack = false
  668. end
  669. end
  670. StaggerHitt = 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.1 do
  676. swait()
  677. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.1, 0, 0), 0.3)
  678. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, 0), 0.3)
  679. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.9), 0.3)
  680. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  681. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.6), 0.3)
  682. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  683. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.4), 0.3)
  684. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  685. end
  686. attack = false
  687. end
  688. StunAnim = function()
  689. attack = true
  690. removeControl()
  691. Stunned.Value = true
  692. showDamage(Character, "Stunned", "Interrupt")
  693. local dec = Instance.new("NumberValue", Decrease)
  694. dec.Name = "DecreaseMvmt"
  695. dec.Value = 10
  696. for i = 0, 1, 0.3 do
  697. swait()
  698. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2)
  699. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2)
  700. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2)
  701. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  702. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2)
  703. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  704. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25)
  705. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
  706. end
  707. for i = 0, 1, 0.3 do
  708. swait()
  709. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2)
  710. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2)
  711. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  712. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  713. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1.2, 0, 0.8) * euler(0, -0.1, 0), 0.2)
  714. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  715. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25)
  716. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25)
  717. end
  718. for i = 0, 1, 0.3 do
  719. swait()
  720. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2)
  721. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2)
  722. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  723. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  724. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2)
  725. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  726. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25)
  727. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25)
  728. end
  729. local gairost = Instance.new("BodyGyro")
  730. gairost.Parent = RootPart
  731. gairost.maxTorque = Vector3.new(400000, 0, 400000) * math.huge
  732. gairost.P = 20000
  733. gairost.cframe = cf(0, 0, 0)
  734. for i = 0, 1, 0.1 do
  735. swait()
  736. if hitfloor ~= nil then
  737. Torso.Velocity = vt(0, 0, 0)
  738. end
  739. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3)
  740. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3)
  741. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 0, 0), 0.3)
  742. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  743. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3)
  744. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  745. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3)
  746. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3)
  747. end
  748. for i = 1, 70 do
  749. swait()
  750. gairost.cframe = RootPart.CFrame
  751. if hitfloor ~= nil then
  752. Torso.Velocity = vt(0, 0, 0)
  753. end
  754. end
  755. for i = 0, 1, 0.2 do
  756. swait()
  757. Stun.Value = 0
  758. gairost.cframe = RootPart.CFrame
  759. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  760. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3)
  761. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3)
  762. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  763. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3)
  764. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  765. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3)
  766. LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3)
  767. end
  768. resumeControl()
  769. gairost.Parent = nil
  770. dec.Parent = nil
  771. Stun.Value = 0
  772. combo = 0
  773. Stunned.Value = false
  774. attack = false
  775. for i = 1, 10 do
  776. swait()
  777. Stun.Value = 0
  778. end
  779. end
  780. attackone = function()
  781. attack = true
  782. for i = 0, 1, 0.2 do
  783. swait()
  784. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.15, 0, -0.15), 0.5)
  785. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0) * euler(0, 0, -0.25), 0.5)
  786. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.4, 0, 0.25) * euler(0, 0, 0), 0.5)
  787. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  788. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.1), 0.5)
  789. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  790. RH.C0 = clerp(RH.C0, cf(1, -1, -0.15) * euler(0, 1.57, 0) * euler(-0.05, -0.1, 0.15), 0.15)
  791. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, -0.2, 0.2), 0.15)
  792. handlewld.C0 = clerp(handlewld.C0, euler(1.3, 0, 0) * cf(0, 1, 0), 0.3)
  793. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  794. do
  795. if StaggerHit.Value == true then
  796. break
  797. end
  798. -- DECOMPILER ERROR at PC213: LeaveBlock: unexpected jumping out IF_THEN_STMT
  799.  
  800. -- DECOMPILER ERROR at PC213: LeaveBlock: unexpected jumping out IF_STMT
  801.  
  802. end
  803. end
  804. end
  805. hbwld.Parent = nil
  806. hboxpos.Parent = hitbox
  807. hitbox.Parent = modelzorz
  808. hitbox.Size = vt(1.5, 1.5, 2)
  809. hitboxCF = RightArm.CFrame
  810. hitbox.CFrame = hitboxCF
  811. so("200632136", prt5, 1, 1)
  812. for i = 0, 1, 0.2 do
  813. swait()
  814. hitboxCF = prt5.CFrame
  815. hitbox.CFrame = hitboxCF
  816. MagniDamage(hitbox, 3, 6, 8, math.random(1, 2), "Normal", RootPart, 0.5, 1, (math.random(8, 10)), nil, true)
  817. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, -0.2), 0.5)
  818. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0) * euler(0, 0, 0.3), 0.5)
  819. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.25) * euler(1, 0, -0.5), 0.5)
  820. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  821. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.1), 0.5)
  822. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  823. RH.C0 = clerp(RH.C0, cf(1, -1, -0.15) * euler(0, 1.57, 0) * euler(-0.05, -0.1, 0.15), 0.15)
  824. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, -0.2, 0.2), 0.15)
  825. handlewld.C0 = clerp(handlewld.C0, euler(2.4, 0, 0) * cf(0, 1.1, 0), 0.3)
  826. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  827. do
  828. if StaggerHit.Value == true then
  829. break
  830. end
  831. -- DECOMPILER ERROR at PC474: LeaveBlock: unexpected jumping out IF_THEN_STMT
  832.  
  833. -- DECOMPILER ERROR at PC474: LeaveBlock: unexpected jumping out IF_STMT
  834.  
  835. end
  836. end
  837. end
  838. hitbox.Parent = modelzorz
  839. hitbox.Size = vt()
  840. hitboxweld()
  841. hboxpos.Parent = nil
  842. attack = false
  843. end
  844. attacktwo = function()
  845. attack = true
  846. for i = 0, 1, 0.2 do
  847. swait()
  848. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0, 0, 0.3), 0.5)
  849. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0) * euler(0, 0, 0.25), 0.5)
  850. RW.C0 = clerp(RW.C0, cf(0.5, 0.5, -0.3) * euler(1.2, 0, -1) * euler(0, 1.45, 0), 0.5)
  851. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  852. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.2), 0.5)
  853. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  854. RH.C0 = clerp(RH.C0, cf(1, -1, -0.15) * euler(0, 1.57, 0) * euler(-0.05, -0.1, 0.15), 0.15)
  855. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, -0.2, 0.2), 0.15)
  856. handlewld.C0 = clerp(handlewld.C0, euler(1.3, 0, 0) * cf(0, 1, 0), 0.3)
  857. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  858. do
  859. if StaggerHit.Value == true then
  860. break
  861. end
  862. -- DECOMPILER ERROR at PC213: LeaveBlock: unexpected jumping out IF_THEN_STMT
  863.  
  864. -- DECOMPILER ERROR at PC213: LeaveBlock: unexpected jumping out IF_STMT
  865.  
  866. end
  867. end
  868. end
  869. hbwld.Parent = nil
  870. hboxpos.Parent = hitbox
  871. hitbox.Parent = modelzorz
  872. hitbox.Size = vt(1.5, 1.5, 2)
  873. hitboxCF = RightArm.CFrame
  874. hitbox.CFrame = hitboxCF
  875. so("200632136", prt5, 1, 1.1)
  876. for i = 0, 1, 0.2 do
  877. swait()
  878. hitboxCF = prt5.CFrame
  879. hitbox.CFrame = hitboxCF
  880. MagniDamage(hitbox, 3, 6, 8, math.random(1, 2), "Normal", RootPart, 0.3, 1, (math.random(8, 10)), nil, true)
  881. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.1, 0, -0.15), 0.5)
  882. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0) * euler(0, 0, -0.25), 0.5)
  883. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.3) * euler(0.4, 0, 1) * euler(0, 1.45, 0), 0.5)
  884. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  885. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.7, 0, -0.3), 0.5)
  886. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  887. RH.C0 = clerp(RH.C0, cf(1, -1, -0.15) * euler(0, 1.57, 0) * euler(-0.05, -0.1, 0.15), 0.15)
  888. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, -0.2, 0.2), 0.15)
  889. handlewld.C0 = clerp(handlewld.C0, euler(2, 0, 0) * cf(0, 1, 0), 0.3)
  890. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  891. do
  892. if StaggerHit.Value == true then
  893. break
  894. end
  895. -- DECOMPILER ERROR at PC480: LeaveBlock: unexpected jumping out IF_THEN_STMT
  896.  
  897. -- DECOMPILER ERROR at PC480: LeaveBlock: unexpected jumping out IF_STMT
  898.  
  899. end
  900. end
  901. end
  902. hitbox.Parent = modelzorz
  903. hitbox.Size = vt()
  904. hitboxweld()
  905. hboxpos.Parent = nil
  906. attack = false
  907. end
  908. attackthree = function()
  909. attack = true
  910. for i = 0, 1, 0.2 do
  911. swait()
  912. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, -0.1), 0.5)
  913. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0) * euler(0, 0, -0.25), 0.5)
  914. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.3) * euler(-0.2, 0, 0.15) * euler(0, 0, 0), 0.5)
  915. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  916. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.45, 0, -0.3), 0.5)
  917. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  918. RH.C0 = clerp(RH.C0, cf(1, -1, -0.15) * euler(0, 1.57, 0) * euler(-0.05, -0.1, 0.15), 0.15)
  919. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, -0.2, 0.2), 0.15)
  920. handlewld.C0 = clerp(handlewld.C0, euler(1.3, 0, 0) * cf(0, 1, 0), 0.3)
  921. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  922. do
  923. if StaggerHit.Value == true then
  924. break
  925. end
  926. -- DECOMPILER ERROR at PC213: LeaveBlock: unexpected jumping out IF_THEN_STMT
  927.  
  928. -- DECOMPILER ERROR at PC213: LeaveBlock: unexpected jumping out IF_STMT
  929.  
  930. end
  931. end
  932. end
  933. so("200632136", prt5, 1, 1.1)
  934. hbwld.Parent = nil
  935. hboxpos.Parent = hitbox
  936. hitbox.Parent = modelzorz
  937. hitbox.Size = vt(1.5, 1.5, 2)
  938. hitboxCF = RightArm.CFrame
  939. hitbox.CFrame = hitboxCF
  940. for i = 0, 1, 0.2 do
  941. swait()
  942. hitboxCF = prt5.CFrame
  943. hitbox.CFrame = hitboxCF
  944. MagniDamage(hitbox, 3, 6, 8, math.random(1, 2), "Normal", RootPart, 0.4, 1, (math.random(8, 10)), nil, true)
  945. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0, 0, -0.2), 0.5)
  946. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0) * euler(0, 0, 0.2), 0.5)
  947. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.3) * euler(1.2, 0, -0.45) * euler(0, 0, 0), 0.5)
  948. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  949. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.7, 0, -0.3), 0.5)
  950. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  951. RH.C0 = clerp(RH.C0, cf(1, -1, -0.15) * euler(0, 1.57, 0) * euler(-0.05, -0.1, 0.15), 0.15)
  952. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, -0.2, 0.2), 0.15)
  953. handlewld.C0 = clerp(handlewld.C0, euler(2.4, 0, 0) * cf(0, 1, 0), 0.3)
  954. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  955. do
  956. if StaggerHit.Value == true then
  957. break
  958. end
  959. -- DECOMPILER ERROR at PC480: LeaveBlock: unexpected jumping out IF_THEN_STMT
  960.  
  961. -- DECOMPILER ERROR at PC480: LeaveBlock: unexpected jumping out IF_STMT
  962.  
  963. end
  964. end
  965. end
  966. hitbox.Parent = modelzorz
  967. hitbox.Size = vt()
  968. hitboxweld()
  969. hboxpos.Parent = nil
  970. attack = false
  971. end
  972. attackfour = function()
  973. attack = true
  974. for i = 0, 1, 0.1 do
  975. swait()
  976. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.2, 0, 0), 0.5)
  977. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0) * euler(0, 0, 0), 0.5)
  978. RW.C0 = clerp(RW.C0, cf(1, 1.5, -0.3) * euler(2.4, 0, -0.45) * euler(0, 0, 0), 0.3)
  979. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  980. LW.C0 = clerp(LW.C0, cf(-1, 1.5, -0.3) * euler(2.5, 0, 0.65), 0.3)
  981. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  982. RH.C0 = clerp(RH.C0, cf(1, -1, -0.15) * euler(0, 1.57, 0) * euler(-0.05, -0.1, 0.15), 0.15)
  983. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, -0.2, 0.2), 0.15)
  984. handlewld.C0 = clerp(handlewld.C0, euler(1.4, 0, -0.4) * cf(0.45, 1, 0), 0.4)
  985. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  986. do
  987. if StaggerHit.Value == true then
  988. break
  989. end
  990. -- DECOMPILER ERROR at PC213: LeaveBlock: unexpected jumping out IF_THEN_STMT
  991.  
  992. -- DECOMPILER ERROR at PC213: LeaveBlock: unexpected jumping out IF_STMT
  993.  
  994. end
  995. end
  996. end
  997. so("200632136", prt5, 1, 1.1)
  998. hbwld.Parent = nil
  999. hboxpos.Parent = hitbox
  1000. hitbox.Parent = modelzorz
  1001. hitbox.Size = vt(1.5, 1.5, 2)
  1002. hitboxCF = RightArm.CFrame
  1003. hitbox.CFrame = hitboxCF
  1004. for i = 0, 1, 0.1 do
  1005. swait()
  1006. hitboxCF = prt5.CFrame
  1007. hitbox.CFrame = hitboxCF
  1008. MagniDamage(hitbox, 3, 7, 10, math.random(4, 6), "Normal", RootPart, 0.5, 1, (math.random(12, 14)), nil, true, nil, "Damage", 0.05, 350)
  1009. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.25, 0, 0), 0.5)
  1010. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0) * euler(0, 0, 0), 0.5)
  1011. RW.C0 = clerp(RW.C0, cf(1, 0.25, -0.3) * euler(1, 0, -0.45) * euler(0, 0, 0), 0.5)
  1012. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1013. LW.C0 = clerp(LW.C0, cf(-1, 0.25, -0.3) * euler(1, 0, 0.65), 0.5)
  1014. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1015. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.35) * euler(0, 1.57, 0) * euler(-0.05, -0.1, 0), 0.3)
  1016. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0, -0.2, 0.25), 0.3)
  1017. handlewld.C0 = clerp(handlewld.C0, euler(2.2, 0, -0.4) * cf(0.45, 1, 0.4), 0.5)
  1018. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1019. do
  1020. if StaggerHit.Value == true then
  1021. break
  1022. end
  1023. -- DECOMPILER ERROR at PC484: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1024.  
  1025. -- DECOMPILER ERROR at PC484: LeaveBlock: unexpected jumping out IF_STMT
  1026.  
  1027. end
  1028. end
  1029. end
  1030. hitbox.Parent = modelzorz
  1031. hitbox.Size = vt()
  1032. hitboxweld()
  1033. hboxpos.Parent = nil
  1034. attack = false
  1035. end
  1036. dattackone = function()
  1037. stop = true
  1038. if isblarghing == false then
  1039. attack = true
  1040. do
  1041. for i = 0, 1, 0.15 do
  1042. swait()
  1043. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.7) * euler(-0.1, 0, 0), 0.3)
  1044. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0.5), 0.3)
  1045. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(3, 0, 0.2) * euler(0, 0, 0), 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.5, 0, -0.5) * euler(0, 0, 0), 0.15)
  1048. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1049. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.15, 0, 0.2) * euler(0, 0, 0), 0.3)
  1050. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.15, 0, 0.2), 0.3)
  1051. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1052. do
  1053. if StaggerHit.Value == true then
  1054. break
  1055. end
  1056. -- DECOMPILER ERROR at PC206: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1057.  
  1058. -- DECOMPILER ERROR at PC206: LeaveBlock: unexpected jumping out IF_STMT
  1059.  
  1060. end
  1061. end
  1062. end
  1063. end
  1064. local pl = part(3, workspace, 0, 1, BrickColor.new(NewCol), "Plane", vt(1, 1, 1))
  1065. local pmsh = mesh("SpecialMesh", pl, "FileMesh", "113216991", vt(0, 0, 0), vt(1, 1, 1))
  1066. local pwld = weld(pl, pl, RightArm, euler(0, math.rad(180), math.rad(180)) * cf(0, 1.1, 0))
  1067. MagicBlock(BrickColor.new(NewCol), cf(pl.Position) * cf(0, 0, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0.5, 0.5, 0.5, 2, 2, 2, 0.15, 2)
  1068. pl.Transparency = 0
  1069. for i = 0, 1, 0.15 do
  1070. swait()
  1071. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.7) * euler(-0.3, 0, 0), 0.3)
  1072. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0.5), 0.3)
  1073. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(3.8, 0, 0.2) * euler(0, 0, 0), 0.3)
  1074. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1075. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -0.5) * euler(0, 0, 0), 0.3)
  1076. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1077. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.15, 0, 0.2) * euler(0, 0, 0), 0.3)
  1078. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.15, 0, 0.2), 0.3)
  1079. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1080. do
  1081. if StaggerHit.Value == true then
  1082. break
  1083. end
  1084. -- DECOMPILER ERROR at PC502: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1085.  
  1086. -- DECOMPILER ERROR at PC502: LeaveBlock: unexpected jumping out IF_STMT
  1087.  
  1088. end
  1089. end
  1090. end
  1091. pwld.Parent = nil
  1092. pl.Anchored = true
  1093. local MainPos = pl.Position
  1094. local MainPos2 = MMouse.Hit.p
  1095. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  1096. coroutine.resume(coroutine.create(function(Pos1, Pos2, Look)
  1097. local num = 15
  1098. repeat
  1099. swait()
  1100. local ohit, opos = rayCast(Pos1, Look.lookVector, 5, Character)
  1101. pl.CFrame = CFrame.new((Pos1 + opos) / 2, opos)
  1102. MagicBlock(BrickColor.new("Bright red"), cf(pl.Position) * cf(0, 0, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0.5, 0.5, 0.5, 1, 1, 1, 0.15, 2)
  1103. Pos1 = Pos1 + Look.lookVector * 5
  1104. pl.CFrame = CFrame.new(pl.Position, MMouse.Hit.p)
  1105. if ohit ~= nil then
  1106. num = 0
  1107. end
  1108. num = num - 1
  1109. until num <= 0
  1110. local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
  1111. ref.Anchored = true
  1112. ref.CFrame = cf(pl.Position)
  1113. so("206049428", ref, 0.5, math.random(7, 10) / 10)
  1114. game:GetService("Debris"):AddItem(ref, 0.5)
  1115. local col = {"Bright red", "Bright yellow", "Bright orange"}
  1116. MagicCircle(BrickColor.new(col[math.random(1, #col)]), cf(ref.Position), 2, 2, 2, 2.5, 2.5, 2.5, 0.1, 0.2)
  1117. for i = 1, 4 do
  1118. MagicBlock(BrickColor.new(col[math.random(1, #col)]), cf(ref.Position) * cf(math.random(-50, 50) / 100, math.random(-50, 50) / 100, math.random(-50, 50) / 100), 3, 3, 3, 1, 1, 1, 0.1)
  1119. end
  1120. MagniDamage(ref, 5, 6, 9, math.random(5, 10), "Knockdown2", ref, 0.15, 2, math.random(3, 7), false, true, false, "Movement", 0.02, 500)
  1121. pl.Parent = nil
  1122. end), MainPos, MainPos2, MouseLook)
  1123. for i = 0, 1, 0.2 do
  1124. swait()
  1125. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.5) * euler(0.1, 0, 0), 0.5)
  1126. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0.5), 0.5)
  1127. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.4, 0, 0.2) * euler(0, 0, 0), 0.5)
  1128. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1129. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -0.2) * euler(0, 0, 0), 0.5)
  1130. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1131. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.15, 0, 0.2) * euler(0, 0, 0), 0.3)
  1132. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.15, 0, 0.2), 0.3)
  1133. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1134. do
  1135. if StaggerHit.Value == true then
  1136. break
  1137. end
  1138. -- DECOMPILER ERROR at PC724: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1139.  
  1140. -- DECOMPILER ERROR at PC724: LeaveBlock: unexpected jumping out IF_STMT
  1141.  
  1142. end
  1143. end
  1144. end
  1145. attack = false
  1146. end
  1147. end
  1148. dattacktwo = function()
  1149. stop = true
  1150. if isblarghing == false then
  1151. attack = true
  1152. do
  1153. for i = 0, 1, 0.15 do
  1154. swait()
  1155. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.7) * euler(-0.1, 0, 0), 0.3)
  1156. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, -0.5), 0.3)
  1157. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.5, 0, 0.5) * euler(0, 0, 0), 0.3)
  1158. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1159. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.7, 0, -0.2) * euler(0, 0, 0), 0.15)
  1160. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1161. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.15, 0, -0.2) * euler(0, 0, 0), 0.3)
  1162. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.15, 0, -0.2), 0.3)
  1163. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1164. do
  1165. if StaggerHit.Value == true then
  1166. break
  1167. end
  1168. -- DECOMPILER ERROR at PC206: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1169.  
  1170. -- DECOMPILER ERROR at PC206: LeaveBlock: unexpected jumping out IF_STMT
  1171.  
  1172. end
  1173. end
  1174. end
  1175. end
  1176. local pl = part(3, workspace, 0, 1, BrickColor.new(NewCol), "Plane", vt(1, 1, 1))
  1177. local pmsh = mesh("SpecialMesh", pl, "FileMesh", "113216991", vt(0, 0, 0), vt(1, 1, 1))
  1178. local pwld = weld(pl, pl, LeftArm, euler(0, math.rad(180), math.rad(180)) * cf(0, 1.1, 0))
  1179. MagicBlock(BrickColor.new(NewCol), cf(pl.Position) * cf(0, 0, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0.5, 0.5, 0.5, 2, 2, 2, 0.15, 2)
  1180. pl.Transparency = 0
  1181. for i = 0, 1, 0.15 do
  1182. swait()
  1183. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.7) * euler(-0.3, 0, 0), 0.3)
  1184. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, -0.5), 0.3)
  1185. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.5, 0, 0.5) * euler(0, 0, 0), 0.3)
  1186. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1187. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(3.8, 0, -0.2) * euler(0, 0, 0), 0.3)
  1188. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1189. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.15, 0, -0.2) * euler(0, 0, 0), 0.3)
  1190. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.15, 0, -0.2), 0.3)
  1191. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1192. do
  1193. if StaggerHit.Value == true then
  1194. break
  1195. end
  1196. -- DECOMPILER ERROR at PC502: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1197.  
  1198. -- DECOMPILER ERROR at PC502: LeaveBlock: unexpected jumping out IF_STMT
  1199.  
  1200. end
  1201. end
  1202. end
  1203. pwld.Parent = nil
  1204. pl.Anchored = true
  1205. local MainPos = pl.Position
  1206. local MainPos2 = MMouse.Hit.p
  1207. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  1208. coroutine.resume(coroutine.create(function(Pos1, Pos2, Look)
  1209. local num = 15
  1210. repeat
  1211. swait()
  1212. local ohit, opos = rayCast(Pos1, Look.lookVector, 5, Character)
  1213. pl.CFrame = CFrame.new((Pos1 + opos) / 2, opos)
  1214. MagicBlock(BrickColor.new("Bright red"), cf(pl.Position) * cf(0, 0, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0.5, 0.5, 0.5, 1, 1, 1, 0.15, 2)
  1215. Pos1 = Pos1 + Look.lookVector * 5
  1216. pl.CFrame = CFrame.new(pl.Position, MMouse.Hit.p)
  1217. if ohit ~= nil then
  1218. num = 0
  1219. end
  1220. num = num - 1
  1221. until num <= 0
  1222. local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
  1223. ref.Anchored = true
  1224. ref.CFrame = cf(pl.Position)
  1225. so("206049428", ref, 0.5, math.random(7, 10) / 10)
  1226. game:GetService("Debris"):AddItem(ref, 0.5)
  1227. local col = {"Bright red", "Bright yellow", "Bright orange"}
  1228. MagicCircle(BrickColor.new(col[math.random(1, #col)]), cf(ref.Position), 2, 2, 2, 2.5, 2.5, 2.5, 0.1, 0.2)
  1229. for i = 1, 4 do
  1230. MagicBlock(BrickColor.new(col[math.random(1, #col)]), cf(ref.Position) * cf(math.random(-50, 50) / 100, math.random(-50, 50) / 100, math.random(-50, 50) / 100), 3, 3, 3, 1, 1, 1, 0.1)
  1231. end
  1232. MagniDamage(ref, 5, 6, 9, math.random(5, 10), "Knockdown2", ref, 0.15, 2, math.random(3, 7), false, true, false, "Movement", 0.02, 500)
  1233. pl.Parent = nil
  1234. end), MainPos, MainPos2, MouseLook)
  1235. for i = 0, 1, 0.2 do
  1236. swait()
  1237. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(-0.1, 0, 0), 0.5)
  1238. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, -0.5), 0.5)
  1239. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.5, 0, 0.2) * euler(0, 0, 0), 0.5)
  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.5, 0.5, 0) * euler(2.4, 0, -0.2) * euler(0, 0, 0), 0.5)
  1242. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1243. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.15, 0, -0.2) * euler(0, 0, 0), 0.3)
  1244. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.15, 0, -0.2), 0.3)
  1245. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1246. do
  1247. if StaggerHit.Value == true then
  1248. break
  1249. end
  1250. -- DECOMPILER ERROR at PC724: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1251.  
  1252. -- DECOMPILER ERROR at PC724: LeaveBlock: unexpected jumping out IF_STMT
  1253.  
  1254. end
  1255. end
  1256. end
  1257. attack = false
  1258. end
  1259. end
  1260. dattackthree = function()
  1261. stop = true
  1262. if isblarghing == false then
  1263. attack = true
  1264. for i = 0, 1, 0.15 do
  1265. swait()
  1266. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.1, 0, 0), 0.3)
  1267. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  1268. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.5, 0, 0.2) * euler(0, 0, 0), 0.3)
  1269. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1270. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -0.5) * euler(0, 0, 0), 0.15)
  1271. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1272. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.1, 0, 0.1) * euler(0, 0, 0), 0.3)
  1273. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.1), 0.3)
  1274. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1275. do
  1276. if StaggerHit.Value == true then
  1277. break
  1278. end
  1279. -- DECOMPILER ERROR at PC206: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1280.  
  1281. -- DECOMPILER ERROR at PC206: LeaveBlock: unexpected jumping out IF_STMT
  1282.  
  1283. end
  1284. end
  1285. end
  1286. do
  1287. for i = 0, 1, 0.15 do
  1288. swait()
  1289. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.3, 0, 0), 0.3)
  1290. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  1291. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.2, 0, 0.2) * euler(0, 0, 0), 0.3)
  1292. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1293. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -0.5) * euler(0, 0, 0), 0.3)
  1294. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1295. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.1, 0, 0.1) * euler(0, 0, 0), 0.3)
  1296. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.1), 0.3)
  1297. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1298. do
  1299. if StaggerHit.Value == true then
  1300. break
  1301. end
  1302. -- DECOMPILER ERROR at PC406: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1303.  
  1304. -- DECOMPILER ERROR at PC406: LeaveBlock: unexpected jumping out IF_STMT
  1305.  
  1306. end
  1307. end
  1308. end
  1309. end
  1310. local ref2 = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
  1311. ref2.Anchored = true
  1312. ref2.CFrame = Character.HumanoidRootPart.CFrame * CFrame.new(Vector3.new(0, 7, 0), MMouse.Hit.p)
  1313. game:GetService("Debris"):AddItem(ref2, 1)
  1314. for i = -1, 1 do
  1315. local pl = part(3, workspace, 0, 1, BrickColor.new(NewCol), "Plane", vt(1, 1, 1))
  1316. local pmsh = mesh("SpecialMesh", pl, "FileMesh", "113216991", vt(0, 0, 0), vt(1, 1, 1))
  1317. pl.CFrame = ref2.CFrame * CFrame.new(i * 5, 0, 0)
  1318. MagicBlock(BrickColor.new(NewCol), cf(pl.Position) * cf(0, 0, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0.5, 0.5, 0.5, 2, 2, 2, 0.15, 2)
  1319. pl.Transparency = 0
  1320. pl.Anchored = true
  1321. local MainPos = pl.Position
  1322. local MainPos2 = MMouse.Hit.p + Vector3.new(i + math.random(-250, 250) / 100, i + math.random(-250, 250) / 100, i + math.random(-250, 250) / 100)
  1323. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  1324. coroutine.resume(coroutine.create(function(Pos1, Pos2, Look)
  1325. local num = 25
  1326. repeat
  1327. swait()
  1328. local ohit, opos = rayCast(Pos1, Look.lookVector, 5, pl)
  1329. pl.CFrame = CFrame.new((Pos1 + opos) / 2, opos)
  1330. MagicBlock(BrickColor.new("Bright red"), cf(pl.Position) * cf(0, 0, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0.5, 0.5, 0.5, 1, 1, 1, 0.15, 2)
  1331. Pos1 = Pos1 + Look.lookVector * 5
  1332. pl.CFrame = CFrame.new(pl.Position, MMouse.Hit.p)
  1333. if ohit ~= nil then
  1334. num = 0
  1335. end
  1336. num = num - 1
  1337. until num <= 0
  1338. local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
  1339. ref.Anchored = true
  1340. ref.CFrame = cf(pl.Position)
  1341. so("206049428", ref, 0.5, math.random(7, 10) / 10)
  1342. game:GetService("Debris"):AddItem(ref, 0.5)
  1343. local col = {"Bright red", "Bright yellow", "Bright orange"}
  1344. MagicCircle(BrickColor.new(col[math.random(1, #col)]), cf(ref.Position), 2, 2, 2, 2.5, 2.5, 2.5, 0.1, 0.2)
  1345. for i = 1, 4 do
  1346. MagicBlock(BrickColor.new(col[math.random(1, #col)]), cf(ref.Position) * cf(math.random(-50, 50) / 100, math.random(-50, 50) / 100, math.random(-50, 50) / 100), 3, 3, 3, 1, 1, 1, 0.1)
  1347. end
  1348. MagniDamage(ref, 5, 8, 12, math.random(5, 10), "Knockdown2", ref, 0.01, 2, math.random(3, 7), false, true, false, "Movement", 0.02, 500)
  1349. pl.Parent = nil
  1350. end), MainPos, MainPos2, MouseLook)
  1351. end
  1352. for i = 0, 1, 0.15 do
  1353. swait()
  1354. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.1, 0, 0), 0.3)
  1355. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  1356. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 0) * euler(0, 0, 0), 0.3)
  1357. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1358. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -0.5) * euler(0, 0, 0), 0.3)
  1359. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1360. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.1, 0, 0.1) * euler(0, 0, 0), 0.3)
  1361. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.1), 0.3)
  1362. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1363. do
  1364. if StaggerHit.Value == true then
  1365. break
  1366. end
  1367. -- DECOMPILER ERROR at PC780: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1368.  
  1369. -- DECOMPILER ERROR at PC780: LeaveBlock: unexpected jumping out IF_STMT
  1370.  
  1371. end
  1372. end
  1373. end
  1374. attack = false
  1375. end
  1376. end
  1377. dattackfour = function()
  1378. stop = true
  1379. if isblarghing == false then
  1380. attack = true
  1381. do
  1382. for i = 0, 1, 0.15 do
  1383. swait()
  1384. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.15, 0, 0), 0.3)
  1385. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  1386. RW.C0 = clerp(RW.C0, cf(1.5, 1.2, 0) * euler(2.5, 0, 0.2) * euler(0, 0, 0), 0.3)
  1387. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1388. LW.C0 = clerp(LW.C0, cf(-1.5, 1.2, 0) * euler(2.5, 0, -0.2) * euler(0, 0, 0), 0.3)
  1389. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1390. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.15, 0, 0.2) * euler(0, 0, 0), 0.3)
  1391. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.15, 0, 0.2), 0.3)
  1392. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1393. do
  1394. if StaggerHit.Value == true then
  1395. break
  1396. end
  1397. -- DECOMPILER ERROR at PC206: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1398.  
  1399. -- DECOMPILER ERROR at PC206: LeaveBlock: unexpected jumping out IF_STMT
  1400.  
  1401. end
  1402. end
  1403. end
  1404. end
  1405. for i = 0, 1, 0.15 do
  1406. swait()
  1407. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.25, 0, 0), 0.3)
  1408. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  1409. RW.C0 = clerp(RW.C0, cf(1.5, 1.2, 0) * euler(3, 0, 0.2) * euler(0, 0, 0), 0.3)
  1410. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1411. LW.C0 = clerp(LW.C0, cf(-1.5, 1.2, 0) * euler(3, 0, -0.2) * euler(0, 0, 0), 0.3)
  1412. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1413. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.15, 0, 0.2) * euler(0, 0, 0), 0.3)
  1414. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.15, 0, 0.2), 0.3)
  1415. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1416. do
  1417. if StaggerHit.Value == true then
  1418. break
  1419. end
  1420. -- DECOMPILER ERROR at PC406: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1421.  
  1422. -- DECOMPILER ERROR at PC406: LeaveBlock: unexpected jumping out IF_STMT
  1423.  
  1424. end
  1425. end
  1426. end
  1427. local pl = part(3, workspace, 0, 1, BrickColor.new(NewCol), "Plane", vt(2, 2, 2))
  1428. local pmsh = mesh("SpecialMesh", pl, "FileMesh", "113216991", vt(0, 0, 0), vt(4, 4, 4))
  1429. local pwld = weld(pl, pl, RightArm, euler(0, math.rad(180), math.rad(180)) * cf(1.5, 2.6, 0))
  1430. MagicBlock(BrickColor.new(NewCol), cf(pl.Position) * cf(0, 0, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 2, 2, 2, 5, 5, 5, 0.1, 2)
  1431. pl.Transparency = 0
  1432. for i = 0, 1, 0.15 do
  1433. swait()
  1434. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.45, 0, 0), 0.3)
  1435. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  1436. RW.C0 = clerp(RW.C0, cf(1.5, 1.2, 0) * euler(3.8, 0, 0.2) * euler(0, 0, 0), 0.3)
  1437. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1438. LW.C0 = clerp(LW.C0, cf(-1.5, 1.2, 0) * euler(3.8, 0, -0.2) * euler(0, 0, 0), 0.3)
  1439. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1440. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.15, 0, 0.2) * euler(0, 0, 0), 0.3)
  1441. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.15, 0, 0.2), 0.3)
  1442. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1443. do
  1444. if StaggerHit.Value == true then
  1445. break
  1446. end
  1447. -- DECOMPILER ERROR at PC702: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1448.  
  1449. -- DECOMPILER ERROR at PC702: LeaveBlock: unexpected jumping out IF_STMT
  1450.  
  1451. end
  1452. end
  1453. end
  1454. pwld.Parent = nil
  1455. pl.Anchored = true
  1456. local MainPos = pl.Position
  1457. local MainPos2 = MMouse.Hit.p
  1458. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2)
  1459. coroutine.resume(coroutine.create(function(Pos1, Pos2, Look)
  1460. local num = 30
  1461. repeat
  1462. swait()
  1463. local ohit, opos = rayCast(Pos1, Look.lookVector, 20, pl)
  1464. pl.CFrame = CFrame.new((Pos1 + opos) / 2, opos)
  1465. MagicBlock(BrickColor.new("Bright red"), cf(pl.Position) * cf(0, -0.55, 0) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 2.5, 2.5, 2.5, 2, 2, 2, 0.15, 2)
  1466. Pos1 = Pos1 + Look.lookVector * 5
  1467. pl.CFrame = CFrame.new(pl.Position, MMouse.Hit.p)
  1468. if ohit ~= nil then
  1469. num = 0
  1470. end
  1471. num = num - 1
  1472. until num <= 0
  1473. local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
  1474. ref.Anchored = true
  1475. ref.CFrame = cf(pl.Position)
  1476. so("206049428", ref, 0.8, math.random(4, 6) / 10)
  1477. game:GetService("Debris"):AddItem(ref, 0.5)
  1478. local col = {"Bright red", "Bright yellow", "Bright orange"}
  1479. MagicCircle(BrickColor.new(col[math.random(1, #col)]), cf(ref.Position), 5, 5, 5, 10.5, 10.5, 10.5, 0.1, 1)
  1480. for i = 1, 4 do
  1481. MagicBlock(BrickColor.new(col[math.random(1, #col)]), cf(ref.Position) * cf(math.random(-50, 50) / 100, math.random(-50, 50) / 100, math.random(-50, 50) / 100), 5, 5, 5, 6, 6, 6, 0.1)
  1482. end
  1483. MagniDamage(ref, 15, 10, 15, math.random(15, 25), "Knockdown2", ref, 0.15, 2, math.random(12, 20), false, true, false, "Defense", 0.05, 700)
  1484. pl.Parent = nil
  1485. end), MainPos, MainPos2, MouseLook)
  1486. for i = 0, 1, 0.2 do
  1487. swait()
  1488. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.35, 0, 0), 0.5)
  1489. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.5)
  1490. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.4, 0, 0.2) * euler(0, 0, 0), 0.5)
  1491. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1492. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.4, 0, -0.2) * euler(0, 0, 0), 0.5)
  1493. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1494. RH.C0 = clerp(RH.C0, cf(1.1, -0.9, -0.2) * euler(0, 1.57, 0) * euler(-0.15, 0, 0.2) * euler(0, 0, 0), 0.3)
  1495. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.1) * euler(0, -1.57, 0) * euler(-0.15, 0, 0.2), 0.3)
  1496. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1497. do
  1498. if StaggerHit.Value == true then
  1499. break
  1500. end
  1501. -- DECOMPILER ERROR at PC924: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1502.  
  1503. -- DECOMPILER ERROR at PC924: LeaveBlock: unexpected jumping out IF_STMT
  1504.  
  1505. end
  1506. end
  1507. end
  1508. attack = false
  1509. end
  1510. end
  1511. cannonball = function()
  1512. if attack == true then
  1513. return
  1514. end
  1515. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1516. return
  1517. end
  1518. if mana.Value >= 15 then
  1519. stop = false
  1520. attack = true
  1521. isblarghing = true
  1522. s = Character.Torso
  1523. local p = Instance.new("Sound", s)
  1524. p.SoundId = "http://www.roblox.com/asset/?id=" .. "315652366"
  1525. p.Volume = 1
  1526. game:GetService("Debris"):AddItem(p, 4)
  1527. p:Play()
  1528. wait(0.1)
  1529. s.Parent.Humanoid.PlatformStand = true
  1530. local v = Instance.new("BodyVelocity", s)
  1531. v.P = 5000
  1532. v.maxForce = Vector3.new(545000, 545000, 545000)
  1533. local Dist = 80
  1534. v.velocity = s.CFrame.lookVector * Dist + Vector3.new(0, Dist, 0)
  1535. game:GetService("Debris"):AddItem(v, 0.25)
  1536. s.Parent.Humanoid.PlatformStand = true
  1537. s.RotVelocity = Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) / 2
  1538. wait(0.175)
  1539. local x = false
  1540. attack = false
  1541. for i = 1, 500 do
  1542. swait()
  1543. MagicBlock(BrickColor.new("Medium stone grey"), RootPart.CFrame * euler(math.rad(math.random(1, 360)), math.rad(math.random(1, 360)), math.rad(math.random(1, 360))), 1, 1, 1, 3, 3, 3, 0.1)
  1544. for _,v in pairs(s:children()) do
  1545. hitfloord = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 10, Character)
  1546. if v.className == "Motor" or v.className == "Weld" or v.className == "Motor6D" then
  1547. v.C0 = v.C0 * CFrame.Angles(math.random(-50, 50) / 30, math.random(-50, 50) / 30, math.random(-50, 50) / 30)
  1548. end
  1549. end
  1550. if stop then
  1551. s.Parent.Humanoid.PlatformStand = false
  1552. Torso.Velocity = Vector3.new(0, -100, 0)
  1553. MagicBlock(BrickColor.new("Bright red"), RootPart.CFrame * euler(math.rad(math.random(1, 360)), math.rad(math.random(1, 360)), math.rad(math.random(1, 360))), 1, 1, 1, 10, 10, 10, 0.07)
  1554. MagicWave(BrickColor.new("Bright yellow"), cf(RootPart.Position) * euler(math.rad(math.random(-20, 20)), math.rad(math.random(-200, 200)), 0), 1, 0.5, 1, 3, 3, 3, 0.15)
  1555. end
  1556. if hitfloord then
  1557. s.Parent.Humanoid.PlatformStand = false
  1558. break
  1559. end
  1560. end
  1561. do
  1562. MagniDamage(RootPart, 25, 15, 20, math.random(75, 105), "Normal", RootPart, 0.15, 2, math.random(55, 97), true, true, false, "Movement", 0.25, 400)
  1563. MagicWave(BrickColor.new("Bright yellow"), cf(RootPart.Position) * cf(0, 0, 0), 1.5, 4, 1.5, 1.5, 0.5, 1.5, 0.05)
  1564. MagicBlock(BrickColor.new("Bright yellow"), cf(RootPart.Position) * cf(0, 0, 0), 1.5, 4, 1.5, 8, 8, 8, 0.05)
  1565. p = Instance.new("Sound", s)
  1566. p.SoundId = "http://www.roblox.com/asset/?id=" .. "157878578"
  1567. p.Volume = 1
  1568. p.Pitch = 0.9
  1569. p:Play()
  1570. game:GetService("Debris"):AddItem(p, 4)
  1571. showDamage(Character, 15, "Damage")
  1572. s.Parent.Humanoid:TakeDamage(15)
  1573. isblarghing = false
  1574. end
  1575. end
  1576. end
  1577. do1 = function()
  1578. if attack == true then
  1579. return
  1580. end
  1581. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1582. return
  1583. end
  1584. if cooldownmax <= cooldowns[1] and mana.Value >= 20 then
  1585. attack = true
  1586. removeControl()
  1587. cooldowns[1] = 0
  1588. mana.Value = mana.Value - 10
  1589. local dec = Instance.new("NumberValue")
  1590. dec.Name = "DecreaseMvmt"
  1591. dec.Value = 10
  1592. dec.Parent = Decrease
  1593. local dec2 = Instance.new("NumberValue")
  1594. dec2.Name = "DecreaseDef"
  1595. dec2.Value = 0.15
  1596. dec2.Parent = Decrease
  1597. for i = 0, 1, 0.1 do
  1598. swait()
  1599. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, -0.15), 0.3)
  1600. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.25) * euler(0, 0, 0) * euler(0, 0, 0), 0.3)
  1601. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.3) * euler(-0.2, 0, 0.15) * euler(0, 0, 0), 0.3)
  1602. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1603. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.45, 0, -0.3), 0.3)
  1604. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1605. RH.C0 = clerp(RH.C0, cf(1, 0.25, -1) * euler(0, 1.57, 0) * euler(-0.05, -0.1, -0.1), 0.3)
  1606. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, -0.1, 1.45), 0.3)
  1607. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.3)
  1608. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1609. do
  1610. if StaggerHit.Value == true then
  1611. break
  1612. end
  1613. -- DECOMPILER ERROR at PC266: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1614.  
  1615. -- DECOMPILER ERROR at PC266: LeaveBlock: unexpected jumping out IF_STMT
  1616.  
  1617. end
  1618. end
  1619. end
  1620. local wm = Instance.new("Model", workspace)
  1621. wm.Name = "Wall"
  1622. game:GetService("Debris"):AddItem(wm, 50)
  1623. table.insert(walls, wm)
  1624. local wall = part(3, wm, 0, 0, BrickColor.new(NewCol), "BWall", vt(12, 8, 2), "Brick")
  1625. wall.Anchored = true
  1626. wall.CanCollide = true
  1627. wall.Size = Vector3.new(509.06, 176.55, 2)
  1628. wall.CFrame = Torso.CFrame * CFrame.new(0, -2.5, -3.4)
  1629. table.insert(Effects, {wm, "Wall", 0, 0, wall, 0, #walls})
  1630. for e = 1, 3 do
  1631. wait()
  1632. for i = 0, 1, 0.15 do
  1633. swait()
  1634. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, -0.15), 0.3)
  1635. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.25) * euler(0, 0.1, -0.2) * euler(0, 0, 0), 0.2)
  1636. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.3) * euler(2.8, 0, 0.15) * euler(0, 0, 0), 0.3)
  1637. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1638. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.45, 0, -0.3), 0.3)
  1639. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1640. RH.C0 = clerp(RH.C0, cf(1, 0.25, -1) * euler(0, 1.57, 0) * euler(0.05, 0.1, 0), 0.1)
  1641. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 1.3), 0.2)
  1642. handlewld.C0 = clerp(handlewld.C0, euler(1.35, 0, 0) * cf(0, 1, 0), 0.2)
  1643. if Stagger.Value ~= true then
  1644. do
  1645. if StunT.Value <= Stun.Value then
  1646. break
  1647. end
  1648. -- DECOMPILER ERROR at PC542: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1649.  
  1650. -- DECOMPILER ERROR at PC542: LeaveBlock: unexpected jumping out IF_STMT
  1651.  
  1652. end
  1653. end
  1654. end
  1655. hbwld.Parent = nil
  1656. hboxpos.Parent = hitbox
  1657. hitbox.Parent = modelzorz
  1658. hitbox.Size = vt(1.5, 1.5, 2)
  1659. hitboxCF = prt5.CFrame
  1660. hitbox.CFrame = hitboxCF
  1661. for i = 0, 1, 0.15 do
  1662. swait()
  1663. hitboxCF = prt5.CFrame
  1664. hitbox.CFrame = hitboxCF
  1665. MagniDamage(hitbox, 3, 9, 12, math.random(2, 3), "Normal", RootPart, 0.5, 1, (math.random(16, 23)), nil, true, nil, "Movement", 0.05, 350)
  1666. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.3)
  1667. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.25) * euler(0, 0, 0) * euler(0, 0, 0), 0.2)
  1668. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.3) * euler(1.6, 0, -0.1) * euler(0, 0, 0), 0.65)
  1669. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1670. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.45, 0, -0.3), 0.3)
  1671. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1672. RH.C0 = clerp(RH.C0, cf(1, 0.25, -1) * euler(0, 1.57, 0) * euler(-0.05, -0.1, -0.1), 0.1)
  1673. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 1.35), 0.2)
  1674. handlewld.C0 = clerp(handlewld.C0, euler(1.7, 0, 0) * cf(0, 1, 0), 0.5)
  1675. if Stagger.Value ~= true then
  1676. do
  1677. if StunT.Value <= Stun.Value then
  1678. break
  1679. end
  1680. -- DECOMPILER ERROR at PC803: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1681.  
  1682. -- DECOMPILER ERROR at PC803: LeaveBlock: unexpected jumping out IF_STMT
  1683.  
  1684. end
  1685. end
  1686. end
  1687. for i = 1, 8 do
  1688. if e > 1 then
  1689. nom = e * 0.5
  1690. else
  1691. nom = 0
  1692. end
  1693. MagicCloud(BrickColor.new("White"), wall.CFrame * cf(math.random(-750, 750) / 100, math.random(-45, -40) / 100 - nom, math.random(-100, 100) / 100) * euler(math.rad(math.random(-180, 180)), math.rad(math.random(-60, 60)), math.rad(math.random(-180, 180))), 5, 7, 7, 0.1, 0.1, 0.1, 0.05)
  1694. end
  1695. wall.CFrame = wall.CFrame * CFrame.new(0, 1, 0)
  1696. end
  1697. resumeControl()
  1698. MagniBuff(RootPart, 20, "Defense", -0.25, 400)
  1699. game:GetService("Debris"):AddItem(wall, 50)
  1700. hitbox.Parent = modelzorz
  1701. hitbox.Size = vt()
  1702. hitboxweld()
  1703. hboxpos.Parent = nil
  1704. dec.Parent = nil
  1705. dec2.Parent = nil
  1706. attack = false
  1707. end
  1708. end
  1709. do2 = function()
  1710. if attack == true then
  1711. return
  1712. end
  1713. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1714. return
  1715. end
  1716. if cooldownmax <= cooldowns[2] and mana.Value >= 30 then
  1717. attack = true
  1718. cooldowns[2] = 0
  1719. local ded = {}
  1720. for i = 0, 1, 0.1 do
  1721. swait()
  1722. if i == 0.6 or i == 0.8 then
  1723. MagicCircle(BrickColor.new(NewCol), prt5.CFrame, 10, 10, 10, -0.5, -0.5, -0.5, 0.05)
  1724. end
  1725. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.15, 0, -0.15), 0.5)
  1726. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0) * euler(0, 0, -0.25), 0.5)
  1727. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.4, 0, 0.25) * euler(0, 0, 0), 0.5)
  1728. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1729. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.1), 0.5)
  1730. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  1731. RH.C0 = clerp(RH.C0, cf(1, -1, -0.15) * euler(0, 1.57, 0) * euler(-0.05, -0.1, 0.15), 0.15)
  1732. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, -0.2, 0.2), 0.15)
  1733. handlewld.C0 = clerp(handlewld.C0, euler(1.25, 0, 0) * cf(0, 0.9, 0.3), 0.1)
  1734. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1735. do
  1736. if StaggerHit.Value == true then
  1737. break
  1738. end
  1739. -- DECOMPILER ERROR at PC263: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1740.  
  1741. -- DECOMPILER ERROR at PC263: LeaveBlock: unexpected jumping out IF_STMT
  1742.  
  1743. end
  1744. end
  1745. end
  1746. local dec = Instance.new("NumberValue")
  1747. dec.Name = "DecreaseMvmt"
  1748. dec.Value = 10
  1749. dec.Parent = Decrease
  1750. for i = 0, 1, 0.05 do
  1751. swait()
  1752. MagicBlock(BrickColor.new(NewCol), prt5.CFrame * CFrame.new(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100), 2, 2, 2, -0.1, -0.1, -0.1, 0.05)
  1753. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.3, 0, 0), 0.1)
  1754. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.25) * euler(0.15, 0, 0) * euler(0, 0, 0), 0.1)
  1755. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.5, 0, 0.25) * euler(0, 0, 0), 0.1)
  1756. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.1)
  1757. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.15), 0.1)
  1758. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.1)
  1759. RH.C0 = clerp(RH.C0, cf(1, 0.25, -1) * euler(0, 1.57, 0) * euler(-0.05, -0.1, -0.15), 0.1)
  1760. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, -0.2, 1.5), 0.1)
  1761. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.1)
  1762. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1763. do
  1764. if StaggerHit.Value == true then
  1765. break
  1766. end
  1767. -- DECOMPILER ERROR at PC520: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1768.  
  1769. -- DECOMPILER ERROR at PC520: LeaveBlock: unexpected jumping out IF_STMT
  1770.  
  1771. end
  1772. end
  1773. end
  1774. do
  1775. for i = 0, 1, 0.1 do
  1776. swait()
  1777. MagicBlock(BrickColor.new(NewCol), prt5.CFrame * CFrame.new(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100), 2, 2, 2, -0.1, -0.1, -0.1, 0.05)
  1778. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.3, 0, 0), 0.3)
  1779. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 5) * euler(-0.2, 0, 0) * euler(0, 0, 0), 0.3)
  1780. RW.C0 = clerp(RW.C0, cf(1, 1.25, 0) * euler(2.7, 0, -0.6) * euler(0, 0, 0), 0.3)
  1781. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1782. LW.C0 = clerp(LW.C0, cf(-1, 1.25, 0) * euler(2.7, 0, 0.6), 0.3)
  1783. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1784. RH.C0 = clerp(RH.C0, cf(1, -0.5, -0.5) * euler(0, 1.57, 0) * euler(-0.05, -0.1, -0.15), 0.3)
  1785. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, -0.2, 0.2), 0.3)
  1786. handlewld.C0 = clerp(handlewld.C0, euler(1.35, 0, -0.87) * cf(0.25, 1, 0), 0.3)
  1787. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1788. do
  1789. if StaggerHit.Value == true then
  1790. break
  1791. end
  1792. -- DECOMPILER ERROR at PC769: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1793.  
  1794. -- DECOMPILER ERROR at PC769: LeaveBlock: unexpected jumping out IF_STMT
  1795.  
  1796. end
  1797. end
  1798. end
  1799. end
  1800. mana.Value = mana.Value - 25
  1801. for i = 0, 1, 0.15 do
  1802. swait()
  1803. MagicBlock(BrickColor.new(NewCol), prt5.CFrame * CFrame.new(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100), 2, 2, 2, -0.1, -0.1, -0.1, 0.05)
  1804. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.35, 0, 0), 0.4)
  1805. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.7) * euler(0.25, 0, 0) * euler(0, 0, 0), 0.4)
  1806. RW.C0 = clerp(RW.C0, cf(1, 0.15, 0) * euler(1, 0, -0.6) * euler(0, 0, 0), 0.4)
  1807. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1808. LW.C0 = clerp(LW.C0, cf(-1, 0.15, 0) * euler(1, 0, 0.6), 0.4)
  1809. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1810. RH.C0 = clerp(RH.C0, cf(1, 0.5, -0.8) * euler(0, 1.57, 0) * euler(-0.05, -0.1, -0.1), 0.4)
  1811. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, -0.2, 1.4), 0.4)
  1812. handlewld.C0 = clerp(handlewld.C0, euler(2.6, 0, -0.87) * cf(0.25, 1, 0.25), 0.4)
  1813. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1814. do
  1815. if StaggerHit.Value == true then
  1816. break
  1817. end
  1818. -- DECOMPILER ERROR at PC1023: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1819.  
  1820. -- DECOMPILER ERROR at PC1023: LeaveBlock: unexpected jumping out IF_STMT
  1821.  
  1822. end
  1823. end
  1824. end
  1825. so("200632561", Torso, 1, 0.5)
  1826. local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1827. ref.Anchored = true
  1828. MagniDamage(ref, 25, 4, 6, math.random(10, 17), "Normal", RootPart, 0, 1, (math.random(15, 20)), nil, true, nil, "Movement", 0.2, 350)
  1829. ref.CFrame = RootPart.CFrame * cf(0, -2, -2)
  1830. game:GetService("Debris"):AddItem(ref, 3)
  1831. MagicBlock(BrickColor.new(NewCol), ref.CFrame * cf(0, -1, 0), 3, 3, 3, 6, 6, 6, 0.09)
  1832. MagicCircle(BrickColor.new(NewCol), ref.CFrame * cf(0, -1, 0), 25, 20, 25, 10, 5, 10, 0.1)
  1833. MagicRing(BrickColor.new(NewCol), ref.CFrame * euler(1.57, 0, 0) * cf(0, -1, 0), 3, 3, 1, 4, 4, 1, 0.09)
  1834. if #walls > 0 then
  1835. for i = 1, #walls do
  1836. table.insert(ded, walls[i])
  1837. end
  1838. end
  1839. do
  1840. for i = 1, #ded do
  1841. swait()
  1842. if (RootPart.Position - ded[i].BWall.Position).magnitude <= 25 then
  1843. MagicCircle(BrickColor.new(NewCol), ded[i].BWall.CFrame * cf(0, -1, 0), 25, 25, 25, 15, 15, 15, 0.15)
  1844. for e = 1, math.random(5, 11) do
  1845. local size = math.random(5, 15) / 10
  1846. local deb = part(3, workspace, 0, 0, ded[i].BWall.BrickColor, "Debris", vt(size, size, size))
  1847. deb.Anchored = false
  1848. deb.Material = ded[i].BWall.Material
  1849. deb.CanCollide = true
  1850. deb.Velocity = vt(math.random(-40, 40), math.random(60, 90), math.random(-40, 40))
  1851. deb.CFrame = ded[i].BWall.CFrame * euler(math.random(-10, 10), math.random(5, 10), math.random(-15, 15))
  1852. coroutine.resume(coroutine.create(function()
  1853. swait(0.55)
  1854. for i = 1, 10 do
  1855. swait()
  1856. MagicCloud(BrickColor.new("White"), deb.CFrame * cf(math.random(-150, 150) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100) * euler(math.rad(math.random(-180, 180)), math.rad(math.random(-60, 60)), math.rad(math.random(-180, 180))), 0.5, 2.5, 2.5, 0.1, 0.1, 0.1, 0.05)
  1857. end
  1858. end))
  1859. game:GetService("Debris"):AddItem(deb, 5)
  1860. end
  1861. MagniDamage(ded[i].BWall, 10, 6, 9, math.random(8, 12), "Knockdown2", ded[i].BWall, 0, 1, (math.random(12, 16)), nil, nil, true, "Defense", 0.1, 400)
  1862. ded[i].Parent = nil
  1863. end
  1864. end
  1865. dec.Parent = nil
  1866. attack = false
  1867. end
  1868. end
  1869. end
  1870. do3 = function()
  1871. speech = {316403490, 316403787, 316403844, 316403916}
  1872. if attack == true then
  1873. return
  1874. end
  1875. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1876. return
  1877. end
  1878. if cooldownmax <= cooldowns[3] and mana.Value >= 25 then
  1879. attack = true
  1880. removeControl()
  1881. local dec = Instance.new("NumberValue", Decrease)
  1882. dec.Name = "DecreaseMvmt"
  1883. dec.Value = 10
  1884. mana.Value = mana.Value - 25
  1885. num = 0
  1886. local dec2 = Instance.new("NumberValue", Decrease)
  1887. dec2.Name = "DecreaseDef"
  1888. dec2.Value = -1.25
  1889. local pod = part(3, workspace, 0, 0, BrickColor.new("Reddish brown"), "Podium", vt(2, 2.5, 2), "WoodPlanks", true)
  1890. pod.CFrame = Torso.CFrame * CFrame.new(0, -1.8, -2)
  1891. for i = 1, 4 do
  1892. MagicCloud(BrickColor.new("White"), cf(pod.Position) * cf(math.random(-80, 80) / 100, math.random(-100, 150) / 100, math.random(-80, 80) / 100) * euler(math.rad(math.random(-180, 180)), math.rad(math.random(-180, 180)), math.rad(math.random(-180, 180))), 3, 5, 5, 0.1, 0.1, 0.1, 0.05)
  1893. end
  1894. pod.Rotation = Torso.Rotation
  1895. pod.CanCollide = true
  1896. local pod2 = part(3, workspace, 0, 0, BrickColor.new("Reddish brown"), "Podium", vt(2, 1, 2), "WoodPlanks", true)
  1897. local msh = mesh("SpecialMesh", pod2, "Wedge", "nil", vt(0, 0, 0), vt(1, 1, 1))
  1898. pod2.CFrame = pod.CFrame * CFrame.new(0, 1.75, 0)
  1899. pod2.Rotation = pod.Rotation + Vector3.new(0, 180, 0)
  1900. pod2.CanCollide = true
  1901. speeching = true
  1902. local snd = Instance.new("Sound", Head)
  1903. snd.Volume = 1
  1904. snd.SoundId = "http://www.roblox.com/asset/?id=" .. speech[math.random(1, #speech)]
  1905. game:GetService("Debris"):AddItem(snd, snd.TimeLength + 5)
  1906. for i = 0, 1, 0.1 do
  1907. swait()
  1908. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0, 0, 0), 0.3)
  1909. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  1910. RW.C0 = clerp(RW.C0, cf(1.35, 0.5, -0.5) * euler(1.1, 0, -0.15) * euler(0, 0, 0), 0.3)
  1911. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1912. LW.C0 = clerp(LW.C0, cf(-1.35, 0.5, -0.5) * euler(1.1, 0, 0.15) * euler(0, 0, 0), 0.3)
  1913. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1914. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.1, 0, 0) * euler(0, 0, 0), 0.3)
  1915. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0), 0.3)
  1916. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1917. do
  1918. if StaggerHit.Value == true then
  1919. break
  1920. end
  1921. -- DECOMPILER ERROR at PC441: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1922.  
  1923. -- DECOMPILER ERROR at PC441: LeaveBlock: unexpected jumping out IF_STMT
  1924.  
  1925. end
  1926. end
  1927. end
  1928. snd:Play()
  1929. numofanim = 0
  1930. deb = false
  1931. while speeching do
  1932. swait()
  1933. num = num + 1
  1934. local rng = math.random(0, 100)
  1935. if 90 + numofanim < rng and deb == false then
  1936. coroutine.resume(coroutine.create(function()
  1937. deb = true
  1938. local anim = math.random(0, 100)
  1939. if anim <= 25 then
  1940. numofanim = numofanim + 2
  1941. for i = 0, 1, 0.1 do
  1942. swait()
  1943. Neck.C0 = clerp(Neck.C0, necko * euler(-0.15, 0, -0.2) * euler(0, 0, 0), 0.3)
  1944. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  1945. RW.C0 = clerp(RW.C0, cf(1.35, 0.5, -0.5) * euler(2.3, 0, 0.2) * euler(0, 0, 0), 0.3)
  1946. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1947. LW.C0 = clerp(LW.C0, cf(-1.35, 0.5, -0.5) * euler(1.1, 0, 0.15) * euler(0, 0, 0), 0.3)
  1948. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1949. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.1, 0, 0) * euler(0, 0, 0), 0.3)
  1950. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0), 0.3)
  1951. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1952. do
  1953. if StaggerHit.Value == true then
  1954. break
  1955. end
  1956. -- DECOMPILER ERROR at PC211: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1957.  
  1958. -- DECOMPILER ERROR at PC211: LeaveBlock: unexpected jumping out IF_STMT
  1959.  
  1960. end
  1961. end
  1962. end
  1963. for i = 0, 1, 0.025 do
  1964. swait()
  1965. end
  1966. for i = 0, 1, 0.1 do
  1967. swait()
  1968. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0, 0, 0), 0.3)
  1969. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  1970. RW.C0 = clerp(RW.C0, cf(1.35, 0.5, -0.5) * euler(1.1, 0, -0.15) * euler(0, 0, 0), 0.3)
  1971. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1972. LW.C0 = clerp(LW.C0, cf(-1.35, 0.5, -0.5) * euler(1.1, 0, 0.15) * euler(0, 0, 0), 0.3)
  1973. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1974. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.1, 0, 0) * euler(0, 0, 0), 0.3)
  1975. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0), 0.3)
  1976. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1977. do
  1978. if StaggerHit.Value == true then
  1979. break
  1980. end
  1981. -- DECOMPILER ERROR at PC418: LeaveBlock: unexpected jumping out IF_THEN_STMT
  1982.  
  1983. -- DECOMPILER ERROR at PC418: LeaveBlock: unexpected jumping out IF_STMT
  1984.  
  1985. end
  1986. end
  1987. end
  1988. else
  1989. if anim > 25 and anim <= 50 then
  1990. numofanim = numofanim + 2
  1991. local reps = math.random(2, 4)
  1992. local repsdone = 0
  1993. repeat
  1994. for i = 0, 1, 0.15 do
  1995. swait()
  1996. Neck.C0 = clerp(Neck.C0, necko * euler(0.15, 0.1, 0) * euler(0, 0, 0), 0.15)
  1997. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.15)
  1998. RW.C0 = clerp(RW.C0, cf(1.35, 0.5, -0.5) * euler(2, 0, -0.15) * euler(0, 0, 0), 0.15)
  1999. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  2000. LW.C0 = clerp(LW.C0, cf(-1.35, 0.5, -0.5) * euler(1.1, 0, 0.15) * euler(0, 0, 0), 0.15)
  2001. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  2002. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.1, 0, 0) * euler(0, 0, 0), 0.15)
  2003. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0), 0.15)
  2004. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2005. do
  2006. if StaggerHit.Value == true then
  2007. break
  2008. end
  2009. -- DECOMPILER ERROR at PC632: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2010.  
  2011. -- DECOMPILER ERROR at PC632: LeaveBlock: unexpected jumping out IF_STMT
  2012.  
  2013. end
  2014. end
  2015. end
  2016. for i = 0, 1, 0.1 do
  2017. swait()
  2018. Neck.C0 = clerp(Neck.C0, necko * euler(0.1, 0, 0) * euler(0, 0, 0), 0.5)
  2019. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.5)
  2020. RW.C0 = clerp(RW.C0, cf(1.35, 0.3, -0.5) * euler(1.4, 0, -0.15) * euler(0, 0, 0), 0.7)
  2021. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2022. LW.C0 = clerp(LW.C0, cf(-1.35, 0.5, -0.5) * euler(1.1, 0, 0.15) * euler(0, 0, 0), 0.5)
  2023. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2024. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.1, 0, 0) * euler(0, 0, 0), 0.5)
  2025. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0), 0.5)
  2026. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2027. do
  2028. if StaggerHit.Value == true then
  2029. break
  2030. end
  2031. -- DECOMPILER ERROR at PC832: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2032.  
  2033. -- DECOMPILER ERROR at PC832: LeaveBlock: unexpected jumping out IF_STMT
  2034.  
  2035. end
  2036. end
  2037. end
  2038. repsdone = repsdone + 1
  2039. until repsdone == reps
  2040. else
  2041. do
  2042. if anim > 50 and anim <= 75 then
  2043. numofanim = numofanim + 2
  2044. for i = 0, 1, 0.1 do
  2045. swait()
  2046. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0) * euler(0, 0, 0), 0.3)
  2047. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  2048. RW.C0 = clerp(RW.C0, cf(1.35, 0.5, -0.5) * euler(1.1, 0, -0.15) * euler(0, 0, 0), 0.3)
  2049. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2050. LW.C0 = clerp(LW.C0, cf(-1.35, 0.5, -0.5) * euler(1.1, 0, 0.15) * euler(0, 0, 0), 0.3)
  2051. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  2052. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.1, 0, 0) * euler(0, 0, 0), 0.3)
  2053. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0), 0.3)
  2054. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2055. do
  2056. if StaggerHit.Value == true then
  2057. break
  2058. end
  2059. -- DECOMPILER ERROR at PC1043: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2060.  
  2061. -- DECOMPILER ERROR at PC1043: LeaveBlock: unexpected jumping out IF_STMT
  2062.  
  2063. end
  2064. end
  2065. end
  2066. for i = 0, 1, 0.25 do
  2067. swait()
  2068. end
  2069. for i = 0, 1, 0.1 do
  2070. swait()
  2071. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0, 0, 0), 0.5)
  2072. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.5)
  2073. RW.C0 = clerp(RW.C0, cf(1.35, 0.5, -0.5) * euler(1.1, 0, -0.15) * euler(0, 0, 0), 0.5)
  2074. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2075. LW.C0 = clerp(LW.C0, cf(-1.35, 0.5, -0.5) * euler(1.1, 0, 0.15) * euler(0, 0, 0), 0.5)
  2076. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.5)
  2077. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.1, 0, 0) * euler(0, 0, 0), 0.5)
  2078. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0), 0.5)
  2079. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2080. do
  2081. if StaggerHit.Value == true then
  2082. break
  2083. end
  2084. -- DECOMPILER ERROR at PC1250: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2085.  
  2086. -- DECOMPILER ERROR at PC1250: LeaveBlock: unexpected jumping out IF_STMT
  2087.  
  2088. end
  2089. end
  2090. end
  2091. end
  2092. deb = false
  2093. end
  2094. end
  2095. end
  2096. end))
  2097. end
  2098. if snd.TimeLength * 30 <= num then
  2099. speeching = false
  2100. end
  2101. end
  2102. do
  2103. do
  2104. local col = {"Bright red", "Bright yellow", "Bright orange"}
  2105. MagicCircle(BrickColor.new(col[math.random(1, #col)]), cf(pod.Position), 5, 5, 5, 10.5, 10.5, 10.5, 0.1, 1)
  2106. for i = 1, 4 do
  2107. MagicBlock(BrickColor.new(col[math.random(1, #col)]), cf(pod.Position) * cf(math.random(-50, 50) / 100, math.random(-50, 50) / 100, math.random(-50, 50) / 100), 5, 5, 5, 6, 6, 6, 0.1)
  2108. end
  2109. so("216782105", pod, 0.5, 1.5)
  2110. MagniDamage(pod, 15, 15, 20, math.random(35, 55), "Normal", pod, 0.15, 2, math.random(55, 97), true, true, false)
  2111. MagniBuff(RootPart, 45, "Defense", -0.65, 800)
  2112. MagniBuff(RootPart, 45, "Movement", -0.25, 800)
  2113. MagniBuff(RootPart, 45, "Damage", -0.8, 800)
  2114. showDamage(Character, 10, "Damage")
  2115. Character.Humanoid:TakeDamage(10)
  2116. Stagger.Value = true
  2117. cooldowns[3] = 0
  2118. pod.Parent = nil
  2119. pod2.Parent = nil
  2120. dec.Parent = nil
  2121. dec2.Parent = nil
  2122. attack = false
  2123. resumeControl()
  2124. end
  2125. end
  2126. end
  2127. end
  2128. do4 = function()
  2129. local p2 = Instance.new("Sound", Character)
  2130. p2.SoundId = "rbxassetid://325383433"
  2131. p2.Volume = 1
  2132. p2:Play()
  2133. if attack == true then
  2134. return
  2135. end
  2136. if Player.Name == Player.Name then
  2137. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2138. return
  2139. end
  2140. local hitfloord, posfloord = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 10, Character)
  2141. if cooldownmax <= cooldowns[4] and mana.Value >= 50 then
  2142. attack = true
  2143. stop = true
  2144. mana.Value = mana.Value - 50
  2145. local s = game.Players.LocalPlayer.Character.Torso
  2146. do
  2147.  
  2148.  
  2149. local p = Instance.new("Sound", s)
  2150. p.SoundId = "http://www.roblox.com/asset/?id=" .. xl[math.random(1, #xl)]
  2151. p.Volume = 1
  2152. game:GetService("Debris"):AddItem(p, 4)
  2153. p:Play()
  2154. local sl = Instance.new("IntValue", s.Parent.Stats.Decrease)
  2155. sl.Name = "DecreaseMvmt"
  2156. sl.Value = 100
  2157. local xdir = RootPart.CFrame.lookVector
  2158. local xpos = posfloord - Vector3.new(0, 66, 0) + xdir * 25
  2159. local building = Instance.new("Model", workspace)
  2160. local p = Instance.new("Part", building)
  2161. p.TopSurface = 0
  2162. p.BottomSurface = 0
  2163. p.Anchored = true
  2164. p.CanCollide = true
  2165. p.formFactor = "Symmetric"
  2166. p.Material = "Concrete"
  2167. p.Size = Vector3.new(30, 90, 30)
  2168. p.CFrame = CFrame.new(xpos, xpos + RootPart.CFrame.lookVector * 5)
  2169. building.PrimaryPart = p
  2170. local ps = Instance.new("Part", workspace)
  2171. ps.Anchored = true
  2172. ps.CanCollide = false
  2173. ps.CFrame = CFrame.new(posfloord + RootPart.CFrame.lookVector * 25)
  2174. ps.Size = Vector3.new(33, 1, 33)
  2175. ps.Transparency = 1
  2176. local pem = Instance.new("ParticleEmitter", ps)
  2177. pem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  2178. pem.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 5), NumberSequenceKeypoint.new(1, 10)})
  2179. pem.Lifetime = NumberRange.new(2.5, 3.5)
  2180. pem.RotSpeed = NumberRange.new(-100, 100)
  2181. pem.Rotation = NumberRange.new(-350, 350)
  2182. pem.Texture = "http://www.roblox.com/asset/?id=133619974"
  2183. pem.Speed = NumberRange.new(0, 0)
  2184. pem.Acceleration = Vector3.new(0, 0, 0)
  2185. pem.VelocitySpread = 180
  2186. pem.Rate = 250
  2187. pem.Enabled = false
  2188. for y = -1, 3 do
  2189. for r = -1, 1 do
  2190. local p = Instance.new("Part", building)
  2191. p.TopSurface = 0
  2192. p.BottomSurface = 0
  2193. p.Anchored = true
  2194. p.CanCollide = false
  2195. p.formFactor = "Custom"
  2196. p.Size = Vector3.new(30.1, 8, 8)
  2197. p.CFrame = building.PrimaryPart.CFrame * CFrame.new(0, 14 * y - 8, 10 * r)
  2198. p.BrickColor = BrickColor.new("Pastel light blue")
  2199. p.Reflectance = 0.33
  2200. p.Material = "SmoothPlastic"
  2201. end
  2202. end
  2203. local cam = workspace.CurrentCamera
  2204. cam.CameraType = "Scriptable"
  2205. cam:Interpolate(building.PrimaryPart.CFrame * CFrame.new(0, 120, 0) - xdir * 100, building.PrimaryPart.CFrame * CFrame.new(0, 100, 0), 4)
  2206. for i = 1, 15 do
  2207. swait()
  2208. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1.5, 0), 0.1)
  2209. Neck.C0 = clerp(Neck.C0, necko * euler(0.7, 0, 0), 0.3)
  2210. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.2)
  2211. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0) * euler(-0.6, 0, 0) * euler(0, 0, 0.4), 0.2)
  2212. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2213. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0) * euler(0.6, 0, 0) * euler(0, 0, -0.4), 0.2)
  2214. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2215. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 0, 0.1) * euler(0, math.pi / 2, 0), 0.2)
  2216. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, 0, -0.1) * euler(0, -math.pi / 2, 0), 0.2)
  2217. building:SetPrimaryPartCFrame(CFrame.new(xpos + Vector3.new(0, i, 0) + Vector3.new(math.random(-100, 100) / 100, 0, math.random(-100, 100) / 100)))
  2218. end
  2219. pem.Enabled = true
  2220. for i = 1, 25 do
  2221. swait()
  2222. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1.5, 0), 0.05)
  2223. Neck.C0 = clerp(Neck.C0, necko * euler(-0.5, 0, 0), 0.05)
  2224. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.05)
  2225. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0) * euler(0, 0, 0) * euler(0, 0, 0.4), 0.05)
  2226. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.05)
  2227. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0) * euler(0.6, 0, 0) * euler(0, 0, -0.5), 0.05)
  2228. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.05)
  2229. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 0, 0.1) * euler(0, math.pi / 2, 0), 0.05)
  2230. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, 0, -0.1) * euler(0, -math.pi / 2, 0), 0.05)
  2231. building:SetPrimaryPartCFrame(CFrame.new(xpos + Vector3.new(0, i, 0) + Vector3.new(math.random(-100, 100) / 100, 15, math.random(-100, 100) / 100)))
  2232. end
  2233. for i = 1, 40 do
  2234. swait()
  2235. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1.5, 0), 0.05)
  2236. Neck.C0 = clerp(Neck.C0, necko * euler(-0.5, 0, 0), 0.1)
  2237. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.1)
  2238. RW.C0 = clerp(RW.C0, cf(1.3, 1, 0) * euler(2.5, 0, 0) * euler(0, 0, 0.4), 0.1)
  2239. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.1)
  2240. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0) * euler(0.6, 0, 0) * euler(0, 0, -0.5), 0.1)
  2241. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.1)
  2242. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 0, 0.1) * euler(0, math.pi / 2, 0), 0.1)
  2243. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, 0, -0.1) * euler(0, -math.pi / 2, 0), 0.1)
  2244. building:SetPrimaryPartCFrame(CFrame.new(xpos + Vector3.new(0, i, 0) + Vector3.new(math.random(-100, 100) / 100, 40, math.random(-100, 100) / 100)))
  2245. end
  2246. do
  2247. for i = 1, 25 do
  2248. swait()
  2249. building:SetPrimaryPartCFrame(CFrame.new(xpos + Vector3.new(0, i, 0) + Vector3.new(math.random(-100, 100) / 100, 80, math.random(-100, 100) / 100)))
  2250. end
  2251. end
  2252. pem.Enabled = false
  2253. game:GetService("Debris"):AddItem(ps, 5)
  2254. for i = 1, 15 do
  2255. swait()
  2256. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1.5, 0), 0.25)
  2257. Neck.C0 = clerp(Neck.C0, necko * euler(0.5, 0, 0), 0.3)
  2258. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * euler(0.5, 0, 0), 0.35)
  2259. RW.C0 = clerp(RW.C0, cf(1.5, 1, 0) * euler(0, 0, 0) * euler(0.3, 0, 0.6), 0.35)
  2260. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2261. LW.C0 = clerp(LW.C0, cf(-1.5, 1, 0) * euler(-0.5, 0, 0) * euler(0, 0, -0.7), 0.35)
  2262. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2263. RH.C0 = clerp(RH.C0, cf(1, 0.25, -0.5) * euler(0.55, 0, 0) * euler(0, math.pi / 2.2, 0), 0.35)
  2264. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5) * euler(-0.7, 0, 0) * euler(0, -math.pi / 1.8, 0), 0.35)
  2265. end
  2266. for _,v in pairs(workspace:children()) do
  2267. if v:FindFirstChild("Humanoid") and v:FindFirstChild("Torso") then
  2268. local h, t = v.Humanoid, v.Torso
  2269. if h.Health > 0 and game.Players:GetPlayerFromCharacter(v) ~= nil then
  2270. end
  2271. end
  2272. end
  2273. local eff = Instance.new("Part", workspace)
  2274. eff.formFactor = "Custom"
  2275. eff.Size = Vector3.new(1, 1, 1)
  2276. eff.CFrame = CFrame.new(posfloord)
  2277. eff.BrickColor = BrickColor.new("Bright yellow")
  2278. local m = Instance.new("SpecialMesh", eff)
  2279. m.MeshType = "FileMesh"
  2280. m.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2281. m.Scale = Vector3.new(10, 10, 10)
  2282. eff.Parent = workspace
  2283. eff.Name = "Bewm"
  2284. eff.Anchored = true
  2285. eff.CanCollide = false
  2286. game:GetService("Debris"):AddItem(eff, 5)
  2287. coroutine.resume(coroutine.create(function(p, V, x)
  2288. local R = Vector3.new(math.random(-5, 5), math.random(7, 9), math.random(-5, 5)) / 70
  2289. for i = 1, 30 do
  2290. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(55, 0, 55) / 20
  2291. p.Transparency = i / 30
  2292. p.CFrame = p.CFrame * V
  2293. swait()
  2294. end
  2295. p:Remove()
  2296. end), eff, CFrame.Angles(0, math.rad(math.random(-10, 9) * 3 + 5), 0))
  2297. local sbs = Instance.new("BodyPosition", RootPart)
  2298. sbs.P = 3000
  2299. sbs.D = 1000
  2300. sbs.maxForce = Vector3.new(500000, 500000000, 500000)
  2301. sbs.position = RootPart.CFrame.p + Vector3.new(0, 2000, 0)
  2302. local gl = Instance.new("BodyGyro", RootPart)
  2303. gl.P = 8000
  2304. gl.D = 400
  2305. gl.maxTorque = Vector3.new(50000000, 0, 50000000)
  2306. gl.cframe = RootPart.CFrame
  2307. local sk = Instance.new("Part", workspace)
  2308. sk.Name = "D"
  2309. sk.CanCollide = false
  2310. sk.Anchored = true
  2311. sk.Transparency = 1
  2312. sk.Size = Vector3.new(1, 1, 1)
  2313. sk.CFrame = RootPart.CFrame
  2314. local p = Instance.new("Sound", sk)
  2315. p.SoundId = "http://www.roblox.com/asset/?id=" .. "134012322"
  2316. p.Volume = 1
  2317. p.Pitch = 0.8
  2318. game:GetService("Debris"):AddItem(sk, 4)
  2319. for i = 1, 5 do
  2320. swait()
  2321. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1.5, 0), 0.4)
  2322. Neck.C0 = clerp(Neck.C0, necko * euler(-0.7, 0, 0), 0.4)
  2323. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 0.4)
  2324. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0) * euler(-0.2, 0, 0) * euler(0, 0, 0.1), 0.4)
  2325. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2326. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0) * euler(math.pi * 0.95, 0, 0) * euler(0, 0, -0.2), 0.4)
  2327. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  2328. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 0, 0.3) * euler(0, math.pi / 2, 0), 0.4)
  2329. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, 0, -0.3) * euler(0, -math.pi / 2, 0), 0.4)
  2330. end
  2331. wait(0.5)
  2332. cam:Interpolate(building.PrimaryPart.CFrame * CFrame.new(0, 100, 0) - xdir * 65, building.PrimaryPart.CFrame * CFrame.new(0, 60, 0), 2)
  2333. wait(0.5)
  2334. local pz = Instance.new("Sound", building.PrimaryPart)
  2335. pz.SoundId = "http://www.roblox.com/asset/?id=" .. "167273611"
  2336. pz.Pitch = 1
  2337. pz.Volume = 1
  2338. pz:Play()
  2339. wait(1)
  2340. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1.5, 0), 1)
  2341. Neck.C0 = clerp(Neck.C0, necko * euler(-0.7, 0, 0), 1)
  2342. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * euler(0, 0, 0), 1)
  2343. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0) * euler(-math.pi, 0, 0) * euler(0, 0, 0.5), 1)
  2344. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 1)
  2345. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0) * euler(math.pi, 0, 0) * euler(0, 0, -0.5), 1)
  2346. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 1)
  2347. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 0, 0.1) * euler(0, math.pi / 2, 0), 1)
  2348. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, 0, -0.1) * euler(0, -math.pi / 2, 0), 1)
  2349. sbs:Destroy()
  2350. RootPart.Anchored = true
  2351. gl:Destroy()
  2352. local start = building.PrimaryPart.CFrame * CFrame.new(0, 810, 0)
  2353. local xpart = Instance.new("Part", s.Parent)
  2354. xpart.Name = "ROAD ROLLER DA!"
  2355. xpart.TopSurface = 0
  2356. xpart.BottomSurface = 0
  2357. xpart.Anchored = true
  2358. xpart.CanCollide = false
  2359. xpart.Size = Vector3.new(1, 1, 1)
  2360. local xm = Instance.new("SpecialMesh", xpart)
  2361. xm.MeshType = "FileMesh"
  2362. xm.Scale = Vector3.new(7.5, 7.5, 7.5)
  2363. xm.TextureId = "http://www.roblox.com/asset?id=113216977"
  2364. xm.MeshId = "http://www.roblox.com/asset?id=113216991"
  2365. for i = 1, 47 do
  2366. swait()
  2367. pz.Volume = 0.05 + i * 0.2
  2368. cam:Interpolate(building.PrimaryPart.CFrame * CFrame.new(0, 140, 0) - xdir * 90, s.CFrame, 5.1 - i * 0.1)
  2369. RootPart.CFrame = start * CFrame.new(0, -i * 3.5 - i ^ 1.65 + 5, 0) * CFrame.Angles(-math.pi, 0, 0)
  2370. xpart.CFrame = RootPart.CFrame * CFrame.new(0, 2, 2) * CFrame.Angles(math.pi, 0, 0)
  2371. end
  2372. game:GetService("Debris"):AddItem(pz, 3)
  2373. local p = Instance.new("Sound", s)
  2374. p.SoundId = "http://www.roblox.com/asset/?id=" .. "165970126"
  2375. p.Volume = 1
  2376. p.Pitch = 0.85
  2377. game:GetService("Debris"):AddItem(p, 4)
  2378. p:Play()
  2379. local p = Instance.new("Sound", workspace)
  2380. p.SoundId = "http://www.roblox.com/asset/?id=" .. "165970126"
  2381. p.Volume = 0.05
  2382. p.Pitch = 0.85
  2383. game:GetService("Debris"):AddItem(p, 4)
  2384. p:Play()
  2385. MagniDamage(RootPart, 55, 20, 30, math.random(50, 100), "Normal", building.PrimaryPart, 0.05, 2, 30, false, false, false, "Defense", 0, 0)
  2386. MagniDamage(building.PrimaryPart, 55, 20, 30, math.random(100, 150), "Normal", building.PrimaryPart, 0.05, 2, 30, false, false, false, "Defense", 0, 0)
  2387. local p = Instance.new("Sound", RootPart)
  2388. p.SoundId = "http://www.roblox.com/asset/?id=" .. "216782105"
  2389. p.Pitch = 0.8
  2390. p.Volume = 1
  2391. p:Play()
  2392. game:GetService("Debris"):AddItem(p, 4)
  2393. local p = Instance.new("Sound", s)
  2394. p.SoundId = "http://www.roblox.com/asset/?id=" .. "169628396"
  2395. p.Volume = 1
  2396. p.Pitch = 0.8
  2397. game:GetService("Debris"):AddItem(p, 4)
  2398. p:Play()
  2399. local p = Instance.new("Sound", workspace)
  2400. p.SoundId = "http://www.roblox.com/asset/?id=" .. "169628396"
  2401. p.Volume = 0.05
  2402. p.Pitch = 0.8
  2403. game:GetService("Debris"):AddItem(p, 4)
  2404. p:Play()
  2405. local pem = Instance.new("ParticleEmitter", building.PrimaryPart)
  2406. pem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  2407. pem.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 8), NumberSequenceKeypoint.new(1, 10)})
  2408. pem.Lifetime = NumberRange.new(2.5, 3.5)
  2409. pem.RotSpeed = NumberRange.new(-69, 69)
  2410. pem.Rotation = NumberRange.new(-350, 350)
  2411. pem.Texture = "http://www.roblox.com/asset/?id=133619974"
  2412. pem.Speed = NumberRange.new(2, 12)
  2413. pem.Acceleration = Vector3.new(0, -10, 0)
  2414. pem.VelocitySpread = 180
  2415. pem.Rate = 5
  2416. pem.Enabled = true
  2417. spawn(function()
  2418. wait()
  2419. pem:Emit(200)
  2420. end)
  2421. local kek = {"http://www.roblox.com/asset/?id=48803786", "http://www.roblox.com/asset/?id=116579230", "http://www.roblox.com/asset/?id=187884226", "http://www.roblox.com/asset/?id=2426617"}
  2422. for _,v in pairs(building:children()) do
  2423. if v.BrickColor == BrickColor.new("Pastel light blue") then
  2424. do
  2425. if _ % 3 == 0 then
  2426. local p = Instance.new("Sound", v)
  2427. p.SoundId = "http://www.roblox.com/asset/?id=" .. "144884907"
  2428. p.Pitch = math.random(65, 80) / 100
  2429. p.Volume = 1
  2430. p:Play()
  2431. game:GetService("Debris"):AddItem(p, 4)
  2432. end
  2433. local sks = Instance.new("Part", building)
  2434. sks.Name = "DIIC"
  2435. sks.Anchored = true
  2436. sks.CanCollide = false
  2437. sks.formFactor = "Custom"
  2438. sks.Size = Vector3.new(0.2, 8, 8)
  2439. sks.BrickColor = BrickColor:Red()
  2440. sks.CFrame = v.CFrame * CFrame.new(15, 0, 0)
  2441. sks.Transparency = 1
  2442. local pem = Instance.new("ParticleEmitter", sks)
  2443. pem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  2444. pem.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.15), NumberSequenceKeypoint.new(1, 0.15)})
  2445. pem.Lifetime = NumberRange.new(3.5, 4)
  2446. pem.RotSpeed = NumberRange.new(-110, 110)
  2447. pem.Rotation = NumberRange.new(-350, 350)
  2448. pem.Texture = "http://www.roblox.com/asset/?id=316915922"
  2449. pem.Speed = NumberRange.new(5, 50)
  2450. pem.Acceleration = Vector3.new(0, -20, 0)
  2451. pem.VelocitySpread = 80
  2452. pem.Rate = 0
  2453. pem.LightEmission = -0.2
  2454. pem.Enabled = true
  2455. pem.EmissionDirection = "Right"
  2456. spawn(function()
  2457. wait()
  2458. pem:Emit(50)
  2459. end)
  2460. local pem = Instance.new("ParticleEmitter", sks)
  2461. pem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  2462. pem.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.1), NumberSequenceKeypoint.new(1, 0.1)})
  2463. pem.Lifetime = NumberRange.new(3.5, 4)
  2464. pem.RotSpeed = NumberRange.new(-110, 110)
  2465. pem.Rotation = NumberRange.new(-350, 350)
  2466. pem.Texture = "http://www.roblox.com/asset/?id=316915935"
  2467. pem.Speed = NumberRange.new(5, 50)
  2468. pem.Acceleration = Vector3.new(0, -22, 0)
  2469. pem.VelocitySpread = 70
  2470. pem.Rate = 0
  2471. pem.LightEmission = -0.2
  2472. pem.Enabled = true
  2473. pem.EmissionDirection = "Right"
  2474. spawn(function()
  2475. wait()
  2476. pem:Emit(50)
  2477. end)
  2478. local pem = Instance.new("ParticleEmitter", sks)
  2479. pem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  2480. pem.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 0.2)})
  2481. pem.Lifetime = NumberRange.new(3.5, 4)
  2482. pem.RotSpeed = NumberRange.new(-110, 110)
  2483. pem.Rotation = NumberRange.new(-350, 350)
  2484. pem.Texture = "http://www.roblox.com/asset/?id=316915947"
  2485. pem.Speed = NumberRange.new(5, 55)
  2486. pem.Acceleration = Vector3.new(0, -20, 0)
  2487. pem.VelocitySpread = 60
  2488. pem.Rate = 0
  2489. pem.LightEmission = -0.2
  2490. pem.Enabled = true
  2491. pem.EmissionDirection = "Right"
  2492. spawn(function()
  2493. wait()
  2494. pem:Emit(50)
  2495. end)
  2496. local sks = Instance.new("Part", building)
  2497. sks.Name = "DIIC"
  2498. sks.Anchored = true
  2499. sks.CanCollide = false
  2500. sks.formFactor = "Custom"
  2501. sks.Size = Vector3.new(0.2, 8, 8)
  2502. sks.BrickColor = BrickColor:Red()
  2503. sks.CFrame = v.CFrame * CFrame.new(-15, 0, 0)
  2504. sks.Transparency = 1
  2505. local pem = Instance.new("ParticleEmitter", sks)
  2506. pem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  2507. pem.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.15), NumberSequenceKeypoint.new(1, 0.15)})
  2508. pem.Lifetime = NumberRange.new(3.5, 4)
  2509. pem.RotSpeed = NumberRange.new(-110, 110)
  2510. pem.Rotation = NumberRange.new(-350, 350)
  2511. pem.Texture = "http://www.roblox.com/asset/?id=316915922"
  2512. pem.Speed = NumberRange.new(5, 50)
  2513. pem.Acceleration = Vector3.new(0, -20, 0)
  2514. pem.VelocitySpread = 80
  2515. pem.Rate = 0
  2516. pem.LightEmission = -0.2
  2517. pem.Enabled = true
  2518. pem.EmissionDirection = "Left"
  2519. spawn(function()
  2520. wait()
  2521. pem:Emit(50)
  2522. end)
  2523. local pem = Instance.new("ParticleEmitter", sks)
  2524. pem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  2525. pem.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.1), NumberSequenceKeypoint.new(1, 0.1)})
  2526. pem.Lifetime = NumberRange.new(3.5, 4)
  2527. pem.RotSpeed = NumberRange.new(-110, 110)
  2528. pem.Rotation = NumberRange.new(-350, 350)
  2529. pem.Texture = "http://www.roblox.com/asset/?id=316915935"
  2530. pem.Speed = NumberRange.new(5, 50)
  2531. pem.Acceleration = Vector3.new(0, -22, 0)
  2532. pem.VelocitySpread = 70
  2533. pem.Rate = 0
  2534. pem.LightEmission = -0.2
  2535. pem.Enabled = true
  2536. pem.EmissionDirection = "Left"
  2537. spawn(function()
  2538. wait()
  2539. pem:Emit(50)
  2540. end)
  2541. local pem = Instance.new("ParticleEmitter", sks)
  2542. pem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  2543. pem.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 0.2)})
  2544. pem.Lifetime = NumberRange.new(3.5, 4)
  2545. pem.RotSpeed = NumberRange.new(-110, 110)
  2546. pem.Rotation = NumberRange.new(-350, 350)
  2547. pem.Texture = "http://www.roblox.com/asset/?id=316915947"
  2548. pem.Speed = NumberRange.new(5, 55)
  2549. pem.Acceleration = Vector3.new(0, -20, 0)
  2550. pem.VelocitySpread = 60
  2551. pem.Rate = 0
  2552. pem.LightEmission = -0.2
  2553. pem.Enabled = true
  2554. pem.EmissionDirection = "Left"
  2555. spawn(function()
  2556. wait()
  2557. pem:Emit(50)
  2558. end)
  2559. local thed = Instance.new("Decal", v)
  2560. thed.Face = "Left"
  2561. thed.Texture = kek[math.random(1, #kek)]
  2562. do
  2563. local thed = Instance.new("Decal", v)
  2564. thed.Face = "Right"
  2565. thed.Texture = kek[math.random(1, #kek)]
  2566. -- DECOMPILER ERROR at PC2831: LeaveBlock: unexpected jumping out DO_STMT
  2567.  
  2568. -- DECOMPILER ERROR at PC2831: LeaveBlock: unexpected jumping out IF_THEN_STMT
  2569.  
  2570. -- DECOMPILER ERROR at PC2831: LeaveBlock: unexpected jumping out IF_STMT
  2571.  
  2572. end
  2573. end
  2574. end
  2575. end
  2576. local eff = Instance.new("Part", workspace)
  2577. eff.formFactor = "Custom"
  2578. eff.Size = Vector3.new(1, 1, 1)
  2579. eff.CFrame = CFrame.new(building.PrimaryPart.CFrame.p - Vector3.new(0, 35, 0))
  2580. eff.BrickColor = BrickColor.new("Institutional white")
  2581. local m = Instance.new("SpecialMesh", eff)
  2582. m.MeshType = "FileMesh"
  2583. m.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2584. m.Scale = Vector3.new(10, 10, 10)
  2585. eff.Parent = workspace
  2586. eff.Name = "Bewm"
  2587. eff.Anchored = true
  2588. eff.CanCollide = false
  2589. game:GetService("Debris"):AddItem(eff, 5)
  2590. coroutine.resume(coroutine.create(function(p, V, x)
  2591. local R = Vector3.new(math.random(-5, 5), math.random(7, 9), math.random(-5, 5)) / 70
  2592. for i = 1, 20 do
  2593. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(65, 0, 65) / 20
  2594. p.Transparency = i / 20
  2595. p.CFrame = p.CFrame * V
  2596. swait()
  2597. end
  2598. p:Remove()
  2599. end), eff, CFrame.Angles(0, math.rad(math.random(-10, 9) * 3 + 5), 0))
  2600. local eff = Instance.new("Part", workspace)
  2601. eff.formFactor = "Custom"
  2602. eff.Size = Vector3.new(1, 1, 1)
  2603. eff.CFrame = CFrame.new(building.PrimaryPart.CFrame.p - Vector3.new(0, 35, 0))
  2604. eff.BrickColor = BrickColor.new("Institutional white")
  2605. local m = Instance.new("SpecialMesh", eff)
  2606. m.MeshType = "FileMesh"
  2607. m.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2608. m.Scale = Vector3.new(10, 10, 10)
  2609. eff.Parent = workspace
  2610. eff.Name = "Bewm"
  2611. eff.Anchored = true
  2612. eff.CanCollide = false
  2613. game:GetService("Debris"):AddItem(eff, 5)
  2614. coroutine.resume(coroutine.create(function(p, V, x)
  2615. local R = Vector3.new(math.random(-5, 5), math.random(7, 9), math.random(-5, 5)) / 70
  2616. for i = 1, 10 do
  2617. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(145, 0, 145) / 10
  2618. p.Transparency = 0.5 + i / 20
  2619. p.CFrame = p.CFrame * V
  2620. swait()
  2621. end
  2622. p:Remove()
  2623. end), eff, CFrame.Angles(0, math.rad(math.random(-10, 9) * 3 + 5), 0))
  2624. local eff = Instance.new("Part", workspace)
  2625. eff.formFactor = "Custom"
  2626. eff.Size = Vector3.new(1, 1, 1)
  2627. eff.CFrame = CFrame.new(building.PrimaryPart.CFrame.p + Vector3.new(0, 40, 0))
  2628. eff.BrickColor = BrickColor.new("Institutional white")
  2629. local m = Instance.new("SpecialMesh", eff)
  2630. m.MeshType = "FileMesh"
  2631. m.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2632. m.Scale = Vector3.new(10, 10, 10)
  2633. eff.Parent = workspace
  2634. eff.Name = "Bewm"
  2635. eff.Anchored = true
  2636. eff.CanCollide = false
  2637. game:GetService("Debris"):AddItem(eff, 5)
  2638. coroutine.resume(coroutine.create(function(p, V, x)
  2639. local R = Vector3.new(math.random(-5, 5), math.random(7, 9), math.random(-5, 5)) / 70
  2640. for i = 1, 10 do
  2641. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(125, 0, 125) / 10
  2642. p.Transparency = 0.5 + i / 20
  2643. p.CFrame = p.CFrame * V
  2644. swait()
  2645. end
  2646. p:Remove()
  2647. end), eff, CFrame.Angles(0, -math.rad(math.random(-10, 9) * 3 + 5), 0))
  2648. for _,v in pairs(workspace:children()) do
  2649. if v:FindFirstChild("Humanoid") and v:FindFirstChild("Torso") then
  2650. local h, t = v.Humanoid, v.Torso
  2651. end
  2652. end
  2653. handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1.5, 0), 1)
  2654. Neck.C0 = clerp(Neck.C0, necko * euler(0.5, 0, 0), 0.3)
  2655. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1) * euler(0.5, 0, 0), 1)
  2656. RW.C0 = clerp(RW.C0, cf(1.5, 1, 0) * euler(0, 0, 0) * euler(0.3, 0, 0.6), 1)
  2657. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2658. LW.C0 = clerp(LW.C0, cf(-1.5, 1, 0) * euler(-0.5, 0, 0) * euler(0, 0, -0.7), 1)
  2659. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  2660. RH.C0 = clerp(RH.C0, cf(1, 0.25, -0.5) * euler(0.55, 0, 0) * euler(0, math.pi / 2.2, 0), 1)
  2661. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.5) * euler(-0.7, 0, 0) * euler(0, -math.pi / 1.8, 0), 1)
  2662. for i = 1, 3 do
  2663. building:SetPrimaryPartCFrame(CFrame.new(building.PrimaryPart.CFrame.p - Vector3.new(0, 2.5, 0)))
  2664. -- DECOMPILER ERROR at PC3348: Overwrote pending register: R44 in 'AssignReg'
  2665.  
  2666. RootPart.CFrame = start * CFrame.new(0, -758.86938347034 - i * 2.5, 0) * CFrame.Angles(0, 0, 0)
  2667. xpart.CFrame = RootPart.CFrame * CFrame.new(0, -2, 2) * CFrame.Angles(0, 0, 0)
  2668. -- DECOMPILER ERROR at PC3375: Overwrote pending register: R44 in 'AssignReg'
  2669.  
  2670. cam:Interpolate(building.PrimaryPart.CFrame * CFrame.new(0, 0, 0) - xdir * 90, CFrame.new(s.Position), 0.5)
  2671. swait()
  2672. end
  2673. wait(0.5)
  2674. local p = Instance.new("Sound", RootPart)
  2675. p.SoundId = "http://www.roblox.com/asset/?id=" .. "169628396"
  2676. p.Volume = 1
  2677. p.Pitch = 1
  2678. game:GetService("Debris"):AddItem(p, 30)
  2679. p:Play()
  2680. cam:Interpolate(xpart.CFrame * CFrame.new(10, 10, -10), xpart.CFrame + Vector3.new(0, 2, 0), 1)
  2681. wait(4)
  2682. xpart:Remove()
  2683. RootPart.Anchored = false
  2684. cam.CameraType = "Custom"
  2685. sl.Parent = nil
  2686. attack = false
  2687. stop = false
  2688. cooldowns[4] = 0
  2689. wait(3)
  2690. building:Destroy()
  2691. end
  2692. end
  2693. end
  2694. end
  2695. DecreaseStat = function(Model, Stat, Amount, Duration)
  2696. if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
  2697. Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
  2698. d = Instance.new("NumberValue", Model.Stats.Decrease)
  2699. dur = Instance.new("NumberValue", d)
  2700. dur.Name = "Duration"
  2701. dur.Value = Duration
  2702. game:GetService("Debris"):AddItem(d, 20)
  2703. if Stat == "Damage" then
  2704. d.Name = "DecreaseAtk"
  2705. else
  2706. if Stat == "Defense" then
  2707. d.Name = "DecreaseDef"
  2708. else
  2709. if Stat == "Movement" then
  2710. d.Name = "DecreaseMvmt"
  2711. end
  2712. end
  2713. end
  2714. if Model:findFirstChild("Torso") ~= nil then
  2715. display = ""
  2716. if Stat == "Damage" then
  2717. if Amount > 0 then
  2718. display = "-Damage"
  2719. else
  2720. display = "+Damage"
  2721. end
  2722. else
  2723. if Stat == "Defense" then
  2724. if Amount > 0 then
  2725. display = "-Defense"
  2726. else
  2727. display = "+Defense"
  2728. end
  2729. else
  2730. if Stat == "Movement" then
  2731. if Amount > 0 then
  2732. display = "-Movement"
  2733. else
  2734. display = "+Movement"
  2735. end
  2736. end
  2737. end
  2738. end
  2739. showDamage(Model, display, "Debuff")
  2740. end
  2741. d.Value = Amount
  2742. end
  2743. end
  2744. GetDist = function(Part1, Part2, magni)
  2745. local targ = Part1.Position - Part2.Position
  2746. local mag = targ.magnitude
  2747. if mag <= magni then
  2748. return true
  2749. else
  2750. return false
  2751. end
  2752. end
  2753. MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration, Sound)
  2754. for _,c in pairs(workspace:children()) do
  2755. local hum = c:findFirstChild("Humanoid")
  2756. if hum ~= nil then
  2757. local head = nil
  2758. for _,d in pairs(c:children()) do
  2759. if d.className == "Model" and ranged ~= true then
  2760. head = d:findFirstChild("Hitbox")
  2761. if d.Parent == Character then
  2762. break
  2763. end
  2764. if head ~= nil then
  2765. local targ = head.Position - Part.Position
  2766. local mag = targ.magnitude
  2767. if mag <= magni and c.Name ~= Player.Name then
  2768. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2769. ref.Anchored = true
  2770. ref.CFrame = cf(head.Position)
  2771. game:GetService("Debris"):AddItem(ref, 1)
  2772. hitnum = math.random(1, 5)
  2773. if hitnum == 1 then
  2774. so("199148971", ref, 1, 1)
  2775. else
  2776. if hitnum == 2 then
  2777. so("199149025", ref, 1, 1)
  2778. else
  2779. if hitnum == 3 then
  2780. so("199149072", ref, 1, 1)
  2781. else
  2782. if hitnum == 4 then
  2783. so("199149109", ref, 1, 1)
  2784. else
  2785. if hitnum == 5 then
  2786. so("199149119", ref, 1, 1)
  2787. end
  2788. end
  2789. end
  2790. end
  2791. end
  2792. StaggerHit.Value = true
  2793. end
  2794. end
  2795. end
  2796. do
  2797. if d.className == "Part" then
  2798. head = d
  2799. if head ~= nil then
  2800. local targ = head.Position - Part.Position
  2801. local mag = targ.magnitude
  2802. if mag <= magni and c.Name ~= Player.Name then
  2803. if stun == nil then
  2804. stun = math.random(5, 10)
  2805. end
  2806. local Rang = nil
  2807. if Ranged == false then
  2808. Rang = true
  2809. end
  2810. local stag = nil
  2811. if shbash == true then
  2812. stag = true
  2813. end
  2814. Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration, Sound)
  2815. end
  2816. end
  2817. end
  2818. do
  2819. -- DECOMPILER ERROR at PC184: LeaveBlock: unexpected jumping out DO_STMT
  2820.  
  2821. end
  2822. end
  2823. end
  2824. end
  2825. end
  2826. end
  2827. MagniBuff = function(Part, magni, Dec, DecAm, Dur, others)
  2828. if Player.Neutral == true then
  2829. DecreaseStat(Character, Dec, DecAm, Dur)
  2830. end
  2831. for _,c in pairs(workspace:children()) do
  2832. local hum = c:findFirstChild("Humanoid")
  2833. if hum ~= nil then
  2834. local head = c:findFirstChild("Torso")
  2835. if head ~= nil then
  2836. local targ = head.Position - Part.Position
  2837. local mag = targ.magnitude
  2838. -- DECOMPILER ERROR at PC67: Unhandled construct in 'MakeBoolean' P1
  2839.  
  2840. if others == nil and mag <= magni and Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
  2841. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  2842. end
  2843. end
  2844. end
  2845. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and mag <= magni and head.Parent ~= Character and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
  2846. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  2847. end
  2848. end
  2849. end
  2850. rayCast = function(Pos, Dir, Max, Ignore)
  2851. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2852. end
  2853. local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
  2854. LastPoint = Point
  2855. effect = function(Color, Ref, LP, P1, returnn)
  2856. if LP == nil or P1 == nil then
  2857. return
  2858. end
  2859. local effectsmsh = Instance.new("CylinderMesh")
  2860. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2861. effectsmsh.Name = "Mesh"
  2862. local effectsg = Instance.new("Part")
  2863. NoOutline(effectsg)
  2864. effectsg.formFactor = 3
  2865. effectsg.CanCollide = false
  2866. effectsg.Name = "Eff"
  2867. effectsg.Locked = true
  2868. effectsg.Anchored = true
  2869. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  2870. effectsg.Parent = workspace
  2871. effectsmsh.Parent = effectsg
  2872. effectsg.BrickColor = BrickColor.new(Color)
  2873. effectsg.Reflectance = Ref
  2874. local point1 = P1
  2875. local mg = (LP.p - point1.p).magnitude
  2876. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  2877. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  2878. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2879. game:GetService("Debris"):AddItem(effectsg, 2)
  2880. if returnn then
  2881. return effectsg
  2882. end
  2883. if not returnn then
  2884. table.insert(Effects, {effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
  2885. end
  2886. end
  2887. local CFrameFromTopBack = function(at, top, back)
  2888. local right = top:Cross(back)
  2889. 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)
  2890. end
  2891. Triangle = function(a, b, c)
  2892. local edg1 = c - a:Dot(b - a.unit)
  2893. local edg2 = a - b:Dot(c - b.unit)
  2894. local edg3 = b - c:Dot(a - c.unit)
  2895. if edg1 <= b - a.magnitude and edg1 >= 0 then
  2896. a = a
  2897. else
  2898. -- DECOMPILER ERROR at PC35: Overwrote pending register: R1 in 'AssignReg'
  2899.  
  2900. if edg2 <= c - b.magnitude and edg2 >= 0 then
  2901. a = b
  2902. else
  2903. -- DECOMPILER ERROR at PC46: Overwrote pending register: R2 in 'AssignReg'
  2904.  
  2905. -- DECOMPILER ERROR at PC47: Overwrote pending register: R1 in 'AssignReg'
  2906.  
  2907. if edg3 <= a - c.magnitude and edg3 >= 0 then
  2908. a = c
  2909. else
  2910. assert(false, "unreachable")
  2911. end
  2912. end
  2913. end
  2914. local len1 = c - a:Dot(b - a.unit)
  2915. local len2 = b - a.magnitude - len1
  2916. local width = a + b - a.unit * len1 - c.magnitude
  2917. local maincf = CFrameFromTopBack(a, b - a:Cross(c - b).unit, -b - a.unit)
  2918. local list = {}
  2919. if len1 > 0.01 then
  2920. local w1 = Instance.new("WedgePart", m)
  2921. game:GetService("Debris"):AddItem(w1, 5)
  2922. w1.Material = "SmoothPlastic"
  2923. w1.FormFactor = "Custom"
  2924. w1.BrickColor = BrickColor.new("Medium blue")
  2925. w1.Transparency = 0
  2926. w1.Reflectance = 0
  2927. w1.Material = "SmoothPlastic"
  2928. w1.CanCollide = false
  2929. NoOutline(w1)
  2930. local sz = Vector3.new(0.2, width, len1)
  2931. w1.Size = sz
  2932. local sp = Instance.new("SpecialMesh", w1)
  2933. sp.MeshType = "Wedge"
  2934. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  2935. w1:BreakJoints()
  2936. w1.Anchored = true
  2937. w1.Parent = workspace
  2938. w1.Transparency = 0.7
  2939. table.insert(Effects, {w1, "Disappear", 0.05})
  2940. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  2941. table.insert(list, w1)
  2942. end
  2943. do
  2944. if len2 > 0.01 then
  2945. local w2 = Instance.new("WedgePart", m)
  2946. game:GetService("Debris"):AddItem(w2, 5)
  2947. w2.Material = "SmoothPlastic"
  2948. w2.FormFactor = "Custom"
  2949. w2.BrickColor = BrickColor.new("Medium blue")
  2950. w2.Transparency = 0
  2951. w2.Reflectance = 0
  2952. w2.Material = "SmoothPlastic"
  2953. w2.CanCollide = false
  2954. NoOutline(w2)
  2955. local sz = Vector3.new(0.2, width, len2)
  2956. w2.Size = sz
  2957. local sp = Instance.new("SpecialMesh", w2)
  2958. sp.MeshType = "Wedge"
  2959. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  2960. w2:BreakJoints()
  2961. w2.Anchored = true
  2962. w2.Parent = workspace
  2963. w2.Transparency = 0.7
  2964. table.insert(Effects, {w2, "Disappear", 0.05})
  2965. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  2966. table.insert(list, w2)
  2967. end
  2968. do
  2969. return unpack(list)
  2970. end
  2971. end
  2972. end
  2973. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  2974. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2975. prt.Anchored = true
  2976. prt.CFrame = cframe
  2977. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  2978. game:GetService("Debris"):AddItem(prt, 10)
  2979. coroutine.resume(coroutine.create(function(Part,Mesh)
  2980. for i=0,1,delay do
  2981. swait()
  2982. Part.CFrame=Part.CFrame
  2983. Part.Transparency=i
  2984. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2985. end
  2986. Part.Parent=nil
  2987. end),prt,msh)
  2988. end
  2989. MagicCloud = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2990. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  2991. prt.Anchored = true
  2992. prt.CFrame = cframe
  2993. local msh = mesh("SpecialMesh", prt, "FileMesh", "1095708", vt(0, 0, 0), vt(x1, y1, z1))
  2994. game:GetService("Debris"):AddItem(prt, 10)
  2995. coroutine.resume(coroutine.create(function(Part,Mesh)
  2996. for i=0,1,delay do
  2997. swait()
  2998. Part.CFrame=Part.CFrame
  2999. Part.Transparency=i
  3000. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3001. end
  3002. Part.Parent=nil
  3003. end),prt,msh)
  3004. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  3005. end
  3006. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3007. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  3008. prt.Anchored = true
  3009. prt.CFrame = cframe
  3010. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  3011. game:GetService("Debris"):AddItem(prt, 10)
  3012. coroutine.resume(coroutine.create(function(Part,Mesh)
  3013. for i=0,1,delay do
  3014. swait()
  3015. Part.CFrame=Part.CFrame
  3016. Part.Transparency=i
  3017. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3018. end
  3019. Part.Parent=nil
  3020. end),prt,msh)
  3021. end
  3022. MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push)
  3023. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  3024. prt.Anchored = true
  3025. prt.CFrame = cframe
  3026. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  3027. game:GetService("Debris"):AddItem(prt, 10)
  3028. coroutine.resume(coroutine.create(function(Part,Mesh)
  3029. for i=0,1,delay do
  3030. swait()
  3031. Part.CFrame=Part.CFrame
  3032. Part.Transparency=i
  3033. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3034. end
  3035. Part.Parent=nil
  3036. end),prt,msh)
  3037. end
  3038. MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3039. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3040. prt.Anchored = true
  3041. prt.CFrame = cframe * cf(x2, y2, z2)
  3042. local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1))
  3043. game:GetService("Debris"):AddItem(prt, 10)
  3044. coroutine.resume(coroutine.create(function(Part,Mesh)
  3045. for i=0,1,delay do
  3046. swait()
  3047. Part.CFrame=Part.CFrame
  3048. Part.Transparency=i
  3049. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3050. end
  3051. Part.Parent=nil
  3052. end),prt,msh)
  3053. end
  3054. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3055. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  3056. prt.Anchored = true
  3057. prt.CFrame = cframe
  3058. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3059. game:GetService("Debris"):AddItem(prt, 10)
  3060. coroutine.resume(coroutine.create(function(Part,Mesh)
  3061. for i=0,1,delay do
  3062. swait()
  3063. Part.CFrame=Part.CFrame
  3064. Part.Transparency=i
  3065. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3066. end
  3067. Part.Parent=nil
  3068. end),prt,msh)
  3069. end
  3070. ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
  3071. local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
  3072. prt.Anchored = true
  3073. prt.CFrame = cframe
  3074. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
  3075. game:GetService("Debris"):AddItem(prt, 10)
  3076. coroutine.resume(coroutine.create(function(Part,Mesh)
  3077. for i=0,1,delay do
  3078. swait()
  3079. Part.CFrame=Part.CFrame
  3080. Part.Transparency=i
  3081. Mesh.Scale=Mesh.Scale+vt(decrease,decrease,decrease)
  3082. end
  3083. Part.Parent=nil
  3084. end),prt,msh)
  3085. end
  3086. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3087. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  3088. prt.Anchored = true
  3089. prt.CFrame = cframe
  3090. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  3091. game:GetService("Debris"):AddItem(prt, 10)
  3092. coroutine.resume(coroutine.create(function(Part,Mesh)
  3093. for i=0,1,delay do
  3094. swait()
  3095. Part.CFrame=Part.CFrame
  3096. Part.Transparency=i
  3097. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3098. end
  3099. Part.Parent=nil
  3100. end),prt,msh)
  3101. end
  3102. MagicSpecial = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3103. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
  3104. prt.Anchored = true
  3105. prt.CFrame = cframe
  3106. local msh = mesh("SpecialMesh", prt, "FileMesh", "24388358", vt(0, 0, 0), vt(x1, y1, z1))
  3107. game:GetService("Debris"):AddItem(prt, 10)
  3108. coroutine.resume(coroutine.create(function(Part,Mesh)
  3109. for i=0,1,delay do
  3110. swait()
  3111. Part.CFrame=Part.CFrame
  3112. Part.Transparency=i
  3113. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3114. end
  3115. Part.Parent=nil
  3116. end),prt,msh)
  3117. end
  3118. BreakEffect = function(brickcolor, cframe, x1, y1, z1)
  3119. local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3120. prt.Anchored = true
  3121. prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3122. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  3123. local num = math.random(10, 50) / 1000
  3124. game:GetService("Debris"):AddItem(prt, 10)
  3125. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  3126. end
  3127. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration, Sound)
  3128. if hit.Parent == nil then
  3129. return
  3130. end
  3131. if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then
  3132. ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
  3133. ref.Anchored = true
  3134. ref.CFrame = cf(hit.Position)
  3135. game:GetService("Debris"):AddItem(ref, 1)
  3136. hitnum = math.random(1, 5)
  3137. if hitnum == 1 then
  3138. so("199148971", ref, 1, 1)
  3139. else
  3140. if hitnum == 2 then
  3141. so("199149025", ref, 1, 1)
  3142. else
  3143. if hitnum == 3 then
  3144. so("199149072", ref, 1, 1)
  3145. else
  3146. if hitnum == 4 then
  3147. so("199149109", ref, 1, 1)
  3148. else
  3149. if hitnum == 5 then
  3150. so("199149119", ref, 1, 1)
  3151. end
  3152. end
  3153. end
  3154. end
  3155. end
  3156. StaggerHit.Value = true
  3157. end
  3158. h = hit.Parent:FindFirstChild("Humanoid")
  3159. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  3160. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  3161. return
  3162. end
  3163. if Player.Neutral == false then
  3164. if hit.Parent:findFirstChild("Alignment") ~= nil and hit.Parent.Alignment.Value == Player.TeamColor.Color then
  3165. return
  3166. end
  3167. if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then
  3168. return
  3169. end
  3170. end
  3171. if doing4 == true and HitTarget == nil then
  3172. HitTarget = hit.Parent
  3173. MagicBlock(BrickColor.new(NewCol), cf(HitTarget.Torso.Position), 1, 1, 1, 3, 3, 3, 0.1, 1)
  3174. end
  3175. if Sound == "Impact" then
  3176. so("200632875", hit, 1, 1)
  3177. end
  3178. hitted = true
  3179. if Sound == "Shatter" then
  3180. so("199146069", hit, 1, 1)
  3181. end
  3182. c = Instance.new("ObjectValue")
  3183. c.Name = "creator"
  3184. c.Value = game:service("Players").LocalPlayer
  3185. c.Parent = h
  3186. RecentEnemy.Value = hit.Parent
  3187. game:GetService("Debris"):AddItem(c, 0.5)
  3188. minim = minim * Atk.Value
  3189. maxim = maxim * Atk.Value
  3190. Damage = 0
  3191. if minim == maxim then
  3192. Damage = maxim
  3193. else
  3194. Damage = math.random(minim, maxim)
  3195. end
  3196. blocked = false
  3197. enblock = nil
  3198. Stats = hit.Parent:findFirstChild("Stats")
  3199. if Stats ~= nil then
  3200. invis = Stats:findFirstChild("Invisibility")
  3201. isinvis = Stats:findFirstChild("IsInvisible")
  3202. if (ranged == false or ranged == nil) and invis ~= nil and isinvis.Value == true then
  3203. invis.Value = 0
  3204. end
  3205. enblock = Stats:findFirstChild("Block")
  3206. if enblock ~= nil and enblock.Value == true then
  3207. blocked = true
  3208. end
  3209. if Stats:findFirstChild("Defense") ~= nil then
  3210. Damage = Damage / Stats.Defense.Value
  3211. if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then
  3212. hitnum = math.random(1, 5)
  3213. if hitnum == 1 then
  3214. so("199149321", hit, 1, 1)
  3215. else
  3216. if hitnum == 2 then
  3217. so("199149338", hit, 1, 1)
  3218. else
  3219. if hitnum == 3 then
  3220. so("199149367", hit, 1, 1)
  3221. else
  3222. if hitnum == 4 then
  3223. so("199149409", hit, 1, 1)
  3224. else
  3225. if hitnum == 5 then
  3226. so("199149452", hit, 1, 1)
  3227. end
  3228. end
  3229. end
  3230. end
  3231. end
  3232. else
  3233. if ranged == false or ranged == nil and blocked ~= true then
  3234. hitnum = math.random(1, 6)
  3235. if hitnum == 1 then
  3236. so("199149137", hit, 1, 1)
  3237. else
  3238. if hitnum == 2 then
  3239. so("199149186", hit, 1, 1)
  3240. else
  3241. if hitnum == 3 then
  3242. so("199149221", hit, 1, 1)
  3243. else
  3244. if hitnum == 4 then
  3245. so("199149235", hit, 1, 1)
  3246. else
  3247. if hitnum == 5 then
  3248. so("199149269", hit, 1, 1)
  3249. else
  3250. if hitnum == 6 then
  3251. so("199149297", hit, 1, 1)
  3252. end
  3253. end
  3254. end
  3255. end
  3256. end
  3257. end
  3258. end
  3259. end
  3260. if Damage <= 3 and staghit == true then
  3261. StaggerHit.Value = true
  3262. end
  3263. end
  3264. if Stats:findFirstChild("Stun") ~= nil then
  3265. if blocked == true then
  3266. incstun = incstun / 2
  3267. end
  3268. if Stats.Stun.Value < Stats.StunThreshold.Value then
  3269. Stats.Stun.Value = Stats.Stun.Value + incstun
  3270. end
  3271. end
  3272. if Stats:findFirstChild("Stagger") ~= nil and stagger == true then
  3273. Stats.Stagger.Value = true
  3274. end
  3275. end
  3276. if blocked == true then
  3277. showDamage(hit.Parent, "Block", "Damage")
  3278. if ranged ~= true then
  3279. enblock.Value = false
  3280. Stagger.Value = true
  3281. hitnum = math.random(1, 2)
  3282. if hitnum == 1 then
  3283. so("199148933", hit, 1, 1)
  3284. else
  3285. if hitnum == 2 then
  3286. so("199148947", hit, 1, 1)
  3287. end
  3288. end
  3289. end
  3290. else
  3291. Damage = math.floor(Damage)
  3292. coroutine.resume(coroutine.create(function(Hum, Dam)
  3293. Hum:TakeDamage(Damage)
  3294. end), h, Damage)
  3295. showDamage(hit.Parent, Damage, "Damage")
  3296. if DecreaseState ~= nil then
  3297. if DecreaseState == "Shatter" then
  3298. DecreaseStat(hit.Parent, "Movement", DecreaseAmount, Duration)
  3299. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  3300. else
  3301. DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration)
  3302. end
  3303. end
  3304. if Type == "Knockdown" then
  3305. hum = hit.Parent.Humanoid
  3306. hum.PlatformStand = true
  3307. coroutine.resume(coroutine.create(function(HHumanoid)
  3308. swait(1)
  3309. HHumanoid.PlatformStand = false
  3310. end), hum)
  3311. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  3312. local bodvol = Instance.new("BodyVelocity")
  3313. bodvol.velocity = angle * knockback
  3314. bodvol.P = 5000
  3315. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  3316. bodvol.Parent = hit
  3317. rl = Instance.new("BodyAngularVelocity")
  3318. rl.P = 3000
  3319. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  3320. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  3321. rl.Parent = hit
  3322. game:GetService("Debris"):AddItem(bodvol, 0.5)
  3323. game:GetService("Debris"):AddItem(rl, 0.5)
  3324. else
  3325. do
  3326. if Type == "Shatter" then
  3327. for i = 1, 10 do
  3328. BreakEffect(BrickColor.new("Cyan"), hit.CFrame, math.random(20, 80) / 100, math.random(2, 10), math.random(20, 80) / 100)
  3329. end
  3330. else
  3331. do
  3332. if Type == "Knockdown2" then
  3333. hum = hit.Parent.Humanoid
  3334. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  3335. local bodvol = Instance.new("BodyVelocity")
  3336. bodvol.velocity = angle * knockback
  3337. bodvol.P = 5000
  3338. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  3339. bodvol.Parent = hit
  3340. game:GetService("Debris"):AddItem(bodvol, 0.5)
  3341. else
  3342. do
  3343. if Type == "Normal" then
  3344. vp = Instance.new("BodyVelocity")
  3345. vp.P = 500
  3346. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  3347. if KnockbackType == 1 then
  3348. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  3349. else
  3350. if KnockbackType == 2 then
  3351. vp.velocity = Property.CFrame.lookVector * knockback
  3352. end
  3353. end
  3354. game:GetService("Debris"):AddItem(vp, 0.5)
  3355. if knockback > 0 then
  3356. vp.Parent = hit.Parent.Torso
  3357. end
  3358. end
  3359. debounce = Instance.new("BoolValue")
  3360. debounce.Name = "DebounceHit"
  3361. debounce.Parent = hit.Parent
  3362. debounce.Value = true
  3363. game:GetService("Debris"):AddItem(debounce, Delay)
  3364. c = Instance.new("ObjectValue")
  3365. c.Name = "creator"
  3366. c.Value = Player
  3367. c.Parent = h
  3368. game:GetService("Debris"):AddItem(c, 0.5)
  3369. CRIT = false
  3370. end
  3371. end
  3372. end
  3373. end
  3374. end
  3375. end
  3376. end
  3377. end
  3378. end
  3379. showDamage = function(Char, Dealt, Type)
  3380. m = Instance.new("Model")
  3381. m.Name = "Effect"
  3382. c = Instance.new("Part")
  3383. c.Transparency = 1
  3384. c.Name = "Head"
  3385. c.TopSurface = 0
  3386. c.BottomSurface = 0
  3387. c.formFactor = "Plate"
  3388. c.Size = Vector3.new(1, 0.4, 1)
  3389. b = Instance.new("BillboardGui", c)
  3390. b.Size = UDim2.new(5, 0, 5, 0)
  3391. b.AlwaysOnTop = true
  3392. damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  3393. if Type == "Damage" then
  3394. damgui.Font = "SourceSans"
  3395. if Dealt == "Block" then
  3396. damgui.TextColor3 = BrickColor.new("Bright blue").Color
  3397. else
  3398. if Dealt < 3 then
  3399. damgui.TextColor3 = BrickColor.new("White").Color
  3400. else
  3401. if Dealt >= 3 and Dealt < 20 then
  3402. damgui.TextColor3 = BrickColor.new("Bright yellow").Color
  3403. else
  3404. damgui.TextColor3 = BrickColor.new("Really red").Color
  3405. damgui.Font = "SourceSansBold"
  3406. end
  3407. end
  3408. end
  3409. else
  3410. if Type == "Debuff" then
  3411. damgui.TextColor3 = BrickColor.new("White").Color
  3412. else
  3413. if Type == "Interrupt" then
  3414. damgui.TextColor3 = BrickColor.new("New Yeller").Color
  3415. else
  3416. if Type == "Heal" then
  3417. damgui.TextColor3 = BrickColor.new("Bright green").Color
  3418. end
  3419. end
  3420. end
  3421. end
  3422. damgui.TextScaled = true
  3423. ms = Instance.new("CylinderMesh")
  3424. ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  3425. ms.Parent = c
  3426. c.Reflectance = 0
  3427. Instance.new("BodyGyro").Parent = c
  3428. c.Parent = m
  3429. if Char:findFirstChild("Head") ~= nil then
  3430. c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  3431. else
  3432. if Char.Parent:findFirstChild("Head") ~= nil then
  3433. c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  3434. end
  3435. end
  3436. f = Instance.new("BodyPosition")
  3437. f.P = 2000
  3438. f.D = 100
  3439. f.maxForce = Vector3.new(545000, 545000, 545000)
  3440. if Type == "Damage" or Type == "Heal" then
  3441. f.position = c.Position + Vector3.new(0, 3, 0)
  3442. else
  3443. if Type == "Debuff" or Type == "Interrupt" then
  3444. f.position = c.Position + Vector3.new(0, 5, 0)
  3445. end
  3446. end
  3447. f.Parent = c
  3448. game:GetService("Debris"):AddItem(m, 5)
  3449. table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
  3450. c.CanCollide = false
  3451. m.Parent = workspace
  3452. c.CanCollide = false
  3453. end
  3454. combo = 0
  3455. ob1d = function(mouse)
  3456. if attack == true or equipped == false then
  3457. return
  3458. end
  3459. hold = true
  3460. if combo == 0 then
  3461. combo = 1
  3462. attackone()
  3463. else
  3464. if combo == 1 then
  3465. combo = 2
  3466. attacktwo()
  3467. else
  3468. if combo == 2 then
  3469. combo = 3
  3470. attackthree()
  3471. else
  3472. if combo == 3 then
  3473. combo = 4
  3474. attackfour()
  3475. else
  3476. if combo == 4 then
  3477. combo = 5
  3478. dattackone()
  3479. else
  3480. if combo == 5 then
  3481. combo = 6
  3482. dattacktwo()
  3483. else
  3484. if combo == 6 then
  3485. combo = 7
  3486. dattackthree()
  3487. else
  3488. if combo == 7 then
  3489. combo = 0
  3490. dattackfour()
  3491. end
  3492. end
  3493. end
  3494. end
  3495. end
  3496. end
  3497. end
  3498. end
  3499. coroutine.resume(coroutine.create(function()
  3500. for i = 1, 50 do
  3501. if attack == false then
  3502. swait()
  3503. end
  3504. end
  3505. if attack == false then
  3506. combo = 0
  3507. end
  3508. end))
  3509. end
  3510. ob1u = function(mouse)
  3511. hold = false
  3512. end
  3513. buttonhold = false
  3514. fenbarmove1.MouseButton1Click:connect(do1)
  3515. fenbarmove2.MouseButton1Click:connect(do2)
  3516. fenbarmove3.MouseButton1Click:connect(do3)
  3517. fenbarmove4.MouseButton1Click:connect(do4)
  3518. eul = 0
  3519. equipped = false
  3520. key = function(key)
  3521. if attack == true then
  3522. return
  3523. end
  3524. if key == "f" then
  3525. pressedf = true
  3526. fnumb = 0
  3527. attack = true
  3528. if equipped == false then
  3529. equipped = true
  3530. RSH = ch.Torso["Right Shoulder"]
  3531. LSH = ch.Torso["Left Shoulder"]
  3532. RSH.Parent = nil
  3533. LSH.Parent = nil
  3534. RW.Name = "Right Shoulder"
  3535. RW.Part0 = ch.Torso
  3536. RW.C0 = cf(1.5, 0.5, 0)
  3537. RW.C1 = cf(0, 0.5, 0)
  3538. RW.Part1 = ch["Right Arm"]
  3539. RW.Parent = ch.Torso
  3540. LW.Name = "Left Shoulder"
  3541. LW.Part0 = ch.Torso
  3542. LW.C0 = cf(-1.5, 0.5, 0)
  3543. LW.C1 = cf(0, 0.5, 0)
  3544. LW.Part1 = ch["Left Arm"]
  3545. LW.Parent = ch.Torso
  3546. Animate.Parent = nil
  3547. equipanim()
  3548. else
  3549. equipped = false
  3550. hideanim()
  3551. LH.C1 = LHC1
  3552. RH.C1 = RHC1
  3553. Animate.Parent = Humanoid
  3554. swait(0)
  3555. RW.Parent = nil
  3556. LW.Parent = nil
  3557. RSH.Parent = player.Character.Torso
  3558. LSH.Parent = player.Character.Torso
  3559. end
  3560. attack = false
  3561. end
  3562. if equipped == false then
  3563. return
  3564. end
  3565. if key == "e" then
  3566. cannonball()
  3567. end
  3568. if key == "z" then
  3569. do1()
  3570. end
  3571. if key == "x" then
  3572. do2()
  3573. end
  3574. if key == "c" then
  3575. do3()
  3576. end
  3577. if key == "v" then
  3578. do4()
  3579. end
  3580. if key == "h" then
  3581. mana.Value = 100
  3582. for i = 1, 4 do
  3583. cooldowns[i] = 100
  3584. end
  3585. end
  3586. end
  3587. key2 = function(key)
  3588. end
  3589. s = function(mouse)
  3590. mouse.Button1Down:connect(function()
  3591. ob1d(mouse)
  3592. end)
  3593. mouse.Button1Up:connect(function()
  3594. ob1u(mouse)
  3595. end)
  3596. mouse.KeyDown:connect(key)
  3597. mouse.KeyUp:connect(key2)
  3598. player = Player
  3599. ch = Character
  3600. MMouse = mouse
  3601. end
  3602. ds = function(mouse)
  3603. end
  3604. Bin.Selected:connect(s)
  3605. Bin.Deselected:connect(ds)
  3606. print("Bob loaded.")
  3607. local mananum = 0
  3608. local blocknum2 = 0
  3609. local donum = 0
  3610. local stunnum = 0
  3611. local staggeranim = false
  3612. local stunanim = false
  3613. local Point, LastPoint = nil, nil
  3614. local oldhealth = Humanoid.Health
  3615. local walk = 0
  3616. local walkforw = true
  3617. while 1 do
  3618. swait()
  3619. if Humanoid.Health <= 0 then
  3620. attack = true
  3621. resumeControl()
  3622. modelzorz.Parent = workspace
  3623. game:GetService("Debris"):AddItem(modelzorz, 30)
  3624. for i = 1, #Weapon do
  3625. Weapon[i].Parent = modelzorz
  3626. Weapon[i].CanCollide = true
  3627. end
  3628. for i = 1, #Welds do
  3629. if Welds[i].Part0.Parent == Character or Welds[i].Part1.Parent == Character then
  3630. Welds[i].Parent = nil
  3631. else
  3632. Welds[i].Parent = rprt1
  3633. end
  3634. end
  3635. end
  3636. do
  3637. col = Player.TeamColor
  3638. if fnumb < 21 then
  3639. fnumb = fnumb + 1
  3640. if pressedf == false then
  3641. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025
  3642. tellbar.TextTransparency = tellbar.TextTransparency - 0.05
  3643. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05
  3644. else
  3645. if fnumb == 20 then
  3646. fenframe5.Parent = nil
  3647. print("daigui")
  3648. end
  3649. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025
  3650. tellbar.TextTransparency = tellbar.TextTransparency + 0.05
  3651. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05
  3652. end
  3653. end
  3654. if hbwld.Parent == nil then
  3655. hitbox2.Name = "Hitbox"
  3656. else
  3657. hitbox2.Name = "Hitbox2"
  3658. end
  3659. hitbox2.Parent = hitbox.Parent
  3660. hitbox2.Size = hitbox.Size
  3661. hitbox2.CFrame = hitboxCF
  3662. hboxpos.position = hitbox2.Position + vt(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100)
  3663. if Stagger.Value == true and staggeranim == false then
  3664. coroutine.resume(coroutine.create(function()
  3665. staggeranim = true
  3666. while attack == true do
  3667. swait()
  3668. end
  3669. StaggerAnim()
  3670. StaggerHit.Value = false
  3671. Stagger.Value = false
  3672. staggeranim = false
  3673. end))
  3674. end
  3675. if StaggerHit.Value == true and staggeranim == false then
  3676. coroutine.resume(coroutine.create(function()
  3677. staggeranim = true
  3678. while attack == true do
  3679. swait()
  3680. end
  3681. StaggerHitt()
  3682. StaggerHit.Value = false
  3683. Stagger.Value = false
  3684. staggeranim = false
  3685. end))
  3686. end
  3687. if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then
  3688. Humanoid.WalkSpeed = 0
  3689. else
  3690. Humanoid.WalkSpeed = 16 * Mvmt.Value
  3691. end
  3692. if StunT.Value <= Stun.Value and stunanim == false then
  3693. coroutine.resume(coroutine.create(function()
  3694. stunanim = true
  3695. while attack == true do
  3696. swait()
  3697. end
  3698. StunAnim()
  3699. Stun.Value = 0
  3700. stunanim = false
  3701. end))
  3702. end
  3703. local stunnum2 = 20
  3704. if stunnum2 <= stunnum then
  3705. if 0 < Stun.Value then
  3706. Stun.Value = Stun.Value - 1
  3707. end
  3708. stunnum = 0
  3709. end
  3710. stunnum = stunnum + 1
  3711. if 0.5 <= donum then
  3712. handidle = true
  3713. else
  3714. if donum <= 0 then
  3715. handidle = false
  3716. end
  3717. end
  3718. if handidle == false then
  3719. donum = donum + 0.006
  3720. else
  3721. donum = donum - 0.006
  3722. end
  3723. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  3724. local velderp = RootPart.Velocity.y
  3725. hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  3726. if equipped == true then
  3727. if attack == false then
  3728. idle = idle + 1
  3729. else
  3730. idle = 0
  3731. end
  3732. if (500 <= idle and attack ~= false) or Anim == "Walk" then
  3733. if walkforw == true then
  3734. RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  3735. LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  3736. else
  3737. RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  3738. LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  3739. end
  3740. else
  3741. RH.C1 = clerp(RH.C1, RHC1, 0.2)
  3742. LH.C1 = clerp(LH.C1, LHC1, 0.2)
  3743. end
  3744. if 1 < RootPart.Velocity.y and hitfloor == nil then
  3745. Anim = "Jump"
  3746. if attack == false then
  3747. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.5)
  3748. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2)
  3749. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  3750. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, 0), 0.3)
  3751. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 0.2), 0.2)
  3752. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3753. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.8, 0, -0.2), 0.2)
  3754. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3755. RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2)
  3756. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2)
  3757. end
  3758. else
  3759. if RootPart.Velocity.y < -1 and hitfloor == nil then
  3760. Anim = "Fall"
  3761. if attack == false then
  3762. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  3763. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  3764. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, 0), 0.3)
  3765. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.1, 0, 1), 0.2)
  3766. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3767. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.1, 0, -1), 0.2)
  3768. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  3769. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  3770. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  3771. end
  3772. else
  3773. if torvel < 1 and hitfloor ~= nil then
  3774. Anim = "Idle"
  3775. if attack == false then
  3776. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.5)
  3777. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.1) * euler(0, 0, 0), 0.15)
  3778. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.1), 0.15)
  3779. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.15 - (donum) / 4, -0.15, 0.2 - (donum) / 4), 0.15)
  3780. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  3781. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2 + (donum) / 4, 0.25, -0.2 + (donum) / 4), 0.15)
  3782. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15)
  3783. RH.C0 = clerp(RH.C0, cf(1, -1, -0.15) * euler(0, 1.57, 0) * euler(-0.05, -0.1, 0.15), 0.15)
  3784. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, -0.2, 0.2), 0.15)
  3785. end
  3786. else
  3787. if 2 < torvel and torvel < 30 and hitfloor ~= nil then
  3788. Anim = "Walk"
  3789. walk = walk + 1
  3790. if 15 - 5 * Mvmt.Value <= walk then
  3791. walk = 0
  3792. if walkforw == true then
  3793. walkforw = false
  3794. else
  3795. if walkforw == false then
  3796. walkforw = true
  3797. end
  3798. end
  3799. end
  3800. if attack == false then
  3801. handlewld.C0 = clerp(handlewld.C0, euler(1.57, 0, 0) * cf(0, 1, 0), 0.5)
  3802. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.3)
  3803. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, 0), 0.3)
  3804. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.5, 0, 0.2), 0.3)
  3805. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  3806. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.5, 0, -0.3), 0.3)
  3807. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  3808. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.2)
  3809. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.2)
  3810. end
  3811. else
  3812. if 30 <= torvel and hitfloor ~= nil then
  3813. Anim = "Run"
  3814. if attack == false then
  3815. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.2), 0.4)
  3816. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.2), 0.4)
  3817. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 0.2), 0.4)
  3818. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  3819. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4)
  3820. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  3821. RH.C0 = clerp(RH.C0, RHC0 * cf(1, 1, 0.2) * euler(0, -0.2, -0.5), 0.4)
  3822. LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.2, 0, -0.5), 0.4)
  3823. end
  3824. end
  3825. end
  3826. end
  3827. end
  3828. end
  3829. end
  3830. if 0 < #Effects then
  3831. for e = 1, #Effects do
  3832. if Effects[e] ~= nil then
  3833. local Thing = Effects[e]
  3834. if Thing ~= nil then
  3835. local Part = Thing[1]
  3836. local Mode = Thing[2]
  3837. local Delay = Thing[3]
  3838. local IncX = Thing[4]
  3839. local IncY = Thing[5]
  3840. local IncZ = Thing[6]
  3841. if Thing[2] == "CylinderClang" then
  3842. if Thing[3] <= 1 then
  3843. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  3844. Thing[7] = Thing[1].CFrame
  3845. effect("New Yeller", 0, Thing[8], Thing[7])
  3846. Thing[8] = Thing[7]
  3847. Thing[3] = Thing[3] + Thing[4]
  3848. else
  3849. Part.Parent = nil
  3850. table.remove(Effects, e)
  3851. end
  3852. end
  3853. if Thing[2] == "showDamage" then
  3854. if Thing[6] < Thing[5] then
  3855. Thing[6] = Thing[6] + 1
  3856. else
  3857. if Thing[6] < Thing[7] then
  3858. Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
  3859. Thing[6] = Thing[6] + 1
  3860. else
  3861. if Thing[6] < Thing[8] then
  3862. Thing[6] = Thing[6] + 1
  3863. else
  3864. if Thing[6] < Thing[9] then
  3865. Thing[6] = Thing[6] + 1
  3866. Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
  3867. Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  3868. Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  3869. else
  3870. Thing[1].Parent = nil
  3871. table.remove(Effects, e)
  3872. end
  3873. end
  3874. end
  3875. end
  3876. end
  3877. if Thing[2] == "Wall" then
  3878. if Thing[6] <= 900 and Thing[1].Parent ~= nil then
  3879. passive2.Value = 0
  3880. StunT.Value = 100
  3881. Thing[6] = Thing[6] + 1
  3882. for i = 1, #walls do
  3883. if (RootPart.Position - Thing[5].Position).magnitude < 20 then
  3884. passive2.Value = passive2.Value - 0.15
  3885. StunT.Value = StunT.Value + 10
  3886. end
  3887. end
  3888. else
  3889. do
  3890. for i = 1, 12 do
  3891. MagicCloud(BrickColor.new("White"), Thing[5].CFrame * cf(math.random(-750, 750) / 100, math.random(-500, 500) / 100, math.random(-350, 350) / 100) * euler(math.rad(math.random(-180, 180)), math.rad(math.random(-60, 60)), math.rad(math.random(-180, 180))), math.random(5, 7), math.random(7, 9), math.random(7, 9), 0.1, 0.1, 0.1, 0.05)
  3892. end
  3893. StunT.Value = StunT.Value - 10
  3894. passive2.Value = passive2.Value + 0.15
  3895. print("officialend")
  3896. Thing[1].Parent = nil
  3897. if Thing[5].Parent ~= nil then
  3898. Thing[5].Parent.Parent = nil
  3899. end
  3900. table.remove(Effects, e)
  3901. for i = 1, #walls do
  3902. if walls[i] == Thing[1] then
  3903. table.remove(walls, i)
  3904. end
  3905. end
  3906. do
  3907. if Thing[2] == "BloodBind" then
  3908. if Thing[4].Parent == nil or Thing[4] == nil or Thing[4].Parent.Parent == nil then
  3909. table.remove(Effects, e)
  3910. BoundTarget = nil
  3911. move2 = "(X)\nBlood Bind"
  3912. else
  3913. Thing[5] = Thing[5] * euler(0, 0.2, 0)
  3914. if 5 <= Thing[3] then
  3915. Thing[3] = 0
  3916. for i = 1.57, 6.28 do
  3917. MagicBlock(BrickColor.new(NewCol), cf(Thing[4].Position) * Thing[5] * euler(0, i, 0) * cf(0, 0, 5), 1, 1, 1, 1, 1, 1, 0.1, 1)
  3918. end
  3919. end
  3920. do
  3921. do
  3922. Thing[3] = Thing[3] + 1
  3923. if cooldownmax / 2 < cooldowns[2] then
  3924. table.remove(Effects, e)
  3925. cooldownsadd[2] = 0.2
  3926. BoundTarget = nil
  3927. move2 = "(X)\nBlood Bind"
  3928. end
  3929. if Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Wall" and Thing[2] ~= "BloodBind" then
  3930. if Thing[1].Transparency <= 1 then
  3931. if Thing[2] == "Block1" then
  3932. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3933. Mesh = Thing[7]
  3934. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3935. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3936. else
  3937. if Thing[2] == "Ice" then
  3938. if Thing[6] <= Thing[5] then
  3939. Thing[6] = Thing[6] + 0.3
  3940. Thing[1].CFrame = Thing[1].CFrame * cf(0, 1, 0)
  3941. else
  3942. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3943. end
  3944. else
  3945. if Thing[2] == "Shatter" then
  3946. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3947. Thing[4] = Thing[4] * cf(0, Thing[7], 0)
  3948. Thing[1].CFrame = Thing[4] * euler(Thing[6], 0, 0)
  3949. Thing[6] = Thing[6] + Thing[5]
  3950. else
  3951. if Thing[2] == "Block2" then
  3952. Thing[1].CFrame = Thing[1].CFrame
  3953. Mesh = Thing[7]
  3954. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3955. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3956. else
  3957. if Thing[2] == "Cylinder" then
  3958. Mesh = Thing[7]
  3959. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3960. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3961. else
  3962. if Thing[2] == "Blood" then
  3963. Mesh = Thing[7]
  3964. Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0)
  3965. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  3966. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3967. else
  3968. if Thing[2] == "Elec" then
  3969. Mesh = Thing[7]
  3970. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  3971. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3972. else
  3973. if Thing[2] == "Disappear" then
  3974. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3975. end
  3976. end
  3977. end
  3978. end
  3979. end
  3980. end
  3981. end
  3982. end
  3983. else
  3984. Part.Parent = nil
  3985. table.remove(Effects, e)
  3986. end
  3987. end
  3988. -- DECOMPILER ERROR at PC4454: LeaveBlock: unexpected jumping out DO_STMT
  3989.  
  3990. -- DECOMPILER ERROR at PC4454: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  3991.  
  3992. -- DECOMPILER ERROR at PC4454: LeaveBlock: unexpected jumping out IF_STMT
  3993.  
  3994. -- DECOMPILER ERROR at PC4454: LeaveBlock: unexpected jumping out IF_THEN_STMT
  3995.  
  3996. -- DECOMPILER ERROR at PC4454: LeaveBlock: unexpected jumping out IF_STMT
  3997.  
  3998. -- DECOMPILER ERROR at PC4454: LeaveBlock: unexpected jumping out DO_STMT
  3999.  
  4000. -- DECOMPILER ERROR at PC4454: LeaveBlock: unexpected jumping out DO_STMT
  4001.  
  4002. -- DECOMPILER ERROR at PC4454: LeaveBlock: unexpected jumping out IF_ELSE_STMT
  4003.  
  4004. -- DECOMPILER ERROR at PC4454: LeaveBlock: unexpected jumping out IF_STMT
  4005.  
  4006. -- DECOMPILER ERROR at PC4454: LeaveBlock: unexpected jumping out IF_THEN_STMT
  4007.  
  4008. -- DECOMPILER ERROR at PC4454: LeaveBlock: unexpected jumping out IF_STMT
  4009.  
  4010. -- DECOMPILER ERROR at PC4454: LeaveBlock: unexpected jumping out IF_THEN_STMT
  4011.  
  4012. -- DECOMPILER ERROR at PC4454: LeaveBlock: unexpected jumping out IF_STMT
  4013.  
  4014. -- DECOMPILER ERROR at PC4454: LeaveBlock: unexpected jumping out IF_THEN_STMT
  4015.  
  4016. -- DECOMPILER ERROR at PC4454: LeaveBlock: unexpected jumping out IF_STMT
  4017.  
  4018. end
  4019. end
  4020. end
  4021. end
  4022. end
  4023. end
  4024. end
  4025. end
  4026. end
  4027. end
  4028. end
  4029. end
  4030. fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true)
  4031. fenbarmana4.Text = "Mana(" .. mana.Value .. ")"
  4032. fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0)
  4033. fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true)
  4034. fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
  4035. fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4036. fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4037. fenbarmove2.Text = move2
  4038. fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4039. fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4040. for _,c in pairs(Decrease:children()) do
  4041. if (c:findFirstChild("Duration")) ~= nil then
  4042. c.Duration.Value = c.Duration.Value - 1
  4043. if c.Duration.Value <= 0 then
  4044. c.Parent = nil
  4045. end
  4046. end
  4047. if c.Name == "DecreaseAtk" then
  4048. decreaseatk = decreaseatk + c.Value
  4049. else
  4050. if c.Name == "DecreaseDef" then
  4051. decreasedef = decreasedef + c.Value
  4052. else
  4053. if c.Name == "DecreaseMvmt" then
  4054. decreasemvmt = decreasemvmt + c.Value
  4055. end
  4056. end
  4057. end
  4058. end
  4059. Atk.Value = 1 - (decreaseatk)
  4060. if Atk.Value <= 0 then
  4061. Atk.Value = 0
  4062. end
  4063. Def.Value = 1 - (decreasedef)
  4064. if Def.Value <= 0 then
  4065. Def.Value = 0.01
  4066. end
  4067. Mvmt.Value = 1 - (decreasemvmt)
  4068. if Mvmt.Value <= 0 then
  4069. Mvmt.Value = 0
  4070. end
  4071. decreaseatk = 0
  4072. decreasedef = 0
  4073. decreasemvmt = 0
  4074. AtkVal = Atk.Value * 100
  4075. AtkVal = math.floor(AtkVal)
  4076. AtkVal = AtkVal / 100
  4077. fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
  4078. DefVal = Def.Value * 100
  4079. DefVal = math.floor(DefVal)
  4080. DefVal = DefVal / 100
  4081. fenbardef.Text = "Defense\n(" .. DefVal .. ")"
  4082. MvmtVal = Mvmt.Value * 100
  4083. MvmtVal = math.floor(MvmtVal)
  4084. MvmtVal = MvmtVal / 100
  4085. if Rooted.Value == true then
  4086. MvmtVal = 0
  4087. end
  4088. fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
  4089. if StunT.Value <= Stun.Value then
  4090. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true)
  4091. else
  4092. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true)
  4093. end
  4094. fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
  4095. if 100 <= mana.Value then
  4096. mana.Value = 100
  4097. else
  4098. if mananum <= 9 then
  4099. mananum = mananum + 1
  4100. else
  4101. if 8 <= mananum then
  4102. mananum = 0
  4103. mana.Value = mana.Value + 1
  4104. end
  4105. end
  4106. end
  4107. for i = 1, #cooldowns do
  4108. if cooldownmax <= cooldowns[i] then
  4109. cooldowns[i] = cooldownmax
  4110. else
  4111. cooldowns[i] = cooldowns[i] + cooldownsadd[i]
  4112. end
  4113. end
  4114. -- DECOMPILER ERROR at PC4819: LeaveBlock: unexpected jumping out DO_STMT
  4115.  
  4116. end
  4117. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement