Dark_EccentricYT

Untitled

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