Advertisement
killerboy634

admnabuse10101010

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