Advertisement
Disseya

The Dreamer FE

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