Advertisement
RealPieDiePew

donald trump strife script

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