Advertisement
WDGASTER132

Untitled

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