Advertisement
Dark_EccentricYT

Untitled

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