Legendofawesomeness3

Dominus

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