DANIOS

dreamer

Apr 1st, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 214.94 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. mr2 = math.random
  24. necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  25. necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  26. LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  27. LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  28. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  29. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  30. RootPart = Character.HumanoidRootPart
  31. RootJoint = RootPart.RootJoint
  32. RootCF = euler(-1.57, 0, 3.14)
  33. attack = false
  34. attackdebounce = false
  35. MMouse = Player:GetMouse()
  36. combo = 0
  37. local hitfloor, posfloor = nil, nil
  38. local idle = 0
  39. local Anim = "Idle"
  40. local Effects = {}
  41. local Weapon = {}
  42. local Welds = {}
  43. local Saber = {}
  44. local Buster = {}
  45. local decreaseatk = 0
  46. local decreasedef = 0
  47. local decreasemvmt = 0
  48. local manainc = 16
  49. local handle = nil
  50. local floating = false
  51. local testpart = it("Part")
  52. testpart.Anchored = true
  53. local Mode = "Normal"
  54. local cbuster = false
  55. local cshoot = false
  56. local cdebounce = false
  57. local sbreaker = false
  58. local shockshoot = false
  59. local shockdebounce = false
  60. local TehM = nil
  61. local sblazing = false
  62. local starshoot = false
  63. local stardebounce = false
  64. local busterlaser = false
  65. local sbreakerII = false
  66. local galacblazing = false
  67. local prising = false
  68. local move1 = "(Z)\nChaos Buster"
  69. local move2 = "(X)\nShocker Breaker"
  70. local move3 = "(C)\nStar Blazing"
  71. local move4 = "(V)\nRainbow Beam"
  72. local cooldowns = {}
  73. local cooldown1 = 100
  74. table.insert(cooldowns, cooldown1)
  75. local cooldown2 = 100
  76. table.insert(cooldowns, cooldown2)
  77. local cooldown3 = 100
  78. table.insert(cooldowns, cooldown3)
  79. local cooldown4 = 100
  80. table.insert(cooldowns, cooldown4)
  81. local cooldownsadd = {}
  82. local cooldownadd1 = 0.16
  83. table.insert(cooldownsadd, cooldownadd1)
  84. local cooldownadd2 = 0.14
  85. table.insert(cooldownsadd, cooldownadd2)
  86. local cooldownadd3 = 0.12
  87. table.insert(cooldownsadd, cooldownadd3)
  88. local cooldownadd4 = 0.1
  89. table.insert(cooldownsadd, cooldownadd4)
  90. local cooldownmax = 100
  91. player = nil
  92. RSH = nil
  93. LSH = nil
  94. RW = Instance.new("Motor")
  95. LW = Instance.new("Motor")
  96. RW.Name = "Right Shoulder"
  97. LW.Name = "Left Shoulder"
  98. LH = Torso["Left Hip"]
  99. RH = Torso["Right Hip"]
  100. TorsoColor = Torso.BrickColor
  101. NewCol = BrickColor.new("Ghost grey").Color
  102. NewCol2 = BrickColor.new("Smoky grey").Color
  103. NewCol3 = BrickColor.new("Pearl").Color
  104.  
  105. for i,v in pairs(Character:children()) do
  106. if v.Name=="Glaciem" then
  107. v:Destroy()
  108. end
  109. end
  110.  
  111. for i,v in pairs(Backpack:children()) do
  112. if v.Name=="Glaciem" then
  113. v:Destroy()
  114. end
  115. end
  116.  
  117. local mdec = Instance.new("NumberValue", Decrease)
  118. mdec.Name = "DecreaseDef"
  119. mdec.Value = 0.4
  120. local mdec2 = Instance.new("NumberValue", Decrease)
  121. mdec2.Name = "DecreaseMvmt"
  122. mdec2.Value = 0.1
  123. local Neons = {BrickColor.new("Bright red"), BrickColor.new("Bright orange"), BrickColor.new("Bright yellow"), BrickColor.new("Bright green"), BrickColor.new("Bright blue"), BrickColor.new("Royal purple"), BrickColor.new("Bright violet")}
  124. local Animate = Humanoid.Animator
  125. local canjump = true
  126.  
  127. removeControl = function()
  128. canjump = false
  129. end
  130.  
  131. resumeControl = function()
  132. canjump = true
  133. end
  134.  
  135. Player.Character.Humanoid.Changed:connect(function()
  136. if canjump == false then
  137. Player.Character.Humanoid.Jump = false
  138. end
  139. end
  140. )
  141.  
  142. ArtificialHB = Instance.new("BindableEvent", script)
  143. ArtificialHB.Name = "Heartbeat"
  144.  
  145. script:WaitForChild("Heartbeat")
  146.  
  147. frame = 1 / 40
  148. tf = 0
  149. allowframeloss = true
  150. tossremainder = false
  151. lastframe = tick()
  152. script.Heartbeat:Fire()
  153.  
  154. game:GetService("RunService").Heartbeat:connect(function(s, p)
  155. tf = tf + s
  156. if tf >= frame then
  157. if allowframeloss then
  158. script.Heartbeat:Fire()
  159. lastframe = tick()
  160. else
  161. for i = 1, math.floor(tf / frame) do
  162. script.Heartbeat:Fire()
  163. end
  164. lastframe = tick()
  165. end
  166. if tossremainder then
  167. tf = 0
  168. else
  169. tf = tf - frame * math.floor(tf / frame)
  170. end
  171. end
  172. end)
  173.  
  174. function swait(num)
  175. if num == 0 or num == nil then
  176. ArtificialHB.Event:wait()
  177. else
  178. for i = 0, num do
  179. ArtificialHB.Event:wait()
  180. end
  181. end
  182. end
  183.  
  184. createpassgui = function(parent)
  185. print("makegui111")
  186. local g = Instance.new("ScreenGui", parent)
  187. local f = Instance.new("Frame", g)
  188. f.Position = UDim2.new(0.3, 0, 0.25, 0)
  189. f.Size = UDim2.new(0.4, 0, 0.4, 0)
  190. f.Style = "DropShadow"
  191. local t = Instance.new("TextBox", f)
  192. t.BackgroundColor3 = Color3.new(0, 0, 0)
  193. t.BackgroundTransparency = 0.5
  194. t.BorderSizePixel = 0
  195. t.Position = UDim2.new(0.15, 0, 0.2, 0)
  196. t.Size = UDim2.new(0.7, 0, 0.2, 0)
  197. t.Font = "SourceSansLight"
  198. t.Text = "Enter Access Code."
  199. t.TextScaled = true
  200. t.TextColor3 = Color3.new(1, 1, 1)
  201. t.TextStrokeTransparency = 0
  202. local t2 = Instance.new("TextButton", f)
  203. t2.BackgroundColor3 = Color3.new(0, 0, 0)
  204. t2.BackgroundTransparency = 0.5
  205. t2.BorderSizePixel = 0
  206. t2.Position = UDim2.new(0.3, 0, 0.5, 0)
  207. t2.Size = UDim2.new(0.4, 0, 0.15, 0)
  208. t2.TextScaled = true
  209. t2.Font = "SourceSansLight"
  210. t2.Text = "Submit"
  211. t2.TextColor3 = Color3.new(1, 1, 1)
  212. t2.TextStrokeTransparency = 0
  213. print("done1")
  214. return t2
  215. end
  216.  
  217.  
  218.  
  219. for i,v in pairs(Character:children()) do
  220. if v.Name=="Glaciem" then
  221. v:Destroy()
  222. end
  223. end
  224.  
  225. for i,v in pairs(Backpack:children()) do
  226. if v.Name=="Glaciem" then
  227. v:Destroy()
  228. end
  229. end
  230.  
  231. if Character:findFirstChild("Handles", true) ~= nil then
  232. Character:findFirstChild("Handles", true).Parent = nil
  233. end
  234. if Character:findFirstChild("Chaos Saber", true) ~= nil then
  235. Character:findFirstChild("Chaos Saber", true).Parent = nil
  236. end
  237. if Character:findFirstChild("Chaos Buster", true) ~= nil then
  238. Character:findFirstChild("Chaos Buster", true).Parent = nil
  239. end
  240. if Character:findFirstChild("Chaos Buster Rainbow", true) ~= nil then
  241. Character:findFirstChild("Chaos Buster Rainbow", true).Parent = nil
  242. end
  243. if Character:findFirstChild("Effects", true) ~= nil then
  244. Character:findFirstChild("Effects", true).Parent = nil
  245. end
  246. if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then
  247. Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil
  248. end
  249. if Character:findFirstChild("Stats", true) ~= nil then
  250. Character:findFirstChild("Stats", true).Parent = nil
  251. end
  252. local Stats = Instance.new("BoolValue")
  253. Stats.Name = "Stats"
  254. Stats.Parent = Character
  255. local Atk = Instance.new("NumberValue")
  256. Atk.Name = "Damage"
  257. Atk.Parent = Stats
  258. Atk.Value = 1
  259. local Def = Instance.new("NumberValue")
  260. Def.Name = "Defense"
  261. Def.Parent = Stats
  262. Def.Value = 1
  263. local Mvmt = Instance.new("NumberValue")
  264. Mvmt.Name = "Movement"
  265. Mvmt.Parent = Stats
  266. Mvmt.Value = 1
  267. local Block = Instance.new("BoolValue")
  268. Block.Name = "Block"
  269. Block.Parent = Stats
  270. Block.Value = false
  271. local Stun = Instance.new("NumberValue")
  272. Stun.Name = "Stun"
  273. Stun.Parent = Stats
  274. Stun.Value = 0
  275. local StunT = Instance.new("NumberValue")
  276. StunT.Name = "StunThreshold"
  277. StunT.Parent = Stats
  278. StunT.Value = 80
  279. local Rooted = Instance.new("BoolValue")
  280. Rooted.Name = "Rooted"
  281. Rooted.Parent = Stats
  282. Rooted.Value = false
  283. local Stunned = Instance.new("BoolValue")
  284. Stunned.Name = "Stunned"
  285. Stunned.Parent = Stats
  286. Stunned.Value = false
  287. local Stagger = Instance.new("BoolValue")
  288. Stagger.Name = "Stagger"
  289. Stagger.Parent = Stats
  290. Stagger.Value = false
  291. local StaggerHit = Instance.new("BoolValue")
  292. StaggerHit.Name = "StaggerHit"
  293. StaggerHit.Parent = Stats
  294. StaggerHit.Value = false
  295. local RecentEnemy = Instance.new("ObjectValue")
  296. RecentEnemy.Name = "RecentEnemy"
  297. RecentEnemy.Parent = Stats
  298. RecentEnemy.Value = nil
  299. local Decrease = Instance.new("BoolValue")
  300. Decrease.Name = "Decrease"
  301. Decrease.Parent = Stats
  302. Decrease.Value = false
  303. local mana = Instance.new("NumberValue")
  304. mana.Name = "Mana"
  305. mana.Parent = Stats
  306. mana.Value = 0
  307. local passive1 = Instance.new("NumberValue", Decrease)
  308. passive1.Name = "DecreaseMvmt"
  309. passive1.Value = -0.1
  310. local passive2 = Instance.new("NumberValue", Decrease)
  311. passive2.Name = "DecreaseDef"
  312. passive2.Value = 0
  313. NoOutline = function(Part)
  314. Part.TopSurface = 10
  315. end
  316.  
  317. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  318. local fp = it("Part")
  319. fp.formFactor = formfactor
  320. fp.Parent = parent
  321. fp.Reflectance = reflectance
  322. fp.Transparency = transparency
  323. fp.CanCollide = false
  324. fp.Locked = true
  325. fp.BrickColor = brickcolor
  326. fp.Name = name
  327. fp.Size = size
  328. fp.Position = Torso.Position
  329. NoOutline(fp)
  330. fp.Material = "SmoothPlastic"
  331. fp:BreakJoints()
  332. return fp
  333. end
  334.  
  335. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  336. local mesh = it(Mesh)
  337. mesh.Parent = part
  338. if Mesh == "SpecialMesh" then
  339. mesh.MeshType = meshtype
  340. if meshid ~= "nil" then
  341. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  342. end
  343. end
  344. mesh.Offset = offset
  345. mesh.Scale = scale
  346. return mesh
  347. end
  348.  
  349. weld = function(parent, part0, part1, c0)
  350. local weld = it("Motor")
  351. weld.Parent = parent
  352. weld.Part0 = part0
  353. weld.Part1 = part1
  354. weld.C0 = c0
  355. return weld
  356. end
  357.  
  358. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  359. local gui = it(GuiType)
  360. gui.Parent = parent
  361. gui.Text = text
  362. gui.BackgroundTransparency = backtrans
  363. gui.BackgroundColor3 = backcol
  364. gui.SizeConstraint = "RelativeXY"
  365. gui.TextXAlignment = "Center"
  366. gui.TextYAlignment = "Center"
  367. gui.Position = pos
  368. gui.Size = size
  369. gui.Font = "SourceSans"
  370. gui.FontSize = "Size14"
  371. gui.TextWrapped = false
  372. gui.TextStrokeTransparency = 0
  373. gui.TextColor = BrickColor.new("White")
  374. return gui
  375. end
  376.  
  377. AesthPart = function(model, wldpar, reflec, trans, col, name, neon, meshh, mshtype, mshtxt, x1, y1, z1, ceef)
  378. prt = part(3, model, reflec, trans, BrickColor.new(col), name, vt())
  379. prt.Material = neon
  380. msh = mesh(meshh, prt, mshtype, mshtxt, vt(0, 0, 0), vt(x1, y1, z1))
  381. wld = weld(handle, prt, wldpar, ceef)
  382. v = it("NumberValue", prt)
  383. v.Value = trans
  384. v.Name = "MainTransparency"
  385. return prt, msh, wld
  386. end
  387.  
  388. local nr = NumberRange.new
  389. local ns = NumberSequence.new
  390. local cs = ColorSequence.new
  391. local nsk = NumberSequenceKeypoint.new
  392. particle = function(parent, col1, col2, lightemis, size, texture, transparency, zoffset, accel, drag, ltp, velinher, emisdir, enabled, lifetime, rate, rotation, rotspeed, speed, velspread)
  393. local fp = it("ParticleEmitter")
  394. fp.Parent = parent
  395. fp.Color = cs(col1, col2)
  396. fp.LightEmission = lightemis
  397. fp.Size = size
  398. fp.Texture = texture
  399. fp.Transparency = transparency
  400. fp.ZOffset = zoffset
  401. fp.Acceleration = accel
  402. fp.Drag = drag
  403. fp.LockedToPart = ltp
  404. fp.VelocityInheritance = velinher
  405. fp.EmissionDirection = emisdir
  406. fp.Enabled = enabled
  407. fp.Lifetime = lifetime
  408. fp.Rate = rate
  409. fp.Rotation = rotation
  410. fp.RotSpeed = rotspeed
  411. fp.Speed = speed
  412. fp.VelocitySpread = velspread
  413. return fp
  414. end
  415.  
  416. local Color1 = Torso.BrickColor
  417. local fengui = it("GuiMain")
  418. fengui.Parent = Player.PlayerGui
  419. fengui.Name = "WeaponGUI"
  420. local fenframe = it("Frame")
  421. fenframe.Parent = fengui
  422. fenframe.BackgroundColor3 = Color3.new(255, 255, 255)
  423. fenframe.BackgroundTransparency = 1
  424. fenframe.BorderColor3 = Color3.new(17, 17, 17)
  425. fenframe.Size = UDim2.new(0.1, 0, 0.1, 0)
  426. fenframe.Position = UDim2.new(0.95, 0, 0.7, 0)
  427. local fenframe2 = it("Frame")
  428. fenframe2.Parent = fengui
  429. fenframe2.BackgroundColor3 = Color3.new(255, 255, 255)
  430. fenframe2.BackgroundTransparency = 1
  431. fenframe2.BorderColor3 = Color3.new(17, 17, 17)
  432. fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0)
  433. fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0)
  434. local fenframe3 = it("Frame")
  435. fenframe3.Parent = fengui
  436. fenframe3.BackgroundColor3 = Color3.new(255, 255, 255)
  437. fenframe3.BackgroundTransparency = 1
  438. fenframe3.BorderColor3 = Color3.new(17, 17, 17)
  439. fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0)
  440. fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0)
  441. local fenframe4 = it("Frame")
  442. fenframe4.Parent = fengui
  443. fenframe4.BackgroundColor3 = Color3.new(255, 255, 255)
  444. fenframe4.BackgroundTransparency = 1
  445. fenframe4.BorderColor3 = Color3.new(17, 17, 17)
  446. fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0)
  447. fenframe4.Position = UDim2.new(0, 0, 0.7, 0)
  448. local pressedf = false
  449. local fenframe5 = it("Frame")
  450. fenframe5.Parent = fengui
  451. fenframe5.Parent = nil
  452. fenframe5.BackgroundColor3 = Color3.new(0, 0, 0)
  453. fenframe5.BackgroundTransparency = 1
  454. fenframe5.BorderColor3 = Color3.new(0, 0, 0)
  455. fenframe5.Size = UDim2.new(1, 0, 1, 0)
  456. fenframe5.Position = UDim2.new(0, 0, 0, 0)
  457. fenframe5.ZIndex = 2
  458. local tellbar = gui("TextLabel", fenframe5, "Press \'F\' to equip your weapon.", 1, Color3.new(0, 0, 0), UDim2.new(0.25, 0, 0.25, 0), UDim2.new(0.5, 0, 0.5, 0))
  459. tellbar.Font = "Arial"
  460. tellbar.TextScaled = true
  461. tellbar.TextTransparency = 1
  462. tellbar.TextStrokeTransparency = 1
  463. tellbar.ZIndex = 2
  464. local fnumb = 0
  465. local fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
  466. local fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
  467. local fenbarmana4 = gui("TextLabel", fenframe, "Mana(" .. mana.Value .. ")", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
  468. 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))
  469. 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))
  470. 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))
  471. 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))
  472. local fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  473. local fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  474. 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))
  475. 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))
  476. 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))
  477. 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))
  478. fenbarmove1.ZIndex = 2
  479. local fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  480. 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))
  481. fenbarmove2.ZIndex = 2
  482. local fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  483. 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))
  484. fenbarmove3.ZIndex = 2
  485. local fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  486. 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))
  487. fenbarmove4.ZIndex = 2
  488. local fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
  489. local handles = Instance.new("Model")
  490. handles.Parent = Character
  491. handles.Name = "Handles"
  492. local modelzorz = Instance.new("Model")
  493. modelzorz.Parent = Character
  494. modelzorz.Name = "Chaos Saber"
  495. local model2 = Instance.new("Model")
  496. model2.Parent = Character
  497. model2.Name = "Chaos Buster"
  498. local model3 = Instance.new("Model")
  499. model3.Parent = Character
  500. model3.Name = "Chaos Buster Rainbow"
  501. handle = part(3, handles, 0, 1, BrickColor.new(NewCol), "Handle", vt())
  502. local handle2 = part(3, handles, 0, 1, BrickColor.new(NewCol), "Handle2", vt())
  503. local handle3 = part(3, handles, 0, 1, BrickColor.new(NewCol3), "Handle3", vt())
  504. local handle3a = part(3, handles, 0, 1, BrickColor.new(NewCol3), "Handle3a", vt())
  505. local handle4 = part(3, model2, 0, 1, BrickColor.new(NewCol3), "Handle4", vt())
  506. local handle5 = part(3, model2, 0, 1, BrickColor.new(NewCol3), "Handle5", vt())
  507. local handle6 = part(3, model2, 0, 1, BrickColor.new(NewCol3), "Handle6", vt())
  508. local handle7 = part(3, model2, 0, 1, BrickColor.new(NewCol3), "Handle7", vt())
  509. local handle8 = part(3, model2, 0, 1, BrickColor.new(NewCol3), "Handle8", vt())
  510. local handle9 = part(3, model2, 0, 1, BrickColor.new(NewCol3), "Handle9", vt())
  511. local handle10 = part(3, model2, 0, 1, BrickColor.new(NewCol3), "Handle10", vt())
  512. hmsh3 = mesh("BlockMesh", handle3, "", "", vt(0, 0, 0), vt(25, 3, 1))
  513. hmsh4 = mesh("BlockMesh", handle4, "nil", "nil", vt(0, 0, 0), vt(0, 0, 0))
  514. hmsh5 = mesh("BlockMesh", handle5, "nil", "nil", vt(0, 0, 0), vt(0, 0, 0))
  515. hmsh6 = mesh("BlockMesh", handle6, "nil", "nil", vt(0, 0, 0), vt(0, 0, 0))
  516. hmsh7 = mesh("BlockMesh", handle7, "nil", "nil", vt(0, 0, 0), vt(0, 0, 0))
  517. hmsh8 = mesh("BlockMesh", handle8, "nil", "nil", vt(0, 0, 0), vt(0, 0, 0))
  518. hmsh9 = mesh("BlockMesh", handle9, "nil", "nil", vt(0, 0, 0), vt(0, 0, 0))
  519. hmsh10 = mesh("BlockMesh", handle10, "nil", "nil", vt(0, 0, 0), vt(0, 0, 0))
  520. local handlewld = weld(handle, handle, Torso, euler(0, 3.14, -2.6) * cf(0, 0, -0.6))
  521. local handlewld2 = weld(handle2, handle2, Torso, euler(0, 3.14, -2.6) * euler(0, 3.14, 0) * cf(0, 0, -0.6))
  522. local handlewld3 = weld(handle3, handle3, Torso, euler(1.57, 0, 0) * cf(-0.5, 0, 0) * euler(0, 0, -0.5) * cf(0, 0, -0.8))
  523. local handlewld3a = weld(handle3a, handle3a, handle3, cf(0, 0, 0))
  524. local handlewld4 = weld(handle4, handle4, handle3a, euler(0, 0, 0) * cf(0, 0, 0))
  525. local handlewld5 = weld(handle5, handle5, handle3a, euler(0, 0, 0) * cf(0, 0, 0))
  526. local handlewld6 = weld(handle6, handle6, handle5, cf(3.35, 0, -0.075))
  527. local handlewld7 = weld(handle7, handle7, handle4, cf(3.35, 0, 0.075))
  528. local handlewld8 = weld(handle8, handle8, handle6, cf(0.291, 0, 0))
  529. local handlewld9 = weld(handle9, handle9, handle7, cf(0.291, 0, 0))
  530. local handlewld10 = weld(handle10, handle10, handle3a, euler(0, mr(-90), 0) * cf(3.141, 0, 0))
  531. local main1, mmsh1, mwld1 = AesthPart(modelzorz, handle, 0, 0, NewCol, "Main1", "Neon", "BlockMesh", "nil", "nil", 0.8, 7, 0.65, cf(0, 0, 0))
  532. local main2, mmsh2, mwld2 = AesthPart(modelzorz, handle2, 0, 0, NewCol, "Main2", "Neon", "BlockMesh", "nil", "nil", 0.8, 7, 0.65, cf(0, 0, 0))
  533. local core1, cmsh1, cwld1 = AesthPart(modelzorz, main1, 0, 0, NewCol2, "Core1", "Neon", "SpecialMesh", "Sphere", "nil", 1.25, 0.75, 1, euler(0, 0, 0) * cf(0, -0.8, 0))
  534. local core2, cmsh2, cwld2 = AesthPart(modelzorz, main2, 0, 0, NewCol2, "Core2", "Neon", "SpecialMesh", "Sphere", "nil", 1.25, 0.75, 1, euler(0, 0, 0) * cf(0, -0.8, 0))
  535. local upper1, umsh1, uwld1 = AesthPart(modelzorz, core1, 0, 0, NewCol, "Upper1", "Neon", "SpecialMesh", "Sphere", "nil", 1.75, 0.9, 0.55, euler(0, 0, 0) * cf(0, -0.05, 0))
  536. local upper2, umsh2, uwld2 = AesthPart(modelzorz, core2, 0, 0, NewCol, "Upper1", "Neon", "SpecialMesh", "Sphere", "nil", 1.75, 0.9, 0.55, euler(0, 0, 0) * cf(0, -0.05, 0))
  537. RainbowVals = function(parent, sval, bval)
  538. d = it("NumberValue", parent)
  539. d.Name = "Size"
  540. d.Value = sval
  541. b = it("NumberValue", parent)
  542. b.Name = "Weld"
  543. b.Value = bval
  544. return d, b
  545. end
  546.  
  547. rmain1, rmrmsh1, rmwld1 = AesthPart(model3, handle4, 1, 0, NewCol, "RainbowMain", "Neon", "BlockMesh", "nil", "nil", 0, 0, 0, euler(0, 0, 0) * cf(0, 0, 0))
  548. rmain1a, rmrmsh1a, rmwld1a = AesthPart(model3, handle5, 1, 0, NewCol, "RainbowMaina", "Neon", "BlockMesh", "nil", "nil", 0, 0, 0, euler(0, 0, 0) * cf(0, 0, 0))
  549. rainbow1, rmsh1, rwld1 = AesthPart(model3, rmain1, 0, 0, Neons[7].Color, "Rainbow1", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3, euler(0, mr(90), 0) * cf(-1.55, 0, 0.1))
  550. rainbow1a, rmsh1a, rwld1a = AesthPart(model3, rmain1a, 0, 0, Neons[7].Color, "Rainbow1a", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3, euler(0, mr(90), 0) * cf(-1.55, 0, -0.1))
  551. rainbow2, rmsh2, rwld2 = AesthPart(model3, rmain1, 0, 0, Neons[6].Color, "Rainbow2", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(-0.875, 0, 0.1))
  552. rainbow2a, rmsh2a, rwld2a = AesthPart(model3, rmain1a, 0, 0, Neons[6].Color, "Rainbow2a", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(-0.875, 0, -0.1))
  553. rainbow3, rmsh3, rwld3 = AesthPart(model3, rmain1, 0, 0, Neons[5].Color, "Rainbow3", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(-0.125, 0, 0.1))
  554. rainbow3a, rmsh3a, rwld3a = AesthPart(model3, rmain1a, 0, 0, Neons[5].Color, "Rainbow3a", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(-0.125, 0, -0.1))
  555. rainbow4, rmsh4, rwld4 = AesthPart(model3, rmain1, 0, 0, Neons[4].Color, "Rainbow4", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 4, euler(0, mr(90), 0) * cf(0.65, 0, 0.1))
  556. rainbow4a, rmsh4a, rwld4a = AesthPart(model3, rmain1a, 0, 0, Neons[4].Color, "Rainbow4a", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 4, euler(0, mr(90), 0) * cf(0.65, 0, -0.1))
  557. rainbow5, rmsh5, rwld5 = AesthPart(model3, rmain1, 0, 0, Neons[3].Color, "Rainbow5", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(1.425, 0, 0.1))
  558. rainbow5a, rmsh5a, rwld5a = AesthPart(model3, rmain1a, 0, 0, Neons[3].Color, "Rainbow5a", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(1.425, 0, -0.1))
  559. rainbow6, rmsh6, rwld6 = AesthPart(model3, rmain1, 0, 0, Neons[2].Color, "Rainbow6", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(2.175, 0, 0.1))
  560. rainbow6a, rmsh6a, rwld6a = AesthPart(model3, rmain1a, 0, 0, Neons[2].Color, "Rainbow6a", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 3.75, euler(0, mr(90), 0) * cf(2.175, 0, -0.1))
  561. rainbow7, rmsh7, rwld7 = AesthPart(model3, rmain1, 0, 0, Neons[1].Color, "Rainbow7", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 2.99, euler(0, mr(90), 0) * cf(2.85, 0, 0.1))
  562. rainbow7a, rmsh7a, rwld7a = AesthPart(model3, rmain1a, 0, 0, Neons[1].Color, "Rainbow7a", "Neon", "BlockMesh", "nil", "nil", 2.5, 2.25, 2.99, euler(0, mr(90), 0) * cf(2.85, 0, -0.1))
  563. local rw1 = 0.32
  564. local rw2 = 0.395
  565. local rw3 = 0.295
  566. local rs1 = 3
  567. local rs2 = 3.75
  568. local rs3 = 4
  569. local rs4 = 2.99
  570. rmsh1.Scale = vt(2.5, 2.25, rs1 - rs1)
  571. rmsh1a.Scale = vt(2.5, 2.25, rs1 - rs1)
  572. rwld1.C0 = euler(0, mr(90), 0) * cf(-1.55 + rw1, 0, 0.1)
  573. rwld1a.C0 = euler(0, mr(90), 0) * cf(-1.55 + rw1, 0, -0.1)
  574. rmsh2.Scale = vt(2.5, 2.25, rs2 - rs2)
  575. rmsh2a.Scale = vt(2.5, 2.25, rs2 - rs2)
  576. rwld2.C0 = euler(0, mr(90), 0) * cf(-0.875 + rw2, 0, 0.1)
  577. rwld2a.C0 = euler(0, mr(90), 0) * cf(-0.875 + rw2, 0, -0.1)
  578. rmsh3.Scale = vt(2.5, 2.25, rs2 - rs2)
  579. rmsh3a.Scale = vt(2.5, 2.25, rs2 - rs2)
  580. rwld3.C0 = euler(0, mr(90), 0) * cf(-0.125 + rw2, 0, 0.1)
  581. rwld3a.C0 = euler(0, mr(90), 0) * cf(-0.125 + rw2, 0, -0.1)
  582. rmsh4.Scale = vt(2.5, 2.25, rs3 - rs3)
  583. rmsh4a.Scale = vt(2.5, 2.25, rs3 - rs3)
  584. rwld4.C0 = euler(0, mr(90), 0) * cf(0.65 + rw2, 0, 0.1)
  585. rwld4a.C0 = euler(0, mr(90), 0) * cf(0.65 + rw2, 0, -0.1)
  586. rmsh5.Scale = vt(2.5, 2.25, rs2 - rs2)
  587. rmsh5a.Scale = vt(2.5, 2.25, rs2 - rs2)
  588. rwld5.C0 = euler(0, mr(90), 0) * cf(1.425 + rw2, 0, 0.1)
  589. rwld5a.C0 = euler(0, mr(90), 0) * cf(1.425 + rw2, 0, -0.1)
  590. rmsh6.Scale = vt(2.5, 2.25, rs2 - rs2)
  591. rmsh6a.Scale = vt(2.5, 2.25, rs2 - rs2)
  592. rwld6.C0 = euler(0, mr(90), 0) * cf(2.175 + rw2, 0, 0.1)
  593. rwld6a.C0 = euler(0, mr(90), 0) * cf(2.175 + rw2, 0, -0.1)
  594. rmsh7.Scale = vt(2.5, 2.25, rs4 - rs4)
  595. rmsh7a.Scale = vt(2.5, 2.25, rs4 - rs4)
  596. rwld7.C0 = euler(0, mr(90), 0) * cf(2.85 + rw3, 0, 0.1)
  597. rwld7a.C0 = euler(0, mr(90), 0) * cf(2.85 + rw3, 0, -0.1)
  598. mwld1.C0 = cf(0, 2, 0)
  599. mwld2.C0 = cf(0, 2, 0)
  600. for i = -1, 1, 2 do
  601. thprt = main1
  602. thprt2 = core1
  603. thprt3 = upper1
  604. thprt4 = handle4
  605. thprt5 = handle6
  606. thprt6 = handle8
  607. if i == 1 then
  608. thprt = main2
  609. thprt2 = core2
  610. thprt3 = upper2
  611. thprt4 = handle5
  612. thprt5 = handle7
  613. thprt6 = handle9
  614. end
  615. prt = AesthPart(modelzorz, thprt, 0, 0, NewCol, "Part01", "Neon", "BlockMesh", "nil", "nil", 0.8, 7, 0.65, cf(0, 0, 0))
  616. prt = AesthPart(modelzorz, thprt, 0, 0, NewCol, "Part02", "Neon", "SpecialMesh", "Wedge", "nil", 0.65, 1.05, 0.5, euler(mr(90), mr(-90), 0) * cf(-0.025, 0.75, 0))
  617. prt = AesthPart(modelzorz, thprt, 0, 0, NewCol, "Part03", "Neon", "SpecialMesh", "Wedge", "nil", 0.65, 1.2, 0.25, euler(mr(-90), mr(-90), 0) * cf(-0.2, 0.675, 0))
  618. prt = AesthPart(modelzorz, thprt, 0, 0, NewCol, "Part04", "Neon", "SpecialMesh", "Wedge", "nil", 0.65, 0.95, 0.5, euler(mr(90), mr(90), 0) * cf(-0.225, 0.75, 0))
  619. for d = -1, 1, 2 do
  620. prt = AesthPart(modelzorz, thprt, 0, 0, NewCol, "Part05", "Neon", "SpecialMesh", "Wedge", "nil", 0.65, 2, 0.25, euler(mr(180.04), mr(90) * d, 0) * cf(0.075 * d, -0.5, 0))
  621. prt = AesthPart(modelzorz, thprt, 0, 0, NewCol, "Part06", "Neon", "SpecialMesh", "Wedge", "nil", 0.65, 1, 0.25, euler(mr(73), mr(-90) * d, 0) * cf(0.149 * d, -0.688, 0))
  622. end
  623. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol2, "Part07", "Neon", "SpecialMesh", "Sphere", "nil", 2, 1, 0.65, euler(0, 0, 0) * cf(0, -0.025, 0))
  624. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part08", "Neon", "BlockMesh", "nil", "nil", 0.5, 0.5, 0.75, euler(0, 0, 0) * cf(0, 0.025, 0))
  625. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part09", "Neon", "BlockMesh", "nil", "nil", 0.5, 0.25, 0.75, euler(0, 0, 0) * cf(0, -0.05, 0))
  626. for d = -1, 1, 2 do
  627. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part10", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 1, euler(0, mr(90) * d, 0) * cf(-0.15 * d, -0.05, 0))
  628. end
  629. for d = -1, 1, 2 do
  630. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part11", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 0.75, euler(mr(180), mr(90) * d, 0) * cf(0.125 * d, 0.05, 0))
  631. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part12", "Neon", "BlockMesh", "nil", "nil", 0.75, 0.25, 0.75, euler(mr(0), mr(90) * d, 0) * cf(0.125 * d, 0, 0))
  632. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part13", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 0.5, euler(mr(180), mr(90) * d, 0) * cf(0.25 * d, 0, 0))
  633. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part14", "Neon", "BlockMesh", "nil", "nil", 0.5, 0.25, 0.75, euler(mr(0), mr(0) * d, 0) * cf(0.25 * d, -0.05, 0))
  634. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part15", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.5, 0.5, euler(mr(180), mr(90) * d, 0) * cf(0.35 * d, -0.075, 0))
  635. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part16", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.75, 0.25, euler(mr(180), mr(90) * d, 0) * cf(0.425 * d, -0.2, 0))
  636. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part17", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.75, 0.25, euler(mr(0), mr(-90) * d, 0) * cf(0.425 * d, -0.35, 0))
  637. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part18", "Neon", "BlockMesh", "nil", "nil", 0.5, 0.5, 0.75, euler(mr(0), mr(0) * d, 0) * cf(0.35 * d, -0.175, 0))
  638. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part19", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.5, 0.25, euler(mr(0), mr(-90) * d, 0) * cf(0.375 * d, -0.475, 0))
  639. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part20", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.375, 0.5, euler(mr(180), mr(-90) * d, 0) * cf(0.3 * d, -0.462, 0))
  640. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part21", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.125, 0.5, euler(mr(0), mr(90) * d, 0) * cf(0.3 * d, -0.512, 0))
  641. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part22", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 1.5, euler(mr(90), mr(90) * d, 0) * cf(0.375 * d, -0.275, 0))
  642. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part23", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 1, 0.5, euler(mr(0), mr(90) * d, 0) * cf(0.35 * d, -0.325, 0))
  643. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part24", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.75, 0.5, euler(mr(0), mr(90) * d, 0) * cf(0.25 * d, -0.15, 0))
  644. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part25", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 1, euler(mr(0), mr(90) * d, 0) * cf(0.1 * d, -0.05, 0))
  645. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part26", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 1, euler(mr(65), mr(-90) * d, 0) * cf(0.294 * d, 0.035, 0))
  646. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part27", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 0.5, euler(mr(115), mr(90) * d, 0) * cf(0.217 * d, -0.012, 0))
  647. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part28", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 1.25, euler(mr(155), mr(90) * d, 0) * cf(0.431 * d, -0.205, 0))
  648. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part29", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 1.25, euler(mr(25), mr(-90) * d, 0) * cf(0.498 * d, -0.229, 0))
  649. prt = AesthPart(modelzorz, thprt2, 0, 0, NewCol, "Part30", "Neon", "SpecialMesh", "Wedge", "nil", 0.75, 0.25, 0.75, euler(mr(195), mr(90) * d, 0) * cf(0.434 * d, -0.387, 0))
  650. end
  651. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part31", "Neon", "SpecialMesh", "Torso", "nil", 1, 3, 0.35, euler(mr(180), 0, 0) * cf(0, -0.35, 0))
  652. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part32", "Neon", "BlockMesh", "nil", "nil", 2, 7, 0.35, euler(0, 0, 0) * cf(0.1, -1.35, 0))
  653. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part33", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 1.5, euler(mr(180), mr(90), 0) * cf(0.15, -0.625, 0))
  654. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part34", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 1.5, euler(mr(0), mr(90), 0) * cf(0.05, -2.075, 0))
  655. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part35", "Neon", "BlockMesh", "nil", "nil", 1, 2, 0.35, euler(0, 0, 0) * cf(0.2, -2.25, 0))
  656. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part36", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 2, euler(mr(-90), mr(90), 0) * cf(0.275, -2.65, 0))
  657. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part37", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 1.5, euler(mr(-90), mr(90), 0) * cf(0.225, -3, 0))
  658. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part38", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.5, 1.5, euler(mr(-90), mr(90), 0) * cf(0.15, -3.3, 0))
  659. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part39", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.5, 1, euler(mr(-90), mr(90), 0) * cf(0.05, -3.55, 0))
  660. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part40", "Neon", "BlockMesh", "nil", "nil", 0.25, 2, 0.35, euler(0, 0, 0) * cf(0.225, -2.65, 0))
  661. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part41", "Neon", "BlockMesh", "nil", "nil", 0.25, 1.5, 0.35, euler(0, 0, 0) * cf(0.175, -3, 0))
  662. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part42", "Neon", "BlockMesh", "nil", "nil", 0.25, 0.75, 0.35, euler(0, 0, 0) * cf(0.075, -3.375, 0))
  663. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part43", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.5, 1, euler(mr(-90), mr(-90), 0) * cf(0.15, -2.55, 0))
  664. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part44", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 2, euler(mr(90), mr(90), 0) * cf(0.175, -2.65, 0))
  665. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part45", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 1.5, euler(mr(90), mr(90), 0) * cf(0.125, -3, 0))
  666. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part46", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 0.75, euler(mr(90), mr(90), 0) * cf(0.075, -3.225, 0))
  667. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part47", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 0.75, euler(mr(90), mr(90), 0) * cf(0.025, -3.375, 0))
  668. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part48", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.5, 1, euler(mr(-90), mr(-90), 0) * cf(-0.025, -3.475, 0))
  669. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part49", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 1, euler(mr(-90), mr(-90), 0) * cf(-0.1, -3.275, 0))
  670. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part50", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 1.5, euler(mr(-90), mr(-90), 0) * cf(-0.15, -3.025, 0))
  671. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part51", "Neon", "BlockMesh", "nil", "nil", 0.25, 1, 0.35, euler(0, mr(0), 0) * cf(-0.15, -2.775, 0))
  672. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part52", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.5, 0.75, euler(mr(90), mr(90), 0) * cf(-0.125, -2.6, 0))
  673. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part53", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 1.25, 1, euler(mr(90), mr(90), 0) * cf(0.05, -2.425, 0))
  674. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part54", "Neon", "BlockMesh", "nil", "nil", 0.5, 0.5, 0.35, euler(0, mr(0), 0) * cf(-0.025, -2.575, 0))
  675. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part55", "Neon", "BlockMesh", "nil", "nil", 0.25, 0.75, 0.35, euler(0, mr(0), 0) * cf(-0.1, -3.1, 0))
  676. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part56", "Neon", "BlockMesh", "nil", "nil", 0.25, 0.75, 0.35, euler(0, mr(0), 0) * cf(-0.05, -3.3, 0))
  677. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part57", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 1.25, 0.5, euler(mr(-90), mr(90), 0) * cf(0.15, -2.575, 0))
  678. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part58", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.5, 0.25, euler(mr(-90), mr(90), 0) * cf(-0.025, -2.65, 0))
  679. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part59", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.5, 2, euler(mr(-90), mr(90), 0) * cf(-0.075, -2.85, 0))
  680. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part60", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 2, euler(mr(90), mr(-90), 0) * cf(-0.1, -2.825, 0))
  681. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part61", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 1, euler(mr(90), mr(-90), 0) * cf(-0.05, -3.125, 0))
  682. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part62", "Neon", "SpecialMesh", "Wedge", "nil", 0.35, 0.25, 0.75, euler(mr(90), mr(-90), 0) * cf(0, -3.3, 0))
  683. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part63", "Neon", "BlockMesh", "nil", "nil", 0.25, 1.75, 0.25, euler(0, mr(0), mr(90)) * cf(0.05, -2.75, 0))
  684. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part64", "Neon", "BlockMesh", "nil", "nil", 0.25, 1.75, 0.25, euler(0, mr(0), mr(90)) * cf(0.05, -2.925, 0))
  685. prt = AesthPart(modelzorz, thprt3, 0, 0, NewCol, "Part65", "Neon", "BlockMesh", "nil", "nil", 0.25, 1.5, 0.25, euler(0, mr(0), mr(90)) * cf(0.05, -3.1, 0))
  686. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part01", "Neon", "BlockMesh", "nil", "nil", 1.75, 2.5, 0.25, euler(0, mr(90), 0) * cf(2.55, 0, -0.175 * i))
  687. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part02", "Neon", "BlockMesh", "nil", "nil", 1.75, 2.5, 0.25, euler(0, mr(90), 0) * cf(1.8, 0, -0.175 * i))
  688. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part03", "Neon", "BlockMesh", "nil", "nil", 1.75, 2.5, 0.25, euler(0, mr(90), 0) * cf(1.05, 0, -0.175 * i))
  689. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part04", "Neon", "BlockMesh", "nil", "nil", 1.75, 2.5, 0.25, euler(0, mr(90), 0) * cf(0.25, 0, -0.175 * i))
  690. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part05", "Neon", "BlockMesh", "nil", "nil", 1.75, 2.5, 0.25, euler(0, mr(90), 0) * cf(-0.5, 0, -0.175 * i))
  691. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part06", "Neon", "BlockMesh", "nil", "nil", 1.75, 2.5, 0.25, euler(0, mr(90), 0) * cf(-1.25, 0, -0.175 * i))
  692. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part07", "Neon", "BlockMesh", "nil", "nil", 25, 3, 1, euler(0, 0, 0) * cf(0.65, 0, -0.45 * i))
  693. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part08", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.5, 5, euler(0, mr(-90), 0) * euler(mr(-90) * i, 0, 0) * cf(2.65, 0, -0.6 * i))
  694. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part09", "Neon", "BlockMesh", "nil", "nil", 15, 3, 0.5, euler(0, 0, 0) * cf(0.65, 0, -0.6 * i))
  695. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part10", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.5, 5, euler(0, mr(90), 0) * euler(mr(-90) * i, 0, 0) * cf(-1.35, 0, -0.6 * i))
  696. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part11", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.25, 5, euler(0, mr(-90), 0) * euler(mr(-90) * i, 0, 0) * cf(1.65, 0, -0.675 * i))
  697. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part12", "Neon", "BlockMesh", "nil", "nil", 5, 3, 0.25, euler(0, 0, 0) * cf(0.65, 0, -0.675 * i))
  698. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part13", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.25, 5, euler(0, mr(90), 0) * euler(mr(-90) * i, 0, 0) * cf(-0.35, 0, -0.675 * i))
  699. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part14", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.25, 5, euler(0, mr(90), 0) * euler(mr(90) * i, 0, 0) * cf(1.65, 0, -0.325 * i))
  700. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part15", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.75, 5, euler(0, mr(90), 0) * euler(mr(90) * i, 0, 0) * cf(2.65, 0, -0.225 * i))
  701. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part16", "Neon", "SpecialMesh", "Wedge", "nil", 3, 1.5, 2.5, euler(0, mr(90), 0) * euler(mr(90) * i, 0, 0) * cf(2.9, 0, -0.15 * i))
  702. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part17", "Neon", "BlockMesh", "nil", "nil", 5, 3, 0.25, euler(0, 0, 0) * cf(2.65, 0, -0.325 * i))
  703. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part18", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.75, 5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(-1.35, 0, -0.225 * i))
  704. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part19", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.25, 5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(-0.35, 0, -0.325 * i))
  705. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part20", "Neon", "SpecialMesh", "Wedge", "nil", 3, 1.5, 2.5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(-1.6, 0, -0.15 * i))
  706. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part21", "Neon", "BlockMesh", "nil", "nil", 5, 3, 0.25, euler(0, 0, 0) * cf(-1.35, 0, -0.325 * i))
  707. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part22", "Neon", "BlockMesh", "nil", "nil", 3, 1.05, 1.05, euler(mr(45), 0, mr(90)) * cf(3.15, 0, -0.15 * i))
  708. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part23", "Neon", "CylinderMesh", "nil", "nil", 1.5, 3, 1.5, euler(0, 0, 0) * cf(3.05, 0, -0.5 * i))
  709. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part24", "Neon", "BlockMesh", "nil", "nil", 1.25, 3, 1.25, euler(0, 0, 0) * cf(3.175, 0, -0.525 * i))
  710. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part25", "Neon", "SpecialMesh", "Wedge", "nil", 3, 1.25, 1.25, euler(0, mr(-90), 0) * euler(mr(-90) * i, 0, 0) * cf(3.425, 0, -0.525 * i))
  711. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part26", "Neon", "CylinderMesh", "nil", "nil", 5.5, 3, 0.5, euler(mr(90), 0, 0) * cf(2.925, 0, -0.8 * i))
  712. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part27", "Neon", "CylinderMesh", "nil", "nil", 5.5, 0.5, 0.5, euler(mr(90), 0, 0) * euler(0, mr(-45) * i, 0) * cf(2.89, 0, -1.135 * i))
  713. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part28", "Neon", "CylinderMesh", "nil", "nil", 5.5, 1.5, 0.5, euler(mr(90), 0, 0) * euler(0, mr(-90), 0) * cf(2.725, 0, -1.15 * i))
  714. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part29", "Neon", "BlockMesh", "nil", "nil", 3, 1.75, 1, euler(mr(90), 0, mr(90)) * cf(-1.95, 0, -0.175 * i))
  715. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part30", "Neon", "SpecialMesh", "Wedge", "nil", 3, 1, 1, euler(0, mr(90), 0) * euler(mr(-90) * i, 0, 0) * cf(-1.95, 0, -0.45 * i))
  716. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part31", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.25, 0.25, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(-1.375, 0, -0.7 * i))
  717. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part32", "Neon", "BlockMesh", "nil", "nil", 0.25, 1.5, 1.5, euler(0, mr(90), 0) * cf(-1.55, 0, -0.7 * i))
  718. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part33", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.5, 2.5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * euler(0, mr(-90) * i, 0) * cf(-1.65, 0, -0.7 * i))
  719. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part34", "Neon", "BlockMesh", "nil", "nil", 0.25, 1.5, 1.5, euler(0, mr(90), 0) * cf(-1.55, 0, -0.825 * i))
  720. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part35", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.25, 0.25, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(-1.375, 0, -0.825 * i))
  721. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part36", "Neon", "BlockMesh", "nil", "nil", 0.25, 1.5, 1.5, euler(0, mr(90), 0) * cf(-1.65, 0, -0.95 * i))
  722. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part37", "Neon", "SpecialMesh", "Torso", "nil", 2.5, 1, 1.5, euler(mr(90), mr(90), 0) * cf(-1.8, 0, -0.725 * i))
  723. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part38", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.25, 0.25, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(-1.475, 0, -0.95 * i))
  724. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part39", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.5, 0.5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(-1.6, 0, -1.2 * i))
  725. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part40", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.5, 1.5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * euler(0, mr(-90) * i, 0) * cf(-1.75, 0, -1.1 * i))
  726. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part41", "Neon", "SpecialMesh", "Torso", "nil", 2.5, 1, 1.5, euler(mr(90), mr(90), 0) * cf(-1.9, 0, -1.05 * i))
  727. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part42", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.5, 1, euler(0, mr(-90), 0) * euler(mr(-90) * i, 0, 0) * euler(0, mr(-150) * i, 0) * cf(-2.034, 0, -1.221 * i))
  728. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part43", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.25, 0.25, euler(0, mr(-90), 0) * euler(mr(-90) * i, 0, 0) * cf(-1.775, 0, -1.275 * i))
  729. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part44", "Neon", "BlockMesh", "nil", "nil", 0.5, 0.75, 1.5, euler(mr(90), mr(90), 0) * cf(-1.725, 0, -1.2 * i))
  730. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part45", "Neon", "SpecialMesh", "Wedge", "nil", 1.5, 0.5, 3, euler(0, mr(90), 0) * euler(mr(-90) * i, 0, 0) * euler(0, mr(55) * i, 0) * cf(-2.387, 0, -0.631 * i))
  731. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part46", "Neon", "BlockMesh", "nil", "nil", 1.5, 0.5, 2.5, euler(mr(90), 0, mr(90)) * cf(-2, 0, -0.4 * i))
  732. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part47", "Neon", "BlockMesh", "nil", "nil", 3, 0.75, 1.25, euler(mr(90), 0, mr(90)) * cf(-2.175, 0, -0.225 * i))
  733. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part48", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.75, 0.75, euler(0, mr(90), 0) * euler(mr(-90) * i, 0, 0) * cf(-2.375, 0, -0.225 * i))
  734. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part49", "Neon", "BlockMesh", "nil", "nil", 3, 0.5, 2.5, euler(mr(90), 0, mr(90)) * cf(-2.3, 0, -0.05 * i))
  735. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part50", "Neon", "SpecialMesh", "Wedge", "nil", 3, 0.5, 0.5, euler(0, mr(90), 0) * euler(mr(-90) * i, 0, 0) * cf(-2.6, 0, -0.05 * i))
  736. prt = AesthPart(model2, thprt4, 0, 0, NewCol3, "Part51", "Neon", "BlockMesh", "nil", "nil", 3, 0.25, 0.5, euler(0, 0, mr(90)) * cf(-2.125, 0, -0.15 * i))
  737. prt = AesthPart(model2, thprt5, 0, 0, NewCol3, "Part52", "Neon", "SpecialMesh", "Wedge", "nil", 1, 0.75, 0.75, euler(0, mr(90), 0) * euler(mr(-90) * i, 0, 0) * cf(0, 0, 0))
  738. prt = AesthPart(model2, thprt5, 0, 0, NewCol3, "Part53", "Neon", "SpecialMesh", "Wedge", "nil", 1, 0.25, 0.25, euler(0, mr(90), 0) * euler(mr(90) * i, 0, 0) * euler(0, mr(-45) * i, 0) * cf(0.212, 0, 0.212 * i))
  739. prt = AesthPart(model2, thprt5, 0, 0, NewCol3, "Part54", "Neon", "BlockMesh", "nil", "nil", 1, 0.255, 0.5, euler(0, 0, mr(90)) * euler(0, mr(-45) * i, 0) * cf(0.088, 0, 0.053 * i))
  740. prt = AesthPart(model2, thprt5, 0, 0, NewCol3, "Part55", "Neon", "SpecialMesh", "Wedge", "nil", 1, 0.2, 0.2, euler(0, mr(90), 0) * euler(mr(90) * i, 0, 0) * euler(0, mr(45) * i, 0) * cf(0.141, 0, -0.038 * i))
  741. prt = AesthPart(model2, thprt5, 0, 0, NewCol3, "Part56", "Neon", "SpecialMesh", "Wedge", "nil", 1, 0.5, 0.5, euler(0, mr(-90), 0) * euler(mr(-90) * i, 0, 0) * euler(0, mr(45) * i, 0) * cf(0.141, 0, 0))
  742. prt = AesthPart(model2, thprt6, 0, 0, NewCol3, "Part57", "Neon", "CylinderMesh", "nil", "nil", 0.7, 1, 0.7, euler(0, 0, 0) * cf(0, 0, 0))
  743. prt = AesthPart(model2, thprt6, 0, 0, NewCol3, "Part58", "Neon", "SpecialMesh", "Wedge", "nil", 0.5, 0.5, 0.5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * euler(0, mr(45) * i, 0) * cf(-0.029, 0, 0.026 * i))
  744. prt = AesthPart(model2, thprt5, 0, 0, NewCol3, "Part59", "Neon", "BlockMesh", "nil", "nil", 1, 1, 0.25, euler(0, mr(45) * i, 0) * cf(0.124, 0, 0.124 * i))
  745. prt = AesthPart(model2, thprt5, 0, 0, NewCol3, "Part60", "Neon", "BlockMesh", "nil", "nil", 1, 0.75, 0.2, euler(0, 0, mr(90)) * cf(0.216, 0, -0.05 * i))
  746. prt = AesthPart(model2, thprt6, 0, 0, NewCol3, "Part61", "Neon", "SpecialMesh", "Wedge", "nil", 0.5, 0.5, 0.5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(0, 0, 0.1 * i))
  747. prt = AesthPart(model2, thprt6, 0, 0, NewCol3, "Part62", "Neon", "SpecialMesh", "Wedge", "nil", 0.5, 0.4, 0.4, euler(0, mr(90), 0) * euler(mr(90) * i, 0, 0) * cf(0.15, 0, 0))
  748. prt = AesthPart(model2, thprt6, 0, 0, NewCol3, "Part63", "Neon", "SpecialMesh", "Wedge", "nil", 0.5, 0.4, 0.4, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(0.325, 0, 0))
  749. prt = AesthPart(model2, thprt6, 0, 0, NewCol3, "Part64", "Neon", "SpecialMesh", "Wedge", "nil", 0.5, 0.225, 1.5, euler(0, mr(-90), 0) * euler(mr(90) * i, 0, 0) * cf(0.475, 0, -0.038 * i))
  750. prt = AesthPart(model2, thprt6, 0, 0, NewCol3, "Part65", "Neon", "BlockMesh", "nil", "nil", 0.5, 1.5, 0.1, euler(0, 0, mr(90)) * cf(0.175, 0, -0.05 * i))
  751. end
  752. for _,c in pairs(modelzorz:children()) do
  753. table.insert(Weapon, c)
  754. table.insert(Saber, c)
  755. end
  756. for _,c in pairs(model2:children()) do
  757. table.insert(Weapon, c)
  758. table.insert(Buster, c)
  759. end
  760. for _,c in pairs(model3:children()) do
  761. c.Transparency = 1
  762. end
  763. rmwld1.C0 = cf(0, 0, 0)
  764. rmwld1a.C0 = cf(0, 0, 0)
  765. for _,c in pairs(handle:children()) do
  766. if c.className == "Motor" then
  767. table.insert(Welds, c)
  768. end
  769. end
  770. local hitbox = part(3, nil, 0, 1, BrickColor.new("Black"), "Hitbox", vt())
  771. hitbox.Anchored = true
  772. local hitboxCF = cf(0, 0, 0)
  773. sizeseq = ns({nsk(0, 0.3), nsk(0.25, 1), nsk(0.6, 0.2), nsk(1, 0)})
  774. transseq = ns({nsk(0, 0), nsk(0.8, 0.5), nsk(1, 1)})
  775. local starsparti = particle(Torso, Color3.new(1, 0, 0), Color3.new(0.3921568627451, 0.3921568627451, 1), 0.5, sizeseq, "http://www.roblox.com/asset/?id=146120327", transseq, 0, vt(0, 0, 0), 0, false, 0, "Top", false, nr(1, 1), 40, nr(-360, 360), nr(-200, 200), nr(8), 180)
  776. starsparti.Parent = Torso
  777. sizeseq = ns({nsk(0, 1), nsk(0.7, 6), nsk(1, 7)})
  778. transseq = ns({nsk(0, 0), nsk(1, 1)})
  779. local lparti1 = particle(Torso, Color3.new(1, 0, 0), Color3.new(0.3921568627451, 0.3921568627451, 1), 1, sizeseq, "http://www.roblox.com/asset/?id=243098098", transseq, 0, vt(0, 0, 0), 0, false, 0, "Top", false, nr(0.2, 0.2), 500, nr(-360, 360), nr(0, 0), nr(0), 0)
  780. lparti1.Parent = Torso
  781. sizeseq = ns({nsk(0, 0.5), nsk(1, 0.5)})
  782. transseq = ns({nsk(0, 0), nsk(1, 1)})
  783. local sparti = particle(Torso, Color3.new(1, 0, 0), Color3.new(0.3921568627451, 0.3921568627451, 1), 1, sizeseq, "http://www.roblox.com/asset/?id=82057200", transseq, 0, vt(0, 0, 0), 0, false, 0, "Top", false, nr(1, 1), 50, nr(-360, 360), nr(400, 500), nr(5), 180)
  784. sparti.Parent = Torso
  785. local effects = it("Model", modelzorz)
  786. effects.Name = "Effects"
  787. hboxpos = Instance.new("BodyPosition", nil)
  788. hboxpos.P = 2000
  789. hboxpos.D = 100
  790. hboxpos.maxForce = Vector3.new(545000, 545000, 545000)
  791. Tool = Instance.new("HopperBin")
  792. Tool.Parent = Backpack
  793. Tool.Name = "Dreamer"
  794. Bin = Tool
  795. local bodvel = Instance.new("BodyVelocity")
  796. local bg = Instance.new("BodyGyro")
  797. so = function(id, par, vol, pit)
  798. local sou = Instance.new("Sound", par or workspace)
  799. sou.Volume = vol
  800. sou.Pitch = pit or 1
  801. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  802. coroutine.resume(coroutine.create(function(Sound)
  803. swait()
  804. Sound:play()
  805. end
  806. ), sou)
  807. game:GetService("Debris"):AddItem(sou, 6)
  808. end
  809.  
  810. for i,v in pairs(Character:children()) do
  811. if v.Name=="Glaciem" then
  812. v:Destroy()
  813. end
  814. end
  815.  
  816. for i,v in pairs(Backpack:children()) do
  817. if v.Name=="Glaciem" then
  818. v:Destroy()
  819. end
  820. end
  821.  
  822. function clerp(a,b,t)
  823. local qa = {QuaternionFromCFrame(a)}
  824. local qb = {QuaternionFromCFrame(b)}
  825. local ax, ay, az = a.x, a.y, a.z
  826. local bx, by, bz = b.x, b.y, b.z
  827. local _t = 1-t
  828. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  829. end
  830.  
  831. function QuaternionFromCFrame(cf)
  832. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  833. local trace = m00 + m11 + m22
  834. if trace > 0 then
  835. local s = math.sqrt(1 + trace)
  836. local recip = 0.5/s
  837. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  838. else
  839. local i = 0
  840. if m11 > m00 then
  841. i = 1
  842. end
  843. if m22 > (i == 0 and m00 or m11) then
  844. i = 2
  845. end
  846. if i == 0 then
  847. local s = math.sqrt(m00-m11-m22+1)
  848. local recip = 0.5/s
  849. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  850. elseif i == 1 then
  851. local s = math.sqrt(m11-m22-m00+1)
  852. local recip = 0.5/s
  853. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  854. elseif i == 2 then
  855. local s = math.sqrt(m22-m00-m11+1)
  856. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  857. end
  858. end
  859. end
  860.  
  861. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  862. local xs, ys, zs = x + x, y + y, z + z
  863. local wx, wy, wz = w*xs, w*ys, w*zs
  864. local xx = x*xs
  865. local xy = x*ys
  866. local xz = x*zs
  867. local yy = y*ys
  868. local yz = y*zs
  869. local zz = z*zs
  870. 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))
  871. end
  872.  
  873. function QuaternionSlerp(a, b, t)
  874. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  875. local startInterp, finishInterp;
  876. if cosTheta >= 0.0001 then
  877. if (1 - cosTheta) > 0.0001 then
  878. local theta = math.acos(cosTheta)
  879. local invSinTheta = 1/math.sin(theta)
  880. startInterp = math.sin((1-t)*theta)*invSinTheta
  881. finishInterp = math.sin(t*theta)*invSinTheta
  882. else
  883. startInterp = 1-t
  884. finishInterp = t
  885. end
  886. else
  887. if (1+cosTheta) > 0.0001 then
  888. local theta = math.acos(-cosTheta)
  889. local invSinTheta = 1/math.sin(theta)
  890. startInterp = math.sin((t-1)*theta)*invSinTheta
  891. finishInterp = math.sin(t*theta)*invSinTheta
  892. else
  893. startInterp = t-1
  894. finishInterp = t
  895. end
  896. end
  897. 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
  898. end
  899.  
  900. hideanim = function()
  901. equipped = false
  902. if Mode == "Sabers" then
  903. UnSword()
  904. end
  905. for i = 0, 1, 0.1 do
  906. swait()
  907. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4)
  908. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4)
  909. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  910. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  911. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.4)
  912. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  913. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.3)
  914. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.3)
  915. end
  916. mdec2.Parent = nil
  917. mdec.Parent = Decrease
  918. Humanoid.JumpPower = 50
  919. end
  920.  
  921. mdec.Parent = Decrease
  922. equipanim = function()
  923. equipped = true
  924. floating = false
  925. Humanoid.JumpPower = 60
  926. local dec = Instance.new("NumberValue", Decrease)
  927. dec.Name = "DecreaseMvmt"
  928. dec.Value = 10
  929. so("341336144", LeftArm, 1, 1)
  930. so("341336144", RightArm, 1, 1)
  931. rara = 4
  932. local col = 1
  933. local colnum = 0
  934. for i = 0, 1, 0.1 do
  935. swait()
  936. colnum = colnum + 1
  937.  
  938. if #Neons - 1 < col and (colnum) % 2 == 0 then
  939. col = 1
  940. end
  941. if (colnum) % 2 == 0 then
  942. col = col + 1
  943. end
  944. MagicBlock2(Neons[col], LeftArm.CFrame * cf(0, -1, 0), 4, 4, 4, 2, 2, 2, 0.2, 1)
  945. MagicBlock2(Neons[col], RightArm.CFrame * cf(0, -1, 0), 4, 4, 4, 2, 2, 2, 0.2, 1)
  946. rara = rara + 1
  947. if rara % 6 == 0 then
  948. hitfloor2, posfloor2 = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
  949. if hitfloor2 ~= nil then
  950. MagicWave(BrickColor.new("Institutional white"), cf(posfloor2), 1, 2, 1, 1, -0.1, 1, 0.1)
  951. end
  952. end
  953. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.3, 0, 0), 0.3)
  954. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1) * euler(-0.05, 0, 0), 0.1)
  955. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.2, 0, 0.4) * euler(0, -1.57, 0), 0.3)
  956. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.2, 0, -0.4) * euler(0, 1.57, 0), 0.3)
  957. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.05, 0, 0.1), 0.3)
  958. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.05, 0, -0.05), 0.3)
  959. end
  960. for i = 0, 1, 0.1 do
  961. swait()
  962. colnum = colnum + 1
  963.  
  964. if #Neons - 1 < col and (colnum) % 2 == 0 then
  965. col = 1
  966. end
  967. if (colnum) % 2 == 0 then
  968. col = col + 1
  969. end
  970. MagicBlock2(Neons[col], LeftArm.CFrame * cf(0, -1, 0), 4, 4, 4, 2, 2, 2, 0.2, 1)
  971. MagicBlock2(Neons[col], RightArm.CFrame * cf(0, -1, 0), 4, 4, 4, 2, 2, 2, 0.2, 1)
  972. rara = rara + 1
  973. if rara % 6 == 0 then
  974. hitfloor2, posfloor2 = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
  975. if hitfloor2 ~= nil then
  976. MagicWave(BrickColor.new("Institutional white"), cf(posfloor2), 1, 2, 1, 1, -0.1, 1, 0.1)
  977. end
  978. end
  979. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.4, 0, 0), 0.3)
  980. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1.2) * euler(-0.05, 0, 0), 0.1)
  981. RW.C0 = clerp(RW.C0, cf(1.2, 0.7, -0.4) * euler(2.9, 0, 0) * euler(0, 0, -0.5) * euler(0, 1.5, 0), 0.25)
  982. LW.C0 = clerp(LW.C0, cf(-1.2, 0.7, -0.4) * euler(2.9, 0, 0) * euler(0, 0, 0.5) * euler(0, -1.5, 0), 0.25)
  983. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.05, 0, 0.1), 0.3)
  984. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.05, 0, -0.05), 0.3)
  985. end
  986. mdec.Parent = nil
  987. mdec2.Parent = Decrease
  988. hitfloor2, posfloor2 = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
  989. if hitfloor2 ~= nil then
  990. MagicWave(BrickColor.new("Institutional white"), cf(posfloor2), 4, 2, 4, 0.7, -0.08, 0.7, 0.05)
  991. end
  992. MagicCircle(Neons[col], LeftArm.CFrame * cf(0, -1, 0), 10, 10, 10, 4, 4, 4, 0.1, 1)
  993. MagicCircle(Neons[col], RightArm.CFrame * cf(0, -1, 0), 10, 10, 10, 4, 4, 4, 0.1, 1)
  994. so("341336138", LeftArm, 1, 1)
  995. so("341336138", RightArm, 1, 1)
  996. so("341336243", LeftArm, 1, 1)
  997. so("341336243", RightArm, 1, 1)
  998. for i = 0, 1, 0.1 do
  999. swait()
  1000. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.4)
  1001. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1.4) * euler(-0.05, 0, 0), 0.2)
  1002. if i < 0.3 then
  1003. RW.C0 = clerp(RW.C0, cf(1, 0.5, 0.3) * euler(-0.2, 0, 1) * euler(0, -1.5, 0), 0.4)
  1004. LW.C0 = clerp(LW.C0, cf(-1, 0.5, 0.3) * euler(-0.2, 0, -1) * euler(0, 1.5, 0), 0.4)
  1005. else
  1006. RW.C0 = clerp(RW.C0, cf(1, 0.5, 0.3) * euler(0.4, 0, 0.4) * euler(0, -1.5, 0), 0.2)
  1007. LW.C0 = clerp(LW.C0, cf(-1, 0.5, 0.3) * euler(0.4, 0, -0.4) * euler(0, 1.5, 0), 0.2)
  1008. end
  1009. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.4)
  1010. LH.C0 = clerp(LH.C0, cf(-0.95, -0.9, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.05), 0.4)
  1011. end
  1012. dec.Parent = nil
  1013. floating = true
  1014. end
  1015.  
  1016. StaggerAnim = function()
  1017. attack = true
  1018. removeControl()
  1019. local dosaber = false
  1020. if Mode == "Sabers" then
  1021. dosaber = true
  1022. end
  1023. Mode = "Stagger"
  1024. for i = 1, math.random(2, 4) do
  1025. 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)
  1026. end
  1027. for i = 0, 1, 0.35 do
  1028. swait()
  1029. if dosaber == true then
  1030. for d = 1, #Saber do
  1031. Saber[d].Transparency = i
  1032. end
  1033. end
  1034. do
  1035. do
  1036. Torso.Velocity = RootPart.CFrame.lookVector * -40
  1037. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.3)
  1038. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.4), 0.3)
  1039. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.3)
  1040. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1041. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  1042. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1043. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.3)
  1044. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  1045.  
  1046. end
  1047. end
  1048. end
  1049. if dosaber == true then
  1050. for d = 1, #Saber do
  1051. Saber[d].Transparency = 1
  1052. end
  1053. handlewld.Part1 = Torso
  1054. handlewld2.Part1 = Torso
  1055. handlewld.C0 = euler(0, 3.14, -2.6) * cf(0, 0, -0.6)
  1056. handlewld2.C0 = euler(0, 3.14, -2.6) * euler(0, 3.14, 0) * cf(0, 0, -0.6)
  1057. mwld1.C0 = cf(0, 2, 0)
  1058. mwld2.C0 = cf(0, 2, 0)
  1059. floating = true
  1060. end
  1061. for i = 1, 0, -0.2 do
  1062. swait()
  1063. if dosaber == true then
  1064. for d = 1, #Saber do
  1065. Saber[d].Transparency = i
  1066. end
  1067. end
  1068. do
  1069. do
  1070. Torso.Velocity = RootPart.CFrame.lookVector * -40
  1071. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.4)
  1072. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(-0.5, 0, -0.4), 0.4)
  1073. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.4)
  1074. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1075. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.4)
  1076. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4)
  1077. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.4)
  1078. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.5), 0.4)
  1079.  
  1080. end
  1081. end
  1082. end
  1083. for d = 1, #Saber do
  1084. Saber[d].Transparency = 0
  1085. end
  1086. for i = 0, 1, 0.1 do
  1087. swait()
  1088. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.5, 0, 0), 0.3)
  1089. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, -0.4), 0.3)
  1090. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.3, 0, 0.4) * euler(0, -0.4, 0), 0.3)
  1091. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1092. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2) * euler(0, 0.4, 0), 0.3)
  1093. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1094. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 1.2), 0.3)
  1095. LH.C0 = clerp(LH.C0, cf(-1, 0, -1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  1096. end
  1097. for i = 1, 40 do
  1098. swait()
  1099. if StunT.Value <= Stun.Value then
  1100. break
  1101. end
  1102. end
  1103. do
  1104. Mode = "Normal"
  1105. resumeControl()
  1106. combo = 0
  1107. attack = false
  1108. end
  1109. end
  1110.  
  1111. StaggerHitt = function()
  1112. attack = true
  1113. for i = 1, math.random(2, 4) do
  1114. 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)
  1115. end
  1116. for i = 0, 1, 0.1 do
  1117. swait()
  1118. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.7) * euler(0.1, 0, 0), 0.3)
  1119. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.6), 0.3)
  1120. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.9) * euler(0, -0.7, 0), 0.3)
  1121. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1122. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3)
  1123. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1124. RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.4), 0.3)
  1125. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3)
  1126. end
  1127. attack = false
  1128. end
  1129.  
  1130. StunAnim = function()
  1131. attack = true
  1132. removeControl()
  1133. Stunned.Value = true
  1134. showDamage(Character, "Stunned", "Interrupt")
  1135. local dec = Instance.new("NumberValue", Decrease)
  1136. dec.Name = "DecreaseMvmt"
  1137. dec.Value = 10
  1138. for i = 0, 1, 0.3 do
  1139. swait()
  1140. Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2)
  1141. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2)
  1142. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2)
  1143. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1144. LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2)
  1145. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1146. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25)
  1147. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
  1148. end
  1149. for i = 0, 1, 0.3 do
  1150. swait()
  1151. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2)
  1152. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2)
  1153. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  1154. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1155. 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)
  1156. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1157. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25)
  1158. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25)
  1159. end
  1160. for i = 0, 1, 0.3 do
  1161. swait()
  1162. Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2)
  1163. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2)
  1164. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2)
  1165. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1166. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2)
  1167. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2)
  1168. RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25)
  1169. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25)
  1170. end
  1171. local gairost = Instance.new("BodyGyro")
  1172. gairost.Parent = RootPart
  1173. gairost.maxTorque = Vector3.new(40, 0, 40)
  1174. gairost.P = 200
  1175. gairost.cframe = cf(0, 0, 0)
  1176. for i = 0, 1, 0.1 do
  1177. swait()
  1178. if hitfloor ~= nil then
  1179. Torso.Velocity = vt(0, 0, 0)
  1180. end
  1181. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3)
  1182. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3)
  1183. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 0, 0), 0.3)
  1184. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1185. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3)
  1186. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1187. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3)
  1188. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3)
  1189. end
  1190. for i = 1, 70 do
  1191. swait()
  1192. gairost.cframe = RootPart.CFrame
  1193. if hitfloor ~= nil then
  1194. Torso.Velocity = vt(0, 0, 0)
  1195. end
  1196. end
  1197. for i = 0, 1, 0.2 do
  1198. swait()
  1199. Stun.Value = 0
  1200. gairost.cframe = RootPart.CFrame
  1201. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3)
  1202. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3)
  1203. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3)
  1204. RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1205. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3)
  1206. LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3)
  1207. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3)
  1208. LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3)
  1209. end
  1210. resumeControl()
  1211. gairost.Parent = nil
  1212. dec.Parent = nil
  1213. Stun.Value = 0
  1214. combo = 0
  1215. Stunned.Value = false
  1216. attack = false
  1217. for i = 1, 10 do
  1218. swait()
  1219. Stun.Value = 0
  1220. end
  1221. end
  1222.  
  1223. UnSword = function()
  1224. combo = 0
  1225. for i = 0, 1, 0.1 do
  1226. swait()
  1227. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.5)
  1228. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.5)
  1229. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.1, 0, 0), 0.5)
  1230. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, -0.4) * euler(0.2, 0, 0), 0.5)
  1231. RW.C0 = clerp(RW.C0, cf(1.4, 0.4, -0.1) * euler(1.4, 0, 0.7) * euler(0, 1.3, 0), 0.5)
  1232. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.8, 0, -0.8) * euler(0, -1.5, 0), 0.5)
  1233. RH.C0 = clerp(RH.C0, cf(1, -0.7, -0.3) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.1), 0.5)
  1234. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.2) * euler(0, -1.57, 0) * euler(0, 0.4, 0) * euler(-0.05, 0, -0.15), 0.5)
  1235. for d = 1, #Saber do
  1236. Saber[d].Transparency = i
  1237. end
  1238. end
  1239. for d = 1, #Saber do
  1240. Saber[d].Transparency = 1
  1241. end
  1242. handlewld.Part1 = Torso
  1243. handlewld2.Part1 = Torso
  1244. handlewld.C0 = euler(0, 3.14, -2.6) * cf(0, 0, -0.6)
  1245. handlewld2.C0 = euler(0, 3.14, -2.6) * euler(0, 3.14, 0) * cf(0, 0, -0.6)
  1246. mwld1.C0 = cf(0, 2, 0)
  1247. mwld2.C0 = cf(0, 2, 0)
  1248. floating = true
  1249. Mode = "Normal"
  1250. for i = 1, 0, -0.2 do
  1251. swait()
  1252. for d = 1, #Saber do
  1253. Saber[d].Transparency = i
  1254. end
  1255. end
  1256. for d = 1, #Saber do
  1257. Saber[d].Transparency = 0
  1258. end
  1259. end
  1260.  
  1261. attackone = function()
  1262. floating = false
  1263. Mode = "Sabers"
  1264. for i = 0, 1, 0.3 do
  1265. swait()
  1266. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.2, 0, 0), 0.3)
  1267. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0.1, 0, 0) * euler(0, 0, 0.6), 0.3)
  1268. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(0.4, 0, 1.2) * euler(0, 0, 0), 0.3)
  1269. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.1) * euler(0.4, 0, -1.6) * euler(0, 2, 0), 0.3)
  1270. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(0, -0.6, 0) * euler(0, 0, 0.1), 0.3)
  1271. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
  1272. for d = 1, #Saber do
  1273. Saber[d].Transparency = i
  1274. end
  1275. end
  1276. for d = 1, #Saber do
  1277. Saber[d].Transparency = 1
  1278. end
  1279. handlewld.Part1 = LeftArm
  1280. handlewld2.Part1 = RightArm
  1281. handlewld.C0 = euler(0, 0, -1.57) * euler(0, 1.57, 0) * cf(0, 1, 0)
  1282. handlewld2.C0 = euler(0, 0, -1.57) * euler(0, 1.57, 0) * cf(0, 1, 0)
  1283. mwld1.C0 = cf(0, 0, 0)
  1284. mwld2.C0 = cf(0, 0, 0)
  1285. so("341336274", main1, 0.6, 1.2)
  1286. so("341336274", main2, 0.6, 1.2)
  1287. for i = 1, 0, -0.3 do
  1288. swait()
  1289. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.2, 0, 0), 0.3)
  1290. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0.1, 0, 0) * euler(0, 0, 0.6), 0.3)
  1291. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(0.4, 0, 1.2) * euler(0, 0, 0), 0.3)
  1292. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.1) * euler(0.4, 0, -1.6) * euler(0, 2, 0), 0.3)
  1293. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(0, -0.6, 0) * euler(0, 0, 0.1), 0.3)
  1294. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
  1295. for d = 1, #Saber do
  1296. Saber[d].Transparency = i
  1297. end
  1298. end
  1299. for d = 1, #Saber do
  1300. Saber[d].Transparency = 0
  1301. end
  1302. hitbox.Parent = modelzorz
  1303. hitbox.CFrame = main1.CFrame * cf(0, 2, 0)
  1304. teh = math.random(-30, 30) / 100
  1305. so("341336307", main1, 0.6, 1.4 + teh)
  1306. so("341336485", main1, 0.6, 1 + teh)
  1307. for i = 0, 1, 0.12 do
  1308. swait()
  1309. hitbox.CFrame = main1.CFrame * cf(0, 2, 0)
  1310. MagniDamage(hitbox, 3, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  1311. mwld1.C0 = clerp(mwld1.C0, cf(0, 0.2, 0) * euler(0, 0, -1), 0.4)
  1312. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0.5), 0.4)
  1313. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.8) * euler(0.2, 0, 0), 0.4)
  1314. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0.1, 0, 0) * euler(0, 0, -0.8), 0.4)
  1315. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(2.5, 0, 0.6) * euler(0, -1, 0), 0.4)
  1316. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(0.4, 0, -1.6) * euler(0, 2.5, 0) * euler(-2.5, 0, 0), 0.4)
  1317. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.1, 0, -0.1), 0.4)
  1318. LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0.1) * euler(0, -1.57, 0) * euler(0, 0.8, 0) * euler(-0.1, 0, 0.05), 0.4)
  1319. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1320. do
  1321. if StaggerHit.Value == true then
  1322. break
  1323. end
  1324. end
  1325. end
  1326. end
  1327. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1328. teh = math.random(-30, 30) / 100
  1329. so("341336307", main2, 0.6, 1.4 + teh)
  1330. so("341336485", main2, 0.6, 1 + teh)
  1331. for i = 0, 1, 0.12 do
  1332. swait()
  1333. hitbox.CFrame = main2.CFrame * cf(0, 2, 0)
  1334. MagniDamage(hitbox, 3, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  1335. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.4)
  1336. mwld2.C0 = clerp(mwld2.C0, cf(0, 0.3, 0) * euler(0, 0, -0.5), 0.4)
  1337. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.6) * euler(0.2, 0, 0), 0.4)
  1338. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0.1, 0, 0) * euler(0, 0, 0.6), 0.4)
  1339. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(2.5, 0, 0.6) * euler(0, 0.2, 0) * euler(-2, 0, 0), 0.4)
  1340. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.6) * euler(0, 0.4, 0), 0.4)
  1341. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(0, -0.6, 0) * euler(0, 0, 0.1), 0.4)
  1342. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.4)
  1343. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1344. do
  1345. if StaggerHit.Value == true then
  1346. break
  1347. end
  1348. end
  1349. end
  1350. end
  1351. hitbox.Parent = nil
  1352. end
  1353. end
  1354.  
  1355. attacktwo = function()
  1356. for i = 0, 1, 0.15 do
  1357. swait()
  1358. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.4)
  1359. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.4)
  1360. Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, -0.6) * euler(0.1, 0, 0), 0.4)
  1361. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0.6) * euler(0.2, 0, 0), 0.4)
  1362. RW.C0 = clerp(RW.C0, cf(1.4, 0.4, -0.1) * euler(0.6, 0, 0.7) * euler(0, 1, 0) * euler(0.4, 0, 0), 0.4)
  1363. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1, 0, -0.8) * euler(0, 2, 0), 0.4)
  1364. RH.C0 = clerp(RH.C0, cf(0.9, -0.7, 0.2) * euler(0, 1.57, 0) * euler(0, -0.6, 0) * euler(0, 0, 0.1), 0.4)
  1365. LH.C0 = clerp(LH.C0, cf(-1, -0.7, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.2, 0, 0.15), 0.4)
  1366. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1367. do
  1368. if StaggerHit.Value == true then
  1369. break
  1370. end
  1371. end
  1372. end
  1373. end
  1374. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1375. hitbox.Parent = modelzorz
  1376. hitbox.CFrame = main1.CFrame * cf(0, 2, 0)
  1377. teh = math.random(-30, 30) / 100
  1378. so("341336307", main1, 0.6, 1.4 + teh)
  1379. so("341336485", main1, 0.6, 1 + teh)
  1380. for i = 0, 1, 0.12 do
  1381. swait()
  1382. hitbox.CFrame = main1.CFrame * cf(0, 2, 0)
  1383. MagniDamage(hitbox, 2, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  1384. mwld1.C0 = clerp(mwld1.C0, cf(0, 0.3, 0) * euler(0, 0, -0.4), 0.4)
  1385. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.4)
  1386. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.8) * euler(0.1, 0, 0), 0.4)
  1387. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, -0.8) * euler(0.2, 0, 0), 0.4)
  1388. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.57, 0, 1.57) * euler(0, -1, 0) * euler(0, 0, 0), 0.4)
  1389. LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(1, 0, -0.8) * euler(0, 2.5, 0) * euler(-2, 0, 0), 0.4)
  1390. RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.4) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.3), 0.4)
  1391. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, 0.2) * euler(0, -1.57, 0) * euler(0, 0.8, 0) * euler(0.1, 0, -0.15), 0.4)
  1392. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1393. do
  1394. if StaggerHit.Value == true then
  1395. break
  1396. end
  1397. end
  1398. end
  1399. end
  1400. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1401. teh = math.random(-30, 30) / 100
  1402. so("341336307", main2, 0.6, 1.4 + teh)
  1403. so("341336485", main2, 0.6, 1 + teh)
  1404. for i = 0, 1, 0.12 do
  1405. swait()
  1406. hitbox.CFrame = main2.CFrame * cf(0, 2, 0)
  1407. MagniDamage(hitbox, 2, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  1408. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.4)
  1409. mwld2.C0 = clerp(mwld2.C0, cf(0, 0.3, 0) * euler(0, 0, -0.4), 0.4)
  1410. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1) * euler(0.1, 0, 0), 0.4)
  1411. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 1) * euler(0, 0, 0), 0.4)
  1412. RW.C0 = clerp(RW.C0, cf(1, 0.5, -0.5) * euler(1.57, 0, 1.57) * euler(0, -1.5, 0) * euler(-2, 0, 0), 0.4)
  1413. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.6, 0, -0.8) * euler(0, -0.2, 0) * euler(0, 0, 0), 0.4)
  1414. RH.C0 = clerp(RH.C0, cf(0.8, -0.7, 0.3) * euler(0, 1.57, 0) * euler(0, -1, 0) * euler(0, 0, 0.1), 0.4)
  1415. LH.C0 = clerp(LH.C0, cf(-1, -0.7, -0.4) * euler(0, -1.57, 0) * euler(0, -0.6, 0) * euler(-0.2, 0, 0.3), 0.4)
  1416. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1417. do
  1418. if StaggerHit.Value == true then
  1419. break
  1420. end
  1421. end
  1422. end
  1423. end
  1424. hitbox.Parent = nil
  1425. end
  1426. end
  1427. end
  1428.  
  1429. attackthree = function()
  1430. for i = 0, 1, 0.15 do
  1431. swait()
  1432. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.5)
  1433. mwld2.C0 = clerp(mwld2.C0, cf(0, 0.1, 0) * euler(0, 0, 0.4), 0.5)
  1434. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.1) * euler(0.5, 0, 0), 0.5)
  1435. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, 0.8) * euler(0, 0, 0.1) * euler(-0.2, 0, 0), 0.5)
  1436. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, -0.1, 0) * euler(2.8, 0, 0), 0.5)
  1437. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0.6, 0, -0.7) * euler(0, 0.5, 0) * euler(0, 0, 0.6), 0.5)
  1438. RH.C0 = clerp(RH.C0, cf(1.1, -0.7, -0.2) * euler(0, 1.57, 0) * euler(0, -0.1, 0) * euler(-0.05, 0, 0.15), 0.5)
  1439. LH.C0 = clerp(LH.C0, cf(-0.95, -0.7, -0.1) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.1), 0.5)
  1440. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1441. do
  1442. if StaggerHit.Value == true then
  1443. break
  1444. end
  1445. end
  1446. end
  1447. end
  1448. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1449. hitbox.Parent = modelzorz
  1450. hitbox.CFrame = main2.CFrame * cf(0, 2, 0)
  1451. teh = math.random(-30, 30) / 100
  1452. so("341336307", main2, 0.6, 1.4 + teh)
  1453. so("341336485", main2, 0.6, 1 + teh)
  1454. for i = 0, 1, 0.12 do
  1455. swait()
  1456. hitbox.CFrame = main2.CFrame * cf(0, 2, 0)
  1457. MagniDamage(hitbox, 2, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  1458. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.5)
  1459. mwld2.C0 = clerp(mwld2.C0, cf(0, 0.2, 0) * euler(0, 0, -0.4), 0.5)
  1460. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.1) * euler(0.2, 0, 0), 0.5)
  1461. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1.5, -0.8) * euler(0, 0, 0.1) * euler(0.2, 0, 0), 0.5)
  1462. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, -0.1, 0) * euler(0.3, 0, 0), 0.5)
  1463. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57) * euler(0, 1.7, 0), 0.5)
  1464. RH.C0 = clerp(RH.C0, cf(1.1, -0.2, -0.2) * euler(0, 1.57, 0) * euler(0, -0.1, 0) * euler(-0.05, 0, -0.1), 0.5)
  1465. LH.C0 = clerp(LH.C0, cf(-0.95, -0.5, -0.6) * euler(0, -1.57, 0) * euler(-0.2, 0, 0.4), 0.5)
  1466. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1467. do
  1468. if StaggerHit.Value == true then
  1469. break
  1470. end
  1471. end
  1472. end
  1473. end
  1474. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1475. teh = math.random(-30, 30) / 100
  1476. so("341336307", main1, 0.6, 1.4 + teh)
  1477. so("341336485", main1, 0.6, 1 + teh)
  1478. for i = 0, 1, 0.12 do
  1479. swait()
  1480. hitbox.CFrame = main1.CFrame * cf(0, 2, 0)
  1481. MagniDamage(hitbox, 2, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  1482. mwld1.C0 = clerp(mwld1.C0, cf(0, 0.1, 0) * euler(0, 0, -0.4), 0.5)
  1483. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.5)
  1484. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.1) * euler(0.2, 0, 0), 0.5)
  1485. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1.5, -0.8) * euler(0, 0, -0.4) * euler(0.2, 0, 0), 0.5)
  1486. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, -0.1, 0) * euler(-0.3, 0, 0.6), 0.5)
  1487. LW.C0 = clerp(LW.C0, cf(-0.6, 0.5, -0.5) * euler(1.57, 0, -1.57) * euler(0, 1.7, 0) * euler(-2.8, 0, 0), 0.5)
  1488. RH.C0 = clerp(RH.C0, cf(1.1, -0.2, -0.2) * euler(0, 1.57, 0) * euler(0, 0.4, 0) * euler(-0.05, 0, -0.1), 0.5)
  1489. LH.C0 = clerp(LH.C0, cf(-0.95, -0.5, -0.6) * euler(0, -1.57, 0) * euler(0, 0.4, 0) * euler(-0.2, 0, 0.4), 0.5)
  1490. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1491. do
  1492. if StaggerHit.Value == true then
  1493. break
  1494. end
  1495. end
  1496. end
  1497. end
  1498. hitbox.Parent = nil
  1499. end
  1500. end
  1501. end
  1502.  
  1503. attackfour = function()
  1504. so("341336200", main1, 0.6, 1)
  1505. so("341336200", main2, 0.6, 1)
  1506. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.6, 0, 0) * euler(0, 0, 2) * euler(0, 0, 0), 0.3)
  1507. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.6, 0, 0) * euler(0, 0, -2) * euler(0, 0, 0), 0.3)
  1508. local tehn = math.random(1, 7)
  1509. local rara = 0
  1510. for i = 0, 1, 0.05 do
  1511. swait()
  1512. rara = rara + 1
  1513. if (rara) % 2 == 0 then
  1514. if tehn > 6 then
  1515. tehn = 1
  1516. else
  1517. tehn = tehn + 1
  1518. end
  1519. end
  1520. da1 = math.random(150, 250) / 100
  1521. da2 = math.random(700, 900) / 100
  1522. MagicCircle(Neons[tehn], main1.CFrame * cf(0, 3, 0), 5, 10, 5, da1, da2, da1, 0.2)
  1523. MagicCircle(Neons[tehn], main2.CFrame * cf(0, 3, 0), 5, 10, 5, da1, da2, da1, 0.2)
  1524. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  1525. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  1526. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.1, 0, 0), 0.3)
  1527. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, 0) * euler(0, 0, 0), 0.3)
  1528. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.6, 0, 0) * euler(0, 0, 2) * euler(0, -1.5, 0), 0.3)
  1529. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.6, 0, 0) * euler(0, 0, -2) * euler(0, 1.5, 0), 0.3)
  1530. RH.C0 = clerp(RH.C0, cf(1.05, -0.95, -0.1) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, -0.1), 0.3)
  1531. LH.C0 = clerp(LH.C0, cf(-1.05, -0.95, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, 0.1), 0.3)
  1532. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1533. do
  1534. if StaggerHit.Value == true then
  1535. break
  1536. end
  1537. end
  1538. end
  1539. end
  1540. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1541. hitbox.Parent = modelzorz
  1542. hitbox.CFrame = main2.CFrame * cf(0, 2, 0)
  1543. so("341336307", main1, 1, 1.2)
  1544. so("341336307", main2, 1, 1.2)
  1545. for i = 0, 1, 0.2 do
  1546. swait()
  1547. hitbox.CFrame = main1.CFrame * cf(0, 2, 0)
  1548. MagniDamage(hitbox, 2, 8, 10, math.random(6, 8), "Normal", RootPart, 0.2, 2, (math.random(4, 6)), nil, true)
  1549. hitbox.CFrame = main2.CFrame * cf(0, 2, 0)
  1550. MagniDamage(hitbox, 2, 8, 10, math.random(6, 8), "Normal", RootPart, 0.2, 2, (math.random(4, 6)), nil, true)
  1551. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, -1.4), 0.8)
  1552. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, -1.4), 0.8)
  1553. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.8)
  1554. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, -0.2) * euler(0, 0, 0) * euler(0, 0, 0), 0.8)
  1555. RW.C0 = clerp(RW.C0, cf(0.8, 0.5, -0.5) * euler(1.6, 0, 0) * euler(0, 0, 2) * euler(0, -1.5, 0) * euler(-2.2, 0, 0), 0.8)
  1556. LW.C0 = clerp(LW.C0, cf(-0.8, 0.5, -0.5) * euler(1.6, 0, 0) * euler(0, 0, -2) * euler(0, 1.5, 0) * euler(-2.2, 0, 0), 0.8)
  1557. RH.C0 = clerp(RH.C0, cf(1.05, -0.95, -0.1) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, -0.1), 0.8)
  1558. LH.C0 = clerp(LH.C0, cf(-1.05, -0.95, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, 0.1), 0.8)
  1559. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1560. do
  1561. if StaggerHit.Value == true then
  1562. break
  1563. end
  1564. end
  1565. end
  1566. end
  1567. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1568. for i = 1, 3 do
  1569. Star(main2, 50)
  1570. Star(main1, 50)
  1571. end
  1572. hitbox.Parent = nil
  1573. local ref1 = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1574. ref1.Anchored = true
  1575. ref1.CFrame = cf(main1.Position)
  1576. game:GetService("Debris"):AddItem(ref1, 1)
  1577. so("341336243", ref1, 1, 1)
  1578. local ref2 = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1579. ref2.Anchored = true
  1580. ref2.CFrame = cf(main2.Position)
  1581. game:GetService("Debris"):AddItem(ref2, 1)
  1582. so("341336243", ref1, 1, 1)
  1583. for i = 0, 1, 0.2 do
  1584. swait()
  1585. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, -1.4), 0.5)
  1586. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, -1.4), 0.5)
  1587. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.5)
  1588. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -1, -0.2) * euler(0, 0, 0) * euler(0, 0, 0), 0.5)
  1589. RW.C0 = clerp(RW.C0, cf(0.8, 0.5, -0.5) * euler(1.6, 0, 0) * euler(0, 0, 2) * euler(0, -1.5, 0) * euler(-2.2, 0, 0), 0.5)
  1590. LW.C0 = clerp(LW.C0, cf(-0.8, 0.5, -0.5) * euler(1.6, 0, 0) * euler(0, 0, -2) * euler(0, 1.5, 0) * euler(-2.2, 0, 0), 0.5)
  1591. RH.C0 = clerp(RH.C0, cf(1.05, -0.95, -0.1) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, -0.1), 0.5)
  1592. LH.C0 = clerp(LH.C0, cf(-1.05, -0.95, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.05, 0, 0.1), 0.5)
  1593. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1594. do
  1595. if StaggerHit.Value == true then
  1596. break
  1597. end
  1598. end
  1599. end
  1600. end
  1601. for i = 0, 1, 0.3 do
  1602. swait()
  1603. for d = 1, #Saber do
  1604. Saber[d].Transparency = i
  1605. end
  1606. end
  1607. for d = 1, #Saber do
  1608. Saber[d].Transparency = 1
  1609. end
  1610. handlewld.Part1 = Torso
  1611. handlewld2.Part1 = Torso
  1612. handlewld.C0 = euler(0, 3.14, -2.6) * cf(0, 0, -0.6)
  1613. handlewld2.C0 = euler(0, 3.14, -2.6) * euler(0, 3.14, 0) * cf(0, 0, -0.6)
  1614. mwld1.C0 = cf(0, 2, 0)
  1615. mwld2.C0 = cf(0, 2, 0)
  1616. floating = true
  1617. Mode = "Normal"
  1618. for i = 1, 0, -0.2 do
  1619. swait()
  1620. for d = 1, #Saber do
  1621. Saber[d].Transparency = i
  1622. end
  1623. end
  1624. for d = 1, #Saber do
  1625. Saber[d].Transparency = 0
  1626. end
  1627. end
  1628. end
  1629. end
  1630.  
  1631. PowerRising = function()
  1632. attack = true
  1633. if Mode == "Sabers" then
  1634. UnSword()
  1635. end
  1636. local dec = Instance.new("NumberValue", Decrease)
  1637. dec.Name = "DecreaseMvmt"
  1638. dec.Value = 10
  1639. manainc = 12
  1640. local col = 1
  1641. local colnum = 0
  1642. local dopart = 0
  1643. cooldownsadd[1] = 0.18
  1644. cooldownsadd[2] = 0.16
  1645. cooldownsadd[3] = 0.14
  1646. prising = true
  1647. local prref = part(3, nil, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1648. prref.Anchored = true
  1649. while prising == true do
  1650. swait()
  1651. dopart = dopart + 1
  1652. if (dopart) % 4 == 0 then
  1653. colnum = colnum + 1
  1654. if (colnum) % 2 == 0 then
  1655. col = math.random(1, 7)
  1656. end
  1657. MagicBlock2(Neons[col], LeftArm.CFrame * cf(0, -1, 0), 4, 4, 4, 0.6, 0.6, 0.6, 0.05, 1)
  1658. MagicBlock2(Neons[col], RightArm.CFrame * cf(0, -1, 0), 4, 4, 4, 0.6, 0.6, 0.6, 0.05, 1)
  1659. prref.CFrame = cf(RootPart.Position) * cf(math.random(-500, 500) / 100, 0, math.random(-500, 500) / 100)
  1660. local phitfloor, pposfloor = rayCast(prref.Position, CFrame.new(prref.Position, prref.Position - Vector3.new(0, 1, 0)).lookVector, 50, Character)
  1661. if phitfloor ~= nil then
  1662. MagicCircle(Neons[col], cf(pposfloor), 1, 1, 1, 1, 5, 1, 0.1)
  1663. end
  1664. end
  1665. do
  1666. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.3, 0, 0), 0.1)
  1667. RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0.1) * euler(1, 0, 1.3) * euler(0, -1.57, 0), 0.1)
  1668. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0.1) * euler(1, 0, -1.3) * euler(0, 1.57, 0), 0.1)
  1669. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.1)
  1670. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.1)
  1671. if Stagger.Value ~= true and StunT.Value > Stun.Value and StaggerHit.Value == true then
  1672. break
  1673. end
  1674. end
  1675. end
  1676. cooldownsadd[1] = 0.16
  1677. cooldownsadd[2] = 0.14
  1678. cooldownsadd[3] = 0.12
  1679. manainc = 16
  1680. dec.Parent = nil
  1681. attack = false
  1682. end
  1683.  
  1684. Star = function(mainpart, rand)
  1685. local stref = part(3, effects, 0, 0, BrickColor.new("Black"), "Reference", vt())
  1686. stref.Anchored = true
  1687. stref.Material = "Neon"
  1688. stref.CFrame = cf(mainpart.Position)
  1689. local strmsh = mesh("SpecialMesh", stref, "FileMesh", "45428961", vt(0, 0, 0), vt(3, 3, 3))
  1690. hitbox.CFrame = mainpart.CFrame * cf(math.random(-100, 100) / 100, 2 + math.random(-200, 200) / 100, math.random(-100, 100) / 100)
  1691. table.insert(Effects, {RootPart.CFrame.lookVector + vt(math.random(-rand, rand) / 100, math.random(-rand, rand) / 100, math.random(-rand, rand) / 100), "Shoot", 80, hitbox.Position, 7, 9, 0, math.random(1, 7), stref, euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0})
  1692. end
  1693.  
  1694. do1 = function()
  1695. if attack == true then
  1696. return
  1697. end
  1698. attack = true
  1699. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  1700. return
  1701. end
  1702. if cooldowns[1] >= 50 then
  1703. if Mode == "Sabers" then
  1704. UnSword()
  1705. end
  1706. cbuster = true
  1707. Humanoid.AutoRotate = false
  1708. for i = 0, 1, 0.1 do
  1709. swait()
  1710. LeftArm.Transparency = i
  1711. for d = 1, #Buster do
  1712. Buster[d].Transparency = i
  1713. end
  1714. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.8) * euler(0.2, 0, 0), 0.3)
  1715. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(0.4, 0, 0.4) * euler(0, -1.5, 0), 0.3)
  1716. LW.C0 = clerp(LW.C0, cf(-1, 0.5, 0.5) * euler(1.3, 0, -1) * euler(0, 0, 0), 0.3)
  1717. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.3)
  1718. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
  1719. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  1720. do
  1721. if StaggerHit.Value == true then
  1722. break
  1723. end
  1724. end
  1725. end
  1726. end
  1727. local rara1 = Instance.new("NumberValue", Decrease)
  1728. rara1.Name = "DecreaseMvmt"
  1729. rara1.Value = 0.4
  1730. local rara2 = Instance.new("NumberValue", Decrease)
  1731. rara2.Name = "DecreaseDef"
  1732. rara2.Value = -0.1
  1733. handlewld3.Part1 = LeftArm
  1734. handlewld3.C0 = euler(0, 0, mr(-90)) * euler(0, mr(40), 0) * cf(0, 0, 0)
  1735. LeftArm.Transparency = 1
  1736. for d = 1, #Buster do
  1737. Buster[d].Transparency = 1
  1738. end
  1739. for i = 1, 0, -0.2 do
  1740. swait()
  1741. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.5)
  1742. for d = 1, #Buster do
  1743. Buster[d].Transparency = i
  1744. end
  1745. end
  1746. for d = 1, #Buster do
  1747. Buster[d].Transparency = 0
  1748. end
  1749. cshoot = false
  1750. cdebounce = false
  1751. local dashoot = 0
  1752. local laser1 = part(3, nil, 0, 0.5, BrickColor.new("Really red"), "Effect", vt())
  1753. laser1.Material = "Neon"
  1754. laser1.Anchored = true
  1755. local laser2 = laser1:Clone()
  1756. local laser3 = laser1:Clone()
  1757. local laser4 = laser1:Clone()
  1758. local lmsh1 = mesh("CylinderMesh", laser1, "", "", vt(0, 0, 0), vt(1, 1, 1))
  1759. local lmsh2 = mesh("CylinderMesh", laser2, "", "", vt(0, 0, 0), vt(1, 1, 1))
  1760. local lmsh3 = mesh("CylinderMesh", laser3, "", "", vt(0, 0, 0), vt(1, 1, 1))
  1761. local lmsh4 = (mesh("CylinderMesh", laser4, "", "", vt(0, 0, 0), vt(1, 1, 1)))
  1762. local l2cf, l3cf, l4cf = nil, nil, nil
  1763. while cbuster == true and cooldowns[1] > 10 do
  1764. swait()
  1765. if MMouse ~= nil then
  1766. local mpos = handle3.CFrame * euler(0, 0, 0)
  1767. local cff = CFrame.new(mpos.p, MMouse.Hit.p) * CFrame.Angles(math.pi / 2, 0, 0)
  1768. local x, y, z = handle3.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1769. handlewld3a.Part0 = handle3
  1770. handlewld3a.Part1 = handle3a
  1771. handlewld3a.C0 = clerp(handlewld3a.C0, CFrame.Angles(x, y, z) * euler(0, -mr(45), 1.57) * cf(-1, 0, 0), 0.3)
  1772. end
  1773. if busterlaser == true then
  1774. busterlaser = false
  1775. so("306247678", Torso, 1, 0.5)
  1776. for _,c in pairs(model3:children()) do
  1777. c.Transparency = 0
  1778. end
  1779. local dec = Instance.new("NumberValue", Decrease)
  1780. dec.Name = "DecreaseMvmt"
  1781. dec.Value = 0
  1782. for d = 1, 7 do
  1783. for i = 1, 0, -0.25 do
  1784. swait()
  1785. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.4) * euler(0, 0, 0), 0.3)
  1786. do
  1787. do
  1788. if d == 1 then
  1789. rmsh7.Scale = vt(2.5, 2.25, rs4 - rs4 * i)
  1790. rmsh7a.Scale = vt(2.5, 2.25, rs4 - rs4 * i)
  1791. rwld7.C0 = euler(0, mr(90), 0) * cf(2.85 + rw3 * i, 0, 0.1)
  1792. rwld7a.C0 = euler(0, mr(90), 0) * cf(2.85 + rw3 * i, 0, -0.1)
  1793. else
  1794. if d == 2 then
  1795. rmsh6.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1796. rmsh6a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1797. rwld6.C0 = euler(0, mr(90), 0) * cf(2.175 + rw2 * i, 0, 0.1)
  1798. rwld6a.C0 = euler(0, mr(90), 0) * cf(2.175 + rw2 * i, 0, -0.1)
  1799. else
  1800. if d == 3 then
  1801. rmsh5.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1802. rmsh5a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1803. rwld5.C0 = euler(0, mr(90), 0) * cf(1.425 + rw2 * i, 0, 0.1)
  1804. rwld5a.C0 = euler(0, mr(90), 0) * cf(1.425 + rw2 * i, 0, -0.1)
  1805. else
  1806. if d == 4 then
  1807. rmsh4.Scale = vt(2.5, 2.25, rs3 - rs3 * i)
  1808. rmsh4a.Scale = vt(2.5, 2.25, rs3 - rs3 * i)
  1809. rwld4.C0 = euler(0, mr(90), 0) * cf(0.65 + rw2 * i, 0, 0.1)
  1810. rwld4a.C0 = euler(0, mr(90), 0) * cf(0.65 + rw2 * i, 0, -0.1)
  1811. else
  1812. if d == 5 then
  1813. rmsh3.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1814. rmsh3a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1815. rwld3.C0 = euler(0, mr(90), 0) * cf(-0.125 + rw2 * i, 0, 0.1)
  1816. rwld3a.C0 = euler(0, mr(90), 0) * cf(-0.125 + rw2 * i, 0, -0.1)
  1817. else
  1818. if d == 6 then
  1819. rmsh2.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1820. rmsh2a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1821. rwld2.C0 = euler(0, mr(90), 0) * cf(-0.875 + rw2 * i, 0, 0.1)
  1822. rwld2a.C0 = euler(0, mr(90), 0) * cf(-0.875 + rw2 * i, 0, -0.1)
  1823. else
  1824. if d == 7 then
  1825. rmsh1.Scale = vt(2.5, 2.25, rs1 - rs1 * i)
  1826. rmsh1a.Scale = vt(2.5, 2.25, rs1 - rs1 * i)
  1827. rwld1.C0 = euler(0, mr(90), 0) * cf(-1.55 + rw1 * i, 0, 0.1)
  1828. rwld1a.C0 = euler(0, mr(90), 0) * cf(-1.55 + rw1 * i, 0, -0.1)
  1829. end
  1830. end
  1831. end
  1832. end
  1833. end
  1834. end
  1835. end
  1836. end
  1837. end
  1838. end
  1839. end
  1840. local mainpos = MMouse.Hit.p
  1841. for i = 0, 3, 0.2 do
  1842. swait()
  1843. if mainpos ~= nil then
  1844. local mpos = handle3.CFrame * euler(0, 0, 0)
  1845. local cff = CFrame.new(mpos.p, mainpos) * CFrame.Angles(math.pi / 2, 0, 0)
  1846. local x, y, z = handle3.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1847. handlewld3a.Part0 = handle3
  1848. handlewld3a.Part1 = handle3a
  1849. handlewld3a.C0 = clerp(handlewld3a.C0, CFrame.Angles(x, y, z) * euler(0, -mr(45), 1.57) * cf(-1, 0, 0), 0.8)
  1850. end
  1851. do
  1852. do
  1853. if i < 1 then
  1854. handlewld4.C0 = clerp(handlewld4.C0, cf(0, 0, 0.1), 0.4)
  1855. handlewld5.C0 = clerp(handlewld5.C0, cf(0, 0, -0.1), 0.4)
  1856. handlewld6.C0 = euler(0, mr(-45) * i, 0) * cf(3.35, 0, -0.075 - 0.065 * i)
  1857. handlewld7.C0 = euler(0, mr(45) * i, 0) * cf(3.35, 0, 0.075 + 0.065 * i)
  1858. end
  1859. end
  1860. end
  1861. end
  1862. mana.Value = mana.Value - 15
  1863. cooldowns[1] = cooldowns[1] - 30
  1864. for i = 1, 3 do
  1865. so("341336476", handle10, 10, 1)
  1866. end
  1867. local refl = part(3, nil, 0, 1, BrickColor.new("Black"), "Reference", vt())
  1868. refl.Anchored = true
  1869. for d = 1, 7 do
  1870. for i = 0, 1, 0.25 do
  1871. swait()
  1872. if mainpos ~= nil then
  1873. local mpos = handle3.CFrame * euler(0, 0, 0)
  1874. local cff = CFrame.new(mpos.p, mainpos) * CFrame.Angles(math.pi / 2, 0, 0)
  1875. local x, y, z = handle3.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  1876. handlewld3a.Part0 = handle3
  1877. handlewld3a.Part1 = handle3a
  1878. handlewld3a.C0 = clerp(handlewld3a.C0, CFrame.Angles(x, y, z) * euler(0, -mr(45), 1.57) * cf(-1, 0, 0) * cf(math.random(-50, 50) / 100, math.random(-50, 50) / 100, math.random(-50, 50) / 100), 0.5)
  1879. for i = 1, 5 do
  1880. tehcf = cf(0, 0, -1.5)
  1881. if i == 2 then
  1882. rainbow2.Transparency = 1
  1883. rainbow2a.Transparency = 1
  1884. tehcf = cf(0, 3, -1.5)
  1885. else
  1886. if i == 3 then
  1887. rainbow3.Transparency = 1
  1888. rainbow3a.Transparency = 1
  1889. tehcf = cf(0, -3, -1.5)
  1890. else
  1891. if i == 4 then
  1892. rainbow4.Transparency = 1
  1893. rainbow4a.Transparency = 1
  1894. tehcf = cf(3, 0, -1.5)
  1895. else
  1896. if i == 5 then
  1897. rainbow5.Transparency = 1
  1898. rainbow5a.Transparency = 1
  1899. tehcf = cf(-3, 0, -1.5)
  1900. end
  1901. end
  1902. end
  1903. end
  1904. refl.CFrame = handle10.CFrame * tehcf
  1905. local mainpos = refl.Position
  1906. local dist = 500
  1907. raa = math.random(1, 7)
  1908. if i == 1 then
  1909. MagicCircle(Neons[raa], refl.CFrame, 30, 30, 10, 0, 0, 0, 0.3)
  1910. end
  1911. local bounce = 10
  1912. repeat
  1913. bounce = bounce - 1
  1914. local hit, pos = rayCast(mainpos, refl.CFrame.lookVector, dist, Character)
  1915. local targl = mainpos - pos
  1916. local magl = targl.magnitude
  1917. dist = dist - magl
  1918. local mag = (mainpos - pos).magnitude
  1919. if i == 1 then
  1920. MagicCylinder(Neons[raa], CFrame.new((mainpos + pos) / 2, pos) * angles(1.57, 0, 0), 30, mag * 5, 30, 0, 0, 0, 0.3)
  1921. end
  1922. mainpos = pos
  1923. if hit ~= nil then
  1924. Damagefunc(hit, 8, 10, 0, "Normal", RootPart, 0.2, 1, (math.random(8, 10)), nil, nil, true)
  1925. end
  1926. until dist <= 0 or hit == nil or bounce < 1
  1927. end
  1928. end
  1929. do
  1930. do
  1931. if d == 7 then
  1932. rainbow6.Transparency = 1
  1933. rainbow6a.Transparency = 1
  1934. rmsh7.Scale = vt(2.5, 2.25, rs4 - rs4 * i)
  1935. rmsh7a.Scale = vt(2.5, 2.25, rs4 - rs4 * i)
  1936. rwld7.C0 = euler(0, mr(90), 0) * cf(2.85 + rw3 * i, 0, 0.1)
  1937. rwld7a.C0 = euler(0, mr(90), 0) * cf(2.85 + rw3 * i, 0, -0.1)
  1938. else
  1939. if d == 6 then
  1940. rainbow5.Transparency = 1
  1941. rainbow5a.Transparency = 1
  1942. rmsh6.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1943. rmsh6a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1944. rwld6.C0 = euler(0, mr(90), 0) * cf(2.175 + rw2 * i, 0, 0.1)
  1945. rwld6a.C0 = euler(0, mr(90), 0) * cf(2.175 + rw2 * i, 0, -0.1)
  1946. else
  1947. if d == 5 then
  1948. rainbow4.Transparency = 1
  1949. rainbow4a.Transparency = 1
  1950. rmsh5.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1951. rmsh5a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1952. rwld5.C0 = euler(0, mr(90), 0) * cf(1.425 + rw2 * i, 0, 0.1)
  1953. rwld5a.C0 = euler(0, mr(90), 0) * cf(1.425 + rw2 * i, 0, -0.1)
  1954. else
  1955. if d == 4 then
  1956. rainbow3.Transparency = 1
  1957. rainbow3a.Transparency = 1
  1958. rmsh4.Scale = vt(2.5, 2.25, rs3 - rs3 * i)
  1959. rmsh4a.Scale = vt(2.5, 2.25, rs3 - rs3 * i)
  1960. rwld4.C0 = euler(0, mr(90), 0) * cf(0.65 + rw2 * i, 0, 0.1)
  1961. rwld4a.C0 = euler(0, mr(90), 0) * cf(0.65 + rw2 * i, 0, -0.1)
  1962. else
  1963. if d == 3 then
  1964. rainbow2.Transparency = 1
  1965. rainbow2a.Transparency = 1
  1966. rmsh3.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1967. rmsh3a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1968. rwld3.C0 = euler(0, mr(90), 0) * cf(-0.125 + rw2 * i, 0, 0.1)
  1969. rwld3a.C0 = euler(0, mr(90), 0) * cf(-0.125 + rw2 * i, 0, -0.1)
  1970. else
  1971. if d == 2 then
  1972. rainbow1.Transparency = 1
  1973. rainbow1a.Transparency = 1
  1974. rmsh2.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1975. rmsh2a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  1976. rwld2.C0 = euler(0, mr(90), 0) * cf(-0.875 + rw2 * i, 0, 0.1)
  1977. rwld2a.C0 = euler(0, mr(90), 0) * cf(-0.875 + rw2 * i, 0, -0.1)
  1978. else
  1979. if d == 1 then
  1980. rmsh1.Scale = vt(2.5, 2.25, rs1 - rs1 * i)
  1981. rmsh1a.Scale = vt(2.5, 2.25, rs1 - rs1 * i)
  1982. rwld1.C0 = euler(0, mr(90), 0) * cf(-1.55 + rw1 * i, 0, 0.1)
  1983. rwld1a.C0 = euler(0, mr(90), 0) * cf(-1.55 + rw1 * i, 0, -0.1)
  1984. end
  1985. end
  1986. end
  1987. end
  1988. end
  1989. end
  1990. end
  1991. end
  1992. end
  1993. end
  1994. end
  1995. for _,c in pairs(model3:children()) do
  1996. c.Transparency = 1
  1997. end
  1998. for i = 0, 1, 0.1 do
  1999. swait()
  2000. if mainpos ~= nil then
  2001. local mpos = handle3.CFrame * euler(0, 0, 0)
  2002. local cff = CFrame.new(mpos.p, mainpos) * CFrame.Angles(math.pi / 2, 0, 0)
  2003. local x, y, z = handle3.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  2004. handlewld3a.Part0 = handle3
  2005. handlewld3a.Part1 = handle3a
  2006. handlewld3a.C0 = clerp(handlewld3a.C0, CFrame.Angles(x, y, z) * euler(0, -mr(45), 1.57) * cf(-1, 0, 0), 0.5)
  2007. end
  2008. do
  2009. do
  2010. if i < 1 then
  2011. handlewld4.C0 = clerp(handlewld4.C0, cf(0, 0, 0), 0.4)
  2012. handlewld5.C0 = clerp(handlewld5.C0, cf(0, 0, 0), 0.4)
  2013. handlewld6.C0 = clerp(handlewld6.C0, cf(3.35, 0, -0.075), 0.4)
  2014. handlewld7.C0 = clerp(handlewld7.C0, cf(3.35, 0, 0.075), 0.4)
  2015. end
  2016. end
  2017. end
  2018. end
  2019. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 1)
  2020. RootJoint.C1 = clerp(RootJoint.C1, RootCF, 1)
  2021. dec.Parent = nil
  2022. handlewld4.C0 = cf(0, 0, 0)
  2023. handlewld5.C0 = cf(0, 0, 0)
  2024. handlewld6.C0 = clerp(handlewld6.C0, cf(3.35, 0, -0.075), 1)
  2025. handlewld7.C0 = clerp(handlewld7.C0, cf(3.35, 0, 0.075), 1)
  2026. end
  2027. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2028. if StaggerHit.Value ~= true and cshoot == true then
  2029. cdebounce = true
  2030. cshoot = false
  2031. while cdebounce do
  2032. swait()
  2033. if MMouse ~= nil then
  2034. local mpos = handle3.CFrame * euler(0, 0, 0)
  2035. local cff = CFrame.new(mpos.p, MMouse.Hit.p) * CFrame.Angles(math.pi / 2, 0, 0)
  2036. local x, y, z = handle3.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  2037. handlewld3a.Part0 = handle3
  2038. handlewld3a.Part1 = handle3a
  2039. handlewld3a.C0 = clerp(handlewld3a.C0, CFrame.Angles(x, y, z) * euler(0, -mr(45), 1.57) * cf(-1, 0, 0), 0.3)
  2040. end
  2041. if cdebounce == true and dashoot < 27 then
  2042. if dashoot == 0 then
  2043. l2cf = vt(math.random(-10, 10) / 100, math.random(-10, 10) / 100, math.random(-10, 10) / 100)
  2044. l3cf = vt(math.random(-10, 10) / 100, math.random(-10, 10) / 100, math.random(-10, 10) / 100)
  2045. l4cf = vt(math.random(-10, 10) / 100, math.random(-10, 10) / 100, math.random(-10, 10) / 100)
  2046. end
  2047. dashoot = dashoot + 1
  2048. local hit, pos = rayCast(handle10.Position, handle10.CFrame.lookVector, 500, Character)
  2049. local hit2, pos2 = rayCast(handle10.Position, handle10.CFrame.lookVector + l2cf, 500, Character)
  2050. local hit3, pos3 = rayCast(handle10.Position, handle10.CFrame.lookVector + l3cf, 500, Character)
  2051. local hit4, pos4 = rayCast(handle10.Position, handle10.CFrame.lookVector + l4cf, 500, Character)
  2052. if (dashoot) % 3 == 0 and dashoot < 20 then
  2053. so("341336333", handle10, 1, 1)
  2054. end
  2055. if dashoot == 20 or dashoot == 22 or dashoot == 24 or dashoot == 26 then
  2056. cooldowns[1] = cooldowns[1] - 4
  2057. handlewld8.C0 = euler(0, mr(-20), 0) * cf(0.291, 0, 0)
  2058. handlewld9.C0 = euler(0, mr(20), 0) * cf(0.291, 0, 0)
  2059. so("341336385", handle10, 1, 1)
  2060. table.insert(Effects, {handle10.CFrame.lookVector, "Shoot2", 50, handle10.Position, 6, 8, 0, math.random(1, 7)})
  2061. table.insert(Effects, {handle10.CFrame.lookVector + l2cf, "Shoot2", 50, handle10.Position, 6, 8, 0, math.random(1, 7)})
  2062. table.insert(Effects, {handle10.CFrame.lookVector + l3cf, "Shoot2", 50, handle10.Position, 6, 8, 0, math.random(1, 7)})
  2063. table.insert(Effects, {handle10.CFrame.lookVector + l4cf, "Shoot2", 50, handle10.Position, 6, 8, 0, math.random(1, 7)})
  2064. else
  2065. handlewld8.C0 = euler(0, 0, 0) * cf(0.291, 0, 0)
  2066. handlewld9.C0 = euler(0, 0, 0) * cf(0.291, 0, 0)
  2067. end
  2068. local mag = (handle10.Position - pos).magnitude
  2069. laser1.Parent = effects
  2070. laser1.CFrame = cf((handle10.Position + pos) / 2, pos) * angles(1.57, 0, 0)
  2071. lmsh1.Scale = vt(0.5, mag * 5, 0.5)
  2072. local mag2 = (handle10.Position - pos2).magnitude
  2073. laser2.Parent = effects
  2074. laser2.CFrame = cf((handle10.Position + pos2) / 2, pos2) * angles(1.57, 0, 0)
  2075. lmsh2.Scale = vt(0.5, mag2 * 5, 0.5)
  2076. local mag3 = (handle10.Position - pos3).magnitude
  2077. laser3.Parent = effects
  2078. laser3.CFrame = cf((handle10.Position + pos3) / 2, pos3) * angles(1.57, 0, 0)
  2079. lmsh3.Scale = vt(0.5, mag3 * 5, 0.5)
  2080. local mag4 = (handle10.Position - pos4).magnitude
  2081. laser4.Parent = effects
  2082. laser4.CFrame = cf((handle10.Position + pos4) / 2, pos4) * angles(1.57, 0, 0)
  2083. lmsh4.Scale = vt(0.5, mag4 * 5, 0.5)
  2084. else
  2085. do
  2086. laser1.Parent = nil
  2087. laser2.Parent = nil
  2088. laser3.Parent = nil
  2089. laser4.Parent = nil
  2090. cdebounce = false
  2091. dashoot = 0
  2092. if MMouse ~= nil then
  2093. local mpos = handle3.CFrame * euler(0, 0, 0)
  2094. local cff = CFrame.new(mpos.p, MMouse.Hit.p) * CFrame.Angles(math.pi / 2, 0, 0)
  2095. local x, y, z = handle3.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  2096. handlewld3a.Part0 = handle3
  2097. handlewld3a.Part1 = handle3a
  2098. handlewld3a.C0 = clerp(handlewld3a.C0, CFrame.Angles(x, y, z) * euler(0, -mr(45), 1.57) * cf(-1, 0, 0), 0.3)
  2099. end
  2100. end
  2101. end
  2102. end
  2103. end
  2104. end
  2105. if Anim == "Idle" then
  2106. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(0.4, 0, 0.4) * euler(0, -1.5, 0), 0.3)
  2107. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.3)
  2108. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
  2109. end
  2110. if Anim == "Walk" or Anim == "Run" then
  2111. RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0.1) * euler(-0.2, 0, 0.4) * euler(0, 0, 0), 0.3)
  2112. RH.C0 = clerp(RH.C0, cf(0.95, -0.8, -0.2) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.5), 0.3)
  2113. LH.C0 = clerp(LH.C0, cf(-0.95, -0.8, -0.2) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.5), 0.3)
  2114. end
  2115. if Anim == "Jump" then
  2116. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(0.4, 0, 0.8) * euler(0, 0, 0), 0.3)
  2117. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.3)
  2118. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
  2119. end
  2120. if Anim == "Fall" then
  2121. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.8) * euler(0, -1.5, 0), 0.2)
  2122. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  2123. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  2124. end
  2125. end
  2126. Humanoid.AutoRotate = true
  2127. cbuster = false
  2128. rara1.Parent = nil
  2129. rara2.Parent = nil
  2130. handlewld8.C0 = euler(0, 0, 0) * cf(0.291, 0, 0)
  2131. handlewld9.C0 = euler(0, 0, 0) * cf(0.291, 0, 0)
  2132. laser1.Parent = nil
  2133. laser2.Parent = nil
  2134. laser3.Parent = nil
  2135. laser4.Parent = nil
  2136. LW.Part0 = ch.Torso
  2137. LW.Part1 = ch["Left Arm"]
  2138. handlewld3.Part0 = handle3
  2139. handlewld3.Part1 = LeftArm
  2140. for i = 0, 1, 0.1 do
  2141. swait()
  2142. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.8) * euler(0.2, 0, 0), 0.3)
  2143. for d = 1, #Buster do
  2144. Buster[d].Transparency = i
  2145. end
  2146. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2147. do
  2148. if StaggerHit.Value == true then
  2149. break
  2150. end
  2151. end
  2152. end
  2153. end
  2154. handlewld3a.C0 = clerp(handlewld3a.C0, cf(0, 0, 0), 1)
  2155. handlewld3.Part1 = Torso
  2156. handlewld3.C0 = euler(1.57, 0, 0) * cf(-0.5, 0, 0) * euler(0, 0, -0.5) * cf(0, 0, -0.8)
  2157. for i = 1, 0, -0.1 do
  2158. swait()
  2159. LeftArm.Transparency = i
  2160. for d = 1, #Buster do
  2161. Buster[d].Transparency = i
  2162. end
  2163. end
  2164. LeftArm.Transparency = 0
  2165. for d = 1, #Buster do
  2166. Buster[d].Transparency = 0
  2167. end
  2168. end
  2169. attack = false
  2170. end
  2171.  
  2172. do2 = function()
  2173. if sbreaker == true then
  2174. sbreaker = false
  2175. end
  2176. if attack == true then
  2177. return
  2178. end
  2179. attack = true
  2180. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2181. return
  2182. end
  2183. if cooldowns[2] >= 70 then
  2184. if Mode == "Sabers" then
  2185. UnSword()
  2186. end
  2187. local rara1 = Instance.new("NumberValue", Decrease)
  2188. rara1.Name = "DecreaseMvmt"
  2189. rara1.Value = -0.05
  2190. local rara2 = Instance.new("NumberValue", Decrease)
  2191. rara2.Name = "DecreaseDef"
  2192. rara2.Value = 0.1
  2193. so("341336144", LeftArm, 1, 1)
  2194. so("341336144", RightArm, 1, 1)
  2195. sbreaker = true
  2196. local sbref1 = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2197. local sbrwld1 = weld(sbref1, sbref1, LeftArm, cf(0, 1, 0))
  2198. local sbref2 = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2199. local sbrwld2 = weld(sbref2, sbref2, RightArm, cf(0, 1, 0))
  2200. local da1 = lparti1:Clone()
  2201. da1.Parent = sbref1
  2202. local da2 = lparti1:Clone()
  2203. da2.Parent = sbref2
  2204. da1.Enabled = true
  2205. da2.Enabled = true
  2206. for i = 0, 1, 0.1 do
  2207. swait()
  2208. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.3)
  2209. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.5, 0, 1) * euler(0, 0, 0), 0.3)
  2210. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.5, 0, -1) * euler(0, 0, 0), 0.3)
  2211. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2212. do
  2213. if StaggerHit.Value == true then
  2214. break
  2215. end
  2216. end
  2217. end
  2218. end
  2219. shockshoot = false
  2220. shockdebounce = false
  2221. local dashoot = 3
  2222. local sref = part(3, nil, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2223. sref.Anchored = true
  2224. TehM = nil
  2225. while sbreaker == true and cooldowns[2] > 20 do
  2226. swait()
  2227. if sbreakerII == true then
  2228. sbreakerII = false
  2229. for i = 0, 1, 0.1 do
  2230. swait()
  2231. da1.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
  2232. da2.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
  2233. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.3, 0, -0.2) * euler(0, 0, 0), 0.3)
  2234. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.3, 0, 0.2) * euler(0, 0, 0), 0.3)
  2235. end
  2236. cooldowns[2] = cooldowns[2] - 30
  2237. mana.Value = mana.Value - 10
  2238. for i = 1, 3 do
  2239. MouseLook = cf((RootPart.Position + MMouse.Hit.p) / 2, MMouse.Hit.p)
  2240. local hit, pos = rayCast(RootPart.Position, MouseLook.lookVector, 200, Character)
  2241. rand = cf(math.random(-1500, 1500) / 100, 10, math.random(-1500, 1500) / 100)
  2242. sref.CFrame = cf(pos) * rand
  2243. local hit2, pos2 = rayCast(sref.Position, CFrame.new(sref.Position, sref.Position - Vector3.new(0, 1, 0)).lookVector, 999, Character)
  2244. local d1 = part(3, effects, 0, 0.5, BrickColor.new("White"), "Effect", vt())
  2245. d1.Anchored = true
  2246. d1.CFrame = cf(pos2)
  2247. d1.Material = "Neon"
  2248. msh = mesh("CylinderMesh", d1, "nil", "nil", vt(0, 0, 0), vt(100, 5, 100))
  2249. d2 = d1:Clone()
  2250. d2.Transparency = 1
  2251. d2.Parent = d1
  2252. d2.CFrame = cf(d1.Position)
  2253. d2.BrickColor = BrickColor.new("New Yeller")
  2254. table.insert(Effects, {d1, "SatelliteStrike2", d2, d2.Mesh, 0, 0})
  2255. end
  2256. end
  2257. do
  2258. if shockshoot == true then
  2259. shockshoot = false
  2260. shockdebounce = true
  2261. end
  2262. if shockdebounce == true and dashoot < 25 then
  2263. dashoot = dashoot + 1
  2264. if (dashoot) % 4 == 0 and dashoot < 20 then
  2265. cooldowns[2] = cooldowns[2] - 3
  2266. MouseLook = cf((RootPart.Position + TehM) / 2, TehM)
  2267. local hit, pos = rayCast(RootPart.Position, MouseLook.lookVector, 200, Character)
  2268. rand = cf(math.random(-1500, 1500) / 100, 10, math.random(-1500, 1500) / 100)
  2269. if dashoot == 4 then
  2270. rand = cf(0, 10, 0)
  2271. end
  2272. sref.CFrame = cf(pos) * rand
  2273. local hit2, pos2 = rayCast(sref.Position, CFrame.new(sref.Position, sref.Position - Vector3.new(0, 1, 0)).lookVector, 999, Character)
  2274. local d1 = part(3, effects, 0, 0.5, BrickColor.new("White"), "Effect", vt())
  2275. d1.Anchored = true
  2276. d1.CFrame = cf(pos2)
  2277. d1.Material = "Neon"
  2278. msh = mesh("CylinderMesh", d1, "nil", "nil", vt(0, 0, 0), vt(50, 5, 50))
  2279. d2 = d1:Clone()
  2280. d2.Transparency = 1
  2281. d2.Parent = d1
  2282. d2.CFrame = cf(d1.Position)
  2283. d2.BrickColor = BrickColor.new("New Yeller")
  2284. table.insert(Effects, {d1, "SatelliteStrike", d2, d2.Mesh, 0, 0})
  2285. end
  2286. else
  2287. do
  2288. shockdebounce = false
  2289. dashoot = 3
  2290. da1.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
  2291. da2.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
  2292. RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0.1) * euler(2.5, 0, 1) * euler(0, 0, 0), 0.3)
  2293. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0.1) * euler(2.5, 0, -1) * euler(0, 0, 0), 0.3)
  2294. if Stagger.Value ~= true and StunT.Value > Stun.Value and StaggerHit.Value == true then
  2295. break
  2296. end
  2297. end
  2298. end
  2299. end
  2300. if Anim == "Idle" then
  2301. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.3)
  2302. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
  2303. end
  2304. if Anim == "Walk" or Anim == "Run" then
  2305. RH.C0 = clerp(RH.C0, cf(0.95, -0.8, -0.2) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.5), 0.3)
  2306. LH.C0 = clerp(LH.C0, cf(-0.95, -0.8, -0.2) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.5), 0.3)
  2307. end
  2308. if Anim == "Jump" then
  2309. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.3)
  2310. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
  2311. end
  2312. if Anim == "Fall" then
  2313. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  2314. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  2315. end
  2316. end
  2317. sbreaker = false
  2318. rara1.Parent = nil
  2319. rara2.Parent = nil
  2320. sbrwld1.Parent = nil
  2321. sbrwld2.Parent = nil
  2322. sbref1.Anchored = true
  2323. sbref2.Anchored = true
  2324. da1.Enabled = false
  2325. da2.Enabled = false
  2326. game:GetService("Debris"):AddItem(sbref1, 5)
  2327. game:GetService("Debris"):AddItem(sbref2, 5)
  2328. end
  2329. attack = false
  2330. end
  2331.  
  2332. do3 = function()
  2333. if attack == true then
  2334. return
  2335. end
  2336. attack = true
  2337. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2338. return
  2339. end
  2340. if cooldowns[3] >= 80 then
  2341. if Mode == "Sabers" then
  2342. UnSword()
  2343. end
  2344. local rara1 = Instance.new("NumberValue", Decrease)
  2345. rara1.Name = "DecreaseMvmt"
  2346. rara1.Value = 0.1
  2347. local rara2 = Instance.new("NumberValue", Decrease)
  2348. rara2.Name = "DecreaseDef"
  2349. rara2.Value = 0.05
  2350. so("341336144", LeftArm, 1, 1)
  2351. so("341336144", RightArm, 1, 1)
  2352. sblazing = true
  2353. local sbref1 = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt(1, 1, 1))
  2354. local sbrwld1 = weld(sbref1, sbref1, LeftArm, cf(0, 1, 0))
  2355. local sbref2 = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt(1, 1, 1))
  2356. local sbrwld2 = weld(sbref2, sbref2, RightArm, cf(0, 1, 0))
  2357. local da1 = sparti:Clone()
  2358. da1.Parent = sbref1
  2359. local da2 = sparti:Clone()
  2360. da2.Parent = sbref2
  2361. da1.Enabled = true
  2362. da2.Enabled = true
  2363. for i = 0, 1, 0.1 do
  2364. swait()
  2365. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.3)
  2366. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2.5, 0, 1) * euler(0, 0, 0), 0.3)
  2367. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(2.5, 0, -1) * euler(0, 0, 0), 0.3)
  2368. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2369. do if StaggerHit.Value == true then
  2370.  
  2371. break
  2372. end
  2373. end
  2374. end
  2375. end
  2376. starshoot = false
  2377. stardebounce = false
  2378. local dashoot = 0
  2379. local sref = part(3, nil, 0, 0.5, BrickColor.new("Black"), "Reference", vt())
  2380. sref.Anchored = true
  2381. TehM = nil
  2382. while sblazing == true and cooldowns[3] > 20 do
  2383. swait()
  2384. if galacblazing == true then
  2385. galacblazing = false
  2386. for i = 0, 1, 0.1 do
  2387. swait()
  2388. RW.C0 = clerp(RW.C0, cf(1.5, 0.6, 0) * euler(2.8, 0, 0.4) * euler(0, 0, 0), 0.3)
  2389. LW.C0 = clerp(LW.C0, cf(-1.5, 0.6, 0) * euler(2.8, 0, -0.4) * euler(0, 0, 0), 0.3)
  2390. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.6, 0, 0), 0.3)
  2391. da1.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
  2392. da2.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
  2393. if math.random(1, 2) == 1 then
  2394. da1.RotSpeed = nr(400, 500)
  2395. else
  2396. da1.RotSpeed = nr(-500, -400)
  2397. end
  2398. if math.random(1, 2) == 1 then
  2399. da2.RotSpeed = nr(400, 500)
  2400. else
  2401. da2.RotSpeed = nr(-500, -400)
  2402. end
  2403. end
  2404. cooldowns[3] = cooldowns[3] - 20
  2405. mana.Value = mana.Value - 20
  2406. sref.CFrame = cf(RootPart.Position) * cf(0, 50, 0)
  2407. sref.CFrame = cf(sref.Position, MMouse.Hit.p)
  2408. local stref = part(3, effects, 0, 0, BrickColor.new("Black"), "Reference", vt())
  2409. stref.Anchored = true
  2410. stref.Material = "Neon"
  2411. stref.CFrame = sref.CFrame
  2412. local strmsh = mesh("SpecialMesh", stref, "FileMesh", "45428961", vt(0, 0, 0), vt(90, 90, 90))
  2413. so("341336159", stref, 1, 0.4)
  2414. table.insert(Effects, {stref.CFrame.lookVector, "Shoot4", 150, sref.Position, 7, 9, 0, math.random(1, 7), stref, math.random(-50, 50), 0})
  2415. end
  2416. do
  2417. if Stagger.Value ~= true and StunT.Value > Stun.Value then
  2418. if StaggerHit.Value ~= true and starshoot == true then
  2419. starshoot = false
  2420. stardebounce = true
  2421. cooldowns[3] = cooldowns[3] - 10
  2422. sref.CFrame = cf(RootPart.Position) * cf(math.random(-3000, 3000) / 100, math.random(500, 5000) / 100, math.random(-3000, 3000) / 100)
  2423. sref.CFrame = cf(sref.Position, MMouse.Hit.p)
  2424. local stref = part(3, effects, 0, 0, BrickColor.new("Black"), "Reference", vt())
  2425. stref.Anchored = true
  2426. stref.Material = "Neon"
  2427. stref.CFrame = sref.CFrame
  2428. local strmsh = mesh("SpecialMesh", stref, "FileMesh", "45428961", vt(0, 0, 0), vt(30, 30, 30))
  2429. so("341336159", stref, 1, 1)
  2430. table.insert(Effects, {stref.CFrame.lookVector, "Shoot3", 150, sref.Position, 7, 9, 0, math.random(1, 7), stref, math.random(-50, 50), 0})
  2431. end
  2432. do
  2433. if stardebounce == true and dashoot < 10 then
  2434. dashoot = dashoot + 1
  2435. else
  2436. stardebounce = false
  2437. dashoot = 0
  2438. end
  2439. da1.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
  2440. da2.Color = cs(Neons[math.random(1, 7)].Color, Neons[math.random(1, 7)].Color)
  2441. if math.random(1, 2) == 1 then
  2442. da1.RotSpeed = nr(400, 500)
  2443. else
  2444. da1.RotSpeed = nr(-500, -400)
  2445. end
  2446. if math.random(1, 2) == 1 then
  2447. da2.RotSpeed = nr(400, 500)
  2448. else
  2449. da2.RotSpeed = nr(-500, -400)
  2450. end
  2451. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 0.3)
  2452. RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0.1) * euler(2.5, 0, 1) * euler(0, 0, 0), 0.3)
  2453. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0.1) * euler(2.5, 0, -1) * euler(0, 0, 0), 0.3)
  2454. if Anim == "Idle" then
  2455. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.3)
  2456. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
  2457. end
  2458. end
  2459. if Anim == "Walk" or Anim == "Run" then
  2460. RH.C0 = clerp(RH.C0, cf(0.95, -0.8, -0.2) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.5), 0.3)
  2461. LH.C0 = clerp(LH.C0, cf(-0.95, -0.8, -0.2) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.5), 0.3)
  2462. end
  2463. end
  2464. if Anim == "Jump" then
  2465. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.1), 0.3)
  2466. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.05), 0.3)
  2467. end
  2468. end
  2469. if Anim == "Fall" then
  2470. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  2471. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  2472. end
  2473. end
  2474. sblazing = false
  2475. rara1.Parent = nil
  2476. rara2.Parent = nil
  2477. sref.Parent = nil
  2478. sbrwld1.Parent = nil
  2479. sbrwld2.Parent = nil
  2480. sbref1.Anchored = true
  2481. sbref2.Anchored = true
  2482. da1.Enabled = false
  2483. da2.Enabled = false
  2484. game:GetService("Debris"):AddItem(sbref1, 5)
  2485. game:GetService("Debris"):AddItem(sbref2, 5)
  2486. end
  2487. attack = false
  2488. end
  2489.  
  2490. do4t = function()
  2491. if attack == true then
  2492. return
  2493. end
  2494. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2495. return
  2496. end
  2497. cooldowns[4] = 0
  2498. end
  2499.  
  2500. slaser=false
  2501.  
  2502. do4 = function()
  2503. if attack == true then
  2504. return
  2505. end
  2506. if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then
  2507. return
  2508. end
  2509. if cooldowns[4] >= 50 then
  2510. attack=true
  2511. slaser=true
  2512. if slaser == true then
  2513. slaser = false
  2514. so("306247678", Torso, 1, 0.5)
  2515. local dec = Instance.new("NumberValue", Decrease)
  2516. dec.Name = "DecreaseMvmt"
  2517. dec.Value = 0
  2518. for d = 1, 7 do
  2519. --[[for i = 1, 0, -0.25 do
  2520. swait()
  2521. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.4) * euler(0, 0, 0), 0.3)
  2522. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4, 0, -0.4) * euler(0, 0, 0), 0.3)
  2523. end ]]
  2524. for i = 1, 0, -0.25 do
  2525. swait()
  2526. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, -0.5) * euler(1.6, 0, 0) * euler(0, 0, 2) * euler(0, -1.5, 0) * euler(-2.2, 0, 0), 0.5)
  2527. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, -0.5) * euler(1.6, 0, 0) * euler(0, 0, -2) * euler(0, 1.5, 0) * euler(-2.2, 0, 0), 0.5)
  2528.  
  2529. do
  2530. do
  2531. if d == 1 then
  2532. rmsh7.Scale = vt(2.5, 2.25, rs4 - rs4 * i)
  2533. rmsh7a.Scale = vt(2.5, 2.25, rs4 - rs4 * i)
  2534. rwld7.C0 = euler(0, mr(90), 0) * cf(2.85 + rw3 * i, 0, 0.1)
  2535. rwld7a.C0 = euler(0, mr(90), 0) * cf(2.85 + rw3 * i, 0, -0.1)
  2536. else
  2537. if d == 2 then
  2538. rmsh6.Scale = vt(3, 2.25, rs2 - rs2 * i)
  2539. rmsh6a.Scale = vt(3, 2.25, rs2 - rs2 * i)
  2540. rwld6.C0 = euler(0, mr(90), 0) * cf(2.175 + rw2 * i, 0, 0.1)
  2541. rwld6a.C0 = euler(0, mr(90), 0) * cf(2.175 + rw2 * i, 0, -0.1)
  2542. else
  2543. if d == 3 then
  2544. rmsh5.Scale = vt(3, 2.25, rs2 - rs2 * i)
  2545. rmsh5a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  2546. rwld5.C0 = euler(0, mr(90), 0) * cf(1.425 + rw2 * i, 0, 0.1)
  2547. rwld5a.C0 = euler(0, mr(90), 0) * cf(1.425 + rw2 * i, 0, -0.1)
  2548. else
  2549. if d == 4 then
  2550. rmsh4.Scale = vt(2.5, 2.25, rs3 - rs3 * i)
  2551. rmsh4a.Scale = vt(2.5, 2.25, rs3 - rs3 * i)
  2552. rwld4.C0 = euler(0, mr(90), 0) * cf(0.65 + rw2 * i, 0, 0.1)
  2553. rwld4a.C0 = euler(0, mr(90), 0) * cf(0.65 + rw2 * i, 0, -0.1)
  2554. else
  2555. if d == 5 then
  2556. rmsh3.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  2557. rmsh3a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  2558. rwld3.C0 = euler(0, mr(90), 0) * cf(-0.125 + rw2 * i, 0, 0.1)
  2559. rwld3a.C0 = euler(0, mr(90), 0) * cf(-0.125 + rw2 * i, 0, -0.1)
  2560. else
  2561. if d == 6 then
  2562. rmsh2.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  2563. rmsh2a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  2564. rwld2.C0 = euler(0, mr(90), 0) * cf(-0.875 + rw2 * i, 0, 0.1)
  2565. rwld2a.C0 = euler(0, mr(90), 0) * cf(-0.875 + rw2 * i, 0, -0.1)
  2566. else
  2567. if d == 7 then
  2568. rmsh1.Scale = vt(2.5, 2.25, rs1 - rs1 * i)
  2569. rmsh1a.Scale = vt(2.5, 2.25, rs1 - rs1 * i)
  2570. rwld1.C0 = euler(0, mr(90), 0) * cf(-1.55 + rw1 * i, 0, 0.1)
  2571. rwld1a.C0 = euler(0, mr(90), 0) * cf(-1.55 + rw1 * i, 0, -0.1)
  2572. end
  2573. end
  2574. end
  2575. end
  2576. end
  2577. end
  2578. end
  2579. end
  2580. end
  2581. end
  2582. end
  2583. local mainpos = MMouse.Hit.p
  2584. for i = 0, 3, 0.2 do
  2585. swait()
  2586. if mainpos ~= nil then
  2587. local mpos = handle3.CFrame * euler(0, 0, 0)
  2588. local cff = CFrame.new(mpos.p, mainpos) * CFrame.Angles(math.pi / 2, 0, 0)
  2589. local x, y, z = LeftArm.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  2590. end
  2591. do
  2592. do
  2593. if i < 1 then
  2594. end
  2595. end
  2596. end
  2597. end
  2598. mana.Value = mana.Value - 15
  2599. cooldowns[4] = cooldowns[4] - 30
  2600. for i = 1, 3 do
  2601. so("341336476", Torso, 10, 1)
  2602. so("425169820", Torso, 1, .9)
  2603. --so("341336476", handle10, 10, 1)
  2604. end
  2605. local refl = part(3, nil, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2606. refl.Anchored = true
  2607. for d = 1, 7 do
  2608. swait(1)
  2609. for i = 0, 1, 0.25 do
  2610. swait()
  2611. if mainpos ~= nil then
  2612. local mpos = handle3.CFrame * euler(0, 0, 0)
  2613. local cff = CFrame.new(mpos.p, mainpos) * CFrame.Angles(math.pi / 2, 0, 0)
  2614. local x, y, z = RightArm.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  2615. for i = 1, 5 do
  2616. tehcf = cf(0, 0, -1.5)
  2617. if i == 2 then
  2618. rainbow2.Transparency = 1
  2619. rainbow2a.Transparency = 1
  2620. tehcf = cf(0, 3, -1.5)
  2621. else
  2622. if i == 3 then
  2623. rainbow3.Transparency = 1
  2624. rainbow3a.Transparency = 1
  2625. tehcf = cf(0, -3, -1.5)
  2626. else
  2627. if i == 4 then
  2628. rainbow4.Transparency = 1
  2629. rainbow4a.Transparency = 1
  2630. tehcf = cf(3, 0, -1.5)
  2631. else
  2632. if i == 5 then
  2633. rainbow5.Transparency = 1
  2634. rainbow5a.Transparency = 1
  2635. tehcf = cf(-3, 0, -1.5)
  2636. end
  2637. end
  2638. end
  2639. end
  2640. refl.CFrame = Character.HumanoidRootPart.CFrame * tehcf
  2641. local mainpos = refl.Position
  2642. local dist = 500
  2643. raa = math.random(1, 7)
  2644. if i == 1 then
  2645. MagicCircle(Neons[raa], refl.CFrame, 30, 30, 10, 0, 0, 0, 0.3)
  2646. end
  2647. local bounce = 10
  2648. repeat
  2649. bounce = bounce - 1
  2650. local hit, pos = rayCast(mainpos, refl.CFrame.lookVector, dist, Character)
  2651. local targl = mainpos - pos
  2652. local magl = targl.magnitude
  2653. dist = dist - magl
  2654. local mag = (mainpos - pos).magnitude
  2655. if i == 1 then
  2656. MagicCylinder(Neons[raa], CFrame.new((mainpos + pos) / 2, pos) * angles(1.57, 0, 0), 30, mag * 5, 30, 0, 0, 0, 0.3)
  2657. end
  2658. mainpos = pos
  2659. if hit ~= nil then
  2660. Damagefunc(hit, 8, 10, 0, "Normal", RootPart, 0.2, 1, (math.random(8, 10)), nil, nil, true)
  2661. end
  2662. until dist <= 0 or hit == nil or bounce < 1
  2663. end
  2664. end
  2665. do
  2666. do
  2667. if d == 7 then
  2668. rainbow6.Transparency = 1
  2669. rainbow6a.Transparency = 1
  2670. rmsh7.Scale = vt(2.5, 2.25, rs4 - rs4 * i)
  2671. rmsh7a.Scale = vt(2.5, 2.25, rs4 - rs4 * i)
  2672. rwld7.C0 = euler(0, mr(90), 0) * cf(2.85 + rw3 * i, 0, 0.1)
  2673. rwld7a.C0 = euler(0, mr(90), 0) * cf(2.85 + rw3 * i, 0, -0.1)
  2674. else
  2675. if d == 6 then
  2676. rainbow5.Transparency = 1
  2677. rainbow5a.Transparency = 1
  2678. rmsh6.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  2679. rmsh6a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  2680. rwld6.C0 = euler(0, mr(90), 0) * cf(2.175 + rw2 * i, 0, 0.1)
  2681. rwld6a.C0 = euler(0, mr(90), 0) * cf(2.175 + rw2 * i, 0, -0.1)
  2682. else
  2683. if d == 5 then
  2684. rainbow4.Transparency = 1
  2685. rainbow4a.Transparency = 1
  2686. rmsh5.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  2687. rmsh5a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  2688. rwld5.C0 = euler(0, mr(90), 0) * cf(1.425 + rw2 * i, 0, 0.1)
  2689. rwld5a.C0 = euler(0, mr(90), 0) * cf(1.425 + rw2 * i, 0, -0.1)
  2690. else
  2691. if d == 4 then
  2692. rainbow3.Transparency = 1
  2693. rainbow3a.Transparency = 1
  2694. rmsh4.Scale = vt(2.5, 2.25, rs3 - rs3 * i)
  2695. rmsh4a.Scale = vt(2.5, 2.25, rs3 - rs3 * i)
  2696. rwld4.C0 = euler(0, mr(90), 0) * cf(0.65 + rw2 * i, 0, 0.1)
  2697. rwld4a.C0 = euler(0, mr(90), 0) * cf(0.65 + rw2 * i, 0, -0.1)
  2698. else
  2699. if d == 3 then
  2700. rainbow2.Transparency = 1
  2701. rainbow2a.Transparency = 1
  2702. rmsh3.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  2703. rmsh3a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  2704. rwld3.C0 = euler(0, mr(90), 0) * cf(-0.125 + rw2 * i, 0, 0.1)
  2705. rwld3a.C0 = euler(0, mr(90), 0) * cf(-0.125 + rw2 * i, 0, -0.1)
  2706. else
  2707. if d == 2 then
  2708. rainbow1.Transparency = 1
  2709. rainbow1a.Transparency = 1
  2710. rmsh2.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  2711. rmsh2a.Scale = vt(2.5, 2.25, rs2 - rs2 * i)
  2712. rwld2.C0 = euler(0, mr(90), 0) * cf(-0.875 + rw2 * i, 0, 0.1)
  2713. rwld2a.C0 = euler(0, mr(90), 0) * cf(-0.875 + rw2 * i, 0, -0.1)
  2714. else
  2715. if d == 1 then
  2716. rmsh1.Scale = vt(2.5, 2.25, rs1 - rs1 * i)
  2717. rmsh1a.Scale = vt(2.5, 2.25, rs1 - rs1 * i)
  2718. rwld1.C0 = euler(0, mr(90), 0) * cf(-1.55 + rw1 * i, 0, 0.1)
  2719. rwld1a.C0 = euler(0, mr(90), 0) * cf(-1.55 + rw1 * i, 0, -0.1)
  2720. end
  2721. end
  2722. end
  2723. end
  2724. end
  2725. end
  2726. end
  2727. end
  2728. end
  2729. end
  2730. end
  2731. for i = 0, 1, 0.1 do
  2732. swait()
  2733. if mainpos ~= nil then
  2734. local mpos = handle3.CFrame * euler(0, 0, 0)
  2735. local cff = CFrame.new(mpos.p, mainpos) * CFrame.Angles(math.pi / 2, 0, 0)
  2736. local x, y, z = handle3.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  2737. end
  2738. do
  2739. do
  2740. if i < 1 then
  2741. end
  2742. end
  2743. end
  2744. end
  2745. end
  2746. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2, 0, 0), 1)
  2747. RootJoint.C1 = clerp(RootJoint.C1, RootCF, 1)
  2748. --dec.Parent = nil
  2749. attack=false
  2750. end
  2751. end
  2752.  
  2753. findNearestTorso = function(pos, distance)
  2754. local list = (game.Workspace:children())
  2755. local torso = nil
  2756. local dist = distance
  2757. local temp, human, temp2 = nil, nil, nil
  2758. for x = 1, #list do
  2759. temp2 = list[x]
  2760. canfind = true
  2761. if game.Players:GetPlayerFromCharacter(temp2) ~= nil and game.Players:GetPlayerFromCharacter(temp2).TeamColor == Player.TeamColor and Player.Neutral == false then
  2762. canfind = false
  2763. end
  2764. canfind = true
  2765. if temp2.className == "Model" and temp2 ~= Character and canfind == true then
  2766. temp = temp2:findFirstChild("Torso")
  2767. human = temp2:findFirstChild("Humanoid")
  2768. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then
  2769. torso = temp
  2770. dist = (temp.Position - pos).magnitude
  2771. end
  2772. end
  2773. end
  2774. return torso, dist
  2775. end
  2776.  
  2777. DecreaseStat = function(Model, Stat, Amount, Duration)
  2778. if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
  2779. Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount
  2780. d = Instance.new("NumberValue", Model.Stats.Decrease)
  2781. dur = Instance.new("NumberValue", d)
  2782. dur.Name = "Duration"
  2783. dur.Value = Duration
  2784. game:GetService("Debris"):AddItem(d, 20)
  2785. if Stat == "Damage" then
  2786. d.Name = "DecreaseAtk"
  2787. else
  2788. if Stat == "Defense" then
  2789. d.Name = "DecreaseDef"
  2790. else
  2791. if Stat == "Movement" then
  2792. d.Name = "DecreaseMvmt"
  2793. end
  2794. end
  2795. end
  2796. if Model:findFirstChild("Torso") ~= nil then
  2797. display = ""
  2798. if Stat == "Damage" then
  2799. if Amount > 0 then
  2800. display = "-Damage"
  2801. else
  2802. display = "+Damage"
  2803. end
  2804. else
  2805. if Stat == "Defense" then
  2806. if Amount > 0 then
  2807. display = "-Defense"
  2808. else
  2809. display = "+Defense"
  2810. end
  2811. else
  2812. if Stat == "Movement" then
  2813. if Amount > 0 then
  2814. display = "-Movement"
  2815. else
  2816. display = "+Movement"
  2817. end
  2818. end
  2819. end
  2820. end
  2821. showDamage(Model, display, "Debuff")
  2822. end
  2823. d.Value = Amount
  2824. end
  2825. end
  2826.  
  2827. GetDist = function(Part1, Part2, magni)
  2828. local targ = Part1.Position - Part2.Position
  2829. local mag = targ.magnitude
  2830. if mag <= magni then
  2831. return true
  2832. else
  2833. return false
  2834. end
  2835. end
  2836.  
  2837. MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2838. for _,c in pairs(workspace:children()) do
  2839. local hum = c:findFirstChild("Humanoid")
  2840. if hum ~= nil then
  2841. local head = nil
  2842. for _,d in pairs(c:children()) do
  2843. if d.className == "Model" and ranged ~= true then
  2844. head = d:findFirstChild("Hitbox")
  2845. if d.Parent == Character then
  2846. break
  2847. end
  2848. if head ~= nil then
  2849. local targ = head.Position - Part.Position
  2850. local mag = targ.magnitude
  2851. if mag <= magni and c.Name ~= Player.Name then
  2852. ref = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  2853. ref.Anchored = true
  2854. ref.CFrame = cf(head.Position)
  2855. game:GetService("Debris"):AddItem(ref, 1)
  2856. hitnum = math.random(1, 5)
  2857. if hitnum == 1 then
  2858. so("199148971", ref, 1, 1)
  2859. else
  2860. if hitnum == 2 then
  2861. so("199149025", ref, 1, 1)
  2862. else
  2863. if hitnum == 3 then
  2864. so("199149072", ref, 1, 1)
  2865. else
  2866. if hitnum == 4 then
  2867. so("199149109", ref, 1, 1)
  2868. else
  2869. if hitnum == 5 then
  2870. so("199149119", ref, 1, 1)
  2871. end
  2872. end
  2873. end
  2874. end
  2875. end
  2876. StaggerHit.Value = true
  2877. end
  2878. end
  2879. end
  2880. do
  2881. if d.className == "Part" then
  2882. head = d
  2883. if head ~= nil then
  2884. local targ = head.Position - Part.Position
  2885. local mag = targ.magnitude
  2886. if mag <= magni and c.Name ~= Player.Name then
  2887. if stun == nil then
  2888. stun = math.random(5, 10)
  2889. end
  2890. local Rang = nil
  2891. if Ranged == false then
  2892. Rang = true
  2893. end
  2894. local stag = nil
  2895. if shbash == true then
  2896. stag = true
  2897. end
  2898. Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  2899. end
  2900. end
  2901. end
  2902. end
  2903. end
  2904. end
  2905. end
  2906. end
  2907.  
  2908. MagniBuff = function(Part, magni, Dec, DecAm, Dur)
  2909. DecreaseStat(Character, Dec, DecAm, Dur)
  2910. for _,c in pairs(workspace:children()) do
  2911. local hum = c:findFirstChild("Humanoid")
  2912. if hum ~= nil then
  2913. local head = c:findFirstChild("Torso")
  2914. if head ~= nil then
  2915. local targ = head.Position - Part.Position
  2916. local mag = targ.magnitude
  2917. cando = true
  2918. if mag <= magni then
  2919. if Player.Neutral == false then
  2920. if game.Players:GetPlayerFromCharacter(head.Parent) ~= nil then
  2921. if game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then
  2922. cando = true
  2923. else
  2924. cando = false
  2925. end
  2926. else
  2927. cando = false
  2928. end
  2929. if head.Parent:findFirstChild("Alignment") ~= nil and head.Parent.Alignment.Value == Player.TeamColor.Color then
  2930. cando = true
  2931. end
  2932. else
  2933. cando = false
  2934. end
  2935. if cando == true then
  2936. DecreaseStat(head.Parent, Dec, DecAm, Dur)
  2937. end
  2938. end
  2939. end
  2940. end
  2941. end
  2942. end
  2943.  
  2944. rayCast = function(Pos, Dir, Max, Ignore)
  2945. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  2946. end
  2947.  
  2948. local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0)
  2949. LastPoint = Point
  2950. effect = function(Color, Ref, LP, P1, returnn, size, thing1)
  2951. if LP == nil or P1 == nil then
  2952. return
  2953. end
  2954. local effectsmsh = Instance.new("SpecialMesh")
  2955. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  2956. effectsmsh.MeshType = "Head"
  2957. effectsmsh.Name = "Mesh"
  2958. local effectsg = Instance.new("Part")
  2959. NoOutline(effectsg)
  2960. effectsg.formFactor = 3
  2961. effectsg.CanCollide = false
  2962. effectsg.Name = "Eff"
  2963. effectsg.Locked = true
  2964. effectsg.Anchored = true
  2965. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  2966. effectsg.Parent = workspace
  2967. effectsmsh.Parent = effectsg
  2968. effectsg.BrickColor = BrickColor.new(Color)
  2969. effectsg.Reflectance = Ref
  2970. local point1 = P1
  2971. local mg = (LP.p - point1.p).magnitude
  2972. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  2973. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  2974. effectsmsh.Scale = Vector3.new(size, 1, size)
  2975. game:GetService("Debris"):AddItem(effectsg, 2)
  2976. if returnn then
  2977. return effectsg
  2978. end
  2979. if not returnn then
  2980. if thing1 == 1 then
  2981. table.insert(Effects, {effectsg, "Cylinder", 0.05, 0.2, 0, 0.2, effectsmsh})
  2982. else
  2983. if thing1 == 2 then
  2984. table.insert(Effects, {effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
  2985. else
  2986. if thing1 == 3 then
  2987. table.insert(Effects, {effectsg, "Cylinder", 0, 0, 0, 0.1, effectsmsh})
  2988. end
  2989. end
  2990. end
  2991. end
  2992. end
  2993.  
  2994. effect2 = function(Color, Ref, LP, P1, returnn, size, raa)
  2995. if LP == nil or P1 == nil then
  2996. return
  2997. end
  2998. MshTypee = "CylinderMesh"
  2999. if raa == 2 then
  3000. MshTypee = "BlockMesh"
  3001. end
  3002. local effectsmsh = Instance.new(MshTypee)
  3003. effectsmsh.Scale = Vector3.new(0.2, 1, 0.2)
  3004. effectsmsh.Name = "Mesh"
  3005. local effectsg = Instance.new("Part")
  3006. NoOutline(effectsg)
  3007. if raa == 2 then
  3008. effectsg.Material = "Neon"
  3009. end
  3010. effectsg.formFactor = 3
  3011. effectsg.CanCollide = false
  3012. effectsg.Name = "Eff"
  3013. effectsg.Locked = true
  3014. effectsg.Anchored = true
  3015. effectsg.Size = Vector3.new(0.5, 1, 0.5)
  3016. effectsg.Parent = workspace
  3017. effectsmsh.Parent = effectsg
  3018. effectsg.BrickColor = BrickColor.new(Color)
  3019. effectsg.Reflectance = Ref
  3020. local point1 = P1
  3021. local mg = (LP.p - point1.p).magnitude
  3022. effectsg.Size = Vector3.new(0.5, mg, 0.5)
  3023. effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0)
  3024. effectsmsh.Scale = Vector3.new(size, 1, size)
  3025. game:GetService("Debris"):AddItem(effectsg, 5)
  3026. if returnn then
  3027. return effectsg
  3028. end
  3029. if not returnn then
  3030. if raa == 2 then
  3031. table.insert(Effects, {effectsg, "Cylinder", 0.05, -0.05, 0, -0.05, effectsmsh})
  3032. else
  3033. table.insert(Effects, {effectsg, "Cylinder", 0.1, -0.2, 0, -0.2, effectsmsh})
  3034. end
  3035. end
  3036. end
  3037.  
  3038. local CFrameFromTopBack = function(at, top, back)
  3039. local right = top:Cross(back)
  3040. 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)
  3041. end
  3042.  
  3043. Triangle = function(a, b, c)
  3044. local edg1 = c - a:Dot(b - a.unit)
  3045. local edg2 = a - b:Dot(c - b.unit)
  3046. local edg3 = b - c:Dot(a - c.unit)
  3047. if edg1 <= b - a.magnitude and edg1 >= 0 then
  3048. a = a
  3049. else
  3050. if edg2 <= c - b.magnitude and edg2 >= 0 then
  3051. a = b
  3052. else
  3053. if edg3 <= a - c.magnitude and edg3 >= 0 then
  3054. a = c
  3055. else
  3056. assert(false, "unreachable")
  3057. end
  3058. end
  3059. end
  3060. local len1 = (c-a):Dot((b-a).unit)
  3061. local len2 = (b-a).magnitude - len1
  3062. local width = (a + (b-a).unit*len1 - c).magnitude
  3063. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  3064. local list = {}
  3065. if len1 > 0.01 then
  3066. local w1 = Instance.new("WedgePart", m)
  3067. w1.Name = "Triangle"
  3068. game:GetService("Debris"):AddItem(w1, 5)
  3069. w1.Material = "SmoothPlastic"
  3070. w1.FormFactor = "Custom"
  3071. w1.BrickColor = BrickColor.new("Medium blue")
  3072. w1.Transparency = 0
  3073. w1.Reflectance = 0
  3074. w1.Material = "SmoothPlastic"
  3075. w1.CanCollide = false
  3076. NoOutline(w1)
  3077. local sz = Vector3.new(0.2, width, len1)
  3078. w1.Size = sz
  3079. local sp = Instance.new("SpecialMesh", w1)
  3080. sp.MeshType = "Wedge"
  3081. sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size
  3082. w1:BreakJoints()
  3083. w1.Anchored = true
  3084. w1.Parent = workspace
  3085. w1.Transparency = 0.7
  3086. table.insert(Effects, {w1, "Disappear", 0.05})
  3087. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  3088. table.insert(list, w1)
  3089. end
  3090. do
  3091. if len2 > 0.01 then
  3092. local w2 = Instance.new("WedgePart", m)
  3093. w2.Name = "Triangle"
  3094. game:GetService("Debris"):AddItem(w2, 5)
  3095. w2.Material = "SmoothPlastic"
  3096. w2.FormFactor = "Custom"
  3097. w2.BrickColor = BrickColor.new("Medium blue")
  3098. w2.Transparency = 0
  3099. w2.Reflectance = 0
  3100. w2.Material = "SmoothPlastic"
  3101. w2.CanCollide = false
  3102. NoOutline(w2)
  3103. local sz = Vector3.new(0.2, width, len2)
  3104. w2.Size = sz
  3105. local sp = Instance.new("SpecialMesh", w2)
  3106. sp.MeshType = "Wedge"
  3107. sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size
  3108. w2:BreakJoints()
  3109. w2.Anchored = true
  3110. w2.Parent = workspace
  3111. w2.Transparency = 0.7
  3112. table.insert(Effects, {w2, "Disappear", 0.05})
  3113. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  3114. table.insert(list, w2)
  3115. end
  3116. do
  3117. return unpack(list)
  3118. end
  3119. end
  3120. end
  3121.  
  3122. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  3123. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  3124. prt.Anchored = true
  3125. prt.CFrame = cframe
  3126. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3127. game:GetService("Debris"):AddItem(prt, 10)
  3128. if Type == 1 or Type == nil then
  3129. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  3130. else
  3131. if Type == 2 then
  3132. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  3133. else
  3134. if Type == 3 then
  3135. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh, prt.CFrame})
  3136. else
  3137. if Type == 4 then
  3138. table.insert(Effects, {prt, "Block4", delay, x3, y3, z3, msh, 1})
  3139. end
  3140. end
  3141. end
  3142. end
  3143. end
  3144.  
  3145. MagicBlock2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  3146. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  3147. prt.Material = "Neon"
  3148. prt.Anchored = true
  3149. prt.CFrame = cframe
  3150. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3151. game:GetService("Debris"):AddItem(prt, 10)
  3152. if Type == 1 or Type == nil then
  3153. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
  3154. else
  3155. if Type == 2 then
  3156. table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
  3157. else
  3158. if Type == 3 then
  3159. table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh, prt.CFrame})
  3160. end
  3161. end
  3162. end
  3163. end
  3164.  
  3165. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3166. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  3167. prt.Material = "Neon"
  3168. prt.Anchored = true
  3169. prt.CFrame = cframe
  3170. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  3171. game:GetService("Debris"):AddItem(prt, 10)
  3172. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  3173. end
  3174.  
  3175. MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push)
  3176. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  3177. prt.Anchored = true
  3178. prt.CFrame = cframe
  3179. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  3180. game:GetService("Debris"):AddItem(prt, 10)
  3181. table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push})
  3182. end
  3183.  
  3184. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3185. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  3186. prt.Material = "Neon"
  3187. prt.Anchored = true
  3188. prt.CFrame = cframe
  3189. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  3190. game:GetService("Debris"):AddItem(prt, 10)
  3191. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  3192. end
  3193.  
  3194. MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3195. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  3196. prt.Anchored = true
  3197. prt.CFrame = cframe
  3198. local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  3199. game:GetService("Debris"):AddItem(prt, 10)
  3200. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  3201. end
  3202.  
  3203. ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
  3204. local prt = part(3, effects, 0, 1, brickcolor, "Effect", vt())
  3205. prt.Anchored = true
  3206. prt.CFrame = cframe
  3207. local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
  3208. game:GetService("Debris"):AddItem(prt, 10)
  3209. table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
  3210. end
  3211.  
  3212. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3213. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  3214. prt.Anchored = true
  3215. prt.CFrame = cframe
  3216. local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
  3217. game:GetService("Debris"):AddItem(prt, 10)
  3218. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  3219. end
  3220.  
  3221. MagicSpecial = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3222. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  3223. prt.Anchored = true
  3224. prt.CFrame = cframe
  3225. local msh = mesh("SpecialMesh", prt, "FileMesh", "24388358", vt(0, 0, 0), vt(x1, y1, z1))
  3226. game:GetService("Debris"):AddItem(prt, 10)
  3227. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  3228. end
  3229.  
  3230. BreakEffect = function(brickcolor, cframe, x1, y1, z1)
  3231. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
  3232. prt.Anchored = true
  3233. prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3234. game:GetService("Debris"):AddItem(prt, 10)
  3235. local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
  3236. local num = math.random(10, 50) / 1000
  3237. table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100})
  3238. end
  3239.  
  3240. MagicStar = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3241. local prt = part(3, effects, 0, 0, brickcolor, "Effect", vt())
  3242. prt.Material = "Neon"
  3243. prt.Anchored = true
  3244. prt.CFrame = cframe
  3245. local msh = mesh("SpecialMesh", prt, "FileMesh", "45428961", vt(0, 0, 0), vt(x1, y1, z1))
  3246. game:GetService("Debris"):AddItem(prt, 10)
  3247. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
  3248. end
  3249.  
  3250. Lightning = function(p0, p1, tym, ofs, col, th, tra, last)
  3251. local magz = (p0 - p1).magnitude
  3252. local curpos = p0
  3253. local trz = {-ofs, ofs}
  3254. for i = 1, tym do
  3255. local li = Instance.new("Part", effects)
  3256. li.TopSurface = 0
  3257. li.BottomSurface = 0
  3258. li.Anchored = true
  3259. li.Transparency = tra or 0.4
  3260. li.BrickColor = BrickColor.new(col)
  3261. li.formFactor = "Custom"
  3262. li.CanCollide = false
  3263. li.Size = Vector3.new(th, th, magz / tym)
  3264. local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
  3265. local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
  3266. li.Material = "Neon"
  3267. if tym == i then
  3268. local magz2 = (curpos - p1).magnitude
  3269. li.Size = Vector3.new(th, th, magz2)
  3270. li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
  3271. table.insert(Effects, {li, "Disappear", last})
  3272. else
  3273. do
  3274. do
  3275. li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
  3276. curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
  3277. game.Debris:AddItem(li, 10)
  3278. table.insert(Effects, {li, "Disappear", last})
  3279. end
  3280. end
  3281. end
  3282. end
  3283. end
  3284.  
  3285. Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration)
  3286. if hit.Parent == nil then
  3287. return
  3288. end
  3289. if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then
  3290. ref = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  3291. ref.Anchored = true
  3292. ref.CFrame = cf(hit.Position)
  3293. game:GetService("Debris"):AddItem(ref, 1)
  3294. hitnum = math.random(1, 5)
  3295. if hitnum == 1 then
  3296. so("199148971", ref, 1, 1)
  3297. else
  3298. if hitnum == 2 then
  3299. so("199149025", ref, 1, 1)
  3300. else
  3301. if hitnum == 3 then
  3302. so("199149072", ref, 1, 1)
  3303. else
  3304. if hitnum == 4 then
  3305. so("199149109", ref, 1, 1)
  3306. else
  3307. if hitnum == 5 then
  3308. so("199149119", ref, 1, 1)
  3309. end
  3310. end
  3311. end
  3312. end
  3313. end
  3314. StaggerHit.Value = true
  3315. end
  3316. h = hit.Parent:FindFirstChild("Humanoid")
  3317. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  3318. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  3319. return
  3320. end
  3321. c = Instance.new("ObjectValue")
  3322. c.Name = "creator"
  3323. c.Value = game:service("Players").LocalPlayer
  3324. c.Parent = h
  3325. RecentEnemy.Value = hit.Parent
  3326. game:GetService("Debris"):AddItem(c, 0.5)
  3327. minim = minim * Atk.Value
  3328. maxim = maxim * Atk.Value
  3329. Damage = 0
  3330. if minim == maxim then
  3331. Damage = maxim
  3332. else
  3333. Damage = math.random(minim, maxim)
  3334. end
  3335. blocked = false
  3336. enblock = nil
  3337. local EStats = hit.Parent:findFirstChild("Stats")
  3338. if EStats ~= nil then
  3339. invis = EStats:findFirstChild("Invisibility")
  3340. isinvis = EStats:findFirstChild("IsInvisible")
  3341. if (ranged == false or ranged == nil) and invis ~= nil and isinvis.Value == true then
  3342. invis.Value = 0
  3343. end
  3344. enblock = EStats:findFirstChild("Block")
  3345. if enblock ~= nil and enblock.Value == true then
  3346. blocked = true
  3347. end
  3348. if EStats:findFirstChild("Defense") ~= nil then
  3349. Damage = Damage / EStats.Defense.Value
  3350. if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then
  3351. hitnum = math.random(1, 5)
  3352. if hitnum == 1 then
  3353. so("199149321", hit, 1, 1)
  3354. else
  3355. if hitnum == 2 then
  3356. so("199149338", hit, 1, 1)
  3357. else
  3358. if hitnum == 3 then
  3359. so("199149367", hit, 1, 1)
  3360. else
  3361. if hitnum == 4 then
  3362. so("199149409", hit, 1, 1)
  3363. else
  3364. if hitnum == 5 then
  3365. so("199149452", hit, 1, 1)
  3366. end
  3367. end
  3368. end
  3369. end
  3370. end
  3371. else
  3372. if ranged == false or ranged == nil and blocked ~= true then
  3373. hitnum = math.random(1, 6)
  3374. if hitnum == 1 then
  3375. so("199149137", hit, 1, 1)
  3376. else
  3377. if hitnum == 2 then
  3378. so("199149186", hit, 1, 1)
  3379. else
  3380. if hitnum == 3 then
  3381. so("199149221", hit, 1, 1)
  3382. else
  3383. if hitnum == 4 then
  3384. so("199149235", hit, 1, 1)
  3385. else
  3386. if hitnum == 5 then
  3387. so("199149269", hit, 1, 1)
  3388. else
  3389. if hitnum == 6 then
  3390. so("199149297", hit, 1, 1)
  3391. end
  3392. end
  3393. end
  3394. end
  3395. end
  3396. end
  3397. end
  3398. end
  3399. if Damage <= 3 and staghit == true and ranged ~= true then
  3400. StaggerHit.Value = true
  3401. end
  3402. end
  3403. if EStats:findFirstChild("Stun") ~= nil then
  3404. if blocked == true then
  3405. incstun = incstun / 2
  3406. end
  3407. if EStats.Stun.Value < EStats.StunThreshold.Value then
  3408. EStats.Stun.Value = EStats.Stun.Value + incstun
  3409. end
  3410. end
  3411. if EStats:findFirstChild("Stagger") ~= nil and stagger == true then
  3412. EStats.Stagger.Value = true
  3413. end
  3414. end
  3415. if blocked == true then
  3416. showDamage(hit.Parent, "Block", "Damage")
  3417. if ranged ~= true then
  3418. enblock.Value = false
  3419. Stagger.Value = true
  3420. hitnum = math.random(1, 2)
  3421. if hitnum == 1 then
  3422. so("199148933", hit, 1, 1)
  3423. else
  3424. if hitnum == 2 then
  3425. so("199148947", hit, 1, 1)
  3426. end
  3427. end
  3428. end
  3429. else
  3430. Damage = math.floor(Damage)
  3431. coroutine.resume(coroutine.create(function(Hum, Dam)
  3432. hit.Parent.Humanoid:TakeDamage(Damage)
  3433. end
  3434. ), h, Damage)
  3435. showDamage(hit.Parent, Damage, "Damage")
  3436. if DecreaseState ~= nil then
  3437. if DecreaseState == "Temporal" then
  3438. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  3439. DecreaseStat(hit.Parent, "Defense", DecreaseAmount, Duration)
  3440. else
  3441. if DecreaseState == "Temporal2" then
  3442. DecreaseStat(hit.Parent, "Damage", DecreaseAmount, Duration)
  3443. DecreaseStat(hit.Parent, "Movement", DecreaseAmount, Duration)
  3444. else
  3445. DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration)
  3446. end
  3447. end
  3448. end
  3449. if Type == "NormalDecreaseMvmt1" then
  3450. DecreaseStat(hit.Parent, "Movement", 0.1, 200)
  3451. end
  3452. if Type == "Knockdown" then
  3453. hum = hit.Parent.Humanoid
  3454. hum.PlatformStand = true
  3455. coroutine.resume(coroutine.create(function(HHumanoid)
  3456. swait(1)
  3457. HHumanoid.PlatformStand = false
  3458. end
  3459. ), hum)
  3460. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  3461. local bodvol = Instance.new("BodyVelocity")
  3462. bodvol.velocity = angle * knockback
  3463. bodvol.P = 5000
  3464. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  3465. bodvol.Parent = hit
  3466. rl = Instance.new("BodyAngularVelocity")
  3467. rl.P = 3000
  3468. rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000
  3469. rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10))
  3470. rl.Parent = hit
  3471. game:GetService("Debris"):AddItem(bodvol, 0.5)
  3472. game:GetService("Debris"):AddItem(rl, 0.5)
  3473. else
  3474. do
  3475. if Type == "Knockdown2" then
  3476. hum = hit.Parent.Humanoid
  3477. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  3478. local bodvol = Instance.new("BodyVelocity")
  3479. bodvol.velocity = angle * knockback
  3480. bodvol.P = 5000
  3481. bodvol.maxForce = Vector3.new(8000, 8000, 8000)
  3482. bodvol.Parent = hit
  3483. game:GetService("Debris"):AddItem(bodvol, 0.5)
  3484. else
  3485. do
  3486. if Type == "Normal" or Type == "NormalDecreaseMvmt1" then
  3487. vp = Instance.new("BodyVelocity")
  3488. vp.P = 500
  3489. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  3490. if KnockbackType == 1 then
  3491. vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  3492. else
  3493. if KnockbackType == 2 then
  3494. vp.velocity = Property.CFrame.lookVector * knockback
  3495. end
  3496. end
  3497. game:GetService("Debris"):AddItem(vp, 0.5)
  3498. if knockback > 0 then
  3499. vp.Parent = hit.Parent.Torso
  3500. end
  3501. end
  3502. debounce = Instance.new("BoolValue")
  3503. debounce.Name = "DebounceHit"
  3504. debounce.Parent = hit.Parent
  3505. debounce.Value = true
  3506. game:GetService("Debris"):AddItem(debounce, Delay)
  3507. c = Instance.new("ObjectValue")
  3508. c.Name = "creator"
  3509. c.Value = Player
  3510. c.Parent = h
  3511. game:GetService("Debris"):AddItem(c, 0.5)
  3512. CRIT = false
  3513. end
  3514. end
  3515. end
  3516. end
  3517. end
  3518. end
  3519. end
  3520.  
  3521. showDamage = function(Char, Dealt, Type)
  3522. m = Instance.new("Model")
  3523. m.Name = "Effect"
  3524. c = Instance.new("Part")
  3525. c.Transparency = 1
  3526. c.Name = "Head"
  3527. c.TopSurface = 0
  3528. c.BottomSurface = 0
  3529. c.formFactor = "Plate"
  3530. c.Size = Vector3.new(1, 0.4, 1)
  3531. b = Instance.new("BillboardGui", c)
  3532. b.Size = UDim2.new(5, 0, 5, 0)
  3533. b.AlwaysOnTop = true
  3534. damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
  3535. if Type == "Damage" then
  3536. damgui.Font = "SourceSans"
  3537. if Dealt == "Block" then
  3538. damgui.TextColor3 = BrickColor.new("Bright blue").Color
  3539. else
  3540. if Dealt < 3 then
  3541. damgui.TextColor3 = BrickColor.new("White").Color
  3542. else
  3543. if Dealt >= 3 and Dealt < 20 then
  3544. damgui.TextColor3 = BrickColor.new("Bright yellow").Color
  3545. else
  3546. damgui.TextColor3 = BrickColor.new("Really red").Color
  3547. damgui.Font = "SourceSansBold"
  3548. end
  3549. end
  3550. end
  3551. else
  3552. if Type == "Debuff" then
  3553. damgui.TextColor3 = BrickColor.new("White").Color
  3554. else
  3555. if Type == "Interrupt" then
  3556. damgui.TextColor3 = BrickColor.new("New Yeller").Color
  3557. end
  3558. end
  3559. end
  3560. damgui.TextScaled = true
  3561. ms = Instance.new("CylinderMesh")
  3562. ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  3563. ms.Parent = c
  3564. c.Reflectance = 0
  3565. Instance.new("BodyGyro").Parent = c
  3566. c.Parent = m
  3567. if Char:findFirstChild("Head") ~= nil then
  3568. c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  3569. else
  3570. if Char.Parent:findFirstChild("Head") ~= nil then
  3571. c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  3572. end
  3573. end
  3574. f = Instance.new("BodyPosition")
  3575. f.P = 2000
  3576. f.D = 100
  3577. f.maxForce = Vector3.new(545000, 545000, 545000)
  3578. if Type == "Damage" then
  3579. f.position = c.Position + Vector3.new(0, 3, 0)
  3580. else
  3581. if Type == "Debuff" or Type == "Interrupt" then
  3582. f.position = c.Position + Vector3.new(0, 5, 0)
  3583. end
  3584. end
  3585. f.Parent = c
  3586. game:GetService("Debris"):AddItem(m, 5)
  3587. table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
  3588. c.CanCollide = false
  3589. m.Parent = workspace
  3590. c.CanCollide = false
  3591. end
  3592.  
  3593. combo = 0
  3594. ob1d = function(mouse)
  3595. if cshoot == false and cdebounce == false then
  3596. cshoot = true
  3597. end
  3598. if shockshoot == false and shockdebounce == false then
  3599. shockshoot = true
  3600. TehM = MMouse.Hit.p
  3601. end
  3602. if starshoot == false and stardebounce == false then
  3603. starshoot = true
  3604. TehM = MMouse.Hit.p
  3605. end
  3606. if attack == true or equipped == false then
  3607. return
  3608. end
  3609. attack = true
  3610. hold = true
  3611. if combo == 0 then
  3612. combo = 1
  3613. attackone()
  3614. else
  3615. if combo == 1 then
  3616. combo = 2
  3617. attacktwo()
  3618. else
  3619. if combo == 2 then
  3620. combo = 3
  3621. attackthree()
  3622. else
  3623. if combo == 3 then
  3624. combo = 0
  3625. attackfour()
  3626. end
  3627. end
  3628. end
  3629. end
  3630. attack = false
  3631. end
  3632.  
  3633. ob1u = function(mouse)
  3634. hold = false
  3635. end
  3636.  
  3637. buttonhold = false
  3638. fenbarmove1.MouseButton1Click:connect(do1)
  3639. fenbarmove2.MouseButton1Click:connect(do2)
  3640. fenbarmove3.MouseButton1Click:connect(do3)
  3641. fenbarmove4.MouseButton1Click:connect(do4)
  3642. eul = 0
  3643. equipped = false
  3644. key = function(key)
  3645. if key == "q" then
  3646. cooldowns[1] = 100
  3647. cooldowns[2] = 100
  3648. cooldowns[3] = 100
  3649. cooldowns[4] = 100
  3650. end
  3651. if key == "z" and cbuster == true then
  3652. cbuster = false
  3653. return
  3654. end
  3655. if key == "x" and sbreaker == true then
  3656. sbreaker = false
  3657. return
  3658. end
  3659. if key == "c" and sblazing == true then
  3660. sblazing = false
  3661. return
  3662. end
  3663. if key == "e" then
  3664. if prising == true then
  3665. prising = false
  3666. return
  3667. end
  3668. if cbuster == true and mana.Value > 15 then
  3669. busterlaser = true
  3670. return
  3671. end
  3672. if sbreaker == true and mana.Value > 10 then
  3673. sbreakerII = true
  3674. return
  3675. end
  3676. if sblazing == true and mana.Value > 20 then
  3677. galacblazing = true
  3678. return
  3679. end
  3680. end
  3681. if attack == true then
  3682. return
  3683. end
  3684. if key == "f" then
  3685. attack = true
  3686. pressedf = true
  3687. fnumb = 0
  3688. repeat swait() until effects:FindFirstChild("Effect") == nil
  3689. if equipped == false then
  3690. RSH = ch.Torso["Right Shoulder"]
  3691. LSH = ch.Torso["Left Shoulder"]
  3692. RSH.Parent = nil
  3693. LSH.Parent = nil
  3694. RW.Name = "Right Shoulder"
  3695. RW.Part0 = ch.Torso
  3696. RW.C0 = cf(1.5, 0.5, 0)
  3697. RW.C1 = cf(0, 0.5, 0)
  3698. RW.Part1 = ch["Right Arm"]
  3699. RW.Parent = ch.Torso
  3700. LW.Name = "Left Shoulder"
  3701. LW.Part0 = ch.Torso
  3702. LW.C0 = cf(-1.5, 0.5, 0)
  3703. LW.C1 = cf(0, 0.5, 0)
  3704. LW.Part1 = ch["Left Arm"]
  3705. LW.Parent = ch.Torso
  3706. Animate.Parent = nil
  3707. equipanim()
  3708. equipped = true
  3709. else
  3710. equipped = false
  3711. hideanim()
  3712. LH.C1 = LHC1
  3713. RH.C1 = RHC1
  3714. Animate.Parent = Humanoid
  3715. swait(0)
  3716. RW.Parent = nil
  3717. LW.Parent = nil
  3718. RSH.Parent = player.Character.Torso
  3719. LSH.Parent = player.Character.Torso
  3720. end
  3721. attack = false
  3722. end
  3723. if equipped == false then
  3724. return
  3725. end
  3726. if key == "e" then
  3727. PowerRising()
  3728. end
  3729. if key == "q" then
  3730. mana.Value = 100
  3731. end
  3732. if key == "z" then
  3733. do1()
  3734. end
  3735. if key == "x" then
  3736. do2()
  3737. end
  3738. if key == "c" then
  3739. do3()
  3740. end
  3741. if key == "v" and mana.Value>=40 then
  3742. do4()
  3743. mana.Value=mana.Value-40
  3744. end
  3745. end
  3746.  
  3747. key2 = function(key)
  3748. end
  3749.  
  3750. s = function(mouse)
  3751. mouse.Button1Down:connect(function()
  3752. ob1d(mouse)
  3753. end
  3754. )
  3755. mouse.Button1Up:connect(function()
  3756. ob1u(mouse)
  3757. end
  3758. )
  3759. mouse.KeyDown:connect(key)
  3760. mouse.KeyUp:connect(key2)
  3761. player = Player
  3762. ch = Character
  3763. end
  3764.  
  3765. ds = function(mouse)
  3766. end
  3767.  
  3768. Bin.Selected:connect(s)
  3769. Bin.Deselected:connect(ds)
  3770. print("Dreamer loaded.")
  3771. local mananum = 0
  3772. local donum = 0
  3773. local stunnum = 0
  3774. local staggeranim = false
  3775. local stunanim = false
  3776. local walk = 0
  3777. local walkforw = true
  3778. local fnum = 0
  3779. local domodel = false
  3780. local gef = 10
  3781. local col = 1
  3782. local colnum = 0
  3783. while true do
  3784. swait()
  3785. for _,c in pairs(model3:children()) do
  3786. if c.className == "Part" then
  3787. if c.BrickColor == Neons[1] then
  3788. c.BrickColor = Neons[2]
  3789. else
  3790. if c.BrickColor == Neons[2] then
  3791. c.BrickColor = Neons[3]
  3792. else
  3793. if c.BrickColor == Neons[3] then
  3794. c.BrickColor = Neons[4]
  3795. else
  3796. if c.BrickColor == Neons[4] then
  3797. c.BrickColor = Neons[5]
  3798. else
  3799. if c.BrickColor == Neons[5] then
  3800. c.BrickColor = Neons[6]
  3801. else
  3802. if c.BrickColor == Neons[6] then
  3803. c.BrickColor = Neons[7]
  3804. else
  3805. if c.BrickColor == Neons[7] then
  3806. c.BrickColor = Neons[1]
  3807. end
  3808. end
  3809. end
  3810. end
  3811. end
  3812. end
  3813. end
  3814. end
  3815. end
  3816. starsparti.Color = cs(Neons[math.random(1, 7)].Color, Color3.new(1, 1, 1))
  3817. if Mode == "Sabers" then
  3818. passive1.Value = 0
  3819. passive2.Value = -0.1
  3820. else
  3821. passive1.Value = -0.1
  3822. passive2.Value = 0
  3823. end
  3824. if (Head:findFirstChild("Running")) ~= nil then
  3825. if floating == true then
  3826. Head.Running.Volume = 0
  3827. Humanoid.JumpPower = 60
  3828. else
  3829. Head.Running.Volume = 0.5
  3830. Humanoid.JumpPower = 50
  3831. end
  3832. end
  3833. colnum = colnum + 1
  3834. if #Neons - 1 < col and (colnum) % 2 == 0 then
  3835. col = 1
  3836. end
  3837. if (colnum) % 2 == 0 then
  3838. col = col + 1
  3839. end
  3840. gef = gef + 1
  3841. if (gef) % 10 == 0 and 0 < Humanoid.Health then
  3842. hitfloor2, posfloor2 = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 20, Character)
  3843. if hitfloor2 ~= nil and equipped == true and floating == true and Mode == "Normal" then
  3844. MagicWave(BrickColor.new("Institutional white"), cf(posfloor2) * euler(0, math.random(-50, 50), 0), 1, 2, 1, 0.7, -0.05, 0.7, 0.15)
  3845. end
  3846. end
  3847. if Humanoid.Health <= 0 then
  3848. attack = true
  3849. resumeControl()
  3850. modelzorz.Parent = workspace
  3851. model2.Parent = workspace
  3852. game:GetService("Debris"):AddItem(modelzorz, 30)
  3853. game:GetService("Debris"):AddItem(model2, 30)
  3854. if domodel == false then
  3855. domodel = true
  3856. for i = 1, #Weapon do
  3857. Weapon[i].Parent = modelzorz
  3858. Weapon[i].CanCollide = true
  3859. end
  3860. for i = 1, #Welds do
  3861. Welds[i].Parent = main1
  3862. end
  3863. end
  3864. end
  3865. do
  3866. if fnumb < 21 then
  3867. fnumb = fnumb + 1
  3868. if pressedf == false then
  3869. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025
  3870. tellbar.TextTransparency = tellbar.TextTransparency - 0.05
  3871. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05
  3872. else
  3873. if fnumb == 20 then
  3874. fenframe5.Parent = nil
  3875. print("daigui")
  3876. end
  3877. fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025
  3878. tellbar.TextTransparency = tellbar.TextTransparency + 0.05
  3879. tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05
  3880. end
  3881. end
  3882. if Stagger.Value == true and staggeranim == false then
  3883. coroutine.resume(coroutine.create(function()
  3884. staggeranim = true
  3885. while attack == true do
  3886. swait()
  3887. end
  3888. StaggerAnim()
  3889. StaggerHit.Value = false
  3890. Stagger.Value = false
  3891. staggeranim = false
  3892. end
  3893. ))
  3894. end
  3895. if StaggerHit.Value == true and staggeranim == false then
  3896. coroutine.resume(coroutine.create(function()
  3897. staggeranim = true
  3898. while attack == true do
  3899. swait()
  3900. end
  3901. StaggerHitt()
  3902. StaggerHit.Value = false
  3903. Stagger.Value = false
  3904. staggeranim = false
  3905. end
  3906. ))
  3907. end
  3908. if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then
  3909. Humanoid.WalkSpeed = 0
  3910. else
  3911. Humanoid.WalkSpeed = 16 * Mvmt.Value
  3912. end
  3913. if StunT.Value <= Stun.Value and stunanim == false then
  3914. coroutine.resume(coroutine.create(function()
  3915. stunanim = true
  3916. while attack == true do
  3917. swait()
  3918. end
  3919. StunAnim()
  3920. Stun.Value = 0
  3921. stunanim = false
  3922. end
  3923. ))
  3924. end
  3925. local stunnum2 = 40
  3926. if stunnum2 <= stunnum then
  3927. if 0 < Stun.Value then
  3928. Stun.Value = Stun.Value - 1
  3929. end
  3930. stunnum = 0
  3931. end
  3932. stunnum = stunnum + 1
  3933. if 0.5 <= donum then
  3934. handidle = true
  3935. else
  3936. if donum <= 0 then
  3937. handidle = false
  3938. end
  3939. end
  3940. if handidle == false then
  3941. donum = donum + 0.003
  3942. else
  3943. donum = donum - 0.003
  3944. end
  3945. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  3946. local velderp = RootPart.Velocity.y
  3947. hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  3948. if equipped == true then
  3949. if Anim == "Walk" and floating == false then
  3950. if walkforw == true then
  3951. RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  3952. LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50)
  3953. else
  3954. RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  3955. LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50)
  3956. end
  3957. else
  3958. RH.C1 = clerp(RH.C1, RHC1, 0.2)
  3959. LH.C1 = clerp(LH.C1, LHC1, 0.2)
  3960. end
  3961. if 1 < RootPart.Velocity.y and hitfloor == nil then
  3962. Anim = "Jump"
  3963. if Mode == "Normal" and floating == true then
  3964. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1.5 - (donum)) * euler(-0.1, 0, 0), 0.3)
  3965. end
  3966. if attack == false then
  3967. if Mode == "Normal" then
  3968. MagicBlock2(Neons[col], LeftLeg.CFrame * cf(0, -1, 0), 4, 4, 4, 2, 2, 2, 0.2, 1)
  3969. MagicBlock2(Neons[col], RightLeg.CFrame * cf(0, -1, 0), 4, 4, 4, 2, 2, 2, 0.2, 1)
  3970. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.4 - (donum) / 2, 0, 0), 0.3)
  3971. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(0.4, 0, 0.8 + (donum) / 4) * euler(0, 0, 0), 0.3)
  3972. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.1) * euler(0.4, 0, -0.8 - (donum) / 4) * euler(0, 0, 0), 0.3)
  3973. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2 - (donum) / 4, 0, -0.1 + (donum) / 7), 0.3)
  3974. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1 - (donum) / 4, 0, 0.05 - (donum) / 7), 0.3)
  3975. else
  3976. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  3977. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  3978. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.2, 0, 0), 0.25)
  3979. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.25)
  3980. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.6, 0, 0.8) * euler(0, -0.6, 0) * euler(0, 0, -0.2), 0.25)
  3981. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -0.8) * euler(0, 0.6, 0) * euler(0, 0, 0.2), 0.25)
  3982. RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.25)
  3983. LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.25)
  3984. end
  3985. end
  3986. else
  3987. if RootPart.Velocity.y < -1 and hitfloor == nil then
  3988. Anim = "Fall"
  3989. if Mode == "Normal" and floating == true then
  3990. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  3991. end
  3992. if attack == false then
  3993. if Mode == "Normal" then
  3994. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  3995. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  3996. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.8) * euler(0, -1.5, 0), 0.2)
  3997. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.8), 0.2)
  3998. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  3999. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  4000. else
  4001. Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2)
  4002. Neck.C1 = clerp(Neck.C1, necko2 * euler(0, 0, 0), 0.2)
  4003. RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2)
  4004. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 0.4) * euler(0, -1, 0) * euler(0, 0, 0.6), 0.25)
  4005. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.8, 0, -0.4) * euler(0, 1, 0) * euler(0, 0, -0.6), 0.25)
  4006. RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2)
  4007. LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2)
  4008. end
  4009. end
  4010. else
  4011. if torvel < 1 and hitfloor ~= nil then
  4012. Anim = "Idle"
  4013. if Mode == "Normal" and floating == true then
  4014. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1.5 - (donum)) * euler(-0.05, 0, 0), 0.3)
  4015. end
  4016. if attack == false then
  4017. if Mode == "Normal" then
  4018. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.2 - (donum) / 8, 0, 0), 0.3)
  4019. RW.C0 = clerp(RW.C0, cf(1.3, 0.5, 0.1) * euler(0.4, 0, 0.4 + (donum) / 4) * euler(0, -1.5, 0), 0.3)
  4020. LW.C0 = clerp(LW.C0, cf(-1.3, 0.5, 0.1) * euler(0.4, 0, -0.4 - (donum) / 4) * euler(0, 1.5, 0), 0.3)
  4021. RH.C0 = clerp(RH.C0, cf(0.95, -0.9, 0) * euler(0, 1.57, 0) * euler(-0.2 - (donum) / 4, 0, -0.1 + (donum) / 7), 0.3)
  4022. LH.C0 = clerp(LH.C0, cf(-1, -0.8, -0.1) * euler(0, -1.57, 0) * euler(-0.1 - (donum) / 4, 0, 0.05 - (donum) / 7), 0.3)
  4023. else
  4024. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  4025. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  4026. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.1, 0, 0), 0.2)
  4027. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, -0.4) * euler(0.2 + (donum) / 4, 0, 0), 0.2)
  4028. RW.C0 = clerp(RW.C0, cf(1.4, 0.4, -0.1) * euler(1, 0, 0.7 - (donum) / 3) * euler(0, 1, 0), 0.2)
  4029. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.4, 0, -0.8 + (donum) / 3) * euler(0, -1, 0), 0.2)
  4030. RH.C0 = clerp(RH.C0, cf(1, -0.7, -0.3) * euler(0, 1.57, 0) * euler(-0.1, 0, -0.1 + (donum) / 4), 0.2)
  4031. LH.C0 = clerp(LH.C0, cf(-1.1, -0.7, -0.2) * euler(0, -1.57, 0) * euler(0, 0.4, 0) * euler(-0.05, 0, -0.15 - (donum) / 4), 0.2)
  4032. end
  4033. end
  4034. else
  4035. if 2 < torvel and torvel < 30 and hitfloor ~= nil then
  4036. Anim = "Walk"
  4037. walk = walk + 1
  4038. if 15 - 5 * Mvmt.Value <= walk then
  4039. walk = 0
  4040. if walkforw == true then
  4041. walkforw = false
  4042. else
  4043. if walkforw == false then
  4044. walkforw = true
  4045. end
  4046. end
  4047. end
  4048. testpart.CFrame = cf(RootPart.Position - RootPart.Velocity) * cf(0, 6, 0)
  4049. newpos = vt(RootPart.Position.X, RootPart.Position.Y, RootPart.Position.Z)
  4050. MoveCF = cf(testpart.Position, newpos)
  4051. local mpos = testpart.CFrame * euler(0, 0, 0)
  4052. local cff = CFrame.new(mpos.p, newpos) * CFrame.Angles(math.pi / 2, 0, 0)
  4053. local x, y, z = RootPart.CFrame:toObjectSpace(cff):toEulerAnglesXYZ()
  4054. if Mode == "Normal" and floating == true then
  4055. RootJoint.C0 = clerp(RootJoint.C0, cf(0, 1.4 - (donum), 0) * CFrame.Angles(x, y, 0) * euler(0, 3.14, 0), 0.3)
  4056. end
  4057. if attack == false then
  4058. if Mode == "Normal" then
  4059. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.2 + (donum) / 2, 0, 0), 0.3)
  4060. RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0.1) * euler(-0.2, 0, 0.4 + (donum) / 4) * euler(0, 0, 0), 0.3)
  4061. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0.1) * euler(-0.2, 0, -0.4 - (donum) / 4) * euler(0, 0, 0), 0.3)
  4062. RH.C0 = clerp(RH.C0, cf(0.95, -0.8, -0.2 - (donum) / 2) * euler(0, 1.57, 0) * euler(-0.2 - (donum) / 4, 0, -0.5 - (donum) / 2), 0.3)
  4063. LH.C0 = clerp(LH.C0, cf(-0.95, -0.8, -0.2 - (donum) / 2) * euler(0, -1.57, 0) * euler(-0.1 - (donum) / 4, 0, 0.5 + (donum) / 2), 0.3)
  4064. else
  4065. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  4066. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  4067. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.1, 0, 0), 0.25)
  4068. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0) * euler(0.1, 0, 0), 0.25)
  4069. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.6, 0, 0.8) * euler(0, -1, 0), 0.25)
  4070. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -0.8) * euler(0, 1, 0), 0.25)
  4071. RH.C0 = clerp(RH.C0, cf(1.05, -0.9, -0.1) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.02, 0, 0.2), 0.25)
  4072. LH.C0 = clerp(LH.C0, cf(-1.05, -0.9, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.02, 0, -0.2), 0.25)
  4073. end
  4074. end
  4075. else
  4076. do
  4077. if 30 <= torvel and hitfloor ~= nil then
  4078. Anim = "Run"
  4079. if Mode == "Normal" and floating == true then
  4080. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 1.4 - (donum)) * euler(0.4, 0, 0), 0.3)
  4081. end
  4082. if attack == false then
  4083. if Mode == "Normal" then
  4084. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(-0.2 + (donum) / 2, 0, 0), 0.3)
  4085. RW.C0 = clerp(RW.C0, cf(1.4, 0.5, 0.1) * euler(-0.2, 0, 0.4 + (donum) / 4) * euler(0, 0, 0), 0.3)
  4086. LW.C0 = clerp(LW.C0, cf(-1.4, 0.5, 0.1) * euler(-0.2, 0, -0.4 - (donum) / 4) * euler(0, 0, 0), 0.3)
  4087. RH.C0 = clerp(RH.C0, cf(0.95, -0.8, -0.2 - (donum) / 2) * euler(0, 1.57, 0) * euler(-0.2 - (donum) / 4, 0, -0.5 - (donum) / 2), 0.3)
  4088. LH.C0 = clerp(LH.C0, cf(-0.95, -0.8, -0.2 - (donum) / 2) * euler(0, -1.57, 0) * euler(-0.1 - (donum) / 4, 0, 0.5 + (donum) / 2), 0.3)
  4089. else
  4090. mwld1.C0 = clerp(mwld1.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  4091. mwld2.C0 = clerp(mwld2.C0, cf(0, 0, 0) * euler(0, 0, 0), 0.3)
  4092. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0) * euler(0.1, 0, 0), 0.25)
  4093. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.3) * euler(0, 0, 0) * euler(0.1, 0, 0), 0.25)
  4094. RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.6, 0, 0.8) * euler(0, -1, 0), 0.25)
  4095. LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.6, 0, -0.8) * euler(0, 1, 0), 0.25)
  4096. RH.C0 = clerp(RH.C0, cf(1.05, -0.9, -0.1) * euler(0, 1.57, 0) * euler(0, 0, 0) * euler(-0.02, 0, 0.2), 0.25)
  4097. LH.C0 = clerp(LH.C0, cf(-1.05, -0.9, -0.1) * euler(0, -1.57, 0) * euler(0, 0, 0) * euler(-0.02, 0, -0.2), 0.25)
  4098. end
  4099. end
  4100. end
  4101. end
  4102. end
  4103. end
  4104. end
  4105. end
  4106. fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true)
  4107. fenbarmana4.Text = "Mana(" .. mana.Value .. ")"
  4108. fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0)
  4109. fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true)
  4110. fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
  4111. fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4112. fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4113. fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4114. fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true)
  4115. for _,c in pairs(Decrease:children()) do
  4116. if (c:findFirstChild("Duration")) ~= nil then
  4117. c.Duration.Value = c.Duration.Value - 1
  4118. if c.Duration.Value <= 0 then
  4119. c.Parent = nil
  4120. end
  4121. end
  4122. if c.Name == "DecreaseAtk" then
  4123. decreaseatk = decreaseatk + c.Value
  4124. else
  4125. if c.Name == "DecreaseDef" then
  4126. decreasedef = decreasedef + c.Value
  4127. else
  4128. if c.Name == "DecreaseMvmt" then
  4129. decreasemvmt = decreasemvmt + c.Value
  4130. end
  4131. end
  4132. end
  4133. end
  4134. Atk.Value = 1 - (decreaseatk)
  4135. if Atk.Value <= 0 then
  4136. Atk.Value = 0
  4137. end
  4138. Def.Value = 1 - (decreasedef)
  4139. if Def.Value <= 0 then
  4140. Def.Value = 0.01
  4141. end
  4142. Mvmt.Value = 1 - (decreasemvmt)
  4143. if Mvmt.Value <= 0 then
  4144. Mvmt.Value = 0
  4145. end
  4146. decreaseatk = 0
  4147. decreasedef = 0
  4148. decreasemvmt = 0
  4149. AtkVal = Atk.Value * 100
  4150. AtkVal = math.floor(AtkVal)
  4151. AtkVal = AtkVal / 100
  4152. fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
  4153. DefVal = Def.Value * 100
  4154. DefVal = math.floor(DefVal)
  4155. DefVal = DefVal / 100
  4156. fenbardef.Text = "Defense\n(" .. DefVal .. ")"
  4157. MvmtVal = Mvmt.Value * 100
  4158. MvmtVal = math.floor(MvmtVal)
  4159. MvmtVal = MvmtVal / 100
  4160. if Rooted.Value == true then
  4161. MvmtVal = 0
  4162. end
  4163. fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
  4164. if StunT.Value <= Stun.Value then
  4165. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true)
  4166. else
  4167. fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true)
  4168. end
  4169. fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
  4170. if 100 <= mana.Value then
  4171. mana.Value = 100
  4172. else
  4173. if mananum <= manainc then
  4174. mananum = mananum + 1
  4175. else
  4176. mananum = 0
  4177. mana.Value = mana.Value + 1
  4178. end
  4179. end
  4180. for i = 1, #cooldowns do
  4181. if cooldownmax <= cooldowns[i] then
  4182. cooldowns[i] = cooldownmax
  4183. else
  4184. cooldowns[i] = cooldowns[i] + cooldownsadd[i]
  4185. end
  4186. end
  4187. end
  4188. if #Effects>0 then
  4189. for e=1,#Effects do
  4190. if Effects[e]~=nil then
  4191. local Thing=Effects[e]
  4192. if Thing ~= nil then
  4193. local Part = Thing[1]
  4194. local Mode = Thing[2]
  4195. local Delay = Thing[3]
  4196. local IncX = Thing[4]
  4197. local IncY = Thing[5]
  4198. local IncZ = Thing[6]
  4199. if Thing[2] == "CylinderClang" then
  4200. if Thing[3] <= 1 then
  4201. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  4202. Thing[7] = Thing[1].CFrame
  4203. effect("New Yeller", 0, Thing[8], Thing[7], nil, 0.1, 2)
  4204. Thing[8] = Thing[7]
  4205. Thing[3] = Thing[3] + Thing[4]
  4206. else
  4207. Part.Parent = nil
  4208. table.remove(Effects, e)
  4209. end
  4210. end
  4211. if Thing[2] == "showDamage" then
  4212. if Thing[6] < Thing[5] then
  4213. Thing[6] = Thing[6] + 1
  4214. else
  4215. if Thing[6] < Thing[7] then
  4216. Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
  4217. Thing[6] = Thing[6] + 1
  4218. else
  4219. if Thing[6] < Thing[8] then
  4220. Thing[6] = Thing[6] + 1
  4221. else
  4222. if Thing[6] < Thing[9] then
  4223. Thing[6] = Thing[6] + 1
  4224. Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
  4225. Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
  4226. Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
  4227. else
  4228. Thing[1].Parent = nil
  4229. table.remove(Effects, e)
  4230. end
  4231. end
  4232. end
  4233. end
  4234. end
  4235. if Thing[2] == "CloneEf" then
  4236. if Thing[3] <= 500 then
  4237. Thing[3] = Thing[3] + 1
  4238. if 10 <= Thing[4] then
  4239. Thing[4] = 0
  4240. end
  4241. Thing[4] = Thing[4] + 1
  4242. else
  4243. table.remove(Effects, e)
  4244. end
  4245. end
  4246. if Thing[2] == "SatelliteStrike" then
  4247. if Thing[5] < 100 then
  4248. Thing[5] = Thing[5] + 2
  4249. Thing[6] = Thing[6] + 1
  4250. if 2 < Thing[6] then
  4251. Thing[6] = 0
  4252. if Thing[3].BrickColor == BrickColor.new("New Yeller") then
  4253. Thing[3].Transparency = 0.8
  4254. Thing[3].BrickColor = BrickColor.new("Really red")
  4255. else
  4256. Thing[3].Transparency = 0.8
  4257. Thing[3].BrickColor = BrickColor.new("New Yeller")
  4258. end
  4259. end
  4260. else
  4261. refda = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  4262. refda.Anchored = true
  4263. refda.CFrame = cf(Thing[1].Position) * cf(0, 500, 0)
  4264. game:GetService("Debris"):AddItem(refda, 1)
  4265. local mag = (refda.Position - Thing[1].Position).magnitude
  4266. MagicCylinder(BrickColor.new("White"), CFrame.new((refda.Position + Thing[1].Position) / 2, Thing[1].Position) * angles(1.57, 0, 0), 40, mag * 5, 40, 0, 0, 0, 0.3)
  4267. Lightning(refda.Position, Thing[1].Position, 15, 5, "Bright yellow", 3.5, 0.2, 0.05)
  4268. MagicBlock2(BrickColor.new("Bright yellow"), cf(Thing[1].Position), 40, 40, 40, -1, -1, -1, 0.08, 1)
  4269. refda.CFrame = cf(Thing[1].Position)
  4270. MagniDamage(refda, 3, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  4271. refda.CFrame = cf(Thing[1].Position) * cf(0, 3, 0)
  4272. MagniDamage(refda, 3, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  4273. refda.CFrame = cf(Thing[1].Position)
  4274. so("341336446", refda, 1, math.random(100, 120) / 100)
  4275. so("341336459", refda, 1, math.random(100, 120) / 100)
  4276. Thing[1].Parent = nil
  4277. table.remove(Effects, e)
  4278. end
  4279. end
  4280. do
  4281. if Thing[2] == "SatelliteStrike2" then
  4282. if Thing[5] < 100 then
  4283. Thing[5] = Thing[5] + 2
  4284. Thing[6] = Thing[6] + 1
  4285. if 2 < Thing[6] then
  4286. Thing[6] = 0
  4287. if Thing[3].BrickColor == BrickColor.new("New Yeller") then
  4288. Thing[3].Transparency = 0.8
  4289. Thing[3].BrickColor = BrickColor.new("Really red")
  4290. else
  4291. Thing[3].Transparency = 0.8
  4292. Thing[3].BrickColor = BrickColor.new("New Yeller")
  4293. end
  4294. end
  4295. else
  4296. refda = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  4297. refda.Anchored = true
  4298. refda.CFrame = cf(Thing[1].Position) * cf(0, 500, 0)
  4299. game:GetService("Debris"):AddItem(refda, 1)
  4300. local mag = (refda.Position - Thing[1].Position).magnitude
  4301. MagicCylinder(BrickColor.new("White"), CFrame.new((refda.Position + Thing[1].Position) / 2, Thing[1].Position) * angles(1.57, 0, 0), 60, mag * 5, 60, 0, 0, 0, 0.1)
  4302. Lightning(refda.Position, Thing[1].Position, 25, 5, "Bright yellow", 5, 0.2, 0.03)
  4303. MagicBlock2(BrickColor.new("Bright yellow"), cf(Thing[1].Position), 80, 80, 80, -1, -1, -1, 0.06, 1)
  4304. refda.CFrame = cf(Thing[1].Position)
  4305. MagniDamage(refda, 6, 8, 12, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  4306. refda.CFrame = cf(Thing[1].Position) * cf(0, 3, 0)
  4307. MagniDamage(refda, 6, 8, 12, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  4308. refda.CFrame = cf(Thing[1].Position)
  4309. so("341336446", refda, 1, math.random(70, 90) / 100)
  4310. so("341336459", refda, 1, math.random(50, 80) / 100)
  4311. Thing[1].Parent = nil
  4312. table.remove(Effects, e)
  4313. end
  4314. end
  4315. do
  4316. if Thing[2] == "Shoot" then
  4317. Thing[11] = Thing[11] + 0.02
  4318. local Look = Thing[1]
  4319. local hit, pos = rayCast(Thing[4], Look, Thing[11], modelzorz)
  4320. local mag = (Thing[4] - pos).magnitude
  4321. if 6 < Thing[8] then
  4322. Thing[8] = 1
  4323. else
  4324. Thing[8] = Thing[8] + 1
  4325. end
  4326. MagicCylinder(Neons[Thing[8]], CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
  4327. Thing[9].BrickColor = Neons[Thing[8]]
  4328. Thing[9].CFrame = CFrame.new((Thing[4] + pos) / 2, pos) * cf(0, 0, -1) * Thing[10]
  4329. Thing[4] = Thing[4] + Look * Thing[11]
  4330. Thing[3] = Thing[3] - 1
  4331. if hit ~= nil then
  4332. Damagefunc(hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0.1, 2, (math.random(1, 3)), nil, nil, true)
  4333. end
  4334. if Thing[3] <= 0 then
  4335. Thing[9].Parent = nil
  4336. table.remove(Effects, e)
  4337. end
  4338. end
  4339. do
  4340. if Thing[2] == "Shoot2" then
  4341. local Look = Thing[1]
  4342. local hit, pos = rayCast(Thing[4], Look, 4, Character)
  4343. local mag = (Thing[4] - pos).magnitude
  4344. if 6 < Thing[8] then
  4345. Thing[8] = 1
  4346. else
  4347. Thing[8] = Thing[8] + 1
  4348. end
  4349. MagicCircle(BrickColor.new(NewCol3), CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0), 4, 4, 4, -0.5, -0.5, -0.5, 0.5)
  4350. Thing[4] = Thing[4] + Look * 4
  4351. Thing[3] = Thing[3] - 1
  4352. if hit ~= nil then
  4353. Thing[3] = 0
  4354. Damagefunc(hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0.1, 2, (math.random(1, 5)), nil, nil, true)
  4355. end
  4356. if Thing[3] <= 0 then
  4357. table.remove(Effects, e)
  4358. end
  4359. end
  4360. do
  4361. if Thing[2] == "Shoot3" then
  4362. local Look = Thing[1]
  4363. local hit, pos = rayCast(Thing[4], Look, 1.5, modelzorz)
  4364. local mag = (Thing[4] - pos).magnitude
  4365. if 6 < Thing[8] then
  4366. Thing[8] = 1
  4367. else
  4368. Thing[8] = Thing[8] + 1
  4369. end
  4370. Thing[11] = Thing[11] + 0.05
  4371. Thing[9].BrickColor = Neons[Thing[8]]
  4372. Thing[9].CFrame = CFrame.new((Thing[4] + pos) / 2, pos) * euler(0, mr(90), 0) * euler(Thing[10], 0, 0) * euler(0, Thing[11], 0)
  4373. MagicStar(Thing[9].BrickColor, Thing[9].CFrame, 25, 25, 25, 2, 2, 2, 0.25)
  4374. Thing[4] = Thing[4] + Look * 1.5
  4375. Thing[3] = Thing[3] - 1
  4376. if hit ~= nil then
  4377. Thing[3] = 0
  4378. end
  4379. if Thing[3] <= 0 then
  4380. MagicStar(Thing[9].BrickColor, Thing[9].CFrame, 30, 30, 30, 4, 4, 4, 0.1)
  4381. MagicCircle(Thing[9].BrickColor, Thing[9].CFrame, 100, 100, 100, 0, 0, 0, 0.05)
  4382. local staaaaref = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  4383. staaaaref.Anchored = true
  4384. staaaaref.CFrame = cf(Thing[9].Position)
  4385. game:GetService("Debris"):AddItem(staaaaref, 1)
  4386. so("341336499", staaaaref, 0.8, 2)
  4387. MagniDamage(staaaaref, 3, 6, 8, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  4388. Thing[9].Parent = nil
  4389. table.remove(Effects, e)
  4390. end
  4391. end
  4392. do
  4393. if Thing[2] == "Shoot4" then
  4394. local Look = Thing[1]
  4395. local hit, pos = rayCast(Thing[4], Look, 1.5, modelzorz)
  4396. local mag = (Thing[4] - pos).magnitude
  4397. if 6 < Thing[8] then
  4398. Thing[8] = 1
  4399. else
  4400. Thing[8] = Thing[8] + 1
  4401. end
  4402. Thing[11] = Thing[11] + 0.05
  4403. Thing[9].BrickColor = Neons[Thing[8]]
  4404. Thing[9].CFrame = CFrame.new((Thing[4] + pos) / 2, pos) * euler(0, mr(90), 0) * euler(Thing[10], 0, 0) * euler(0, Thing[11], 0)
  4405. MagicStar(Thing[9].BrickColor, Thing[9].CFrame, 80, 80, 80, 2, 2, 2, 0.25)
  4406. Thing[4] = Thing[4] + Look * 1.5
  4407. Thing[3] = Thing[3] - 1
  4408. if hit ~= nil then
  4409. Thing[3] = 0
  4410. end
  4411. if Thing[3] <= 0 then
  4412. MagicStar(Thing[9].BrickColor, Thing[9].CFrame, 90, 90, 90, 4, 4, 4, 0.1)
  4413. MagicCircle(Thing[9].BrickColor, Thing[9].CFrame, 200, 200, 200, 0, 0, 0, 0.1)
  4414. MagicCircle(Thing[9].BrickColor, Thing[9].CFrame, 150, 150, 150, 10, 10, 10, 0.08)
  4415. MagicCircle(Thing[9].BrickColor, Thing[9].CFrame, 100, 100, 100, 15, 15, 15, 0.06)
  4416. local staaaaref = part(3, effects, 0, 1, BrickColor.new("Black"), "Reference", vt())
  4417. staaaaref.Anchored = true
  4418. staaaaref.CFrame = cf(Thing[9].Position)
  4419. game:GetService("Debris"):AddItem(staaaaref, 1)
  4420. so("341336499", staaaaref, 0.8, 1)
  4421. MagniDamage(staaaaref, 6, 8, 12, math.random(6, 8), "Normal", RootPart, 0.3, 2, (math.random(4, 6)), nil, true)
  4422. Thing[9].Parent = nil
  4423. table.remove(Effects, e)
  4424. end
  4425. end
  4426. do
  4427. do
  4428. if Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "CloneEf" and Thing[2] ~= "Blink" and Thing[2] ~= "ShootIce" and Thing[2] ~= "Freeze" and Thing[2] ~= "Shoot" and Thing[2] ~= "Shoot2" and Thing[2] ~= "Shoot3" and Thing[2] ~= "Shoot4" and Thing[2] ~= "SatelliteStrike" and Thing[2] ~= "SatelliteStrike2" then
  4429. if Thing[1].Transparency <= 1 then
  4430. if Thing[2] == "Block1" then
  4431. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  4432. Mesh = Thing[7]
  4433. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4434. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4435. else
  4436. if Thing[2] == "Block2" then
  4437. Thing[1].CFrame = Thing[1].CFrame
  4438. Mesh = Thing[7]
  4439. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4440. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4441. else
  4442. if Thing[2] == "Block3" then
  4443. Thing[8] = Thing[8] * cf(0, 1, 0)
  4444. Thing[1].CFrame = Thing[8] * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  4445. Mesh = Thing[7]
  4446. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4447. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4448. else
  4449. if Thing[2] == "Block4" then
  4450. if #Neons - 1 < Thing[8] then
  4451. Thing[8] = 1
  4452. else
  4453. Thing[8] = Thing[8] + 1
  4454. end
  4455. Thing[1].BrickColor = Neons[Thing[8]]
  4456. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  4457. Mesh = Thing[7]
  4458. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4459. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4460. else
  4461. if Thing[2] == "Cylinder" then
  4462. Mesh = Thing[7]
  4463. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4464. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4465. else
  4466. if Thing[2] == "Shatter" then
  4467. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4468. Thing[4] = Thing[4] * cf(0, Thing[7], 0)
  4469. Thing[1].CFrame = Thing[4] * euler(Thing[6], 0, 0)
  4470. Thing[6] = Thing[6] + Thing[5]
  4471. else
  4472. if Thing[2] == "Blood" then
  4473. Mesh = Thing[7]
  4474. Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0)
  4475. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  4476. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4477. else
  4478. if Thing[2] == "Elec" then
  4479. Mesh = Thing[7]
  4480. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  4481. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4482. else
  4483. if Thing[2] == "Disappear" then
  4484. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4485. end
  4486. end
  4487. end
  4488. end
  4489. end
  4490. end
  4491. end
  4492. end
  4493. end
  4494. else
  4495. Part.Parent = nil
  4496. table.remove(Effects, e)
  4497. end
  4498. end
  4499. end
  4500. end
  4501. end
  4502. end
  4503. end
  4504. end
  4505. end
  4506. end
  4507. end
  4508. end
  4509. end
  4510. end
  4511. end
Add Comment
Please, Sign In to add comment