Advertisement
epicdude6951

Untitled

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