Advertisement
Dark_EccentricYT

Untitled

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