Advertisement
nycosar14

Untitled

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