Advertisement
lxUmbrielxl

FE convert starglitcher

Apr 24th, 2019
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. warn([[Star Glitcher Loaded.
  2. All purpose switcher... -- wat
  3.  
  4. It's not over yet.
  5. The faith is among us.
  6. And yet you still haven't defeated me.
  7. Now is my chance to destroy you.
  8. Then you're out of the world.
  9. With the elemental being struggling to gain power.
  10. This is the result.
  11. Very unstable and powerful.
  12. A insanely chaotic being.
  13. Who haven't ever known that one could hold this power.
  14. It's the one that has been created by an unknown being.
  15. You'll know this name already.
  16. Till now.
  17. The power is inside your body.
  18. You will decide things with this.
  19. And the future changes within the power.
  20. For now, you'll decide your own.
  21. You're one of them who holds this power.
  22. And so on, you would get chaotic to everyone else.
  23. You seem to dont trust everyone else, but one.
  24. That one... you can't know.
  25. It's only your decision.
  26. At yourself.
  27. No mercy, or spare.
  28.  
  29.  
  30. Created by 'NoobyGames12'
  31. Edited by 'danny199990'
  32. Some stuff by 'XXUNORIBOASXX'
  33. ]])
  34. print([[Icons:
  35. ! = New
  36. ? = Spoilers
  37. * = Exclusivity
  38. ]])
  39. warn([[V 3.3.1 (ON PROGRESS) Update Log:
  40. - Originall themes included
  41. ! - Calamity's "Z" has changed.
  42. ! - Starfall EX added.
  43. ! - Mayhem now has Destruction mode.
  44. ! - Chaos theme has been changed.
  45. ! - Purity's theme has been extended.
  46. ? - Corruption's "Z" will have animation sooner.
  47. ! - Calamity's "X" is added, named Starfall.
  48. * - Catastrophe's "Z" coming soon, same as Calamity's "Z" but more powerful.
  49. ! - Divinity's Shield move fixed, wont break anymore(Hold F)(Made by danny199990).
  50. ! - Equinox's MeteorStrike move(X) added(Made by danny199990).
  51. ! - Divinity's Judgement move(Z) collison issue fixed(Made by danny199990).
  52. ! - Divinity's Judgement move(Z) can now be held as long as you want it to.
  53.  
  54. I'd like if you wouldnt remove my or NoobyGames's credit, thanks alot ;).
  55. ]])
  56. --- its obs smooth af do not touch
  57. ---- Sources and functions might be taken from others
  58. -- This script has been converted to FE by iPxter
  59.  
  60.  
  61. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  62. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  63. do
  64. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  65. script.Parent = Player.Character
  66.  
  67. --RemoteEvent for communicating
  68. local Event = Instance.new("RemoteEvent")
  69. Event.Name = "UserInput_Event"
  70.  
  71. --Fake event to make stuff like Mouse.KeyDown work
  72. local function fakeEvent()
  73. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  74. t.connect = t.Connect
  75. return t
  76. end
  77.  
  78. --Creating fake input objects with fake variables
  79. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  80. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  81. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  82. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  83. end}
  84. --Merged 2 functions into one by checking amount of arguments
  85. CAS.UnbindAction = CAS.BindAction
  86.  
  87. --This function will trigger the events that have been :Connect()'ed
  88. local function te(self,ev,...)
  89. local t = m[ev]
  90. if t and t._fakeEvent and t.Function then
  91. t.Function(...)
  92. end
  93. end
  94. m.TrigEvent = te
  95. UIS.TrigEvent = te
  96.  
  97. Event.OnServerEvent:Connect(function(plr,io)
  98. if plr~=Player then return end
  99. if io.isMouse then
  100. m.Target = io.Target
  101. m.Hit = io.Hit
  102. else
  103. local b = io.UserInputState == Enum.UserInputState.Begin
  104. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  105. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  106. end
  107. for _,t in pairs(CAS.Actions) do
  108. for _,k in pairs(t.Keys) do
  109. if k==io.KeyCode then
  110. t.Function(t.Name,io.UserInputState,io)
  111. end
  112. end
  113. end
  114. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  115. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  116. end
  117. end)
  118. Event.Parent = NLS([==[
  119. local Player = game:GetService("Players").LocalPlayer
  120. local Event = script:WaitForChild("UserInput_Event")
  121.  
  122. local UIS = game:GetService("UserInputService")
  123. local input = function(io,a)
  124. if a then return end
  125. --Since InputObject is a client-side instance, we create and pass table instead
  126. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  127. end
  128. UIS.InputBegan:Connect(input)
  129. UIS.InputEnded:Connect(input)
  130.  
  131. local Mouse = Player:GetMouse()
  132. local h,t
  133. --Give the server mouse data 30 times every second, but only if the values changed
  134. --If player is not moving their mouse, client won't fire events
  135. while wait(1/30) do
  136. if h~=Mouse.Hit or t~=Mouse.Target then
  137. h,t=Mouse.Hit,Mouse.Target
  138. Event:FireServer({isMouse=true,Target=t,Hit=h})
  139. end
  140. end]==],Player.Character)
  141. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  142. end
  143. plr = owner
  144. char = plr.Character
  145. hum = char.Humanoid
  146. local cam = game.Workspace.CurrentCamera
  147. local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
  148. Camera = cam
  149. local CamInterrupt = false
  150. local TwoD = false
  151. local TargetInfo = {nil, nil}
  152. cam.CameraType = "Custom"
  153. t = char.Torso
  154. h = char.Head
  155. ra = char["Right Arm"]
  156. la = char["Left Arm"]
  157. rl = char["Right Leg"]
  158. ll = char["Left Leg"]
  159. tors = char.Torso
  160. lleg = char["Left Leg"]
  161. root = char.HumanoidRootPart
  162. hed = char.Head
  163. rleg = char["Right Leg"]
  164. rarm = char["Right Arm"]
  165. larm = char["Left Arm"]
  166. radian = math.rad
  167. random = math.random
  168. Vec3 = Vector3.new
  169. Inst = Instance.new
  170. cFrame = CFrame.new
  171. Euler = CFrame.fromEulerAnglesXYZ
  172. vt = Vector3.new
  173. bc = BrickColor.new
  174. br = BrickColor.random
  175. it = Instance.new
  176. cf = CFrame.new
  177. local eff = true
  178. local shielding = false
  179.  
  180. local Booleans = {
  181. CamFollow = true,
  182. GyroUse = true
  183. }
  184.  
  185. function lerp(object, newCFrame, alpha)
  186. return object:lerp(newCFrame, alpha)
  187. end
  188.  
  189. local Directer = Inst("BodyGyro", root)
  190. Directer.MaxTorque = Vec3(0, 0, 0)
  191. Directer.P = 600000
  192. local CPart = Inst("Part")
  193. CPart.Anchored = true
  194. CPart.CanCollide = false
  195. CPart.Locked = true
  196. CPart.Transparency = 1
  197.  
  198. local rainbowmode = false
  199. local chaosmode = false
  200.  
  201. kan = Instance.new("Sound",char)
  202. kan.Volume = 1.25
  203. kan.TimePosition = 0
  204. kan.PlaybackSpeed = 1
  205. kan.Pitch = 1
  206. kan.SoundId = "rbxassetid://614032233"
  207. kan.Name = "wrecked"
  208. kan.Looped = true
  209. kan:Play()
  210.  
  211. function newTheme(ID,timepos,pitch,vol)
  212. local kanz = kan
  213. --kanz:Stop()
  214. --kanz.Volume = vol
  215. --kanz.TimePosition = timepos
  216. kanz.PlaybackSpeed = pitch
  217. kanz.Pitch = pitch
  218. kanz.SoundId = ID
  219. kanz.Name = "wrecked"
  220. kanz.Looped = true
  221. kanz.Volume = 0.3
  222. --kanz:Play()
  223. --coroutine.resume(coroutine.create(function()
  224. --wait(0.05)
  225. --end))
  226. end
  227.  
  228. function newThemeCust(ID,timepos,pitch,vol)
  229. local kanz = kan
  230. kanz:Stop()
  231. kanz.Volume = vol
  232. kanz.TimePosition = timepos
  233. kanz.PlaybackSpeed = pitch
  234. kanz.Pitch = pitch
  235. kanz.SoundId = ID
  236. kanz.Name = "wrecked"
  237. kanz.Looped = true
  238. kanz:Play()
  239. coroutine.resume(coroutine.create(function()
  240. wait(0.05)
  241. end))
  242. end
  243.  
  244.  
  245.  
  246. function CameraShake(Times, Power, PlayerTarget)
  247. coroutine.resume(coroutine.create(function()
  248. FV = Instance.new("BoolValue", PlayerTarget)
  249. FV.Name = "CameraShake"
  250. for ShakeNum=1,Times do
  251. swait()
  252. local ef=Power
  253. if ef>=1 then
  254. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  255. else
  256. ef=Power*10
  257. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  258. end
  259. end
  260. Humanoid.CameraOffset = Vector3.new(0,0,0)
  261. FV:Destroy()
  262. end))
  263. end
  264.  
  265. function CameraEnshaking(Length,Intensity)
  266. coroutine.resume(coroutine.create(function()
  267. local intensity = 1*Intensity
  268. local rotM = 0.01*Intensity
  269. for i = 0, Length, 0.1 do
  270. swait()
  271. intensity = intensity - 0.05*Intensity/Length
  272. rotM = rotM - 0.0005*Intensity/Length
  273. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  274. cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
  275. end
  276. Humanoid.CameraOffset = Vec3(0, 0, 0)
  277. end))
  278. end
  279. CamShake=function(Part,Distan,Power,Times)
  280. local de=Part.Position
  281. for i,v in pairs(workspace:children()) do
  282. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  283. for _,c in pairs(v:children()) do
  284. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  285. local Noob=v.Humanoid
  286. if Noob~=nil then
  287. coroutine.resume(coroutine.create(function()
  288. FV = Instance.new("BoolValue", Noob)
  289. FV.Name = "CameraShake"
  290. for ShakeNum=1,Times do
  291. swait()
  292. local ef=Power
  293. if ef>=1 then
  294. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  295. else
  296. ef=Power*10
  297. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  298. end
  299. end
  300. Humanoid.CameraOffset = Vector3.new(0,0,0)
  301. FV:Destroy()
  302. end))
  303. CameraShake(Times, Power, Noob)
  304. end
  305. end
  306. end
  307. end
  308. end
  309. end
  310.  
  311. function chatfunc(text,color)
  312. local chat = coroutine.wrap(function()
  313. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  314. Character:FindFirstChild("TalkingBillBoard"):destroy()
  315. end
  316. local naeeym2 = Instance.new("BillboardGui",Character)
  317. naeeym2.Size = UDim2.new(0,100,0,40)
  318. naeeym2.StudsOffset = Vector3.new(0,3,0)
  319. naeeym2.Adornee = Character.Head
  320. naeeym2.Name = "TalkingBillBoard"
  321. local tecks2 = Instance.new("TextLabel",naeeym2)
  322. tecks2.BackgroundTransparency = 1
  323. tecks2.BorderSizePixel = 0
  324. tecks2.Text = ""
  325. tecks2.Font = "SciFi"
  326. tecks2.TextSize = 30
  327. tecks2.TextStrokeTransparency = 0
  328. tecks2.TextColor3 = color
  329. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  330. tecks2.Size = UDim2.new(1,0,0.5,0)
  331. local tecks3 = Instance.new("TextLabel",naeeym2)
  332. tecks3.BackgroundTransparency = 1
  333. tecks3.BorderSizePixel = 0
  334. tecks3.Text = ""
  335. tecks3.Font = "SciFi"
  336. tecks3.TextSize = 30
  337. tecks3.TextStrokeTransparency = 0
  338. tecks3.TextColor3 = Color3.new(0,0,0)
  339. tecks3.TextStrokeColor3 = color
  340. tecks3.Size = UDim2.new(1,0,0.5,0)
  341. coroutine.resume(coroutine.create(function()
  342. while true do
  343. swait(1)
  344. plr.Character.wrecked.Volume = 0.3
  345. if chaosmode == true then
  346. tecks2.TextColor3 = BrickColor.random().Color
  347. tecks3.TextStrokeColor3 = BrickColor.random().Color
  348. end
  349. tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  350. tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  351. tecks2.Rotation = math.random(-5,5)
  352. tecks3.Rotation = math.random(-5,5)
  353. end
  354. end))
  355. for i = 1,string.len(text),1 do
  356. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  357. tecks2.Text = string.sub(text,1,i)
  358. tecks3.Text = string.sub(text,1,i)
  359. swait(1)
  360. end
  361. wait(1)
  362. local randomrot = math.random(1,2)
  363. if randomrot == 1 then
  364. for i = 1, 50 do
  365. swait()
  366. tecks2.Rotation = tecks2.Rotation - .75
  367. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  368. tecks2.TextTransparency = tecks2.TextTransparency + .04
  369. tecks3.Rotation = tecks2.Rotation + .75
  370. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  371. tecks3.TextTransparency = tecks2.TextTransparency + .04
  372. end
  373. elseif randomrot == 2 then
  374. for i = 1, 50 do
  375. swait()
  376. tecks2.Rotation = tecks2.Rotation + .75
  377. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  378. tecks2.TextTransparency = tecks2.TextTransparency + .04
  379. tecks3.Rotation = tecks2.Rotation - .75
  380. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  381. tecks3.TextTransparency = tecks2.TextTransparency + .04
  382. end
  383. end
  384. naeeym2:Destroy()
  385. end)
  386. chat()
  387. end
  388.  
  389.  
  390. local Create = LoadLibrary("RbxUtility").Create
  391.  
  392. CFuncs = {
  393. ["Part"] = {
  394. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  395. local Part = Create("Part"){
  396. Parent = Parent,
  397. Reflectance = Reflectance,
  398. Transparency = Transparency,
  399. CanCollide = false,
  400. Locked = true,
  401. BrickColor = BrickColor.new(tostring(BColor)),
  402. Name = Name,
  403. Size = Size,
  404. Material = Material,
  405. }
  406. RemoveOutlines(Part)
  407. return Part
  408. end;
  409. };
  410.  
  411. ["Mesh"] = {
  412. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  413. local Msh = Create(Mesh){
  414. Parent = Part,
  415. Offset = OffSet,
  416. Scale = Scale,
  417. }
  418. if Mesh == "SpecialMesh" then
  419. Msh.MeshType = MeshType
  420. Msh.MeshId = MeshId
  421. end
  422. return Msh
  423. end;
  424. };
  425.  
  426. ["Mesh"] = {
  427. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  428. local Msh = Create(Mesh){
  429. Parent = Part,
  430. Offset = OffSet,
  431. Scale = Scale,
  432. }
  433. if Mesh == "SpecialMesh" then
  434. Msh.MeshType = MeshType
  435. Msh.MeshId = MeshId
  436. end
  437. return Msh
  438. end;
  439. };
  440.  
  441. ["Weld"] = {
  442. Create = function(Parent, Part0, Part1, C0, C1)
  443. local Weld = Create("Weld"){
  444. Parent = Parent,
  445. Part0 = Part0,
  446. Part1 = Part1,
  447. C0 = C0,
  448. C1 = C1,
  449. }
  450. return Weld
  451. end;
  452. };
  453.  
  454. ["Sound"] = {
  455. Create = function(id, par, vol, pit)
  456. coroutine.resume(coroutine.create(function()
  457. local S = Create("Sound"){
  458. Volume = vol,
  459. Name = "EffectSoundo",
  460. Pitch = pit or 1,
  461. SoundId = id,
  462. Parent = par or workspace,
  463. }
  464. wait()
  465. S:play()
  466. game:GetService("Debris"):AddItem(S, 10)
  467. end))
  468. end;
  469. };
  470.  
  471. ["LongSound"] = {
  472. Create = function(id, par, vol, pit)
  473. coroutine.resume(coroutine.create(function()
  474. local S = Create("Sound"){
  475. Volume = vol,
  476. Pitch = pit or 1,
  477. SoundId = id,
  478. Parent = par or workspace,
  479. }
  480. wait()
  481. S:play()
  482. game:GetService("Debris"):AddItem(S, 30)
  483. end))
  484. end;
  485. };
  486.  
  487. ["ParticleEmitter"] = {
  488. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  489. local fp = Create("ParticleEmitter"){
  490. Parent = Parent,
  491. Color = ColorSequence.new(Color1, Color2),
  492. LightEmission = LightEmission,
  493. Size = Size,
  494. Texture = Texture,
  495. Transparency = Transparency,
  496. ZOffset = ZOffset,
  497. Acceleration = Accel,
  498. Drag = Drag,
  499. LockedToPart = LockedToPart,
  500. VelocityInheritance = VelocityInheritance,
  501. EmissionDirection = EmissionDirection,
  502. Enabled = Enabled,
  503. Lifetime = LifeTime,
  504. Rate = Rate,
  505. Rotation = Rotation,
  506. RotSpeed = RotSpeed,
  507. Speed = Speed,
  508. VelocitySpread = VelocitySpread,
  509. }
  510. return fp
  511. end;
  512. };
  513.  
  514. CreateTemplate = {
  515.  
  516. };
  517. }
  518.  
  519.  
  520.  
  521. New = function(Object, Parent, Name, Data)
  522. local Object = Instance.new(Object)
  523. for Index, Value in pairs(Data or {}) do
  524. Object[Index] = Value
  525. end
  526. Object.Parent = Parent
  527. Object.Name = Name
  528. return Object
  529. end
  530. local halocolor = BrickColor.new("Pastel light blue")
  531. local halocolor2 = BrickColor.new("Cool yellow")
  532. local starcolor = BrickColor.new("Bright yellow")
  533. local lunacolor = BrickColor.new("Navy blue")
  534. local lunacolor2 = BrickColor.new("Bright blue")
  535. local wepcolor = BrickColor.new("Really black")
  536. local maincolor = BrickColor.new("Really black")
  537. local m = Instance.new("Model",char)
  538. local m2 = Instance.new("Model",char)
  539. local m3 = Instance.new("Model",char)
  540. local mw1 = Instance.new("Model",char)
  541. local mw2 = Instance.new("Model",char)
  542.  
  543. local extrawingmod1 = Instance.new("Model",char)
  544. local extrawingmod2 = Instance.new("Model",char)
  545.  
  546. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  547. local p = Instance.new("Part")
  548. p.TopSurface = 0
  549. p.BottomSurface = 0
  550. p.Parent = parent
  551. p.Size = Vector3.new(0.1,0.1,0.1)
  552. p.Transparency = transparency
  553. p.Reflectance = reflectance
  554. p.CanCollide = false
  555. p.Locked = true
  556. p.BrickColor = brickcolor
  557. p.Material = material
  558. return p
  559. end
  560.  
  561. function CreateMesh(parent,meshtype,x1,y1,z1)
  562. local mesh = Instance.new("SpecialMesh",parent)
  563. mesh.MeshType = meshtype
  564. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  565. return mesh
  566. end
  567.  
  568. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  569. local mesh = Instance.new("SpecialMesh",parent)
  570. mesh.MeshType = "FileMesh"
  571. mesh.MeshId = meshid
  572. mesh.Scale = Vector3.new(x1,y1,z1)
  573. return mesh
  574. end
  575.  
  576.  
  577. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  578. local mesh = Instance.new("SpecialMesh",parent)
  579. mesh.MeshType = "FileMesh"
  580. mesh.MeshId = meshid
  581. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  582. mesh.Scale = Vector3.new(x1,y1,z1)
  583. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  584. return mesh
  585. end
  586.  
  587. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  588. local weld = Instance.new("Weld")
  589. weld.Parent = parent
  590. weld.Part0 = part0
  591. weld.Part1 = part1
  592. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  593. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  594. return weld
  595. end
  596.  
  597.  
  598. --------------
  599. local secondchar = Instance.new("Model",char)
  600. local GhostCol = BrickColor.new("Really red")
  601. local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol)
  602. CreateMesh(sectors,"Brick",2*8,2*8,1*8)
  603. local torsweld = CreateWeld(sectors,root,sectors,1,-1,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  604.  
  605. local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  606. CreateMesh(seclarm,"Brick",1*8,2*8,1*8)
  607. local larmsweld = CreateWeld(seclarm,sectors,seclarm,1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  608.  
  609. local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  610. CreateMesh(secrarm,"Brick",1*8,2*8,1*8)
  611. local rarmsweld = CreateWeld(secrarm,sectors,secrarm,-1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  612.  
  613. local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  614. CreateMesh(seclleg,"Brick",1*8,2*8,1*8)
  615. local llegsweld = CreateWeld(seclleg,sectors,seclleg,0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  616.  
  617. local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  618. CreateMesh(secrleg,"Brick",1*8,2*8,1*8)
  619. local rlegsweld = CreateWeld(secrleg,sectors,secrleg,-0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  620.  
  621. local seched = CreateParta(secondchar,1,0,"Neon",GhostCol)
  622. CreateMesh(seched,"Brick",1*8,1*8,1*8)
  623. local hedsweld = CreateWeld(seched,sectors,seched,0,-1.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  624. --------------
  625. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  626. CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  627. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  628. CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  629.  
  630. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  631. CreateMesh(handle,"Brick",0,0,0)
  632. local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  633. local valuaring = 10
  634. for i = 0, 49 do
  635. valuaring = valuaring + 10
  636. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  637. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  638. CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  639. end
  640.  
  641. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  642. CreateMesh(handle,"Brick",0,0,0)
  643. CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  644. local valuaring = 10
  645. for i = 0, 49 do
  646. valuaring = valuaring + 10
  647. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  648. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  649. CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  650. end
  651.  
  652.  
  653. local handle = CreateParta(m,1,1,"Neon",maincolor)
  654. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  655. local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  656.  
  657. --- Left wing.
  658.  
  659. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  660. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  661. local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  662.  
  663. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  664. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  665. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  666. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  667. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  668. CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  669. A0 = Instance.new('Attachment',wed)
  670. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  671. CreateMesh(wed,"Wedge",0.05,0.5,3)
  672. CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  673. A1 = Instance.new('Attachment',wed)
  674. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  675. CreateMesh(wed,"Wedge",0.05,3,0.5)
  676. CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  677.  
  678. tl1 = Instance.new('Trail',wed)
  679. tl1.Attachment0 = A0
  680. tl1.Attachment1 = A1
  681. --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  682. tl1.LightEmission = 1
  683. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  684. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  685. tl1.Lifetime = 0.6
  686.  
  687.  
  688. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  689. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  690. local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  691.  
  692. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  693. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  694. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  695. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  696. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  697. CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  698. A0 = Instance.new('Attachment',wed)
  699. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  700. CreateMesh(wed,"Wedge",0.05,0.5,3)
  701. CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  702. A1 = Instance.new('Attachment',wed)
  703. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  704. CreateMesh(wed,"Wedge",0.05,3,0.5)
  705. CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  706.  
  707. tl2 = Instance.new('Trail',wed)
  708. tl2.Attachment0 = A0
  709. tl2.Attachment1 = A1
  710. --tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  711. tl2.LightEmission = 1
  712. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  713. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  714. tl2.Lifetime = 0.6
  715.  
  716. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  717. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  718. local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  719.  
  720. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  721. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  722. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  723. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  724. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  725. CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  726. A0 = Instance.new('Attachment',wed)
  727. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  728. CreateMesh(wed,"Wedge",0.05,0.5,3)
  729. CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  730. A1 = Instance.new('Attachment',wed)
  731. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  732. CreateMesh(wed,"Wedge",0.05,3,0.5)
  733. CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  734.  
  735. tl3 = Instance.new('Trail',wed)
  736. tl3.Attachment0 = A0
  737. tl3.Attachment1 = A1
  738. --tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  739. tl3.LightEmission = 1
  740. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  741. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  742. tl3.Lifetime = 0.6
  743.  
  744. tl1.Enabled = false
  745. tl2.Enabled = false
  746. tl3.Enabled = false
  747. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  748. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  749. local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  750.  
  751. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  752. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  753. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  754. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  755. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  756. CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  757. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  758. CreateMesh(wed,"Wedge",0.05,0.5,3)
  759. CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  760. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  761. CreateMesh(wed,"Wedge",0.05,3,0.5)
  762. CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  763.  
  764. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  765. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  766. local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  767.  
  768. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  769. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  770. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  771. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  772. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  773. CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  774. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  775. CreateMesh(wed,"Wedge",0.05,0.5,3)
  776. CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  777. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  778. CreateMesh(wed,"Wedge",0.05,3,0.5)
  779. CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  780.  
  781. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  782. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  783. local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  784.  
  785. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  786. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  787. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  788. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  789. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  790. CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  791. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  792. CreateMesh(wed,"Wedge",0.05,0.5,3)
  793. CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  794. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  795. CreateMesh(wed,"Wedge",0.05,3,0.5)
  796. CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  797.  
  798. -- Right wing.
  799.  
  800. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  801. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  802. local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  803.  
  804. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  805. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  806. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  807. A0 = Instance.new('Attachment',wed)
  808. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  809. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  810. CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  811. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  812. CreateMesh(wed,"Wedge",0.05,0.5,3)
  813. CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  814. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  815. CreateMesh(wed,"Wedge",0.05,3,0.5)
  816. CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  817. A1 = Instance.new('Attachment',wed)
  818.  
  819. tr1 = Instance.new('Trail',wed)
  820. tr1.Attachment0 = A0
  821. tr1.Attachment1 = A1
  822. --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  823. tr1.LightEmission = 1
  824. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  825. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  826. tr1.Lifetime = 0.6
  827.  
  828. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  829. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  830. local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  831.  
  832. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  833. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  834. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  835. A0 = Instance.new('Attachment',wed)
  836. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  837. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  838. CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  839. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  840. CreateMesh(wed,"Wedge",0.05,0.5,3)
  841. CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  842. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  843. CreateMesh(wed,"Wedge",0.05,3,0.5)
  844. CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  845. A1 = Instance.new('Attachment',wed)
  846.  
  847. tr2 = Instance.new('Trail',wed)
  848. tr2.Attachment0 = A0
  849. tr2.Attachment1 = A1
  850. --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  851. tr2.LightEmission = 1
  852. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  853. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  854. tr2.Lifetime = 0.6
  855.  
  856. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  857. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  858. local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  859.  
  860. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  861. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  862. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  863. A0 = Instance.new('Attachment',wed)
  864. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  865. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  866. CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  867. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  868. CreateMesh(wed,"Wedge",0.05,0.5,3)
  869. CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  870. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  871. CreateMesh(wed,"Wedge",0.05,3,0.5)
  872. CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  873. A1 = Instance.new('Attachment',wed)
  874.  
  875. tr3 = Instance.new('Trail',wed)
  876. tr3.Attachment0 = A0
  877. tr3.Attachment1 = A1
  878. --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  879. tr3.LightEmission = 1
  880. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  881. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  882. tr3.Lifetime = 0.6
  883.  
  884.  
  885. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  886. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  887. local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  888.  
  889. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  890. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  891. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  892. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  893. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  894. CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  895. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  896. CreateMesh(wed,"Wedge",0.05,0.5,3)
  897. CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  898. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  899. CreateMesh(wed,"Wedge",0.05,3,0.5)
  900. CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  901.  
  902. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  903. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  904. local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  905.  
  906. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  907. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  908. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  909. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  910. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  911. CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  912. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  913. CreateMesh(wed,"Wedge",0.05,0.5,3)
  914. CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  915. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  916. CreateMesh(wed,"Wedge",0.05,3,0.5)
  917. CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  918.  
  919. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  920. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  921. local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  922.  
  923. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  924. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  925. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  926. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  927. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  928. CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  929. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  930. CreateMesh(wed,"Wedge",0.05,0.5,3)
  931. CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  932. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  933. CreateMesh(wed,"Wedge",0.05,3,0.5)
  934. CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  935.  
  936. ---- HERES THE RING
  937.  
  938.  
  939. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  940. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  941. CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  942. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  943. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  944. CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  945. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  946. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  947. CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  948.  
  949.  
  950. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  951. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  952. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  953.  
  954. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  955. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  956. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  957.  
  958.  
  959.  
  960. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  961. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  962. CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  963.  
  964. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  965. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  966. CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  967.  
  968. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  969. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  970. CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  971.  
  972. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  973. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  974. CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  975. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  976. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  977. CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  978.  
  979. --- second ring
  980.  
  981. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  982. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  983. CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  984. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  985. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  986. CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  987. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  988. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  989. CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  990.  
  991. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  992. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  993. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  994.  
  995. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  996. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  997. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  998.  
  999.  
  1000.  
  1001. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1002. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1003. CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1004.  
  1005. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1006. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1007. CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1008.  
  1009. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1010. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1011. CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1012.  
  1013. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1014. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1015. CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  1016. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1017. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1018. CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]--
  1019.  
  1020.  
  1021.  
  1022. for i, v in pairs(m:GetChildren()) do
  1023. if v:IsA("Part") then
  1024. v.BrickColor = BrickColor.new("Really black")
  1025. v.Material = "Glass"
  1026. end
  1027. end
  1028. for i, v in pairs(m2:GetChildren()) do
  1029. if v:IsA("Part") then
  1030. v.BrickColor = BrickColor.new("Crimson")
  1031. v.Material = "Granite"
  1032. end
  1033. end
  1034. for i, v in pairs(m3:GetChildren()) do
  1035. if v:IsA("Part") then
  1036. v.BrickColor = BrickColor.new("Really red")
  1037. v.Material = "Neon"
  1038. end
  1039. end
  1040. for i, v in pairs(mw2:GetChildren()) do
  1041. if v:IsA("Part") then
  1042. v.BrickColor = BrickColor.new("Really red")
  1043. v.Material = "Neon"
  1044. end
  1045. end
  1046. for i, v in pairs(mw1:GetChildren()) do
  1047. if v:IsA("Part") then
  1048. v.Transparency = 1
  1049. v.BrickColor = BrickColor.new("Really red")
  1050. v.Material = "Neon"
  1051. end
  1052. end
  1053. for i, v in pairs(extrawingmod1:GetChildren()) do
  1054. if v:IsA("Part") then
  1055. v.Transparency = 1
  1056. v.BrickColor = BrickColor.new("White")
  1057. v.Material = "Neon"
  1058. end
  1059. end
  1060. for i, v in pairs(extrawingmod2:GetChildren()) do
  1061. if v:IsA("Part") then
  1062. v.Transparency = 1
  1063. v.BrickColor = BrickColor.new("White")
  1064. v.Material = "Neon"
  1065. end
  1066. end
  1067. local MAINRUINCOLOR = BrickColor.new("Really red")
  1068. ------
  1069.  
  1070.  
  1071. function RemoveOutlines(part)
  1072. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1073. end
  1074. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1075. local Part = Create("Part")({
  1076. Parent = Parent,
  1077. Reflectance = Reflectance,
  1078. Transparency = Transparency,
  1079. CanCollide = false,
  1080. Locked = true,
  1081. BrickColor = BrickColor.new(tostring(BColor)),
  1082. Name = Name,
  1083. Size = Size,
  1084. Material = Material
  1085. })
  1086. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1087. RemoveOutlines(Part)
  1088. return Part
  1089. end
  1090. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1091. local Msh = Create(Mesh)({
  1092. Parent = Part,
  1093. Offset = OffSet,
  1094. Scale = Scale
  1095. })
  1096. if Mesh == "SpecialMesh" then
  1097. Msh.MeshType = MeshType
  1098. Msh.MeshId = MeshId
  1099. end
  1100. return Msh
  1101. end
  1102. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1103. local Weld = Create("Weld")({
  1104. Parent = Parent,
  1105. Part0 = Part0,
  1106. Part1 = Part1,
  1107. C0 = C0,
  1108. C1 = C1
  1109. })
  1110. return Weld
  1111. end
  1112.  
  1113. Player=game:GetService("Players").LocalPlayer
  1114. Character=Player.Character
  1115. PlayerGui=Player.PlayerGui
  1116. Backpack=Player.Backpack
  1117. Torso=Character.Torso
  1118. Head=Character.Head
  1119. Humanoid=Character.Humanoid
  1120. m=Instance.new('Model',Character)
  1121. LeftArm=Character["Left Arm"]
  1122. LeftLeg=Character["Left Leg"]
  1123. RightArm=Character["Right Arm"]
  1124. RightLeg=Character["Right Leg"]
  1125. LS=Torso["Left Shoulder"]
  1126. LH=Torso["Left Hip"]
  1127. RS=Torso["Right Shoulder"]
  1128. RH=Torso["Right Hip"]
  1129. Face = Head.face
  1130. Neck=Torso.Neck
  1131. it=Instance.new
  1132. attacktype=1
  1133. vt=Vector3.new
  1134. cf=CFrame.new
  1135. euler=CFrame.fromEulerAnglesXYZ
  1136. angles=CFrame.Angles
  1137. cloaked=false
  1138. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1139. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1140. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1141. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1142. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1143. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1144. RootPart=Character.HumanoidRootPart
  1145. RootJoint=RootPart.RootJoint
  1146. RootCF=euler(-1.57,0,3.14)
  1147. attack = false
  1148. attackdebounce = false
  1149. deb=false
  1150. equipped=true
  1151. hand=false
  1152. MMouse=nil
  1153. combo=0
  1154. mana=0
  1155. trispeed=.2
  1156. attackmode='none'
  1157. local idle=0
  1158. local Anim="Idle"
  1159. local Effects={}
  1160. local gun=false
  1161. local shoot=false
  1162. local sine = 0
  1163. local change = 1
  1164. player=nil
  1165.  
  1166.  
  1167. local toggleTag = true
  1168. local txt = Instance.new("BillboardGui", Head)
  1169. txt.Adornee = nil
  1170. txt.Name = "NameDetect"
  1171. txt.Size = UDim2.new(4, 0, 1.2, 0)
  1172. txt.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  1173. local text = Instance.new("TextLabel", txt)
  1174. text.Size = UDim2.new(10/2, 0, 7/2, 0)
  1175. text.FontSize = "Size8"
  1176. text.TextScaled = true
  1177. text.TextTransparency = 0
  1178. text.BackgroundTransparency = 1
  1179. text.TextTransparency = 0
  1180. text.TextStrokeTransparency = 0
  1181. text.Font = "Fantasy"
  1182. text.TextStrokeColor3 = Color3.new(1,0,0)
  1183. text.TextColor3 = Color3.new(0,0,0)
  1184. text.Text = "Mayhem"
  1185.  
  1186. function RecolorTextAndRename(name,col1,col2)
  1187. text.TextStrokeColor3 = col2
  1188. text.TextColor3 = col1
  1189. text.Text = name
  1190. end
  1191. --save shoulders
  1192. RSH, LSH=nil, nil
  1193. --welds
  1194. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1195. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1196. LH=Torso["Left Hip"]
  1197. RH=Torso["Right Hip"]
  1198. TorsoColor=Torso.BrickColor
  1199. function NoOutline(Part)
  1200. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1201. end
  1202. player=Player
  1203. ch=Character
  1204. RSH=ch.Torso["Right Shoulder"]
  1205. LSH=ch.Torso["Left Shoulder"]
  1206. --
  1207. RSH.Parent=nil
  1208. LSH.Parent=nil
  1209. --
  1210. RW.Name="Right Shoulder"
  1211. RW.Part0=ch.Torso
  1212. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1213. RW.C1=cf(0, 0.5, 0)
  1214. RW.Part1=ch["Right Arm"]
  1215. RW.Parent=ch.Torso
  1216. --
  1217. LW.Name="Left Shoulder"
  1218. LW.Part0=ch.Torso
  1219. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1220. LW.C1=cf(0, 0.5, 0)
  1221. LW.Part1=ch["Left Arm"]
  1222. LW.Parent=ch.Torso
  1223.  
  1224. local Stats=Instance.new("BoolValue")
  1225. Stats.Name="Stats"
  1226. Stats.Parent=Character
  1227. local Atk=Instance.new("NumberValue")
  1228. Atk.Name="Damage"
  1229. Atk.Parent=Stats
  1230. Atk.Value=1
  1231. local Def=Instance.new("NumberValue")
  1232. Def.Name="Defense"
  1233. Def.Parent=Stats
  1234. Def.Value=1
  1235. local Speed=Instance.new("NumberValue")
  1236. Speed.Name="Speed"
  1237. Speed.Parent=Stats
  1238. Speed.Value=1
  1239. local Mvmt=Instance.new("NumberValue")
  1240. Mvmt.Name="Movement"
  1241. Mvmt.Parent=Stats
  1242. Mvmt.Value=1
  1243.  
  1244. local donum=0
  1245.  
  1246.  
  1247. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1248. local fp=it("Part")
  1249. fp.formFactor=formfactor
  1250. fp.Parent=parent
  1251. fp.Reflectance=reflectance
  1252. fp.Transparency=transparency
  1253. fp.CanCollide=false
  1254. fp.Locked=true
  1255. fp.BrickColor=brickcolor
  1256. fp.Name=name
  1257. fp.Size=size
  1258. fp.Position=Torso.Position
  1259. NoOutline(fp)
  1260. fp.Material="SmoothPlastic"
  1261. fp:BreakJoints()
  1262. return fp
  1263. end
  1264.  
  1265. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1266. local mesh=it(Mesh)
  1267. mesh.Parent=part
  1268. if Mesh=="SpecialMesh" then
  1269. mesh.MeshType=meshtype
  1270. if meshid~="nil" then
  1271. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1272. end
  1273. end
  1274. mesh.Offset=offset
  1275. mesh.Scale=scale
  1276. return mesh
  1277. end
  1278.  
  1279. function weld(parent,part0,part1,c0)
  1280. local weld=it("Weld")
  1281. weld.Parent=parent
  1282. weld.Part0=part0
  1283. weld.Part1=part1
  1284. weld.C0=c0
  1285. return weld
  1286. end
  1287.  
  1288. local Color1=Torso.BrickColor
  1289.  
  1290. local bodvel=Instance.new("BodyVelocity")
  1291. local bg=Instance.new("BodyGyro")
  1292.  
  1293. function swait(num)
  1294. if num==0 or num==nil then
  1295. game:service'RunService'.Stepped:wait(0)
  1296. else
  1297. for i=0,num do
  1298. game:service'RunService'.Stepped:wait(0)
  1299. end
  1300. end
  1301. end
  1302.  
  1303. -------- RAINBOW LEAVE IT TO ME
  1304. local r = 255
  1305. local g = 0
  1306. local b = 0
  1307. coroutine.resume(coroutine.create(function()
  1308. while wait() do
  1309. for i = 0, 254/5 do
  1310. swait()
  1311. g = g + 5
  1312. end
  1313. for i = 0, 254/5 do
  1314. swait()
  1315. r = r - 5
  1316. end
  1317. for i = 0, 254/5 do
  1318. swait()
  1319. b = b + 5
  1320. end
  1321. for i = 0, 254/5 do
  1322. swait()
  1323. g = g - 5
  1324. end
  1325. for i = 0, 254/5 do
  1326. swait()
  1327. r = r + 5
  1328. end
  1329. for i = 0, 254/5 do
  1330. swait()
  1331. b = b - 5
  1332. end
  1333. end
  1334. end))
  1335.  
  1336.  
  1337. so = function(id,par,vol,pit)
  1338. coroutine.resume(coroutine.create(function()
  1339. local sou = Instance.new("Sound",par or workspace)
  1340. sou.Volume=vol
  1341. sou.Pitch=pit or 1
  1342. sou.SoundId=id
  1343. swait()
  1344. sou:play()
  1345. game:GetService("Debris"):AddItem(sou,6)
  1346. end))
  1347. end
  1348.  
  1349. function clerp(a,b,t)
  1350. local qa = {QuaternionFromCFrame(a)}
  1351. local qb = {QuaternionFromCFrame(b)}
  1352. local ax, ay, az = a.x, a.y, a.z
  1353. local bx, by, bz = b.x, b.y, b.z
  1354. local _t = 1-t
  1355. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1356. end
  1357.  
  1358. function QuaternionFromCFrame(cf)
  1359. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1360. local trace = m00 + m11 + m22
  1361. if trace > 0 then
  1362. local s = math.sqrt(1 + trace)
  1363. local recip = 0.5/s
  1364. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1365. else
  1366. local i = 0
  1367. if m11 > m00 then
  1368. i = 1
  1369. end
  1370. if m22 > (i == 0 and m00 or m11) then
  1371. i = 2
  1372. end
  1373. if i == 0 then
  1374. local s = math.sqrt(m00-m11-m22+1)
  1375. local recip = 0.5/s
  1376. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1377. elseif i == 1 then
  1378. local s = math.sqrt(m11-m22-m00+1)
  1379. local recip = 0.5/s
  1380. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1381. elseif i == 2 then
  1382. local s = math.sqrt(m22-m00-m11+1)
  1383. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1384. end
  1385. end
  1386. end
  1387.  
  1388. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1389. local xs, ys, zs = x + x, y + y, z + z
  1390. local wx, wy, wz = w*xs, w*ys, w*zs
  1391. local xx = x*xs
  1392. local xy = x*ys
  1393. local xz = x*zs
  1394. local yy = y*ys
  1395. local yz = y*zs
  1396. local zz = z*zs
  1397. 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))
  1398. end
  1399.  
  1400. function QuaternionSlerp(a, b, t)
  1401. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1402. local startInterp, finishInterp;
  1403. if cosTheta >= 0.0001 then
  1404. if (1 - cosTheta) > 0.0001 then
  1405. local theta = math.acos(cosTheta)
  1406. local invSinTheta = 1/math.sin(theta)
  1407. startInterp = math.sin((1-t)*theta)*invSinTheta
  1408. finishInterp = math.sin(t*theta)*invSinTheta
  1409. else
  1410. startInterp = 1-t
  1411. finishInterp = t
  1412. end
  1413. else
  1414. if (1+cosTheta) > 0.0001 then
  1415. local theta = math.acos(-cosTheta)
  1416. local invSinTheta = 1/math.sin(theta)
  1417. startInterp = math.sin((t-1)*theta)*invSinTheta
  1418. finishInterp = math.sin(t*theta)*invSinTheta
  1419. else
  1420. startInterp = t-1
  1421. finishInterp = t
  1422. end
  1423. end
  1424. 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
  1425. end
  1426.  
  1427. local function CFrameFromTopBack(at, top, back)
  1428. local right = top:Cross(back)
  1429. return CFrame.new(at.x, at.y, at.z,
  1430. right.x, top.x, back.x,
  1431. right.y, top.y, back.y,
  1432. right.z, top.z, back.z)
  1433. end
  1434.  
  1435. function Triangle(a, b, c)
  1436. local edg1 = (c-a):Dot((b-a).unit)
  1437. local edg2 = (a-b):Dot((c-b).unit)
  1438. local edg3 = (b-c):Dot((a-c).unit)
  1439. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1440. a, b, c = a, b, c
  1441. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1442. a, b, c = b, c, a
  1443. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1444. a, b, c = c, a, b
  1445. else
  1446. assert(false, "unreachable")
  1447. end
  1448.  
  1449. local len1 = (c-a):Dot((b-a).unit)
  1450. local len2 = (b-a).magnitude - len1
  1451. local width = (a + (b-a).unit*len1 - c).magnitude
  1452.  
  1453. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1454.  
  1455. local list = {}
  1456.  
  1457. if len1 > 0.01 then
  1458. local w1 = Instance.new('WedgePart', m)
  1459. game:GetService("Debris"):AddItem(w1,5)
  1460. w1.Material = "SmoothPlastic"
  1461. w1.FormFactor = 'Custom'
  1462. w1.BrickColor = BrickColor.new("Really red")
  1463. w1.Transparency = 0
  1464. w1.Reflectance = 0
  1465. w1.Material = "SmoothPlastic"
  1466. w1.CanCollide = false
  1467. local l1 = Instance.new("PointLight",w1)
  1468. l1.Color = Color3.new(170,0,0)
  1469. NoOutline(w1)
  1470. local sz = Vector3.new(0.2, width, len1)
  1471. w1.Size = sz
  1472. local sp = Instance.new("SpecialMesh",w1)
  1473. sp.MeshType = "Wedge"
  1474. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1475. w1:BreakJoints()
  1476. w1.Anchored = true
  1477. w1.Parent = workspace
  1478. w1.Transparency = 0.7
  1479. table.insert(Effects,{w1,"Disappear",.01})
  1480. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1481. table.insert(list,w1)
  1482. end
  1483.  
  1484. if len2 > 0.01 then
  1485. local w2 = Instance.new('WedgePart', m)
  1486. game:GetService("Debris"):AddItem(w2,5)
  1487. w2.Material = "SmoothPlastic"
  1488. w2.FormFactor = 'Custom'
  1489. w2.BrickColor = BrickColor.new("Really red")
  1490. w2.Transparency = 0
  1491. w2.Reflectance = 0
  1492. w2.Material = "SmoothPlastic"
  1493. w2.CanCollide = false
  1494. local l2 = Instance.new("PointLight",w2)
  1495. l2.Color = Color3.new(170,0,0)
  1496. NoOutline(w2)
  1497. local sz = Vector3.new(0.2, width, len2)
  1498. w2.Size = sz
  1499. local sp = Instance.new("SpecialMesh",w2)
  1500. sp.MeshType = "Wedge"
  1501. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1502. w2:BreakJoints()
  1503. w2.Anchored = true
  1504. w2.Parent = workspace
  1505. w2.Transparency = 0.7
  1506. table.insert(Effects,{w2,"Disappear",.01})
  1507. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1508. table.insert(list,w2)
  1509. end
  1510. return unpack(list)
  1511. end
  1512.  
  1513.  
  1514. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1515. if hit.Parent == nil then
  1516. return
  1517. end
  1518. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1519. for _, v in pairs(hit.Parent:children()) do
  1520. if v:IsA("Humanoid") then
  1521. h = v
  1522. end
  1523. end
  1524. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1525. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1526. return
  1527. end
  1528. local c = Create("ObjectValue")({
  1529. Name = "creator",
  1530. Value =owner,
  1531. Parent = h
  1532. })
  1533. game:GetService("Debris"):AddItem(c, 0.5)
  1534. if HitSound ~= nil and HitPitch ~= nil then
  1535. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1536. end
  1537. local Damage = math.random(minim, maxim)
  1538. local blocked = false
  1539. local block = hit.Parent:findFirstChild("Block")
  1540. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1541. blocked = true
  1542. block.Value = block.Value - 1
  1543. print(block.Value)
  1544. end
  1545. if blocked == false then
  1546. HitHealth = h.Health
  1547. h.Health = h.Health - Damage
  1548. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1549. print("gained kill")
  1550. end
  1551. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1552. else
  1553. h.Health = h.Health - Damage / 2
  1554. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1555. end
  1556. if Type == "Knockdown" then
  1557. local hum = hit.Parent.Humanoid
  1558. hum.PlatformStand = true
  1559. coroutine.resume(coroutine.create(function(HHumanoid)
  1560. swait(1)
  1561. HHumanoid.PlatformStand = false
  1562. end), hum)
  1563. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1564. local bodvol = Create("BodyVelocity")({
  1565. velocity = angle * knockback,
  1566. P = 5000,
  1567. maxForce = Vector3.new(8000, 8000, 8000),
  1568. Parent = hit
  1569. })
  1570. local rl = Create("BodyAngularVelocity")({
  1571. P = 3000,
  1572. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1573. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1574. Parent = hit
  1575. })
  1576. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1577. game:GetService("Debris"):AddItem(rl, 0.5)
  1578. elseif Type == "Normal" then
  1579. local vp = Create("BodyVelocity")({
  1580. P = 500,
  1581. maxForce = Vector3.new(math.huge, 0, math.huge),
  1582. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1583. })
  1584. if knockback > 0 then
  1585. vp.Parent = hit.Parent.Head
  1586. end
  1587. game:GetService("Debris"):AddItem(vp, 0.5)
  1588. elseif Type == "Up" then
  1589. local bodyVelocity = Create("BodyVelocity")({
  1590. velocity = Vector3.new(0, 20, 0),
  1591. P = 5000,
  1592. maxForce = Vector3.new(8000, 8000, 8000),
  1593. Parent = hit
  1594. })
  1595. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1596. local bodyVelocity = Create("BodyVelocity")({
  1597. velocity = Vector3.new(0, 20, 0),
  1598. P = 5000,
  1599. maxForce = Vector3.new(8000, 8000, 8000),
  1600. Parent = hit
  1601. })
  1602. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1603. elseif Type == "Leech" then
  1604. local hum = hit.Parent.Humanoid
  1605. if hum ~= nil then
  1606. for i = 0, 2 do
  1607. Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1608. end
  1609. Humanoid.Health = Humanoid.Health + 10
  1610. end
  1611. elseif Type == "UpKnock" then
  1612. local hum = hit.Parent.Humanoid
  1613. hum.PlatformStand = true
  1614. if hum ~= nil then
  1615. hitr = true
  1616. end
  1617. coroutine.resume(coroutine.create(function(HHumanoid)
  1618. swait(5)
  1619. HHumanoid.PlatformStand = false
  1620. hitr = false
  1621. end), hum)
  1622. local bodyVelocity = Create("BodyVelocity")({
  1623. velocity = Vector3.new(0, 20, 0),
  1624. P = 5000,
  1625. maxForce = Vector3.new(8000, 8000, 8000),
  1626. Parent = hit
  1627. })
  1628. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1629. local bodyVelocity = Create("BodyVelocity")({
  1630. velocity = Vector3.new(0, 20, 0),
  1631. P = 5000,
  1632. maxForce = Vector3.new(8000, 8000, 8000),
  1633. Parent = hit
  1634. })
  1635. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1636. elseif Type == "Snare" then
  1637. local bp = Create("BodyPosition")({
  1638. P = 2000,
  1639. D = 100,
  1640. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1641. position = hit.Parent.Torso.Position,
  1642. Parent = hit.Parent.Torso
  1643. })
  1644. game:GetService("Debris"):AddItem(bp, 1)
  1645. elseif Type == "Slashnare" then
  1646. Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
  1647. for i = 1, math.random(4, 5) do
  1648. Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
  1649. end
  1650. local bp = Create("BodyPosition")({
  1651. P = 2000,
  1652. D = 100,
  1653. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1654. position = hit.Parent.Torso.Position,
  1655. Parent = hit.Parent.Torso
  1656. })
  1657. game:GetService("Debris"):AddItem(bp, 1)
  1658. elseif Type == "Spike" then
  1659. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1660. local bp = Create("BodyPosition")({
  1661. P = 2000,
  1662. D = 100,
  1663. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1664. position = hit.Parent.Torso.Position,
  1665. Parent = hit.Parent.Torso
  1666. })
  1667. game:GetService("Debris"):AddItem(bp, 1)
  1668. elseif Type == "Freeze" then
  1669. local BodPos = Create("BodyPosition")({
  1670. P = 50000,
  1671. D = 1000,
  1672. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1673. position = hit.Parent.Torso.Position,
  1674. Parent = hit.Parent.Torso
  1675. })
  1676. local BodGy = Create("BodyGyro")({
  1677. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1678. P = 20000,
  1679. Parent = hit.Parent.Torso,
  1680. cframe = hit.Parent.Torso.CFrame
  1681. })
  1682. hit.Parent.Torso.Anchored = true
  1683. coroutine.resume(coroutine.create(function(Part)
  1684. swait(1.5)
  1685. Part.Anchored = false
  1686. end), hit.Parent.Torso)
  1687. game:GetService("Debris"):AddItem(BodPos, 3)
  1688. game:GetService("Debris"):AddItem(BodGy, 3)
  1689. end
  1690. local debounce = Create("BoolValue")({
  1691. Name = "DebounceHit",
  1692. Parent = hit.Parent,
  1693. Value = true
  1694. })
  1695. game:GetService("Debris"):AddItem(debounce, Delay)
  1696. c = Instance.new("ObjectValue")
  1697. c.Name = "creator"
  1698. c.Value = Player
  1699. c.Parent = h
  1700. game:GetService("Debris"):AddItem(c, 0.5)
  1701. end
  1702. end
  1703. function ShowDamage(Pos, Text, Time, Color)
  1704. local Rate = 0.03333333333333333
  1705. local Pos = Pos or Vector3.new(0, 0, 0)
  1706. local Text = Text or ""
  1707. local Time = Time or 2
  1708. local Color = Color or Color3.new(1, 0, 1)
  1709. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1710. EffectPart.Anchored = true
  1711. local BillboardGui = Create("BillboardGui")({
  1712. Size = UDim2.new(3, 0, 3, 0),
  1713. Adornee = EffectPart,
  1714. Parent = EffectPart
  1715. })
  1716. local TextLabel = Create("TextLabel")({
  1717. BackgroundTransparency = 1,
  1718. Size = UDim2.new(1, 0, 1, 0),
  1719. Text = Text,
  1720. TextColor3 = Color,
  1721. TextScaled = true,
  1722. Font = Enum.Font.ArialBold,
  1723. Parent = BillboardGui
  1724. })
  1725. game.Debris:AddItem(EffectPart, Time + 0.1)
  1726. EffectPart.Parent = game:GetService("Workspace")
  1727. delay(0, function()
  1728. local Frames = Time / Rate
  1729. for Frame = 1, Frames do
  1730. wait(Rate)
  1731. local Percent = Frame / Frames
  1732. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1733. TextLabel.TextTransparency = Percent
  1734. end
  1735. if EffectPart and EffectPart.Parent then
  1736. EffectPart:Destroy()
  1737. end
  1738. end)
  1739. end
  1740. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1741. for _, c in pairs(workspace:children()) do
  1742. local hum = c:findFirstChildOfClass("Humanoid")
  1743. if hum ~= nil then
  1744. local head = c:findFirstChild("Head")
  1745. if head ~= nil then
  1746. local targ = head.Position - Part.Position
  1747. local mag = targ.magnitude
  1748. if magni >= mag and c.Name ~= Player.Name then
  1749. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1750. end
  1751. end
  1752. end
  1753. end
  1754. end
  1755.  
  1756. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1757. for _, c in pairs(workspace:children()) do
  1758. local hum = c:findFirstChild("Humanoid")
  1759. if hum ~= nil then
  1760. local head = c:findFirstChild("Torso")
  1761. if head ~= nil then
  1762. local targ = head.Position - Part.Position
  1763. local mag = targ.magnitude
  1764. if magni >= mag and c.Name ~= Player.Name then
  1765. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1766. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1767. end
  1768. end
  1769. end
  1770. end
  1771. end
  1772.  
  1773. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1774. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1775. end
  1776.  
  1777. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1778. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1779. prt.Anchored=true
  1780. prt.CFrame=cframe
  1781. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1782. --http://www.roblox.com/asset/?id=4770560
  1783. game:GetService("Debris"):AddItem(prt,2)
  1784. CF=prt.CFrame
  1785. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1786. for i=0,1,0.2 do
  1787. wait()
  1788. Part.CFrame=CF*cf(0,0,-0.4)
  1789. end
  1790. for i=0,1,delay do
  1791. wait()
  1792. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  1793. Mesh.Scale=Mesh.Scale
  1794. end
  1795. for i=0,1,0.1 do
  1796. wait()
  1797. Part.Transparency=i
  1798. end
  1799. Part.Parent=nil
  1800. end),prt,msh,CF)
  1801. end
  1802.  
  1803. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1804. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1805. prt.Anchored=true
  1806. prt.Material = "Neon"
  1807. prt.CFrame=cframe
  1808. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1809. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1810. game:GetService("Debris"):AddItem(prt,5)
  1811. coroutine.resume(coroutine.create(function(Part,Mesh)
  1812. for i=0,1,delay do
  1813. swait()
  1814. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1815. Part.Transparency=i
  1816. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1817. end
  1818. Part.Parent=nil
  1819. end),prt,msh)
  1820. end
  1821.  
  1822. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1823. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1824. prt.Anchored=true
  1825. prt.Material = "Neon"
  1826. prt.CFrame=cframe
  1827. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1828. game:GetService("Debris"):AddItem(prt,5)
  1829. coroutine.resume(coroutine.create(function(Part,Mesh)
  1830. local rtype = rottype
  1831. for i=0,1,delay do
  1832. swait()
  1833. if rtype == 1 then
  1834. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1835. elseif rtype == 2 then
  1836. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1837. end
  1838. Part.Transparency=i
  1839. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1840. end
  1841. Part.Parent=nil
  1842. end),prt,msh)
  1843. end
  1844.  
  1845. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1846. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1847. prt.Anchored=true
  1848. prt.CFrame=cframe
  1849. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1850. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1851. game:GetService("Debris"):AddItem(prt,5)
  1852. coroutine.resume(coroutine.create(function(Part,Mesh)
  1853. for i=0,1,delay do
  1854. wait()
  1855. Part.Transparency=i
  1856. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1857. end
  1858. Part.Parent=nil
  1859. end),prt,msh)
  1860. end
  1861.  
  1862. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1863. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1864. prt.Anchored=true
  1865. prt.Material = "Neon"
  1866. prt.CFrame=cframe
  1867. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1868. game:GetService("Debris"):AddItem(prt,5)
  1869. coroutine.resume(coroutine.create(function(Part,Mesh)
  1870. local rtype = rottype
  1871. for i=0,1,delay do
  1872. swait()
  1873. if rtype == 1 then
  1874. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1875. elseif rtype == 2 then
  1876. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1877. end
  1878. Part.Transparency=i
  1879. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1880. end
  1881. Part.Parent=nil
  1882. end),prt,msh)
  1883. end
  1884.  
  1885. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1886. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1887. prt.Anchored=true
  1888. prt.Material = "Neon"
  1889. prt.CFrame=cframe
  1890. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1891. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1892. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1893. game:GetService("Debris"):AddItem(prt,5)
  1894. coroutine.resume(coroutine.create(function(Part,Mesh)
  1895. local rtype = rottype
  1896. for i=0,1,delay do
  1897. swait()
  1898. if rtype == 1 then
  1899. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1900. elseif rtype == 2 then
  1901. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1902. end
  1903. dec.Transparency=i
  1904. dec2.Transparency=i
  1905. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1906. end
  1907. Part.Parent=nil
  1908. end),prt,msh)
  1909. end
  1910.  
  1911. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1912. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1913. prt.Anchored=true
  1914. prt.Material = "Neon"
  1915. prt.CFrame=cframe
  1916. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1917. game:GetService("Debris"):AddItem(prt,5)
  1918. coroutine.resume(coroutine.create(function(Part,Mesh)
  1919. local rtype = rottype
  1920. for i=0,1,delay do
  1921. swait()
  1922. if rtype == 1 then
  1923. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1924. elseif rtype == 2 then
  1925. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1926. end
  1927. prt.Transparency=i
  1928. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1929. end
  1930. Part.Parent=nil
  1931. end),prt,msh)
  1932. end
  1933.  
  1934. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1935. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1936. prt.Anchored=true
  1937. prt.Material = "Neon"
  1938. prt.CFrame=cframe
  1939. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1940. game:GetService("Debris"):AddItem(prt,5)
  1941. coroutine.resume(coroutine.create(function(Part,Mesh)
  1942. local rtype = rottype
  1943. for i=0,1,delay do
  1944. swait()
  1945. if rtype == 1 then
  1946. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1947. elseif rtype == 2 then
  1948. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1949. end
  1950. prt.Transparency=i
  1951. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1952. end
  1953. Part.Parent=nil
  1954. end),prt,msh)
  1955. end
  1956.  
  1957. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1958. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1959. prt.Anchored=true
  1960. prt.Material = "Neon"
  1961. prt.CFrame=cframe
  1962. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1963. game:GetService("Debris"):AddItem(prt,5)
  1964. coroutine.resume(coroutine.create(function(Part,Mesh)
  1965. local rtype = rottype
  1966. for i=0,1,delay do
  1967. swait()
  1968. if rtype == 1 then
  1969. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1970. elseif rtype == 2 then
  1971. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1972. end
  1973. prt.Transparency=i
  1974. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1975. end
  1976. Part.Parent=nil
  1977. end),prt,msh)
  1978. end
  1979.  
  1980. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1981. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1982. prt.Anchored=true
  1983. prt.Material = "Neon"
  1984. prt.CFrame=cframe
  1985. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1986. game:GetService("Debris"):AddItem(prt,5)
  1987. coroutine.resume(coroutine.create(function(Part,Mesh)
  1988. local rtype = rottype
  1989. for i=0,1,delay do
  1990. swait()
  1991. if rtype == 1 then
  1992. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1993. elseif rtype == 2 then
  1994. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1995. end
  1996. prt.Transparency=i
  1997. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1998. end
  1999. Part.Parent=nil
  2000. end),prt,msh)
  2001. end
  2002.  
  2003. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2004. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2005. prt.Anchored=false
  2006. prt.CFrame=cframe
  2007. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2008. local wld=weld(prt,prt,Parent,cframe)
  2009. game:GetService("Debris"):AddItem(prt,5)
  2010. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2011. for i=0,1,delay do
  2012. wait()
  2013. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2014. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2015. Part.Transparency=i
  2016. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2017. end
  2018. Part.Parent=nil
  2019. end),prt,msh,wld)
  2020. end
  2021.  
  2022. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2023. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2024. prt.Anchored=false
  2025. prt.CFrame=cframe
  2026. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2027. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2028. game:GetService("Debris"):AddItem(prt,5)
  2029. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2030. for i=0,1,delay do
  2031. wait()
  2032. Weld.C0=euler(i*20,0,0)
  2033. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2034. Part.Transparency=i
  2035. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2036. end
  2037. Part.Parent=nil
  2038. end),prt,msh,wld)
  2039. end
  2040.  
  2041. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2042. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2043. prt.Anchored=true
  2044. prt.CFrame=cframe
  2045. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2046. game:GetService("Debris"):AddItem(prt,2)
  2047. coroutine.resume(coroutine.create(function(Part,Mesh)
  2048. for i=0,1,delay do
  2049. wait()
  2050. Part.CFrame=Part.CFrame
  2051. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2052. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2053. prt2.Anchored=true
  2054. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2055. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2056. game:GetService("Debris"):AddItem(prt2,2)
  2057. coroutine.resume(coroutine.create(function(Part,Mesh)
  2058. for i=0,1,0.1 do
  2059. wait()
  2060. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2061. end
  2062. Part.Parent=nil
  2063. end),prt2,msh2)
  2064. end
  2065. for i=0,1,delay*2 do
  2066. wait()
  2067. Part.CFrame=Part.CFrame
  2068. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2069. end
  2070. Part.Parent=nil
  2071. end),prt,msh)
  2072. end
  2073.  
  2074. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2075. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2076. prt.Anchored=true
  2077. prt.CFrame=cframe
  2078. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2079. game:GetService("Debris"):AddItem(prt,2)
  2080. coroutine.resume(coroutine.create(function(Part,Mesh)
  2081. for i=0,1,delay do
  2082. wait()
  2083. Part.CFrame=Part.CFrame
  2084. Part.Transparency=i
  2085. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2086. end
  2087. Part.Parent=nil
  2088. end),prt,msh)
  2089. end
  2090.  
  2091. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2092. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2093. prt.Anchored=true
  2094. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2095. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2096. game:GetService("Debris"):AddItem(prt,2)
  2097. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2098. CF=Part.CFrame
  2099. Numbb=0
  2100. randnumb=math.random()/10
  2101. rand1=math.random()/10
  2102. for i=0,1,rand1 do
  2103. wait()
  2104. CF=CF*cf(0,math.random()/2,0)
  2105. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2106. Part.CFrame=CF*euler(Numbb,0,0)
  2107. Part.Transparency=i
  2108. Numbb=Numbb+randnumb
  2109. end
  2110. Part.Parent=nil
  2111. end),prt,CF,Numbb,randnumb)
  2112. end
  2113.  
  2114. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2115. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2116. prt.Anchored=true
  2117. prt.CFrame=cframe
  2118. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2119. game:GetService("Debris"):AddItem(prt,5)
  2120. coroutine.resume(coroutine.create(function(Part,Mesh)
  2121. for i=0,1,delay do
  2122. wait()
  2123. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2124. Part.Transparency=i
  2125. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2126. end
  2127. Part.Parent=nil
  2128. end),prt,msh)
  2129. end
  2130.  
  2131. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2132. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2133. prt.Anchored=true
  2134. prt.CFrame=cframe
  2135. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2136. game:GetService("Debris"):AddItem(prt,2)
  2137. coroutine.resume(coroutine.create(function(Part,Mesh)
  2138. for i=0,1,delay do
  2139. wait()
  2140. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2141. Part.Transparency=i
  2142. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2143. end
  2144. Part.Parent=nil
  2145. end),prt,msh)
  2146. end
  2147.  
  2148. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2149. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2150. prt.Anchored=true
  2151. prt.CFrame=cframe*cf(x,y,z)
  2152. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2153. game:GetService("Debris"):AddItem(prt,5)
  2154. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2155. local num=math.random()
  2156. local num2=math.random(-3,2)+math.random()
  2157. local numm=0
  2158. for i=0,1,delay*2 do
  2159. swait()
  2160. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2161. Part.Transparency=i
  2162. numm=numm+0.01
  2163. end
  2164. Part.Parent=nil
  2165. Mesh.Parent=nil
  2166. end),prt,msh,x,y,z)
  2167. end
  2168.  
  2169. function dmgstart(dmg,what)
  2170. hitcon = what.Touched:connect(function(hit)
  2171. local hum = hit.Parent:FindFirstChild("Humanoid")
  2172. if hum and not hum:IsDescendantOf(Character) then
  2173. hum:TakeDamage(dmg)
  2174. end
  2175. end)
  2176. end
  2177.  
  2178. function dmgstop()
  2179. hitcon:disconnect()
  2180. end
  2181.  
  2182. function Cloak()
  2183. Face.Parent=nil
  2184. cloaked=true
  2185. for _,v in pairs(Torso.Parent:children()) do
  2186. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2187. coroutine.resume(coroutine.create(function()
  2188. for i=0,1,0.2 do
  2189. wait()
  2190. v.Transparency=i
  2191. end
  2192. v.Transparency=1
  2193. end))
  2194. end
  2195. if v.className=="Hat" then
  2196. hatp=v.Handle
  2197. coroutine.resume(coroutine.create(function(derp)
  2198. for i=0,1,0.2 do
  2199. wait()
  2200. derp.Transparency=i
  2201. end
  2202. derp.Transparency=1
  2203. end),hatp)
  2204. end
  2205. end
  2206. for _,v in pairs(m:children()) do
  2207. if v.className=="Part" then
  2208. coroutine.resume(coroutine.create(function()
  2209. for i=0,1,0.2 do
  2210. wait()
  2211. v.Transparency=i
  2212. end
  2213. v.Transparency=1
  2214. end))
  2215. end
  2216. end
  2217. end
  2218.  
  2219. function UnCloak()
  2220. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2221. Face.Parent=Head
  2222. cloaked=false
  2223. for _,v in pairs(Torso.Parent:children()) do
  2224. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2225. coroutine.resume(coroutine.create(function()
  2226. for i=0,1,0.1 do
  2227. wait()
  2228. v.Transparency=v.Transparency-0.1
  2229. end
  2230. v.Transparency=0
  2231. end))
  2232. end
  2233. if v.className=="Hat" then
  2234. hatp=v.Handle
  2235. coroutine.resume(coroutine.create(function(derp)
  2236. for i=0,1,0.1 do
  2237. wait()
  2238. derp.Transparency=derp.Transparency-0.1
  2239. end
  2240. derp.Transparency=0
  2241. end),hatp)
  2242. end
  2243. end
  2244. for _,v in pairs(m:children()) do
  2245. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2246. coroutine.resume(coroutine.create(function()
  2247. for i=0,1,0.1 do
  2248. wait()
  2249. v.Transparency=v.Transparency-0.1
  2250. end
  2251. v.Transparency=0
  2252. end))
  2253. v.Transparency=0
  2254. end
  2255. end
  2256. end
  2257.  
  2258. local origcolor = BrickColor.new("Pastel light blue")
  2259. ---- This section of explosions.
  2260. function Explode(rad,par,pitch,vol,mindam,maxdam)
  2261. local expart = Instance.new("Part",char)
  2262. local expart2 = Instance.new("Part",char)
  2263. local rin = Instance.new("Part",char)
  2264. local rin2 = Instance.new("Part",char)
  2265. local partMesh = Instance.new("SpecialMesh",expart)
  2266. partMesh.MeshType = "Sphere"
  2267. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2268. partMesh2.MeshType = "Sphere"
  2269. local partMesh3 = Instance.new("SpecialMesh",rin)
  2270. partMesh3.MeshType = "Brick"
  2271. local partMesh4 = Instance.new("SpecialMesh",rin2)
  2272. partMesh4.MeshType = "Brick"
  2273. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  2274. partMesh.Scale = vt(rad,rad,rad)
  2275. expart.Size = vt(1,1,1)
  2276. expart.Transparency = 0
  2277. expart.Anchored = true
  2278. expart.Material = "Neon"
  2279. expart.BrickColor = bc("White")
  2280. expart.CFrame = par.CFrame
  2281. partMesh2.Scale = vt(rad,rad,rad)
  2282. expart2.Size = vt(1.15,1.15,1.15)
  2283. expart2.Transparency = 0.5
  2284. expart2.Anchored = true
  2285. expart2.Material = "Neon"
  2286. expart2.BrickColor = par.BrickColor
  2287. expart2.CFrame = par.CFrame
  2288. rin.Size = vt(1.15,1.15,1.15)
  2289. rin.Transparency = 1
  2290. rin.Anchored = true
  2291. rin.Material = "Neon"
  2292. rin.BrickColor = par.BrickColor
  2293. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2294. rin2.Size = vt(1.15,1.15,1.15)
  2295. rin2.Transparency = 1
  2296. rin2.Anchored = true
  2297. rin2.Material = "Neon"
  2298. rin2.BrickColor = par.BrickColor
  2299. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2300. partMesh3.Scale = vt(0,1,0)
  2301. partMesh4.Scale = vt(0,1,0)
  2302. local dec2 = Instance.new("Decal", rin)
  2303. dec2.Face = "Top"
  2304. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2305. dec2.Parent = rin
  2306. local dec2b = dec2:Clone()
  2307. dec2b.Face = "Bottom"
  2308. dec2b.Parent = rin
  2309.  
  2310. local dec2a = Instance.new("Decal", rin2)
  2311. dec2a.Face = "Top"
  2312. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2313. dec2a.Parent = rin2
  2314. local dec2ab = dec2a:Clone()
  2315. dec2ab.Face = "Bottom"
  2316. dec2ab.Parent = rin2
  2317. expart.CanCollide = false
  2318. expart2.CanCollide = false
  2319. rin.CanCollide = false
  2320. rin2.CanCollide = false
  2321. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  2322. local value = 1*rad/6.5
  2323. for i = 0, 199 do
  2324. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2325. expart.CFrame = expart.CFrame
  2326. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2327. expart2.CFrame = expart.CFrame
  2328. value = value - 0.035*rad/30
  2329. if value < 7.5 then
  2330. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  2331. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  2332. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  2333. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  2334. end
  2335. if value < 0 then
  2336. dec2.Transparency = dec2.Transparency + 0.025
  2337. dec2a.Transparency = dec2a.Transparency + 0.025
  2338. dec2b.Transparency = dec2b.Transparency + 0.025
  2339. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2340. expart.Transparency = expart.Transparency + 0.025
  2341. expart2.Transparency = expart2.Transparency + 0.025
  2342. rin.Transparency = rin.Transparency + 0.025
  2343. rin2.Transparency = rin2.Transparency + 0.025
  2344. end
  2345. swait()
  2346. end
  2347. game:GetService("Debris"):AddItem(expart, 1)
  2348. game:GetService("Debris"):AddItem(expart2, 1)
  2349. game:GetService("Debris"):AddItem(rin, 1)
  2350. game:GetService("Debris"):AddItem(rin2, 1)
  2351. end
  2352.  
  2353. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  2354. local expart = Instance.new("Part",char)
  2355. local expart2 = Instance.new("Part",char)
  2356. local partMesh = Instance.new("SpecialMesh",expart)
  2357. partMesh.MeshType = "Sphere"
  2358. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2359. partMesh2.MeshType = "Sphere"
  2360. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  2361. partMesh.Scale = vt(rad,rad,rad)
  2362. expart.Size = vt(1,1,1)
  2363. expart.Transparency = 0
  2364. expart.Anchored = true
  2365. expart.Material = "Neon"
  2366. expart.BrickColor = bc("White")
  2367. expart.CFrame = par.CFrame
  2368. partMesh2.Scale = vt(rad,rad,rad)
  2369. expart2.Size = vt(1.15,1.15,1.15)
  2370. expart2.Transparency = 0.5
  2371. expart2.Anchored = true
  2372. expart2.Material = "Neon"
  2373. expart2.BrickColor = par.BrickColor
  2374. expart2.CFrame = par.CFrame
  2375. expart.CanCollide = false
  2376. expart2.CanCollide = false
  2377. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  2378. local value = 1*rad/6.5
  2379. for i = 0, 75 do
  2380. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2381. expart.CFrame = expart.CFrame
  2382. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2383. expart2.CFrame = expart.CFrame
  2384. value = value - 0.035*rad/5
  2385. if value < 0 then
  2386. value = 0
  2387. expart.Transparency = expart.Transparency + 0.05
  2388. expart2.Transparency = expart2.Transparency + 0.05
  2389. end
  2390. swait()
  2391. end
  2392. game:GetService("Debris"):AddItem(expart, 1)
  2393. game:GetService("Debris"):AddItem(expart2, 1)
  2394. end
  2395.  
  2396. function AreaDanger(rad,par,mindam,maxdam)
  2397. local expart = Instance.new("Part",char)
  2398. local partMesh = Instance.new("SpecialMesh",expart)
  2399. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2400. partMesh.MeshType = "Sphere"
  2401. partMesh.Scale = vt(rad,rad,rad)
  2402. expart.Size = vt(1,1,1)
  2403. expart.Transparency = 0.5
  2404. expart.Anchored = true
  2405. expart.Material = "Neon"
  2406. expart.CanCollide = false
  2407. expart.BrickColor = par.BrickColor
  2408. expart.CFrame = par.CFrame
  2409. local value = 1*rad/5
  2410. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  2411. for i = 0, 14 do
  2412. wait()
  2413. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2414. expart.CFrame = expart.CFrame
  2415. value = value - 0.035*rad
  2416. if value < 0 then
  2417. value = 0
  2418. end
  2419. end
  2420. wait(0.25)
  2421. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  2422. wait(0.5)
  2423. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  2424. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  2425. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  2426. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  2427. for i = 0, 14 do
  2428. wait()
  2429. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2430. expart.CFrame = expart.CFrame
  2431. value = value - 0.035*rad/2
  2432. end
  2433. expart.Transparency = 1
  2434. game:GetService("Debris"):AddItem(expart, 5)
  2435. end
  2436.  
  2437. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  2438. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  2439. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  2440. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  2441. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2442. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  2443. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  2444. for i = 0, 24 do
  2445. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
  2446. end
  2447. for i = 0, 24 do
  2448. local expart = Instance.new("Part",char)
  2449. expart.Transparency = 1
  2450. expart.Anchored = true
  2451. expart.CanCollide = false
  2452. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  2453. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  2454. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2455. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  2456. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  2457. for i = 0, 9 do
  2458. MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
  2459. end
  2460. game:GetService("Debris"):AddItem(expart, 2)
  2461. wait(0.1)
  2462. end
  2463. end
  2464.  
  2465. function EXterPlosion(par)
  2466. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  2467. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  2468. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  2469. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2470. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  2471. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  2472. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  2473. for i = 0, 24 do
  2474. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
  2475. end
  2476. for i = 0, 24 do
  2477. MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
  2478. end
  2479. end
  2480. ----
  2481.  
  2482.  
  2483. function ring(type,pos,scale,value)
  2484. local type = type
  2485. local rng = Instance.new("Part", char)
  2486. rng.Anchored = true
  2487. rng.BrickColor = origcolor
  2488. rng.CanCollide = false
  2489. rng.FormFactor = 3
  2490. rng.Name = "Ring"
  2491. rng.Size = Vector3.new(1, 1, 1)
  2492. rng.Transparency = 0
  2493. rng.TopSurface = 0
  2494. rng.BottomSurface = 0
  2495. rng.CFrame = pos
  2496. local rngm = Instance.new("SpecialMesh", rng)
  2497. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2498. rngm.Scale = scale
  2499. local scaler2 = 1
  2500. if type == "Add" then
  2501. scaler2 = 1*value
  2502. elseif type == "Divide" then
  2503. scaler2 = 1/value
  2504. end
  2505. coroutine.resume(coroutine.create(function()
  2506. for i = 0,10,0.1 do
  2507. swait()
  2508. if type == "Add" then
  2509. scaler2 = scaler2 - 0.01*value
  2510. elseif type == "Divide" then
  2511. scaler2 = scaler2 - 0.01/value
  2512. end
  2513. rng.Transparency = rng.Transparency + 0.01
  2514. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2515. end
  2516. rng:Destroy()
  2517. end))
  2518. end
  2519.  
  2520.  
  2521. function wave(type,pos,scale,value)
  2522. local type = type
  2523. local rng = Instance.new("Part", char)
  2524. rng.Anchored = true
  2525. rng.BrickColor = origcolor
  2526. rng.CanCollide = false
  2527. rng.FormFactor = 3
  2528. rng.Name = "Ring"
  2529. rng.Size = Vector3.new(1, 1, 1)
  2530. rng.Transparency = 0
  2531. rng.TopSurface = 0
  2532. rng.BottomSurface = 0
  2533. rng.CFrame = pos
  2534. local rngm = Instance.new("SpecialMesh", rng)
  2535. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2536. rngm.Scale = scale
  2537. local scaler2 = 1
  2538. if type == "Add" then
  2539. scaler2 = 1*value
  2540. elseif type == "Divide" then
  2541. scaler2 = 1/value
  2542. end
  2543. coroutine.resume(coroutine.create(function()
  2544. for i = 0,10,0.1 do
  2545. swait()
  2546. if type == "Add" then
  2547. scaler2 = scaler2 - 0.01*value
  2548. elseif type == "Divide" then
  2549. scaler2 = scaler2 - 0.01/value
  2550. end
  2551. rng.Transparency = rng.Transparency + 0.01
  2552. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2553. end
  2554. rng:Destroy()
  2555. end))
  2556. end
  2557.  
  2558. function wind(type,pos,scale,value,speed)
  2559. local type = type
  2560. local rng = Instance.new("Part", char)
  2561. rng.Anchored = true
  2562. rng.BrickColor = origcolor
  2563. rng.CanCollide = false
  2564. rng.FormFactor = 3
  2565. rng.Name = "Ring"
  2566. rng.Size = Vector3.new(1, 1, 1)
  2567. rng.Transparency = 0
  2568. rng.TopSurface = 0
  2569. rng.BottomSurface = 0
  2570. rng.CFrame = pos
  2571. local rngm = Instance.new("SpecialMesh", rng)
  2572. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2573. rngm.Scale = scale
  2574. local scaler2 = 1
  2575. if type == "Add" then
  2576. scaler2 = 1*value
  2577. elseif type == "Divide" then
  2578. scaler2 = 1/value
  2579. end
  2580. coroutine.resume(coroutine.create(function()
  2581. for i = 0,10,0.1 do
  2582. swait()
  2583. if type == "Add" then
  2584. scaler2 = scaler2 - 0.01*value
  2585. elseif type == "Divide" then
  2586. scaler2 = scaler2 - 0.01/value
  2587. end
  2588. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2589. rng.Transparency = rng.Transparency + 0.01
  2590. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2591. end
  2592. rng:Destroy()
  2593. end))
  2594. end
  2595.  
  2596. function groundwind(type,pos,scale,value,speed)
  2597. local type = type
  2598. local rng = Instance.new("Part", char)
  2599. rng.Anchored = true
  2600. rng.BrickColor = origcolor
  2601. rng.CanCollide = false
  2602. rng.FormFactor = 3
  2603. rng.Name = "Ring"
  2604. rng.Size = Vector3.new(1, 1, 1)
  2605. rng.Transparency = 0
  2606. rng.TopSurface = 0
  2607. rng.BottomSurface = 0
  2608. rng.CFrame = pos
  2609. local rngm = Instance.new("SpecialMesh", rng)
  2610. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2611. rngm.Scale = scale
  2612. local scaler2 = 1
  2613. if type == "Add" then
  2614. scaler2 = 1*value
  2615. elseif type == "Divide" then
  2616. scaler2 = 1/value
  2617. end
  2618. coroutine.resume(coroutine.create(function()
  2619. for i = 0,10,0.1 do
  2620. swait()
  2621. if type == "Add" then
  2622. scaler2 = scaler2 - 0.01*value
  2623. elseif type == "Divide" then
  2624. scaler2 = scaler2 - 0.01/value
  2625. end
  2626. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2627. rng.Transparency = rng.Transparency + 0.01
  2628. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2629. end
  2630. rng:Destroy()
  2631. end))
  2632. end
  2633.  
  2634. function CameraManager()
  2635. if TwoD and not CamInterrupt then
  2636. if Humanoid.Health > 0 then
  2637. Camera.CameraSubject = Humanoid
  2638. Camera.CameraType = "Scriptable"
  2639. Humanoid.AutoRotate = false
  2640. if Booleans.GyroUse then
  2641. Directer.MaxTorque = Vec3(0, huge, 0)
  2642. else
  2643. Directer.MaxTorque = Vec3(0, 0, 0)
  2644. end
  2645. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2646. if Booleans.CamFollow then
  2647. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2648. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2649. else
  2650. CPart.Position = RootPart.Position
  2651. end
  2652. else
  2653. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2654. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2655. end
  2656. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2657. else
  2658. Camera.CameraSubject = Humanoid
  2659. Camera.CameraType = "Custom"
  2660. Controller.Disabled = false
  2661. end
  2662. end
  2663. end
  2664.  
  2665. function sphere(bonuspeed,type,pos,scale,value,color)
  2666. local type = type
  2667. local rng = Instance.new("Part", char)
  2668. rng.Anchored = true
  2669. rng.BrickColor = color
  2670. rng.CanCollide = false
  2671. rng.FormFactor = 3
  2672. rng.Name = "Ring"
  2673. rng.Material = "Neon"
  2674. rng.Size = Vector3.new(1, 1, 1)
  2675. rng.Transparency = 0
  2676. rng.TopSurface = 0
  2677. rng.BottomSurface = 0
  2678. rng.CFrame = pos
  2679. local rngm = Instance.new("SpecialMesh", rng)
  2680. rngm.MeshType = "Sphere"
  2681. rngm.Scale = scale
  2682. if rainbowmode == true then
  2683. rng.Color = Color3.new(r/255,g/255,b/255)
  2684. end
  2685. local scaler2 = 1
  2686. if type == "Add" then
  2687. scaler2 = 1*value
  2688. elseif type == "Divide" then
  2689. scaler2 = 1/value
  2690. end
  2691. coroutine.resume(coroutine.create(function()
  2692. for i = 0,10/bonuspeed,0.1 do
  2693. swait()
  2694. if rainbowmode == true then
  2695. rng.Color = Color3.new(r/255,g/255,b/255)
  2696. end
  2697. if type == "Add" then
  2698. scaler2 = scaler2 - 0.01*value/bonuspeed
  2699. elseif type == "Divide" then
  2700. scaler2 = scaler2 - 0.01/value*bonuspeed
  2701. end
  2702. if chaosmode == true then
  2703. rng.BrickColor = BrickColor.random()
  2704. end
  2705. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2706. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2707. end
  2708. rng:Destroy()
  2709. end))
  2710. end
  2711.  
  2712. function spherew(bonuspeed,type,pos,scale,value,color)
  2713. local type = type
  2714. local rng = Instance.new("Part", workspace)
  2715. rng.Anchored = true
  2716. rng.BrickColor = color
  2717. rng.CanCollide = false
  2718. rng.FormFactor = 3
  2719. rng.Name = "Ring"
  2720. rng.Material = "Neon"
  2721. rng.Size = Vector3.new(1, 1, 1)
  2722. rng.Transparency = 0
  2723. rng.TopSurface = 0
  2724. rng.BottomSurface = 0
  2725. rng.CFrame = pos
  2726. local rngm = Instance.new("SpecialMesh", rng)
  2727. rngm.MeshType = "Sphere"
  2728. rngm.Scale = scale
  2729. if rainbowmode == true then
  2730. rng.Color = Color3.new(r/255,g/255,b/255)
  2731. end
  2732. local scaler2 = 1
  2733. if type == "Add" then
  2734. scaler2 = 1*value
  2735. elseif type == "Divide" then
  2736. scaler2 = 1/value
  2737. end
  2738. coroutine.resume(coroutine.create(function()
  2739. for i = 0,10/bonuspeed,0.1 do
  2740. swait()
  2741. if rainbowmode == true then
  2742. rng.Color = Color3.new(r/255,g/255,b/255)
  2743. end
  2744. if type == "Add" then
  2745. scaler2 = scaler2 - 0.01*value/bonuspeed
  2746. elseif type == "Divide" then
  2747. scaler2 = scaler2 - 0.01/value*bonuspeed
  2748. end
  2749. if chaosmode == true then
  2750. rng.BrickColor = BrickColor.random()
  2751. end
  2752. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2753. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2754. end
  2755. rng:Destroy()
  2756. end))
  2757. end
  2758.  
  2759. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2760. local type = type
  2761. local rng = Instance.new("Part", char)
  2762. rng.Anchored = true
  2763. rng.BrickColor = color
  2764. rng.CanCollide = false
  2765. rng.FormFactor = 3
  2766. rng.Name = "Ring"
  2767. rng.Material = "Neon"
  2768. rng.Size = Vector3.new(1, 1, 1)
  2769. rng.Transparency = 0
  2770. rng.TopSurface = 0
  2771. rng.BottomSurface = 0
  2772. rng.CFrame = pos
  2773. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2774. local rngm = Instance.new("SpecialMesh", rng)
  2775. rngm.MeshType = "Brick"
  2776. rngm.Scale = vt(x1,y1,z1)
  2777. if rainbowmode == true then
  2778. rng.Color = Color3.new(r/255,g/255,b/255)
  2779. end
  2780. local scaler2 = 1
  2781. local speeder = FastSpeed/10
  2782. if type == "Add" then
  2783. scaler2 = 1*value
  2784. elseif type == "Divide" then
  2785. scaler2 = 1/value
  2786. end
  2787. coroutine.resume(coroutine.create(function()
  2788. for i = 0,10/bonuspeed,0.1 do
  2789. swait()
  2790. if rainbowmode == true then
  2791. rng.Color = Color3.new(r/255,g/255,b/255)
  2792. end
  2793. if type == "Add" then
  2794. scaler2 = scaler2 - 0.01*value/bonuspeed
  2795. elseif type == "Divide" then
  2796. scaler2 = scaler2 - 0.01/value*bonuspeed
  2797. end
  2798. if chaosmode == true then
  2799. rng.BrickColor = BrickColor.random()
  2800. end
  2801. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2802. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2803. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2804. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2805. end
  2806. rng:Destroy()
  2807. end))
  2808. end
  2809.  
  2810. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2811. local type = type
  2812. local rng = Instance.new("Part", char)
  2813. rng.Anchored = true
  2814. rng.BrickColor = color
  2815. rng.CanCollide = false
  2816. rng.FormFactor = 3
  2817. rng.Name = "Ring"
  2818. rng.Material = "Neon"
  2819. rng.Size = Vector3.new(1, 1, 1)
  2820. rng.Transparency = 0
  2821. rng.TopSurface = 0
  2822. rng.BottomSurface = 0
  2823. rng.CFrame = pos
  2824. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2825. local rngm = Instance.new("SpecialMesh", rng)
  2826. rngm.MeshType = "Brick"
  2827. rngm.Scale = vt(x1,y1,z1)
  2828. if rainbowmode == true then
  2829. rng.Color = Color3.new(r/255,g/255,b/255)
  2830. end
  2831. local scaler2 = 0
  2832. local speeder = FastSpeed/10
  2833. if type == "Add" then
  2834. scaler2 = 1*value
  2835. elseif type == "Divide" then
  2836. scaler2 = 1/value
  2837. end
  2838. coroutine.resume(coroutine.create(function()
  2839. for i = 0,10/bonuspeed,0.1 do
  2840. swait()
  2841. if rainbowmode == true then
  2842. rng.Color = Color3.new(r/255,g/255,b/255)
  2843. end
  2844. if type == "Add" then
  2845. scaler2 = scaler2 - 0.01*value/bonuspeed
  2846. elseif type == "Divide" then
  2847. scaler2 = scaler2 - 0.01/value*bonuspeed
  2848. end
  2849. if chaosmode == true then
  2850. rng.BrickColor = BrickColor.random()
  2851. end
  2852. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2853. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2854. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2855. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2856. end
  2857. rng:Destroy()
  2858. end))
  2859. end
  2860.  
  2861. function sphereMKw(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2862. local type = type
  2863. local rng = Instance.new("Part", workspace)
  2864. rng.Anchored = true
  2865. rng.BrickColor = color
  2866. rng.CanCollide = false
  2867. rng.FormFactor = 3
  2868. rng.Name = "Ring"
  2869. rng.Material = "Neon"
  2870. rng.Size = Vector3.new(1, 1, 1)
  2871. rng.Transparency = 0
  2872. rng.TopSurface = 0
  2873. rng.BottomSurface = 0
  2874. rng.CFrame = pos
  2875. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2876. local rngm = Instance.new("SpecialMesh", rng)
  2877. rngm.MeshType = "Sphere"
  2878. rngm.Scale = vt(x1,y1,z1)
  2879. if rainbowmode == true then
  2880. rng.Color = Color3.new(r/255,g/255,b/255)
  2881. end
  2882. local scaler2 = 1
  2883. local speeder = FastSpeed
  2884. if type == "Add" then
  2885. scaler2 = 1*value
  2886. elseif type == "Divide" then
  2887. scaler2 = 1/value
  2888. end
  2889. coroutine.resume(coroutine.create(function()
  2890. for i = 0,10/bonuspeed,0.1 do
  2891. swait()
  2892. if rainbowmode == true then
  2893. rng.Color = Color3.new(r/255,g/255,b/255)
  2894. end
  2895. if type == "Add" then
  2896. scaler2 = scaler2 - 0.01*value/bonuspeed
  2897. elseif type == "Divide" then
  2898. scaler2 = scaler2 - 0.01/value*bonuspeed
  2899. end
  2900. if chaosmode == true then
  2901. rng.BrickColor = BrickColor.random()
  2902. end
  2903. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2904. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2905. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2906. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2907. end
  2908. rng:Destroy()
  2909. end))
  2910. end
  2911. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2912. local type = type
  2913. local rng = Instance.new("Part", char)
  2914. rng.Anchored = true
  2915. rng.BrickColor = color
  2916. rng.CanCollide = false
  2917. rng.FormFactor = 3
  2918. rng.Name = "Ring"
  2919. rng.Material = "Neon"
  2920. rng.Size = Vector3.new(1, 1, 1)
  2921. rng.Transparency = 0
  2922. rng.TopSurface = 0
  2923. rng.BottomSurface = 0
  2924. rng.CFrame = pos
  2925. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2926. local rngm = Instance.new("SpecialMesh", rng)
  2927. rngm.MeshType = "Sphere"
  2928. rngm.Scale = vt(x1,y1,z1)
  2929. if rainbowmode == true then
  2930. rng.Color = Color3.new(r/255,g/255,b/255)
  2931. end
  2932. local scaler2 = 1
  2933. local speeder = FastSpeed
  2934. if type == "Add" then
  2935. scaler2 = 1*value
  2936. elseif type == "Divide" then
  2937. scaler2 = 1/value
  2938. end
  2939. coroutine.resume(coroutine.create(function()
  2940. for i = 0,10/bonuspeed,0.1 do
  2941. swait()
  2942. if rainbowmode == true then
  2943. rng.Color = Color3.new(r/255,g/255,b/255)
  2944. end
  2945. if type == "Add" then
  2946. scaler2 = scaler2 - 0.01*value/bonuspeed
  2947. elseif type == "Divide" then
  2948. scaler2 = scaler2 - 0.01/value*bonuspeed
  2949. end
  2950. if chaosmode == true then
  2951. rng.BrickColor = BrickColor.random()
  2952. end
  2953. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2954. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2955. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2956. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2957. end
  2958. rng:Destroy()
  2959. end))
  2960. end
  2961.  
  2962.  
  2963. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2964. local type = type
  2965. local rng = Instance.new("Part", char)
  2966. rng.Anchored = true
  2967. rng.BrickColor = color
  2968. rng.CanCollide = false
  2969. rng.FormFactor = 3
  2970. rng.Name = "Ring"
  2971. rng.Material = "Neon"
  2972. rng.Size = Vector3.new(1, 1, 1)
  2973. rng.Transparency = 1
  2974. rng.TopSurface = 0
  2975. rng.BottomSurface = 0
  2976. rng.CFrame = pos
  2977. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2978. local rngm = Instance.new("SpecialMesh", rng)
  2979. rngm.MeshType = "Sphere"
  2980. rngm.Scale = vt(x1,y1,z1)
  2981. if rainbowmode == true then
  2982. rng.Color = Color3.new(r/255,g/255,b/255)
  2983. end
  2984. local scaler2 = 1
  2985. local speeder = FastSpeed
  2986. if type == "Add" then
  2987. scaler2 = 1*value
  2988. elseif type == "Divide" then
  2989. scaler2 = 1/value
  2990. end
  2991. coroutine.resume(coroutine.create(function()
  2992. for i = 0,10/bonuspeed,0.1 do
  2993. swait()
  2994. if rainbowmode == true then
  2995. rng.Color = Color3.new(r/255,g/255,b/255)
  2996. end
  2997. if type == "Add" then
  2998. scaler2 = scaler2 - 0.01*value/bonuspeed
  2999. elseif type == "Divide" then
  3000. scaler2 = scaler2 - 0.01/value*bonuspeed
  3001. end
  3002. if chaosmode == true then
  3003. rng.BrickColor = BrickColor.random()
  3004. end
  3005. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3006. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3007. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3008. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3009. end
  3010. rng:Destroy()
  3011. end))
  3012. end
  3013.  
  3014. function dmg(dude)
  3015. if dude.Name ~= Character then
  3016. local bgf = Instance.new("BodyGyro",dude.Head)
  3017. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3018. local val = Instance.new("BoolValue",dude)
  3019. val.Name = "IsHit"
  3020. local ds = coroutine.wrap(function()
  3021. dude:WaitForChild("Head"):BreakJoints()
  3022. wait(0.5)
  3023. targetted = nil
  3024. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  3025. coroutine.resume(coroutine.create(function()
  3026. for i, v in pairs(dude:GetChildren()) do
  3027. if v:IsA("Accessory") then
  3028. v:Destroy()
  3029. end
  3030. if v:IsA("Humanoid") then
  3031. v:Destroy()
  3032. end
  3033. if v:IsA("CharacterMesh") then
  3034. v:Destroy()
  3035. end
  3036. if v:IsA("Model") then
  3037. v:Destroy()
  3038. end
  3039. if v:IsA("Part") or v:IsA("MeshPart") then
  3040. for x, o in pairs(v:GetChildren()) do
  3041. if o:IsA("Decal") then
  3042. o:Destroy()
  3043. end
  3044. end
  3045. coroutine.resume(coroutine.create(function()
  3046. v.Material = "Neon"
  3047. v.CanCollide = false
  3048. local bld = Instance.new("ParticleEmitter",v)
  3049. bld.LightEmission = 1
  3050. bld.Texture = "rbxassetid://284205403"
  3051. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  3052. bld.Rate = 50
  3053. bld.Lifetime = NumberRange.new(1)
  3054. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  3055. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  3056. bld.Speed = NumberRange.new(0,0)
  3057. bld.VelocitySpread = 50000
  3058. bld.Rotation = NumberRange.new(-500,500)
  3059. bld.RotSpeed = NumberRange.new(-500,500)
  3060. local sbs = Instance.new("BodyPosition", v)
  3061. sbs.P = 3000
  3062. sbs.D = 1000
  3063. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3064. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  3065. v.Color = Color3.new(1,1,1)
  3066. coroutine.resume(coroutine.create(function()
  3067. for i = 0, 49 do
  3068. swait(1)
  3069. v.Transparency = v.Transparency + 0.02
  3070. end
  3071. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1)
  3072. bld.Speed = NumberRange.new(1,5)
  3073. bld.Acceleration = vt(0,10,0)
  3074. wait(0.5)
  3075. bld.Enabled = false
  3076. wait(3)
  3077. v:Destroy()
  3078. dude:Destroy()
  3079. end))
  3080. end))
  3081. end
  3082. end
  3083. end))
  3084. end)
  3085. ds()
  3086. end
  3087. end
  3088.  
  3089.  
  3090. function FindNearestHead(Position, Distance, SinglePlayer)
  3091. if SinglePlayer then
  3092. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3093. end
  3094. local List = {}
  3095. for i, v in pairs(workspace:GetChildren()) do
  3096. if v:IsA("Model") then
  3097. if v:findFirstChild("Head") then
  3098. if v ~= Character then
  3099. if (v.Head.Position - Position).magnitude <= Distance then
  3100. table.insert(List, v)
  3101. end
  3102. end
  3103. end
  3104. end
  3105. end
  3106. return List
  3107. end
  3108.  
  3109. function FaceMouse()
  3110. Cam = workspace.CurrentCamera
  3111. return {
  3112. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3113. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3114. }
  3115. end
  3116.  
  3117. function FaceMouse2()
  3118. Cam = workspace.CurrentCamera
  3119. return {
  3120. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3121. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3122. }
  3123. end
  3124.  
  3125. local ModeOfGlitch = 1
  3126. -- Functions are ready.
  3127. local storehumanoidWS = 16
  3128.  
  3129. function Blink()
  3130. for i = 0, 14 do
  3131. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3132. end
  3133. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3134. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3135. CameraEnshaking(2,10)
  3136. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3137. if v:FindFirstChild('Head') then
  3138. end
  3139. end
  3140. for i = 0, 14 do
  3141. PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0)
  3142. end
  3143. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3144. end
  3145.  
  3146. function ExtinctiveHeartbreak()
  3147. local targetted = nil
  3148. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3149. targetted = mouse.Target.Parent
  3150. end
  3151. if targetted ~= nil then
  3152. attack = true
  3153. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3154. for i = 0, 9 do
  3155. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  3156. end
  3157. for i = 0, 24 do
  3158. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3159. end
  3160. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3161. local originalpos = root.CFrame
  3162. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  3163. for i = 0, 9 do
  3164. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  3165. end
  3166. for i = 0, 24 do
  3167. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3168. end
  3169. hum.WalkSpeed = 0
  3170. targetted.Head.Anchored = true
  3171. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3172. for i = 0,2,0.1 do
  3173. swait()
  3174. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3175. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4)
  3176. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4)
  3177. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3178. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4)
  3179. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(60)),.4)
  3180. end
  3181. coroutine.resume(coroutine.create(function()
  3182. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
  3183. bld.LightEmission = 0.1
  3184. bld.Texture = "rbxassetid://284205403"
  3185. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3186. bld.Rate = 500
  3187. bld.Lifetime = NumberRange.new(1)
  3188. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3189. bld.Acceleration = vt(0,-25,0)
  3190. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3191. bld.Speed = NumberRange.new(10,50)
  3192. bld.EmissionDirection = "Front"
  3193. bld.VelocitySpread = 25
  3194. bld.Rotation = NumberRange.new(-500,500)
  3195. bld.RotSpeed = NumberRange.new(-500,500)
  3196. end))
  3197. coroutine.resume(coroutine.create(function()
  3198. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso"))
  3199. bld.LightEmission = 0.1
  3200. bld.Texture = "rbxassetid://284205403"
  3201. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3202. bld.Rate = 500
  3203. bld.Lifetime = NumberRange.new(1)
  3204. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3205. bld.Acceleration = vt(0,-25,0)
  3206. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3207. bld.Speed = NumberRange.new(10,50)
  3208. bld.EmissionDirection = "Front"
  3209. bld.VelocitySpread = 25
  3210. bld.Rotation = NumberRange.new(-500,500)
  3211. bld.RotSpeed = NumberRange.new(-500,500)
  3212. end))
  3213. CameraEnshaking(5,5)
  3214. game:GetService("Debris"):AddItem(bld,3)
  3215. dmg(targetted)
  3216. CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Head, 1,1)
  3217. for i = 0,1,0.1 do
  3218. swait()
  3219. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  3220. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8)
  3221. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  3222. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  3223. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3224. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(-80)),.8)
  3225. end
  3226. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3227. for i = 0, 9 do
  3228. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  3229. end
  3230. for i = 0, 24 do
  3231. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3232. end
  3233. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3234. root.CFrame = originalpos
  3235. for i = 0, 9 do
  3236. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
  3237. end
  3238. for i = 0, 24 do
  3239. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
  3240. end
  3241. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3242. bld.Enabled = false
  3243. attack = false
  3244. hum.WalkSpeed = storehumanoidWS
  3245. end
  3246. end
  3247. function MeteorStrike()
  3248. attack = true
  3249. for i = 0, 2, 0.1 do
  3250. swait()
  3251. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3252. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3253. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4)
  3254. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3255. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3256. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3257. end
  3258. CFuncs["Sound"].Create("rbxassetid://136007472", root, 1,2)
  3259. for i=1,20 do
  3260. sphereMKCharge(5,-0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,10)
  3261. swait()
  3262. end
  3263. swait(30)
  3264. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3265. for i =1,20 do
  3266. sphereMKw(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,MAINRUINCOLOR,0)
  3267. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
  3268. end
  3269. for i = 0,2,0.1 do
  3270. swait()
  3271. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
  3272. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
  3273. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,30 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2)
  3274. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5)
  3275. RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5)
  3276. LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5)
  3277. end
  3278. for i =1,20 do
  3279. sphereMKw(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0)
  3280. end
  3281. text.TextTransparency = 1
  3282. text.TextStrokeTransparency = 1
  3283. tr2.Enabled = false
  3284. tr1.Enabled = false
  3285. tr3.Enabled = false
  3286. tl1.Enabled = false
  3287. tl2.Enabled = false
  3288. tl3.Enabled = false
  3289. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3290. eff = false
  3291. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3292. local invtab = {}
  3293. local function search(targ)
  3294. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3295. table.insert(invtab,targ)
  3296. end
  3297. for i,v in pairs(targ:GetChildren()) do
  3298. search(v)
  3299. end
  3300. end
  3301. search(plr.Character)
  3302. local frm = 0
  3303. local frmcon
  3304. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3305. if frm < 10 then
  3306. for i,v in pairs(invtab) do
  3307. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3308. v.Transparency = v.Transparency + 0.1
  3309. end
  3310. end
  3311. frm = frm + 1
  3312. else
  3313. frmcon:disconnect()
  3314. end
  3315. end)
  3316. swait(200)
  3317. text.TextTransparency = 0
  3318. text.TextStrokeTransparency = 0
  3319. tr2.Enabled = false
  3320. tr1.Enabled = false
  3321. tr3.Enabled = false
  3322. tl1.Enabled = false
  3323. tl2.Enabled = false
  3324. tl3.Enabled = false
  3325. eff = true
  3326. for i =1,20 do
  3327. sphereMKw(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0)
  3328. end
  3329. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3330. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3331. local invtab = {}
  3332. local function search(targ)
  3333. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3334. table.insert(invtab,targ)
  3335. end
  3336. for i,v in pairs(targ:GetChildren()) do
  3337. search(v)
  3338. end
  3339. end
  3340. search(plr.Character)
  3341. local frm = 0
  3342. local frmcon
  3343. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3344. if frm < 10 then
  3345. for i,v in pairs(invtab) do
  3346. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3347. v.Transparency = v.Transparency - 0.1
  3348. end
  3349. end
  3350. frm = frm + 1
  3351. else
  3352. frmcon:disconnect()
  3353. end
  3354. end)
  3355. swait(5)
  3356. for i = 0, 2, 0.1 do
  3357. swait()
  3358. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3359. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3360. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4)
  3361. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3362. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3363. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3364. end
  3365. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3366. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  3367. MagniDamage(root, 30, 65,90, 0, "Normal")
  3368. for i =1,20 do
  3369. sphereMK(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0)
  3370. end
  3371. sphere(1,"Add",Torso.CFrame,vt(1,1,1),1,MAINRUINCOLOR)
  3372. for i =1,20 do
  3373. PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0)
  3374. end
  3375. swait(20)
  3376. attack = false
  3377. tr2.Enabled = true
  3378. tr1.Enabled = true
  3379. tr3.Enabled = true
  3380. tl1.Enabled = true
  3381. tl2.Enabled = true
  3382. tl3.Enabled = true
  3383. end
  3384. function FinalCalam()
  3385. attack = true
  3386. hum.WalkSpeed = 0
  3387. local orb = Instance.new("Part", char)
  3388. orb.Anchored = true
  3389. orb.BrickColor = MAINRUINCOLOR
  3390. orb.CanCollide = false
  3391. orb.FormFactor = 3
  3392. orb.Name = "Ring"
  3393. orb.Material = "Neon"
  3394. orb.Size = Vector3.new(1, 1, 1)
  3395. orb.Transparency = 0
  3396. orb.TopSurface = 0
  3397. orb.BottomSurface = 0
  3398. local orbm = Instance.new("SpecialMesh", orb)
  3399. orbm.MeshType = "Sphere"
  3400. orbm.Name = "SizeMesh"
  3401. orbm.Scale = vt(0,0,0)
  3402. local scaled = 0.1
  3403. local posid = 0
  3404. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3405. for i = 0, 5, 0.1 do
  3406. swait()
  3407. scaled = scaled - 0.001
  3408. posid = posid - scaled
  3409. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3410. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3411. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,10)
  3412. PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0)
  3413. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2 + 0.1 * math.cos(sine / 10))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3414. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3415. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3416. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3417. end
  3418. swait(60)
  3419. for i =1,3 do
  3420. swait(30)
  3421. CFuncs["Sound"].Create("rbxassetid://847061203", orb, 1,0.9)
  3422. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3423. end
  3424. swait(30)
  3425. for i = 0, 2, 0.1 do
  3426. swait()
  3427. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3428. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3429. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3430. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3431. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3432. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3433. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3434. end
  3435. swait(60)
  3436. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3437. CFuncs["Sound"].Create("rbxassetid://151304356", workspace, 5,1)
  3438. sphere(0.2,"Add",orb.CFrame,vt(10,10,10),5,MAINRUINCOLOR)
  3439. sphere(0.5,"Add",orb.CFrame,vt(1,1,1),5,MAINRUINCOLOR)
  3440. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3441. if v:FindFirstChild('Head') then
  3442. dmg(v)
  3443. end
  3444. end
  3445. for i = 1,20 do
  3446. sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,MAINRUINCOLOR,0)
  3447. for i = 0, 10 do
  3448. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,MAINRUINCOLOR,0)
  3449. end
  3450. end
  3451. orb:Remove()
  3452. attack = false
  3453. hum.WalkSpeed = storehumanoidWS
  3454. end
  3455. function PureBomb()
  3456. attack = true
  3457.  
  3458. local orb = Instance.new("Part", char)
  3459. orb.Anchored = true
  3460. orb.BrickColor = BrickColor.new("Toothpaste")
  3461. orb.CanCollide = false
  3462. orb.FormFactor = 3
  3463. orb.Name = "Ring"
  3464. orb.Material = "Neon"
  3465. orb.Size = Vector3.new(1, 1, 1)
  3466. orb.Transparency = 0
  3467. orb.TopSurface = 0
  3468. orb.BottomSurface = 0
  3469. local orbm = Instance.new("SpecialMesh", orb)
  3470. orbm.MeshType = "Sphere"
  3471. orbm.Name = "SizeMesh"
  3472. orbm.Scale = vt(0,0,0)
  3473. local scaled = 0.1
  3474. local posid = 0
  3475. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3476. for i = 0, 5, 0.1 do
  3477. swait()
  3478. scaled = scaled - 0.001
  3479. posid = posid - scaled
  3480. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3481. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3482. sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Toothpaste"),10)
  3483. PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,BrickColor.new("Toothpaste"),0)
  3484. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1)
  3485. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1)
  3486. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3487. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3488. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3489. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1)
  3490. end
  3491. for i = 0, 2, 0.1 do
  3492. swait()
  3493. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3494. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3495. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3496. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4)
  3497. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3498. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3499. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3500. end
  3501. coroutine.resume(coroutine.create(function()
  3502. orb.Anchored = false
  3503. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3504. local a = Instance.new("Part",workspace)
  3505. a.Name = "Direction"
  3506. a.Anchored = true
  3507. a.BrickColor = bc("Bright red")
  3508. a.Material = "Neon"
  3509. a.Transparency = 1
  3510. a.CanCollide = false
  3511. local ray = Ray.new(
  3512. orb.CFrame.p, -- origin
  3513. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3514. )
  3515. local ignore = orb
  3516. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3517. a.BottomSurface = 10
  3518. a.TopSurface = 10
  3519. local distance = (orb.CFrame.p - position).magnitude
  3520. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3521. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3522. orb.CFrame = a.CFrame
  3523. a:Destroy()
  3524. local bv = Instance.new("BodyVelocity")
  3525. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3526. bv.velocity = orb.CFrame.lookVector*125
  3527. bv.Parent = orb
  3528. local hitted = false
  3529. game:GetService("Debris"):AddItem(orb, 15)
  3530. wait()
  3531. local hit =orb.Touched:connect(function(hit)
  3532. if hitted == false then
  3533. hitted = true
  3534. CameraEnshaking(10,2.5)
  3535. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3536. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3537. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3538. for i = 0, 49 do
  3539. PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0)
  3540. end
  3541. for i = 0, 9 do
  3542. sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3543. sphereMK(2,5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
  3544. end
  3545. orb.Anchored = true
  3546. orb.Transparency = 1
  3547. wait(8)
  3548. orb:Destroy()
  3549. end
  3550. end)
  3551. end))
  3552. for i = 0, 1, 0.1 do
  3553. swait()
  3554. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  3555. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  3556. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4)
  3557. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3558. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3559. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4)
  3560. end
  3561. attack = false
  3562. end
  3563.  
  3564. function ChaosGroundStrike()
  3565. attack = true
  3566. for i = 0, 2, 0.1 do
  3567. swait()
  3568. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3569. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  3570. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3571. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3572. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3573. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3574. end
  3575. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3576. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3577. CameraEnshaking(4,12)
  3578. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3579. if v:FindFirstChild('Head') then
  3580. dmg(v)
  3581. end
  3582. end
  3583. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3584. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3585. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3586. for i = 0, 2, 0.1 do
  3587. swait()
  3588. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3589. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  3590. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3591. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  3592. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3593. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3594. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3595. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3596. end
  3597. attack = false
  3598. end
  3599.  
  3600. function Starfall()
  3601. attack = true
  3602. hum.WalkSpeed = 0
  3603. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3604. for i = 0, 5, 0.1 do
  3605. swait()
  3606. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3607. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3608. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  3609. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  3610. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3611. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3612. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  3613. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  3614. end
  3615. local Overed = false
  3616. CameraEnshaking(2,20)
  3617. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3618. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3619. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3620. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3621. local orb = Instance.new("Part", char)
  3622. orb.Anchored = true
  3623. orb.BrickColor = BrickColor.new("Toothpaste")
  3624. orb.CanCollide = false
  3625. orb.FormFactor = 3
  3626. orb.Name = "Remenant"
  3627. orb.Material = "Neon"
  3628. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3629. orb.Size = Vector3.new(1, 1, 1)
  3630. orb.Transparency = 1
  3631. orb.TopSurface = 0
  3632. orb.BottomSurface = 0
  3633. hum.WalkSpeed = storehumanoidWS
  3634. coroutine.resume(coroutine.create(function()
  3635. for i = 0, 9 do
  3636. swait(10)
  3637. local lb = Instance.new("Part")
  3638. lb.Color = MAINRUINCOLOR.Color
  3639. lb.CanCollide = false
  3640. lb.Material = "Neon"
  3641. lb.Anchored = true
  3642. lb.TopSurface = 0
  3643. lb.BottomSurface = 0
  3644. lb.Transparency = 0
  3645. lb.Size = vt(1,1,1)
  3646. lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
  3647. lb.Anchored = false
  3648. lb.Parent = char
  3649. local thingery = Instance.new("SpecialMesh",lb)
  3650. thingery.MeshType = "Sphere"
  3651. thingery.Scale = vt(20,20,20)
  3652. game:GetService("Debris"):AddItem(lb, 10)
  3653. local bv = Instance.new("BodyVelocity")
  3654. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3655. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3656. bv.Parent = lb
  3657. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3658. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3659. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3660. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3661. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3662. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3663. local hitted = false
  3664. coroutine.resume(coroutine.create(function()
  3665. while true do
  3666. swait(1)
  3667. if lb.Parent ~= nil and hitted == false then
  3668. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  3669. elseif lb.Parent == nil then
  3670. break
  3671. end
  3672. end
  3673. end))
  3674.  
  3675. game:GetService("Debris"):AddItem(a, 0.1)
  3676.  
  3677. coroutine.resume(coroutine.create(function()
  3678. swait(1)
  3679. lb.Touched:connect(function(hit)
  3680. if hitted == false then
  3681. hitted = true
  3682. lb.Transparency = 1
  3683. lb.Anchored = true
  3684. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3685. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3686. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3687. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3688. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3689. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3690. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3691. CameraEnshaking(1,5)
  3692. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3693. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3694. for i = 0, 9 do
  3695. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3696. end
  3697. for i = 0, 49 do
  3698. swait()
  3699. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3700. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3701. end
  3702. end
  3703. end)
  3704. end))
  3705. end
  3706. Overed = true
  3707. orb:Destroy()
  3708. end))
  3709.  
  3710. attack = false
  3711. end
  3712.  
  3713. function StarfallEX()
  3714. attack = true
  3715. hum.WalkSpeed = 0
  3716. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3717. for i = 0, 5, 0.1 do
  3718. swait()
  3719. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3720. PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3721. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  3722. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  3723. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  3724. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3725. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1)
  3726. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1)
  3727. end
  3728. local Overed = false
  3729. CameraEnshaking(2,20)
  3730. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3731. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3732. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3733. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3734. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3735. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3736. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3737. local orb = Instance.new("Part", char)
  3738. orb.Anchored = true
  3739. orb.BrickColor = BrickColor.new("Toothpaste")
  3740. orb.CanCollide = false
  3741. orb.FormFactor = 3
  3742. orb.Name = "Remenant"
  3743. orb.Material = "Neon"
  3744. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3745. orb.Size = Vector3.new(1, 1, 1)
  3746. orb.Transparency = 1
  3747. orb.TopSurface = 0
  3748. orb.BottomSurface = 0
  3749. hum.WalkSpeed = storehumanoidWS
  3750. coroutine.resume(coroutine.create(function()
  3751. for i = 0, 9 do
  3752. swait(10)
  3753. local lb = Instance.new("Part")
  3754. lb.Color = MAINRUINCOLOR.Color
  3755. lb.CanCollide = false
  3756. lb.Material = "Neon"
  3757. lb.Anchored = true
  3758. lb.TopSurface = 0
  3759. lb.BottomSurface = 0
  3760. lb.Transparency = 0
  3761. lb.Size = vt(1,1,1)
  3762. lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15)))
  3763. lb.Anchored = false
  3764. lb.Parent = char
  3765. local thingery = Instance.new("SpecialMesh",lb)
  3766. thingery.MeshType = "Sphere"
  3767. thingery.Scale = vt(20,20,20)
  3768. game:GetService("Debris"):AddItem(lb, 10)
  3769. local bv = Instance.new("BodyVelocity")
  3770. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3771. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3772. bv.Parent = lb
  3773. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3774. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3775. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3776. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3777. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3778. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3779. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3780. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3781. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3782. local hitted = false
  3783. coroutine.resume(coroutine.create(function()
  3784. while true do
  3785. swait(1)
  3786. if lb.Parent ~= nil and hitted == false then
  3787. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  3788. PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2)
  3789. elseif lb.Parent == nil then
  3790. break
  3791. end
  3792. end
  3793. end))
  3794.  
  3795. game:GetService("Debris"):AddItem(a, 0.1)
  3796.  
  3797. coroutine.resume(coroutine.create(function()
  3798. swait(1)
  3799. lb.Touched:connect(function(hit)
  3800. if hitted == false then
  3801. hitted = true
  3802. lb.Transparency = 1
  3803. lb.Anchored = true
  3804. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3805. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3806. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3807. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3808. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3809. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3810. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3811. CameraEnshaking(10,5)
  3812. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3813. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3814. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3815. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3816. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3817. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3818. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3819. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3820. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3821. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3822. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3823. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3824. for i = 0, 9 do
  3825. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3826. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3827. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3828. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3829. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3830. sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0)
  3831. end
  3832. for i = 0, 49 do
  3833. swait()
  3834. MagniDamage(lb, 30, 30, 60, 0, "Normal")
  3835. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3836. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3837. PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0)
  3838. end
  3839. end
  3840. end)
  3841. end))
  3842. end
  3843. Overed = true
  3844. orb:Destroy()
  3845. end))
  3846.  
  3847. attack = false
  3848. end
  3849.  
  3850. function StarDivision()
  3851. attack = true
  3852. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  3853. for i = 0, 2, 0.1 do
  3854. swait()
  3855. PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0)
  3856. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.6)
  3857. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.6)
  3858. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90)),.6)
  3859. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
  3860. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  3861. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6)
  3862. end
  3863. local orb = Instance.new("Part", char)
  3864. orb.BrickColor = MAINRUINCOLOR
  3865. orb.CanCollide = false
  3866. orb.FormFactor = 3
  3867. orb.Name = "Ring"
  3868. orb.Material = "Neon"
  3869. orb.Size = Vector3.new(1, 1, 1)
  3870. orb.Transparency = 0
  3871. orb.TopSurface = 0
  3872. orb.BottomSurface = 0
  3873. local orbm = Instance.new("SpecialMesh", orb)
  3874. orbm.MeshType = "Sphere"
  3875. orbm.Name = "SizeMesh"
  3876. orbm.Scale = vt(2,2,2)
  3877. local a = Instance.new("Part",workspace)
  3878. a.Name = "Direction"
  3879. a.Anchored = true
  3880. a.BrickColor = bc("Bright red")
  3881. a.Material = "Neon"
  3882. a.Transparency = 1
  3883. a.CanCollide = false
  3884. local ray = Ray.new(
  3885. sorb.CFrame.p, -- origin
  3886. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  3887. )
  3888. local ignore = sorb
  3889. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3890. a.BottomSurface = 10
  3891. a.TopSurface = 10
  3892. local distance = (sorb.CFrame.p - position).magnitude
  3893. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3894. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3895. orb.CFrame = a.CFrame
  3896. a:Destroy()
  3897. local bv = Instance.new("BodyVelocity")
  3898. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3899. bv.velocity = orb.CFrame.lookVector*100
  3900. bv.Parent = orb
  3901. local hitted = false
  3902. game:GetService("Debris"):AddItem(orb, 10)
  3903. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  3904. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  3905. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  3906. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  3907. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  3908. coroutine.resume(coroutine.create(function()
  3909. while true do
  3910. swait(1)
  3911. if orb.Parent ~= nil and hitted == false then
  3912. PixelBlockNeg(1,math.random(1,2),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,1,0.02,MAINRUINCOLOR,-2)
  3913. elseif orb.Parent == nil then
  3914. break
  3915. end
  3916. end
  3917. end))
  3918. coroutine.resume(coroutine.create(function()
  3919. swait(1)
  3920. orb.Touched:connect(function(hit)
  3921. if hitted == false then
  3922. hitted = true
  3923. game:GetService("Debris"):AddItem(orb, 5)
  3924. orb.Transparency = 1
  3925. orb.Anchored = true
  3926. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3927. elocacenter.Anchored = true
  3928. elocacenter.CFrame = orb.CFrame
  3929. elocacenter.Orientation = vt(0,0,0)
  3930. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3931. eloca1.Anchored = true
  3932. eloca1.CFrame = elocacenter.CFrame
  3933. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3934. eloca2.Anchored = true
  3935. eloca2.CFrame = elocacenter.CFrame
  3936. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3937. eloca3.Anchored = true
  3938. eloca3.CFrame = elocacenter.CFrame
  3939. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3940. eloca4.Anchored = true
  3941. eloca4.CFrame = elocacenter.CFrame
  3942. local lookavec = 0
  3943. local speeds = 0
  3944. CameraEnshaking(1,1)
  3945. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  3946. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3947. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3948. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3949. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3950. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3951. for i = 0, 99 do
  3952. swait()
  3953. lookavec = lookavec + 1
  3954. speeds = speeds + 0.1
  3955. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3956. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3957. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3958.  
  3959. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3960. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3961.  
  3962. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3963. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3964.  
  3965. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3966. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3967. end
  3968.  
  3969. for i = 0, 149 do
  3970. swait()
  3971. speeds = speeds + 0.1
  3972. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3973. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3974. PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3975.  
  3976. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3977. PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3978.  
  3979. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3980. PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3981.  
  3982. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3983. PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2)
  3984. end
  3985. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  3986. if v:FindFirstChild('Head') then
  3987. dmg(v)
  3988. end
  3989. end
  3990. CameraEnshaking(7,30)
  3991. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  3992. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  3993. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  3994. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  3995. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  3996. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  3997. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  3998. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  3999. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4000. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4001. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4002. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4003. for i = 0, 24 do
  4004. sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0)
  4005. sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0)
  4006. sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0)
  4007. sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0)
  4008. end
  4009. coroutine.resume(coroutine.create(function()
  4010. for i = 0, 499 do
  4011. swait(1)
  4012. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4013. PixelBlockNeg(2,math.random(1,10),"Add",elocacenter.CFrame*CFrame.new(math.random(-75,75),0,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-30,30)),math.rad(math.random(-30,30)),math.rad(math.random(-30,30))),15,15,15,0.15,MAINRUINCOLOR,-5)
  4014. end
  4015. elocacenter:Destroy()
  4016. eloca1:Destroy()
  4017. eloca2:Destroy()
  4018. eloca3:Destroy()
  4019. eloca4:Destroy()
  4020. end))
  4021. end
  4022. end)
  4023. end))
  4024. attack = false
  4025. end
  4026.  
  4027.  
  4028. function UniversalCollapse()
  4029. attack = true
  4030. local speedearn = 0
  4031. hum.WalkSpeed = 0
  4032. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4033. for i = 0, 10, 0.1 do
  4034. swait()
  4035. speedearn = speedearn + 0.1
  4036. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4037. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4038. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4039. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4040. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4041. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  4042. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  4043. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4044. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4045. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  4046. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  4047. end
  4048. CameraEnshaking(5,45)
  4049. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4050. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4051. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4052. if v:FindFirstChild('Head') then
  4053. dmg(v)
  4054. end
  4055. end
  4056. hum.WalkSpeed = storehumanoidWS
  4057. attack = false
  4058. end
  4059. function ChaosBegone()
  4060. attack = true
  4061. local speedearn = 0
  4062. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75)
  4063. for i = 0, 10, 0.1 do
  4064. swait()
  4065. speedearn = speedearn + 0.1
  4066. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4067. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4068. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4069. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4070. sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0)
  4071. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  4072. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2)
  4073. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4074. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4075. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4076. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4077. end
  4078. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  4079. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1)
  4080. CameraEnshaking(5,25)
  4081. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4082. if v:FindFirstChild('Head') then
  4083. dmg(v)
  4084. end
  4085. end
  4086. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4087. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4088. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4089. for i = 0, 3, 0.1 do
  4090. swait()
  4091. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4092. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4093. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4094. sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0)
  4095. RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  4096. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4)
  4097. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4098. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4099. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4100. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4101. end
  4102. attack = false
  4103. end
  4104.  
  4105. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4106. local orb = Instance.new("Part", char)
  4107. orb.Anchored = true
  4108. orb.BrickColor = color
  4109. orb.CanCollide = false
  4110. orb.FormFactor = 3
  4111. orb.Name = "Ring"
  4112. orb.Material = "Neon"
  4113. orb.Size = Vector3.new(1, 1, 1)
  4114. orb.Transparency = 0
  4115. orb.TopSurface = 0
  4116. orb.BottomSurface = 0
  4117. local orbm = Instance.new("SpecialMesh", orb)
  4118. orbm.MeshType = "Sphere"
  4119. orb.CFrame = positted
  4120. orbm.Name = "SizeMesh"
  4121. orbm.Scale = vt(1,1,1)
  4122. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4123. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4124. --[[for i = 0, 2 do
  4125. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  4126. end]]--
  4127. coroutine.resume(coroutine.create(function()
  4128. wait(timer)
  4129. CameraEnshaking(3,ShakePower)
  4130. orb.Transparency = 1
  4131. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4132. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4133. --[[for i = 0, 4 do
  4134. sphereMK(5,0.15*MagniBoost,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0)
  4135. end]]--
  4136. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4137. wait(3)
  4138. orb:Destroy()
  4139. end))
  4140. end
  4141.  
  4142. function orb_spawn(positted,timer)
  4143. local randomcol = math.random(1,2)
  4144. local orb = Instance.new("Part", char)
  4145. orb.Anchored = true
  4146. if randomcol == 1 then
  4147. orb.BrickColor = BrickColor.new("White")
  4148. elseif randomcol == 2 then
  4149. orb.BrickColor = BrickColor.new("Really black")
  4150. end
  4151. orb.CanCollide = false
  4152. orb.FormFactor = 3
  4153. orb.Name = "Ring"
  4154. orb.Material = "Neon"
  4155. orb.Size = Vector3.new(1, 1, 1)
  4156. orb.Transparency = 0
  4157. orb.TopSurface = 0
  4158. orb.BottomSurface = 0
  4159. local orbm = Instance.new("SpecialMesh", orb)
  4160. orbm.MeshType = "Sphere"
  4161. orb.CFrame = positted
  4162. orbm.Name = "SizeMesh"
  4163. orbm.Scale = vt(1,1,1)
  4164. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4165. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4166. for i = 0, 2 do
  4167. sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0)
  4168. end
  4169. coroutine.resume(coroutine.create(function()
  4170. wait(timer)
  4171. CameraEnshaking(3,2)
  4172. orb.Transparency = 1
  4173. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4174. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4175. for i = 0, 4 do
  4176. sphereMK(5,0.65,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0)
  4177. end
  4178. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4179. wait(3)
  4180. orb:Destroy()
  4181. end))
  4182. end
  4183.  
  4184. function scattercorrupt()
  4185. attack = true
  4186. local rot = 0
  4187. local randomrotations = math.random(1,2)
  4188. local lookv = 2.5
  4189. local power = 5
  4190. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4191. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4192. for i = 0, 9 do
  4193. sphereMK(1,1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,45,-0.1,BrickColor.new("Royal purple"),0)
  4194. end
  4195. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  4196. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  4197. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4198. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  4199. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  4200. local hite = Instance.new("Part", char)
  4201. hite.Anchored = true
  4202. hite.CanCollide = false
  4203. hite.FormFactor = 3
  4204. hite.Name = "Ring"
  4205. hite.Material = "Neon"
  4206. hite.Size = Vector3.new(1, 1, 1)
  4207. hite.Transparency = 1
  4208. hite.TopSurface = 0
  4209. hite.BottomSurface = 0
  4210. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4211. local rem = Instance.new("Part", char)
  4212. rem.Anchored = true
  4213. rem.CanCollide = false
  4214. rem.FormFactor = 3
  4215. rem.Name = "Ring"
  4216. rem.Material = "Neon"
  4217. rem.Size = Vector3.new(1, 1, 1)
  4218. rem.Transparency = 1
  4219. rem.TopSurface = 0
  4220. rem.BottomSurface = 0
  4221. rem.CFrame = hite.CFrame
  4222. local rem2 = rem:Clone()
  4223. rem2.Parent = char
  4224. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4225. local rem3 = rem:Clone()
  4226. rem3.Parent = char
  4227. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4228. local rem4 = rem:Clone()
  4229. rem4.Parent = char
  4230. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4231. hite:Destroy()
  4232. coroutine.resume(coroutine.create(function()
  4233. for i = 0, 24 do
  4234. swait(1)
  4235. if randomrotations == 1 then
  4236. rot = rot + 1
  4237. elseif randomrotations == 2 then
  4238. rot = rot - 1
  4239. end
  4240. power = power + 0.5
  4241. lookv = lookv + 7.5
  4242. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4243. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4244. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4245. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4246. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4247. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4248. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4249. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4250. end
  4251. end))
  4252. attack = false
  4253. end
  4254. function yinyangi()
  4255. attack = true
  4256. for i = 0, 2, 0.1 do
  4257. swait()
  4258. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2)
  4259. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.2)
  4260. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2)
  4261. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4262. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4263. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4264. end
  4265. local bv = Instance.new("BodyVelocity")
  4266. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4267. bv.velocity = root.CFrame.lookVector*175
  4268. bv.Parent = root
  4269. for Rotations = 0, 9 do
  4270. for i = 0, 1, 0.5 do
  4271. swait()
  4272. bv.velocity = root.CFrame.lookVector*175
  4273. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4274. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4275. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(90)),.5)
  4276. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4277. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4278. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4279. end
  4280. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4281. for i = 0, 1, 0.5 do
  4282. swait()
  4283. bv.velocity = root.CFrame.lookVector*175
  4284. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4285. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4286. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(180)),.5)
  4287. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4288. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4289. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4290. end
  4291. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4292. for i = 0, 1, 0.5 do
  4293. swait()
  4294. bv.velocity = root.CFrame.lookVector*175
  4295. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4296. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4297. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(270)),.5)
  4298. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4299. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4300. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4301. end
  4302. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4303. for i = 0, 1, 0.5 do
  4304. swait()
  4305. bv.velocity = root.CFrame.lookVector*175
  4306. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5)
  4307. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5)
  4308. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(360)),.5)
  4309. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4310. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4311. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4312. end
  4313. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4314. end
  4315. bv:Destroy()
  4316. attack = false
  4317. end
  4318.  
  4319. function Wip()
  4320. attack = true
  4321.  
  4322. local rngb = Instance.new("Part", char)
  4323. rngb.Anchored = true
  4324. rngb.BrickColor = origcolor
  4325. rngb.CanCollide = false
  4326. rngb.FormFactor = 3
  4327. rngb.Name = "Ring"
  4328. rngb.Material = "Neon"
  4329. rngb.Size = Vector3.new(1, 0.05, 1)
  4330. rngb.Transparency = 1
  4331. rngb.TopSurface = 0
  4332. rngb.BottomSurface = 0
  4333. local rngmb = Instance.new("SpecialMesh", rngb)
  4334. rngmb.MeshType = "Brick"
  4335. rngmb.Name = "SizeMesh"
  4336. rngmb.Scale = vt(0,1,0)
  4337.  
  4338. local orb = rngb:Clone()
  4339. orb.Parent = char
  4340. orb.Transparency = 0
  4341. orb.BrickColor = BrickColor.new("White")
  4342. orb.Size = vt(1,1,1)
  4343. local orbmish = orb.SizeMesh
  4344. orbmish.Scale = vt(0,0,0)
  4345. orbmish.MeshType = "Sphere"
  4346.  
  4347. local orbe = rngb:Clone()
  4348. orbe.Parent = char
  4349. orbe.Transparency = 0.5
  4350. orbe.BrickColor = BrickColor.new("New Yeller")
  4351. orbe.Size = vt(1,1,1)
  4352. local orbmish2 = orbe.SizeMesh
  4353. orbmish2.Scale = vt(0,0,0)
  4354. orbmish2.MeshType = "Sphere"
  4355. orbe.Color = Color3.new(r/255,g/255,b/255)
  4356.  
  4357. rngb:Destroy()
  4358. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4359. local scaled = 1
  4360. for i = 0,5,0.1 do
  4361. swait()
  4362. scaled = scaled - 0.02
  4363. if rainbowmode == true then
  4364. orbe.Color = Color3.new(r/255,g/255,b/255)
  4365. end
  4366. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4367. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4368. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4369. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4370. sphereMKCharge(2.5,-0.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,25)
  4371. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4372. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4373. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4374. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4375. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  4376. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
  4377. RootPart.CFrame = FaceMouse()[1]
  4378. end]]--
  4379. for i = 0,5,0.1 do
  4380. swait()
  4381. if rainbowmode == true then
  4382. orbe.Color = Color3.new(r/255,g/255,b/255)
  4383. end
  4384. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4385. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4386. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4387. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4388. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4389. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4390. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  4391. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
  4392. RootPart.CFrame = FaceMouse()[1]
  4393. end
  4394. orbe.Transparency = 1
  4395. orb.Transparency = 1
  4396. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4397. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4398. local a = Instance.new("Part",Character)
  4399. a.Name = "Direction"
  4400. a.Anchored = true
  4401. a.BrickColor = bc("White")
  4402. a.Material = "Neon"
  4403. a.Transparency = 0
  4404. a.Shape = "Cylinder"
  4405. a.CanCollide = false
  4406. local a2 = Instance.new("Part",Character)
  4407. a2.Name = "Direction"
  4408. a2.Anchored = true
  4409. a2.BrickColor = bc("New Yeller")
  4410. a2.Color = Color3.new(r/255,g/255,b/255)
  4411. a2.Material = "Neon"
  4412. a2.Transparency = 0.5
  4413. a2.Shape = "Cylinder"
  4414. a2.CanCollide = false
  4415. local ba = Instance.new("Part",Character)
  4416. ba.Name = "HitDirect"
  4417. ba.Anchored = true
  4418. ba.BrickColor = bc("Cool yellow")
  4419. ba.Material = "Neon"
  4420. ba.Transparency = 1
  4421. ba.CanCollide = false
  4422. local ray = Ray.new(
  4423. orb.CFrame.p, -- origin
  4424. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4425. )
  4426. local ignore = Character
  4427. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4428. a.BottomSurface = 10
  4429. a.TopSurface = 10
  4430. a2.BottomSurface = 10
  4431. a2.TopSurface = 10
  4432. local distance = (orb.CFrame.p - position).magnitude
  4433. a.Size = Vector3.new(distance, 1, 1)
  4434. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4435. a2.Size = Vector3.new(distance, 1, 1)
  4436. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4437. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4438. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4439. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4440. game:GetService("Debris"):AddItem(a, 20)
  4441. game:GetService("Debris"):AddItem(a2, 20)
  4442. game:GetService("Debris"):AddItem(ba, 20)
  4443. local msh = Instance.new("SpecialMesh",a)
  4444. msh.MeshType = "Cylinder"
  4445. msh.Scale = vt(1,5*5,5*5)
  4446. local msh2 = Instance.new("SpecialMesh",a2)
  4447. msh2.MeshType = "Cylinder"
  4448. msh2.Scale = vt(1,6*5,6*5)
  4449.  
  4450. for i = 0,10,0.1 do
  4451. swait()
  4452. CameraEnshaking(1,5)
  4453. a2.Color = Color3.new(r/255,g/255,b/255)
  4454. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4455. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4456. ray = Ray.new(
  4457. orb.CFrame.p, -- origin
  4458. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4459. )
  4460. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4461. distance = (orb.CFrame.p - position).magnitude
  4462. if typrot == 1 then
  4463. rotation = rotation + 2.5
  4464. elseif typrot == 2 then
  4465. rotation = rotation - 2.5
  4466. end
  4467. RootPart.CFrame = FaceMouse()[1]
  4468. a.Size = Vector3.new(distance, 1, 1)
  4469. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4470. a2.Size = Vector3.new(distance, 1, 1)
  4471. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4472. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4473. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4474. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4475. msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5)
  4476. msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5)
  4477. sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0)
  4478. sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0)
  4479. MagniDamage(ba, 30, 500,60000, 0, "Normal")
  4480. end
  4481. a:Destroy()
  4482. a2:Destroy()
  4483. ba:Destroy()
  4484. orb:Destroy()
  4485. orbe:Destroy()
  4486. attack = false
  4487. end
  4488. function HolyBarrier()
  4489. attack = true
  4490. shielding = true
  4491. for i = 0, 2, 0.1 do
  4492. swait()
  4493. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4)
  4494. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4)
  4495. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(30),math.rad(0),math.rad(0)),.4)
  4496. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
  4497. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1)
  4498. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1)
  4499. end
  4500. CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1)
  4501. stash = Instance.new("Model",workspace)
  4502. local barrier = Instance.new("Part",stash)
  4503. barrier.Anchored = true
  4504. barrier.CanCollide = false
  4505. barrier.Size = Vector3.new(20,20,20)
  4506. barrier.CFrame = root.CFrame
  4507. barrier.Transparency = 0.6
  4508. barrier.BrickColor = MAINRUINCOLOR
  4509. barrier.Material = Enum.Material.Neon
  4510. barrier.Shape = Enum.PartType.Ball
  4511. barrier.CFrame = root.CFrame
  4512. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  4513. Torso.Anchored = true
  4514. for i=1,50 do
  4515. local p = Instance.new("Part",stash)
  4516. p.Anchored = true
  4517. p.Transparency = 1
  4518. p.Size = Vector3.new(11,11,11)
  4519. p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
  4520. end
  4521. repeat
  4522. swait(5)
  4523. sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("White"),0)
  4524. until shielding == false
  4525. stash:Remove()
  4526. Torso.Anchored = false
  4527. shielding = false
  4528. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  4529. attack = false
  4530. end
  4531. function Judgement()
  4532. attack = true
  4533. judgement = true
  4534. hum.WalkSpeed = 0
  4535. local p = Instance.new("Part",root)
  4536. p.Anchored = true
  4537. p.CanCollide = false
  4538. p.BrickColor = MAINRUINCOLOR
  4539. p.Material = Enum.Material.Neon
  4540. p.Size = Vector3.new(1,1,1)
  4541. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4542. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4543. local m = Instance.new("SpecialMesh",p)
  4544. m.MeshType = "Cylinder"
  4545. m.Scale = Vector3.new(2000,2,2)
  4546. local targ = Instance.new("Part",root)
  4547. targ.Anchored = true
  4548. targ.Transparency = 1
  4549. targ.CanCollide = false
  4550. targ.Size = Vector3.new(1,1,1)
  4551. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4552. local s = Instance.new("Sound",targ)
  4553. s.SoundId = "https://roblox.com/asset/?id=115327352"
  4554. s.Looped = true
  4555. s.Pitch = 1.2
  4556. s.Volume = 3
  4557. spawn(function()
  4558. swait(15)
  4559. s:Play()
  4560. end)
  4561. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  4562. for i = 1,15 do
  4563. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4564. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  4565. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  4566. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  4567. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  4568. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2)
  4569. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(20)),.2)
  4570. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR)
  4571. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 7, -0.005, MAINRUINCOLOR, 0)
  4572. m.Scale = m.Scale+Vector3.new(0,1,1)
  4573. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4574. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4575. swait()
  4576. end
  4577. sphereMK(3, 0.2, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0)
  4578. repeat
  4579. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4580. sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 3, 3, 15, -0.005, MAINRUINCOLOR, 0)
  4581. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR)
  4582. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4583. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4584. MagniDamage(targ, 25, 5, 8, 0, "Normal")
  4585. swait()
  4586. until judgement == false
  4587. for i =1,15 do
  4588. m.Scale = m.Scale-Vector3.new(1,1,1)
  4589. p.Transparency = i / 15
  4590. s.Pitch = s.Pitch - 0.4
  4591. swait()
  4592. end
  4593. p:Destroy()
  4594. hum.WalkSpeed = storehumanoidWS
  4595. attack = false
  4596. end
  4597.  
  4598. function UniversalSpark()
  4599. attack = true
  4600.  
  4601. local rngb = Instance.new("Part", char)
  4602. rngb.Anchored = true
  4603. rngb.BrickColor = origcolor
  4604. rngb.CanCollide = false
  4605. rngb.FormFactor = 3
  4606. rngb.Name = "Ring"
  4607. rngb.Material = "Neon"
  4608. rngb.Size = Vector3.new(1, 0.05, 1)
  4609. rngb.Transparency = 1
  4610. rngb.TopSurface = 0
  4611. rngb.BottomSurface = 0
  4612. local rngmb = Instance.new("SpecialMesh", rngb)
  4613. rngmb.MeshType = "Brick"
  4614. rngmb.Name = "SizeMesh"
  4615. rngmb.Scale = vt(0,1,0)
  4616.  
  4617. local orb = rngb:Clone()
  4618. orb.Parent = char
  4619. orb.Transparency = 0
  4620. orb.BrickColor = BrickColor.new("White")
  4621. orb.Size = vt(1,1,1)
  4622. local orbmish = orb.SizeMesh
  4623. orbmish.Scale = vt(0,0,0)
  4624. orbmish.MeshType = "Sphere"
  4625.  
  4626. local orbe = rngb:Clone()
  4627. orbe.Parent = char
  4628. orbe.Transparency = 0.5
  4629. orbe.BrickColor = BrickColor.new("New Yeller")
  4630. orbe.Size = vt(1,1,1)
  4631. local orbmish2 = orbe.SizeMesh
  4632. orbmish2.Scale = vt(0,0,0)
  4633. orbmish2.MeshType = "Sphere"
  4634. orbe.Color = Color3.new(r/255,g/255,b/255)
  4635.  
  4636. rngb:Destroy()
  4637. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4638. local scaled = 1
  4639. for i = 0,5,0.1 do
  4640. swait()
  4641. scaled = scaled - 0.02
  4642. if rainbowmode == true then
  4643. orbe.Color = Color3.new(r/255,g/255,b/255)
  4644. end
  4645. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4646. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4647. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4648. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4649. sphereMKCharge(2.5,-0.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,25)
  4650. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4651. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4652. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4653. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4654. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  4655. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
  4656. RootPart.CFrame = FaceMouse()[1]
  4657. end]]--
  4658. for i = 0,5,0.1 do
  4659. swait()
  4660. if rainbowmode == true then
  4661. orbe.Color = Color3.new(r/255,g/255,b/255)
  4662. end
  4663. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4664. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4665. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4666. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4667. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4668. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4669. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  4670. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
  4671. RootPart.CFrame = FaceMouse()[1]
  4672. end
  4673. orbe.Transparency = 1
  4674. orb.Transparency = 1
  4675. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4676. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  4677. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  4678. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4679.  
  4680. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4681. CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1)
  4682. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4683. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1)
  4684. CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1)
  4685. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  4686. CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1)
  4687. local xd= Instance.new("Sound",char)
  4688. xd.SoundId = "rbxassetid://445796828"
  4689. xd.Pitch = 0.75
  4690. xd.Looped = true
  4691. xd.Volume = 1.25
  4692. xd:Play()
  4693. local a = Instance.new("Part",Character)
  4694. a.Name = "Direction"
  4695. a.Anchored = true
  4696. a.BrickColor = bc("Alder")
  4697. a.Color = MAINRUINCOLOR.Color
  4698. a.Material = "Neon"
  4699. a.Transparency = 0.5
  4700. a.Shape = "Cylinder"
  4701. a.CanCollide = false
  4702. local a2 = Instance.new("Part",Character)
  4703. a2.Name = "Direction"
  4704. a2.Anchored = true
  4705. a2.BrickColor = bc("New Yeller")
  4706. a2.Color = MAINRUINCOLOR.Color
  4707. a2.Material = "Neon"
  4708. a2.Transparency = 0.5
  4709. a2.Shape = "Cylinder"
  4710. a2.CanCollide = false
  4711. local ba = Instance.new("Part",Character)
  4712. ba.Name = "HitDirect"
  4713. ba.Anchored = true
  4714. ba.BrickColor = bc("Cool yellow")
  4715. ba.Material = "Neon"
  4716. ba.Transparency = 1
  4717. ba.CanCollide = false
  4718. local ray = Ray.new(
  4719. orb.CFrame.p, -- origin
  4720. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4721. )
  4722. local ignore = Character
  4723. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4724. a.BottomSurface = 10
  4725. a.TopSurface = 10
  4726. a2.BottomSurface = 10
  4727. a2.TopSurface = 10
  4728. local distance = (orb.CFrame.p - position).magnitude
  4729. a.Size = Vector3.new(distance, 1, 1)
  4730. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4731. a2.Size = Vector3.new(distance, 1, 1)
  4732. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4733. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4734. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4735. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4736. game:GetService("Debris"):AddItem(a, 60)
  4737. game:GetService("Debris"):AddItem(a2, 60)
  4738. game:GetService("Debris"):AddItem(ba, 60)
  4739. local outerscale = 0
  4740. local msh = Instance.new("SpecialMesh",a)
  4741. msh.MeshType = "Cylinder"
  4742. msh.Scale = vt(1,0,0)
  4743. local msh2 = Instance.new("SpecialMesh",a2)
  4744. msh2.MeshType = "Cylinder"
  4745. msh2.Scale = vt(1,0,0)
  4746. for i = 0,2,0.1 do
  4747. swait()
  4748. CameraEnshaking(1,1)
  4749. msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20)
  4750. msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15)
  4751. outerscale = outerscale - 0.015
  4752. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4753. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4754. ray = Ray.new(
  4755. orb.CFrame.p, -- origin
  4756. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4757. )
  4758. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4759. distance = (orb.CFrame.p - position).magnitude
  4760. if typrot == 1 then
  4761. rotation = rotation + 2.5
  4762. elseif typrot == 2 then
  4763. rotation = rotation - 2.5
  4764. end
  4765. RootPart.CFrame = FaceMouse()[1]
  4766. a.Size = Vector3.new(distance, 1, 1)
  4767. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4768. a2.Size = Vector3.new(distance, 1, 1)
  4769. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4770. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4771. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4772. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4773. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4774. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4775. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4776. end
  4777. for z = 0, 2 do
  4778. for i = 0,4,0.1 do
  4779. swait()
  4780. CameraEnshaking(1,1)
  4781. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4782. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4783. outerscale = outerscale + 0.015
  4784. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4785. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4786. ray = Ray.new(
  4787. orb.CFrame.p, -- origin
  4788. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4789. )
  4790. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4791. distance = (orb.CFrame.p - position).magnitude
  4792. if typrot == 1 then
  4793. rotation = rotation + 2.5
  4794. elseif typrot == 2 then
  4795. rotation = rotation - 2.5
  4796. end
  4797. RootPart.CFrame = FaceMouse()[1]
  4798. a.Size = Vector3.new(distance, 1, 1)
  4799. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4800. a2.Size = Vector3.new(distance, 1, 1)
  4801. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4802. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4803. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4804. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4805. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4806. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4807. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4808. end
  4809. for i = 0,4,0.1 do
  4810. swait()
  4811. CameraEnshaking(1,1)
  4812. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4813. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4814. outerscale = outerscale - 0.015
  4815. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4816. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4817. ray = Ray.new(
  4818. orb.CFrame.p, -- origin
  4819. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4820. )
  4821. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4822. distance = (orb.CFrame.p - position).magnitude
  4823. if typrot == 1 then
  4824. rotation = rotation + 2.5
  4825. elseif typrot == 2 then
  4826. rotation = rotation - 2.5
  4827. end
  4828. RootPart.CFrame = FaceMouse()[1]
  4829. a.Size = Vector3.new(distance, 1, 1)
  4830. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4831. a2.Size = Vector3.new(distance, 1, 1)
  4832. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4833. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4834. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4835. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4836. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4837. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4838. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4839. end
  4840. end
  4841. for i = 0,4,0.1 do
  4842. swait()
  4843. CameraEnshaking(1,1)
  4844. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4845. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4846. xd.Volume = xd.Volume - 0.025
  4847. a.Transparency = a.Transparency + 0.025
  4848. a2.Transparency = a2.Transparency + 0.025
  4849. outerscale = outerscale - 0.015
  4850. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4851. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4852. ray = Ray.new(
  4853. orb.CFrame.p, -- origin
  4854. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4855. )
  4856. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4857. distance = (orb.CFrame.p - position).magnitude
  4858. if typrot == 1 then
  4859. rotation = rotation + 2.5
  4860. elseif typrot == 2 then
  4861. rotation = rotation - 2.5
  4862. end
  4863. RootPart.CFrame = FaceMouse()[1]
  4864. a.Size = Vector3.new(distance, 1, 1)
  4865. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4866. a2.Size = Vector3.new(distance, 1, 1)
  4867. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4868. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4869. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4870. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4871. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4872. sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0)
  4873. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4874. end
  4875. xd:Destroy()
  4876. a:Destroy()
  4877. a2:Destroy()
  4878. ba:Destroy()
  4879. orb:Destroy()
  4880. orbe:Destroy()
  4881. attack = false
  4882. end
  4883.  
  4884.  
  4885. function resetmode()
  4886. rainbowmode = false
  4887. chaosmode = false
  4888. tl1.Enabled = false
  4889. tl2.Enabled = false
  4890. tl3.Enabled = false
  4891. ModeOfGlitch = 1
  4892. storehumanoidWS = 16
  4893. coroutine.resume(coroutine.create(function()
  4894. attack = true
  4895. hum.WalkSpeed = 0
  4896. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25)
  4897. for i = 0,4,0.1 do
  4898. swait()
  4899. sphereMK(2.5,-1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3.5,3.5,45,-0.035,MAINRUINCOLOR,100)
  4900. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
  4901. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
  4902. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.5)
  4903. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.5)
  4904. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.5)
  4905. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.5)
  4906. end
  4907. CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1)
  4908. CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1)
  4909. CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1)
  4910. CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75)
  4911. RecolorTextAndRename("Mayhem",Color3.new(0,0,0),Color3.new(1,0,0))
  4912. CameraEnshaking(5,2.5)
  4913. MAINRUINCOLOR = BrickColor.new("Really red")
  4914. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4915. for i = 0, 49 do
  4916. PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,MAINRUINCOLOR,0)
  4917. end
  4918. for i = 0,3,0.1 do
  4919. sphereMK(2.5,-1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0)
  4920. end
  4921. for i, v in pairs(mw2:GetChildren()) do
  4922. if v:IsA("Part") then
  4923. v.BrickColor = BrickColor.new("Really red")
  4924. v.Material = "Neon"
  4925. end
  4926. end
  4927. for i, v in pairs(mw1:GetChildren()) do
  4928. if v:IsA("Part") then
  4929. v.Transparency = 1
  4930. v.BrickColor = BrickColor.new("Really red")
  4931. v.Material = "Neon"
  4932. end
  4933. end
  4934. for i, v in pairs(m:GetChildren()) do
  4935. if v:IsA("Part") then
  4936. v.BrickColor = BrickColor.new("Really black")
  4937. v.Material = "Glass"
  4938. end
  4939. end
  4940. for i, v in pairs(m2:GetChildren()) do
  4941. if v:IsA("Part") then
  4942. v.BrickColor = BrickColor.new("Crimson")
  4943. v.Material = "Granite"
  4944. end
  4945. end
  4946. for i, v in pairs(m3:GetChildren()) do
  4947. if v:IsA("Part") then
  4948. v.BrickColor = BrickColor.new("Really red")
  4949. v.Material = "Neon"
  4950. end
  4951. end
  4952. for i, v in pairs(extrawingmod1:GetChildren()) do
  4953. if v:IsA("Part") then
  4954. v.Transparency = 1
  4955. v.BrickColor = BrickColor.new("White")
  4956. v.Material = "Neon"
  4957. end
  4958. end
  4959. for i, v in pairs(extrawingmod2:GetChildren()) do
  4960. if v:IsA("Part") then
  4961. v.Transparency = 1
  4962. v.BrickColor = BrickColor.new("White")
  4963. v.Material = "Neon"
  4964. end
  4965. end
  4966. for i = 0,2,0.1 do
  4967. swait()
  4968. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5)
  4969. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5)
  4970. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  4971. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5)
  4972. RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5)
  4973. LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5)
  4974. end
  4975. hum.WalkSpeed = storehumanoidWS
  4976. attack = false
  4977. end))
  4978. newTheme("rbxassetid://614032233",48.6,1,0.3)
  4979. end
  4980.  
  4981. function attackone()
  4982. attack = true
  4983. for i = 0,1,0.1 do
  4984. swait()
  4985. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2)
  4986. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2)
  4987. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  4988. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  4989. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.2)
  4990. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(10)),.2)
  4991. end
  4992. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1)
  4993.  
  4994. local hitb = Instance.new("Part", char)
  4995. hitb.Anchored = true
  4996. hitb.CanCollide = false
  4997. hitb.FormFactor = 3
  4998. hitb.Name = "Ring"
  4999. hitb.Material = "Neon"
  5000. hitb.Size = Vector3.new(1, 1, 1)
  5001. hitb.Transparency = 1
  5002. hitb.TopSurface = 0
  5003. hitb.BottomSurface = 0
  5004. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  5005. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  5006. hitb:Destroy()
  5007. for i = 0,1,0.1 do
  5008. swait()
  5009. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4)
  5010. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4)
  5011. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  5012. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  5013. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-40)),.4)
  5014. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-10)),.4)
  5015. end
  5016.  
  5017. attack = false
  5018. end
  5019.  
  5020. function attacktwo()
  5021. attack = true
  5022. for i = 0,1,0.1 do
  5023. swait()
  5024. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2)
  5025. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  5026. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  5027. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  5028. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.2)
  5029. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(10)),.2)
  5030. end
  5031. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1)
  5032. local hitb = Instance.new("Part", char)
  5033. hitb.Anchored = true
  5034. hitb.CanCollide = false
  5035. hitb.FormFactor = 3
  5036. hitb.Name = "Ring"
  5037. hitb.Material = "Neon"
  5038. hitb.Size = Vector3.new(1, 1, 1)
  5039. hitb.Transparency = 1
  5040. hitb.TopSurface = 0
  5041. hitb.BottomSurface = 0
  5042. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  5043. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  5044. hitb:Destroy()
  5045. for i = 0,1,0.1 do
  5046. swait()
  5047. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4)
  5048. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4)
  5049. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  5050. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  5051. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-40)),.4)
  5052. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-10)),.4)
  5053. end
  5054. attack = false
  5055. end
  5056.  
  5057. function attackthree()
  5058. attack = true
  5059. for i = 0,1,0.1 do
  5060. swait()
  5061. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3)
  5062. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3)
  5063. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  5064. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5065. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
  5066. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3)
  5067. end
  5068. local distlook = 5
  5069. for i = 0, 4 do
  5070. swait(2)
  5071. CameraEnshaking(2,3)
  5072. local hite = Instance.new("Part", char)
  5073. hite.Anchored = true
  5074. hite.CanCollide = false
  5075. hite.FormFactor = 3
  5076. hite.Name = "Ring"
  5077. hite.Material = "Neon"
  5078. hite.Size = Vector3.new(1, 1, 1)
  5079. hite.Transparency = 1
  5080. hite.TopSurface = 0
  5081. hite.BottomSurface = 0
  5082. hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook
  5083. sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR)
  5084. sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR)
  5085. MagniDamage(hite, 10, 15,35, 0, "Normal")
  5086. for i = 0, 2 do
  5087. sphereMK(2,0.2,"Add",rarm.CFrame*CFrame.Angles(math.rad(-90+math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
  5088. sphereMK(3,0.2,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
  5089. sphereMK(6,0.35,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0)
  5090. end
  5091. CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1)
  5092. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6)
  5093. game:GetService("Debris"):AddItem(hite, 5)
  5094. distlook = distlook + 10
  5095. end
  5096. attack = false
  5097. end
  5098.  
  5099. local ActiveGia = false
  5100. function THEHELLITSTHATBIG()
  5101. ActiveGia = true
  5102. attack = true
  5103. hum.WalkSpeed = 0
  5104. for i = 0,2,0.1 do
  5105. swait()
  5106. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5107. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5108. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5109. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5110. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2)
  5111. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(20)),.2)
  5112. end
  5113. for i = 0,1,0.1 do
  5114. torsweld.C1=clerp(torsweld.C1,cf(0,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5115. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  5116. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  5117. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5118. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5119. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  5120. end
  5121. CFuncs["Sound"].Create("rbxassetid://528589382", sectors, 5, 1)
  5122. secrleg.Transparency = 0.5
  5123. seclleg.Transparency = 0.5
  5124. secrarm.Transparency = 0.5
  5125. seclarm.Transparency = 0.5
  5126. seched.Transparency = 0.5
  5127. sectors.Transparency = 0.5
  5128. for i = 0,25,0.1 do
  5129. swait()
  5130. PixelBlockNeg(1,math.random(1,5),"Add",sectors.CFrame*CFrame.new(math.random(-25,25),0,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.1,MAINRUINCOLOR,-10)
  5131. torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
  5132. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.025)
  5133. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),0.025)
  5134. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5135. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5136. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5137. end
  5138. --[[secrleg.Transparency = 1
  5139. seclleg.Transparency = 1
  5140. secrarm.Transparency = 1
  5141. seclarm.Transparency = 1
  5142. seched.Transparency = 1
  5143. sectors.Transparency = 1]]--
  5144. torsweld.Part0 = root
  5145. hum.WalkSpeed = storehumanoidWS
  5146. attack = false
  5147. end
  5148.  
  5149. function removelol()
  5150. ActiveGia = false
  5151. attack = true
  5152. hum.WalkSpeed = 0
  5153. for i = 0,2,0.1 do
  5154. swait()
  5155. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5156. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5157. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5158. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5159. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2)
  5160. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(20)),.2)
  5161. end
  5162. CFuncs["Sound"].Create("rbxassetid://528589274", sectors, 5, 1)
  5163. for i = 0,25,0.1 do
  5164. swait()
  5165. secrleg.Transparency = secrleg.Transparency + 0.00225
  5166. seclleg.Transparency = secrleg.Transparency
  5167. secrarm.Transparency = secrleg.Transparency
  5168. seclarm.Transparency = secrleg.Transparency
  5169. seched.Transparency = secrleg.Transparency
  5170. sectors.Transparency = secrleg.Transparency
  5171. PixelBlockNeg(1,math.random(1,5),"Add",sectors.CFrame*CFrame.new(math.random(-25,25),0,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.1,MAINRUINCOLOR,-10)
  5172. torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
  5173. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(20),math.rad(0),math.rad(20)),0.025)
  5174. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(20),math.rad(0),math.rad(-20)),0.025)
  5175. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5176. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5177. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5178. end
  5179. CFuncs["Sound"].Create("rbxassetid://468991944", sectors, 10, 1)
  5180. sphere(1,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5181. sphere(2,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5182. sphere(3,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5183. secrleg.Transparency = 1
  5184. seclleg.Transparency = 1
  5185. secrarm.Transparency = 1
  5186. seclarm.Transparency = 1
  5187. seched.Transparency = 1
  5188. sectors.Transparency = 1
  5189. torsweld.Part0 = root
  5190. hum.WalkSpeed = storehumanoidWS
  5191. attack = false
  5192. end
  5193.  
  5194. function FinalCalamity()
  5195. end
  5196.  
  5197. local attacktype = 1
  5198. mouse.Button1Down:connect(function()
  5199. if attack == false and attacktype == 1 then
  5200. attacktype = 2
  5201. attackone()
  5202. elseif attack == false and attacktype == 2 then
  5203. attacktype = 3
  5204. attacktwo()
  5205. elseif attack == false and attacktype == 3 then
  5206. attacktype = 1
  5207. attackthree()
  5208. elseif attack == false and attacktype == 4 then
  5209. attacktype = 1
  5210. --attackfour()
  5211. end
  5212. end)
  5213. mouse.KeyDown:connect(function(k)
  5214. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  5215. ModeOfGlitch = 2
  5216. storehumanoidWS = 16
  5217. hum.WalkSpeed = 16
  5218. rainbowmode = false
  5219. chaosmode = false
  5220. tl1.Enabled = false
  5221. tl2.Enabled = false
  5222. tl3.Enabled = false
  5223. RecolorTextAndRename("Purity",Color3.new(1,1,1),Color3.new(0,1,1))
  5224. newTheme("rbxassetid://1539245059",0,1,0.3)
  5225. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  5226. for i, v in pairs(mw2:GetChildren()) do
  5227. if v:IsA("Part") then
  5228. v.BrickColor = MAINRUINCOLOR
  5229. v.Material = "Neon"
  5230. end
  5231. end
  5232. for i, v in pairs(mw1:GetChildren()) do
  5233. if v:IsA("Part") then
  5234. v.Transparency = 1
  5235. v.BrickColor = MAINRUINCOLOR
  5236. v.Material = "Neon"
  5237. end
  5238. end
  5239. for i, v in pairs(m:GetChildren()) do
  5240. if v:IsA("Part") then
  5241. v.BrickColor = BrickColor.new("White")
  5242. v.Material = "Ice"
  5243. end
  5244. end
  5245. for i, v in pairs(m2:GetChildren()) do
  5246. if v:IsA("Part") then
  5247. v.BrickColor = BrickColor.new("Pastel light blue")
  5248. v.Material = "Glass"
  5249. end
  5250. end
  5251. for i, v in pairs(m3:GetChildren()) do
  5252. if v:IsA("Part") then
  5253. v.BrickColor = BrickColor.new("Toothpaste")
  5254. v.Material = "Neon"
  5255. end
  5256. end
  5257. for i, v in pairs(extrawingmod1:GetChildren()) do
  5258. if v:IsA("Part") then
  5259. v.Transparency = 1
  5260. v.BrickColor = BrickColor.new("White")
  5261. v.Material = "Neon"
  5262. end
  5263. end
  5264. for i, v in pairs(extrawingmod2:GetChildren()) do
  5265. if v:IsA("Part") then
  5266. v.Transparency = 1
  5267. v.BrickColor = BrickColor.new("White")
  5268. v.Material = "Neon"
  5269. end
  5270. end
  5271. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  5272. resetmode()
  5273. end
  5274. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  5275. ModeOfGlitch = 3
  5276. storehumanoidWS = 16
  5277. hum.WalkSpeed = 16
  5278. rainbowmode = false
  5279. chaosmode = false
  5280. tl1.Enabled = false
  5281. tl2.Enabled = false
  5282. tl3.Enabled = false
  5283. RecolorTextAndRename("Corruption",Color3.new(0,0,0),Color3.new(0.35,0,1))
  5284. newTheme("rbxassetid://1283869370",58.15,0.98,1.25)
  5285. MAINRUINCOLOR = BrickColor.new("Royal purple")
  5286. for i, v in pairs(mw2:GetChildren()) do
  5287. if v:IsA("Part") then
  5288. v.BrickColor = MAINRUINCOLOR
  5289. v.Material = "Neon"
  5290. end
  5291. end
  5292. for i, v in pairs(mw1:GetChildren()) do
  5293. if v:IsA("Part") then
  5294. v.Transparency = 1
  5295. v.BrickColor = MAINRUINCOLOR
  5296. v.Material = "Neon"
  5297. end
  5298. end
  5299. for i, v in pairs(m:GetChildren()) do
  5300. if v:IsA("Part") then
  5301. v.BrickColor = BrickColor.new("Black")
  5302. v.Material = "Ice"
  5303. end
  5304. end
  5305. for i, v in pairs(m2:GetChildren()) do
  5306. if v:IsA("Part") then
  5307. v.BrickColor = BrickColor.new("Dark indigo")
  5308. v.Material = "Glass"
  5309. end
  5310. end
  5311. for i, v in pairs(m3:GetChildren()) do
  5312. if v:IsA("Part") then
  5313. v.BrickColor = BrickColor.new("Royal purple")
  5314. v.Material = "Neon"
  5315. end
  5316. end
  5317. for i, v in pairs(extrawingmod1:GetChildren()) do
  5318. if v:IsA("Part") then
  5319. v.Transparency = 1
  5320. v.BrickColor = BrickColor.new("White")
  5321. v.Material = "Neon"
  5322. end
  5323. end
  5324. for i, v in pairs(extrawingmod2:GetChildren()) do
  5325. if v:IsA("Part") then
  5326. v.Transparency = 1
  5327. v.BrickColor = BrickColor.new("White")
  5328. v.Material = "Neon"
  5329. end
  5330. end
  5331. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  5332. resetmode()
  5333. end
  5334. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  5335. ModeOfGlitch = 4
  5336. storehumanoidWS = 16
  5337. hum.WalkSpeed = 16
  5338. rainbowmode = false
  5339. chaosmode = true
  5340. tl1.Enabled = true
  5341. tl2.Enabled = true
  5342. tl3.Enabled = true
  5343. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
  5344. newTheme("rbxassetid://1369263130",0,1,1)
  5345. MAINRUINCOLOR = BrickColor.new("Black")
  5346. for i, v in pairs(mw2:GetChildren()) do
  5347. if v:IsA("Part") then
  5348. v.BrickColor = MAINRUINCOLOR
  5349. v.Material = "Neon"
  5350. end
  5351. end
  5352. for i, v in pairs(mw1:GetChildren()) do
  5353. if v:IsA("Part") then
  5354. v.Transparency = 0.75
  5355. v.BrickColor = BrickColor.random()
  5356. v.Material = "Neon"
  5357. end
  5358. end
  5359. for i, v in pairs(m:GetChildren()) do
  5360. if v:IsA("Part") then
  5361. v.BrickColor = BrickColor.new("Black")
  5362. v.Material = "Neon"
  5363. end
  5364. end
  5365. for i, v in pairs(m2:GetChildren()) do
  5366. if v:IsA("Part") then
  5367. v.BrickColor = BrickColor.random()
  5368. v.Material = "Neon"
  5369. end
  5370. end
  5371. for i, v in pairs(m3:GetChildren()) do
  5372. if v:IsA("Part") then
  5373. v.BrickColor = BrickColor.new("Black")
  5374. v.Material = "Neon"
  5375. end
  5376. end
  5377. for i, v in pairs(extrawingmod1:GetChildren()) do
  5378. if v:IsA("Part") then
  5379. v.Transparency = 1
  5380. v.BrickColor = BrickColor.new("White")
  5381. v.Material = "Neon"
  5382. end
  5383. end
  5384. for i, v in pairs(extrawingmod2:GetChildren()) do
  5385. if v:IsA("Part") then
  5386. v.Transparency = 1
  5387. v.BrickColor = BrickColor.new("White")
  5388. v.Material = "Neon"
  5389. end
  5390. end
  5391. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  5392. resetmode()
  5393. end
  5394. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  5395. ModeOfGlitch = 5
  5396. storehumanoidWS = 16
  5397. hum.WalkSpeed = 16
  5398. rainbowmode = false
  5399. chaosmode = false
  5400. tl1.Enabled = true
  5401. tl2.Enabled = true
  5402. tl3.Enabled = true
  5403. RecolorTextAndRename("Divinity",Color3.new(1,1,1),Color3.new(1,1,0.5))
  5404. newTheme("rbxassetid://661079869",0,1.02,1)
  5405. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  5406. for i, v in pairs(mw2:GetChildren()) do
  5407. if v:IsA("Part") then
  5408. v.BrickColor = MAINRUINCOLOR
  5409. v.Material = "Neon"
  5410. end
  5411. end
  5412. for i, v in pairs(mw1:GetChildren()) do
  5413. if v:IsA("Part") then
  5414. v.Transparency = 0
  5415. v.BrickColor = MAINRUINCOLOR
  5416. v.Material = "Neon"
  5417. end
  5418. end
  5419. for i, v in pairs(m:GetChildren()) do
  5420. if v:IsA("Part") then
  5421. v.BrickColor = BrickColor.new("Cool yellow")
  5422. v.Material = "Ice"
  5423. end
  5424. end
  5425. for i, v in pairs(m2:GetChildren()) do
  5426. if v:IsA("Part") then
  5427. v.BrickColor = BrickColor.new("Bright yellow")
  5428. v.Material = "Ice"
  5429. end
  5430. end
  5431. for i, v in pairs(m3:GetChildren()) do
  5432. if v:IsA("Part") then
  5433. v.BrickColor = BrickColor.new("Bright yellow")
  5434. v.Material = "Neon"
  5435. end
  5436. end
  5437. for i, v in pairs(extrawingmod1:GetChildren()) do
  5438. if v:IsA("Part") then
  5439. v.Transparency = 1
  5440. v.BrickColor = BrickColor.new("White")
  5441. v.Material = "Neon"
  5442. end
  5443. end
  5444. for i, v in pairs(extrawingmod2:GetChildren()) do
  5445. if v:IsA("Part") then
  5446. v.Transparency = 1
  5447. v.BrickColor = BrickColor.new("White")
  5448. v.Material = "Neon"
  5449. end
  5450. end
  5451. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  5452. resetmode()
  5453. end
  5454. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  5455. ModeOfGlitch = 6
  5456. storehumanoidWS = 75
  5457. hum.WalkSpeed = 75
  5458. rainbowmode = false
  5459. chaosmode = false
  5460. tl1.Enabled = true
  5461. tl2.Enabled = true
  5462. tl3.Enabled = true
  5463. RecolorTextAndRename("Equinox",Color3.new(0,0,0),Color3.new(1,1,1))
  5464. newTheme("rbxassetid://395351949",0,1,1)
  5465. MAINRUINCOLOR = BrickColor.new("White")
  5466. for i, v in pairs(mw2:GetChildren()) do
  5467. if v:IsA("Part") then
  5468. v.BrickColor = MAINRUINCOLOR
  5469. v.Material = "Neon"
  5470. end
  5471. end
  5472. for i, v in pairs(mw1:GetChildren()) do
  5473. if v:IsA("Part") then
  5474. v.Transparency = 0
  5475. v.BrickColor = MAINRUINCOLOR
  5476. v.Material = "Neon"
  5477. end
  5478. end
  5479. for i, v in pairs(m:GetChildren()) do
  5480. if v:IsA("Part") then
  5481. v.BrickColor = BrickColor.new("White")
  5482. v.Material = "Ice"
  5483. end
  5484. end
  5485. for i, v in pairs(m2:GetChildren()) do
  5486. if v:IsA("Part") then
  5487. v.BrickColor = BrickColor.new("Really black")
  5488. v.Material = "Ice"
  5489. end
  5490. end
  5491. for i, v in pairs(m3:GetChildren()) do
  5492. if v:IsA("Part") then
  5493. v.BrickColor = BrickColor.new("White")
  5494. v.Material = "Neon"
  5495. end
  5496. end
  5497. for i, v in pairs(extrawingmod1:GetChildren()) do
  5498. if v:IsA("Part") then
  5499. v.Transparency = 1
  5500. v.BrickColor = BrickColor.new("White")
  5501. v.Material = "Neon"
  5502. end
  5503. end
  5504. for i, v in pairs(extrawingmod2:GetChildren()) do
  5505. if v:IsA("Part") then
  5506. v.Transparency = 1
  5507. v.BrickColor = BrickColor.new("White")
  5508. v.Material = "Neon"
  5509. end
  5510. end
  5511. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  5512. resetmode()
  5513. end
  5514. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  5515. ModeOfGlitch = 6127843
  5516. storehumanoidWS = 50
  5517. hum.WalkSpeed = 50
  5518. rainbowmode = true
  5519. chaosmode = false
  5520. tl1.Enabled = true
  5521. tl2.Enabled = true
  5522. tl3.Enabled = true
  5523. RecolorTextAndRename("RAINBOW",Color3.new(1,1,1),Color3.new(1,1,1))
  5524. newTheme("rbxassetid://147930134",0,1,1)
  5525. MAINRUINCOLOR = BrickColor.new("White")
  5526. for i, v in pairs(mw2:GetChildren()) do
  5527. if v:IsA("Part") then
  5528. v.BrickColor = MAINRUINCOLOR
  5529. v.Material = "Neon"
  5530. end
  5531. end
  5532. for i, v in pairs(mw1:GetChildren()) do
  5533. if v:IsA("Part") then
  5534. v.Transparency = 0
  5535. v.BrickColor = MAINRUINCOLOR
  5536. v.Material = "Neon"
  5537. end
  5538. end
  5539. for i, v in pairs(m:GetChildren()) do
  5540. if v:IsA("Part") then
  5541. v.BrickColor = BrickColor.new("White")
  5542. v.Material = "Neon"
  5543. end
  5544. end
  5545. for i, v in pairs(m2:GetChildren()) do
  5546. if v:IsA("Part") then
  5547. v.BrickColor = BrickColor.new("White")
  5548. v.Material = "Neon"
  5549. end
  5550. end
  5551. for i, v in pairs(m3:GetChildren()) do
  5552. if v:IsA("Part") then
  5553. v.BrickColor = BrickColor.new("White")
  5554. v.Material = "Neon"
  5555. end
  5556. end
  5557. for i, v in pairs(extrawingmod1:GetChildren()) do
  5558. if v:IsA("Part") then
  5559. v.Transparency = 1
  5560. v.BrickColor = BrickColor.new("White")
  5561. v.Material = "Neon"
  5562. end
  5563. end
  5564. for i, v in pairs(extrawingmod2:GetChildren()) do
  5565. if v:IsA("Part") then
  5566. v.Transparency = 1
  5567. v.BrickColor = BrickColor.new("White")
  5568. v.Material = "Neon"
  5569. end
  5570. end
  5571. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  5572. resetmode()
  5573. end
  5574. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  5575. ModeOfGlitch = 1000000
  5576. storehumanoidWS = 100
  5577. hum.WalkSpeed = 100
  5578. rainbowmode = false
  5579. chaosmode = false
  5580. tl1.Enabled = true
  5581. tl2.Enabled = true
  5582. tl3.Enabled = true
  5583. RecolorTextAndRename("CALAMITY",Color3.new(0.25,0,1),Color3.new(0.5,0,1))
  5584. newTheme("rbxassetid://1359036559",0,1,1)
  5585. MAINRUINCOLOR = BrickColor.new("Bright violet")
  5586. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5587. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5588. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5589. for i, v in pairs(mw2:GetChildren()) do
  5590. if v:IsA("Part") then
  5591. v.BrickColor = MAINRUINCOLOR
  5592. v.Material = "Neon"
  5593. end
  5594. end
  5595. for i, v in pairs(mw1:GetChildren()) do
  5596. if v:IsA("Part") then
  5597. v.Transparency = 0
  5598. v.BrickColor = MAINRUINCOLOR
  5599. v.Material = "Neon"
  5600. end
  5601. end
  5602. for i, v in pairs(m:GetChildren()) do
  5603. if v:IsA("Part") then
  5604. v.Color = Color3.new(0.5,0,1)
  5605. v.Material = "Neon"
  5606. end
  5607. end
  5608. for i, v in pairs(m2:GetChildren()) do
  5609. if v:IsA("Part") then
  5610. v.Color = Color3.new(0.25,0,1)
  5611. v.Material = "Neon"
  5612. end
  5613. end
  5614. for i, v in pairs(m3:GetChildren()) do
  5615. if v:IsA("Part") then
  5616. v.Color = Color3.new(0.45,0,1)
  5617. v.Material = "Neon"
  5618. end
  5619. end
  5620. for i, v in pairs(extrawingmod1:GetChildren()) do
  5621. if v:IsA("Part") then
  5622. v.Transparency = 0.75
  5623. v.Color = Color3.new(0.25,0,1)
  5624. v.Material = "Neon"
  5625. end
  5626. end
  5627. for i, v in pairs(extrawingmod2:GetChildren()) do
  5628. if v:IsA("Part") then
  5629. v.Transparency = 0.75
  5630. v.Color = Color3.new(0.5,0,1)
  5631. v.Material = "Neon"
  5632. end
  5633. end
  5634. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  5635. resetmode()
  5636. end
  5637. if k == "m" and attack == false and ModeOfGlitch == 1000000 and ModeOfGlitch ~= 12345678987654321 then
  5638. newThemeCust("rbxassetid://1504604335",0,1,1)
  5639. attack = true
  5640. hum.WalkSpeed = 0
  5641. MAINRUINCOLOR = BrickColor.new("Royal purple")
  5642. for i = 0, 24, 0.1 do
  5643. swait()
  5644. sphereMK(1,-2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,100)
  5645. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  5646. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  5647. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  5648. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5649. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  5650. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  5651. end
  5652. CameraEnshaking(1,1)
  5653. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5654. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5655. wait(0.55)
  5656. CameraEnshaking(1,2)
  5657. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5658. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5659. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5660. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5661. wait(0.55)
  5662. CameraEnshaking(1,3)
  5663. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5664. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5665. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5666. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5667. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5668. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5669. wait(0.55)
  5670. CameraEnshaking(10,5)
  5671. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5672. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5673. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5674. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5675. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5676. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5677. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5678. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5679. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5680. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5681. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5682. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5683. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5684. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5685. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5686. for i = 0, 49 do
  5687. sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0)
  5688. sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0)
  5689. sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0)
  5690. sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0)
  5691. end
  5692. ModeOfGlitch = 12345678987654321
  5693. storehumanoidWS = 200
  5694. hum.WalkSpeed = 200
  5695. rainbowmode = false
  5696. chaosmode = false
  5697. tl1.Enabled = true
  5698. tl2.Enabled = true
  5699. tl3.Enabled = true
  5700. RecolorTextAndRename("CATASTROPHE",Color3.new(0.5,0,1),Color3.new(0.75,0,1))
  5701. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5702. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5703. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5704. for i, v in pairs(mw2:GetChildren()) do
  5705. if v:IsA("Part") then
  5706. v.BrickColor = MAINRUINCOLOR
  5707. v.Material = "Neon"
  5708. end
  5709. end
  5710. for i, v in pairs(mw1:GetChildren()) do
  5711. if v:IsA("Part") then
  5712. v.Transparency = 0
  5713. v.BrickColor = MAINRUINCOLOR
  5714. v.Material = "Neon"
  5715. end
  5716. end
  5717. for i, v in pairs(m:GetChildren()) do
  5718. if v:IsA("Part") then
  5719. v.Color = Color3.new(0.5,0,1)
  5720. v.Material = "Neon"
  5721. end
  5722. end
  5723. for i, v in pairs(m2:GetChildren()) do
  5724. if v:IsA("Part") then
  5725. v.Color = Color3.new(0.5,0,1)
  5726. v.Material = "Neon"
  5727. end
  5728. end
  5729. for i, v in pairs(m3:GetChildren()) do
  5730. if v:IsA("Part") then
  5731. v.Color = Color3.new(0.5,0,1)
  5732. v.Material = "Neon"
  5733. end
  5734. end
  5735. for i, v in pairs(extrawingmod1:GetChildren()) do
  5736. if v:IsA("Part") then
  5737. v.Transparency = 0
  5738. v.Color = Color3.new(0.5,0,1)
  5739. v.Material = "Neon"
  5740. end
  5741. end
  5742. for i, v in pairs(extrawingmod2:GetChildren()) do
  5743. if v:IsA("Part") then
  5744. v.Transparency = 0
  5745. v.Color = Color3.new(0.5,0,1)
  5746. v.Material = "Neon"
  5747. end
  5748. attack = false
  5749. end
  5750. elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654321 then
  5751. resetmode()
  5752. end
  5753. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 666 then
  5754. newThemeCust("rbxassetid://723652641",0,1,1)
  5755. attack = true
  5756. hum.WalkSpeed = 0
  5757. MAINRUINCOLOR = BrickColor.new("Crimson")
  5758. for i = 0, 24, 0.1 do
  5759. swait()
  5760. sphereMK(1,-2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,100)
  5761. RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1)
  5762. LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1)
  5763. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  5764. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5765. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  5766. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  5767. end
  5768. CameraEnshaking(1,1)
  5769. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5770. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5771. wait(0.55)
  5772. CameraEnshaking(1,2)
  5773. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5774. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5775. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5776. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5777. wait(0.55)
  5778. CameraEnshaking(1,3)
  5779. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5780. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5781. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5782. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5783. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5784. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5785. wait(0.55)
  5786. CameraEnshaking(10,5)
  5787. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5788. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5789. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5790. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5791. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5792. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5793. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5794. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5795. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5796. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5797. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5798. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5799. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5800. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5801. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5802. for i = 0, 49 do
  5803. sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0)
  5804. sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0)
  5805. sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0)
  5806. sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0)
  5807. end
  5808. ModeOfGlitch = 666
  5809. storehumanoidWS = 16
  5810. hum.WalkSpeed = 16
  5811. rainbowmode = false
  5812. chaosmode = false
  5813. tl1.Enabled = true
  5814. tl2.Enabled = true
  5815. tl3.Enabled = true
  5816. RecolorTextAndRename("DeStRuCtIoN",Color3.new(1,0,0),Color3.new(0.75,0,0))
  5817. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5818. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5819. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5820. for i, v in pairs(mw2:GetChildren()) do
  5821. if v:IsA("Part") then
  5822. v.BrickColor = MAINRUINCOLOR
  5823. v.Material = "Neon"
  5824. end
  5825. end
  5826. for i, v in pairs(mw1:GetChildren()) do
  5827. if v:IsA("Part") then
  5828. v.Transparency = 0
  5829. v.BrickColor = MAINRUINCOLOR
  5830. v.Material = "Neon"
  5831. end
  5832. end
  5833. for i, v in pairs(m:GetChildren()) do
  5834. if v:IsA("Part") then
  5835. v.Color = Color3.new(1,0,0)
  5836. v.Material = "Neon"
  5837. end
  5838. end
  5839. for i, v in pairs(m2:GetChildren()) do
  5840. if v:IsA("Part") then
  5841. v.Color = Color3.new(1,0,0)
  5842. v.Material = "Neon"
  5843. end
  5844. end
  5845. for i, v in pairs(m3:GetChildren()) do
  5846. if v:IsA("Part") then
  5847. v.Color = Color3.new(1,0,0)
  5848. v.Material = "Neon"
  5849. end
  5850. end
  5851. for i, v in pairs(extrawingmod1:GetChildren()) do
  5852. if v:IsA("Part") then
  5853. v.Transparency = 0
  5854. v.Color = Color3.new(1,0,0)
  5855. v.Material = "Neon"
  5856. end
  5857. end
  5858. for i, v in pairs(extrawingmod2:GetChildren()) do
  5859. if v:IsA("Part") then
  5860. v.Transparency = 0
  5861. v.Color = Color3.new(1,0,0)
  5862. v.Material = "Neon"
  5863. end
  5864. attack = false
  5865. end
  5866. elseif k == "b" and attack == false and ModeOfGlitch == 666 then
  5867. resetmode()
  5868. end
  5869. if k == "l" and toggleTag == false then
  5870. toggleTag = true
  5871. text.TextTransparency = 0
  5872. text.TextStrokeTransparency = 0
  5873. elseif k == "l" and toggleTag == true then
  5874. toggleTag = false
  5875. text.TextTransparency = 1
  5876. text.TextStrokeTransparency = 1
  5877. end
  5878. if k == "z" and attack == false and ModeOfGlitch == 1 then
  5879. ExtinctiveHeartbreak()
  5880. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  5881. PureBomb()
  5882. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  5883. scattercorrupt()
  5884. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  5885. ChaosGroundStrike()
  5886. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  5887. Judgement()
  5888. elseif k == "f" and attack == false and ModeOfGlitch == 5 then
  5889. HolyBarrier()
  5890. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  5891. Starfall()
  5892. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  5893. yinyangi()
  5894. elseif k == "x" and attack == false and ModeOfGlitch == 6 then
  5895. MeteorStrike()
  5896. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  5897. Wip()
  5898. elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654321 then
  5899. StarfallEX()
  5900. elseif k == "c" and attack == false and ModeOfGlitch == 12345678987654321 then
  5901. FinalCalam()
  5902. end
  5903. if k == "n" and attack == false then
  5904. Blink()
  5905. elseif k == "x" and attack == false and ModeOfGlitch == 1000000 then
  5906. StarDivision()
  5907. end
  5908. if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then
  5909. UniversalCollapse()
  5910. end
  5911. if k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed < 200 then
  5912. hum.WalkSpeed = 16 + 184
  5913. elseif k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed == 200 then
  5914. hum.WalkSpeed = 200 - 184
  5915. end
  5916. if k == "x" and attack == false and ModeOfGlitch == 12345678987654321 then
  5917. UniversalSpark()
  5918. end
  5919. if k == "z" and attack == false and ModeOfGlitch == 666 then
  5920. StarDivision()
  5921. end
  5922. if k == "x" and attack == false and ModeOfGlitch == 666 then
  5923. Starfall()
  5924. end
  5925. if k == "m" and attack == false and ModeOfGlitch == 4 then
  5926. ChaosBegone()
  5927. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == false then
  5928. THEHELLITSTHATBIG()
  5929. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == true then
  5930. removelol()
  5931. end
  5932. end)
  5933. mouse.KeyUp:connect(function(k)
  5934. if k == "f" and ModeOfGlitch == 5 then
  5935. shielding = false
  5936. end
  5937. if k == "z" and ModeOfGlitch == 5 then
  5938. judgement = false
  5939. end
  5940. end)
  5941. coroutine.resume(coroutine.create(function()
  5942. while true do
  5943. swait(2)
  5944. if rainbowmode == true or ModeOfGlitch == 6 then
  5945. if eff == true then
  5946. sphereMK(5,0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),-6,math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),1.5,1.5,10,-0.015,MAINRUINCOLOR,0)
  5947. end
  5948. end
  5949. end
  5950. end))
  5951. coroutine.resume(coroutine.create(function()
  5952. while true do
  5953. swait(2)
  5954. if shielding == true then
  5955. end
  5956. end
  5957. end))
  5958.  
  5959.  
  5960. coroutine.resume(coroutine.create(function()
  5961. while true do
  5962. if ModeOfGlitch == 1000000 then
  5963. swait(0.5)
  5964. end
  5965. swait()
  5966. if ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  5967. sphereMK(5,0.5,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-15,15)),math.rad(math.random(-15,15)),0),1,1,15,-0.01,MAINRUINCOLOR,0)
  5968. end
  5969. if ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  5970. sphereMK(5,math.random(1,2),"Add",root.CFrame*CFrame.new(math.random(-75,75),-25,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),0),1,1,50,-0.01,MAINRUINCOLOR,0)
  5971. end
  5972. end
  5973. end))
  5974.  
  5975.  
  5976. coroutine.resume(coroutine.create(function()
  5977. while true do
  5978. swait(2)
  5979. if chaosmode == true then
  5980. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  5981. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  5982. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  5983. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
  5984. for i, v in pairs(mw1:GetChildren()) do
  5985. if v:IsA("Part") then
  5986. v.Transparency = 0.75
  5987. v.BrickColor = BrickColor.random()
  5988. v.Material = "Neon"
  5989. end
  5990. end
  5991. for i, v in pairs(m2:GetChildren()) do
  5992. if v:IsA("Part") then
  5993. v.BrickColor = BrickColor.random()
  5994. v.Material = "Neon"
  5995. end
  5996. end
  5997. for i, v in pairs(secondchar:GetChildren()) do
  5998. if v:IsA("Part") then
  5999. v.BrickColor = BrickColor.random()
  6000. v.Material = "Neon"
  6001. end
  6002. end
  6003. end
  6004. end
  6005. end))
  6006. Humanoid.Name = "STARGLITCHER"
  6007. Humanoid.MaxHealth = math.huge
  6008. Humanoid.Health = math.huge
  6009. Instance.new("ForceField",char).Visible = false
  6010. Humanoid.Animator.Parent = nil
  6011. idleanim=.4
  6012. while true do
  6013. if rainbowmode == false then
  6014. tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6015. tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6016. tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6017. for i, v in pairs(secondchar:GetChildren()) do
  6018. if v:IsA("Part") then
  6019. v.BrickColor = MAINRUINCOLOR
  6020. v.Material = "Neon"
  6021. end
  6022. end
  6023. if chaosmode == false then
  6024. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6025. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6026. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6027. for i, v in pairs(secondchar:GetChildren()) do
  6028. if v:IsA("Part") then
  6029. v.BrickColor = MAINRUINCOLOR
  6030. v.Material = "Neon"
  6031. end
  6032. end
  6033. end
  6034. end
  6035. if rainbowmode == true then
  6036. RecolorTextAndRename("RAINBOW",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500))
  6037. MAINRUINCOLOR = BrickColor.new("White")
  6038. tr1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6039. tr2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6040. tr3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6041. tl1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6042. tl2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6043. tl3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6044. for i, v in pairs(m:GetChildren()) do
  6045. if v:IsA("Part") then
  6046. v.Color = Color3.new(r/255,g/255,b/255)
  6047. end
  6048. end
  6049. for i, v in pairs(m2:GetChildren()) do
  6050. if v:IsA("Part") then
  6051. v.Color = Color3.new(r/255,g/255,b/255)
  6052. end
  6053. end
  6054. for i, v in pairs(secondchar:GetChildren()) do
  6055. if v:IsA("Part") then
  6056. v.Color = Color3.new(r/255,g/255,b/255)
  6057. v.Material = "Neon"
  6058. end
  6059. end
  6060. for i, v in pairs(m3:GetChildren()) do
  6061. if v:IsA("Part") then
  6062. v.Color = Color3.new(r/255,g/255,b/255)
  6063. end
  6064. end
  6065. for i, v in pairs(mw1:GetChildren()) do
  6066. if v:IsA("Part") then
  6067. v.Color = Color3.new(r/255,g/255,b/255)
  6068. v.Material = "Neon"
  6069. end
  6070. end
  6071. for i, v in pairs(mw2:GetChildren()) do
  6072. if v:IsA("Part") then
  6073. v.Color = Color3.new(r/255,g/255,b/255)
  6074. v.Material = "Neon"
  6075. end
  6076. end
  6077. end
  6078. CameraManager()
  6079. swait()
  6080. lwing1weld.C1=clerp(lwing1weld.C1,cf(2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(12.5 + 5 * math.cos(sine / 32))),.3)
  6081. lwing2weld.C1=clerp(lwing2weld.C1,cf(3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(25 + 7.5 * math.cos(sine / 32))),.3)
  6082. lwing3weld.C1=clerp(lwing3weld.C1,cf(3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(37.5 + 10 * math.cos(sine / 32))),.3)
  6083. lwing4weld.C1=clerp(lwing4weld.C1,cf(4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(50 + 12.5 * math.cos(sine / 32))),.3)
  6084. lwing5weld.C1=clerp(lwing5weld.C1,cf(5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(62.5 + 15 * math.cos(sine / 32))),.3)
  6085. lwing6weld.C1=clerp(lwing6weld.C1,cf(6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(75 + 17.5 * math.cos(sine / 32))),.3)
  6086.  
  6087. if attack == false and ActiveGia == false then
  6088. torsweld.C1=clerp(torsweld.C1,cf(2,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6089. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  6090. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  6091. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6092. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6093. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  6094. elseif attack == false and ActiveGia == true then
  6095. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  6096. torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025)
  6097. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(20)),0.025)
  6098. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),0.025)
  6099. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6100. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6101. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  6102. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6103. torsweld.C1=clerp(torsweld.C1,cf(0,-25 + 0.5 * math.cos(sine / 32) ,-8)*angles(math.rad(20),math.rad(0),math.rad(0)),.025)
  6104. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(20)),0.025)
  6105. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),0.025)
  6106. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,1.5*8,0.6*8)*angles(math.rad(20),math.rad(0),math.rad(0)),0.025)
  6107. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0.11*8)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  6108. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(5),math.rad(0),math.rad(0)),0.025)
  6109. end
  6110. end
  6111.  
  6112. rwing1weld.C1=clerp(rwing1weld.C1,cf(-2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(-12.5 - 5 * math.cos(sine / 32))),.3)
  6113. rwing2weld.C1=clerp(rwing2weld.C1,cf(-3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(-25 - 7.5 * math.cos(sine / 32))),.3)
  6114. rwing3weld.C1=clerp(rwing3weld.C1,cf(-3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(-37.5 - 10 * math.cos(sine / 32))),.3)
  6115. rwing4weld.C1=clerp(rwing4weld.C1,cf(-4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(-50 - 12.5 * math.cos(sine / 32))),.3)
  6116. rwing5weld.C1=clerp(rwing5weld.C1,cf(-5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(-62.5 - 15 * math.cos(sine / 32))),.3)
  6117. rwing6weld.C1=clerp(rwing6weld.C1,cf(-6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(-75 - 17.5 * math.cos(sine / 32))),.3)
  6118. sine = sine + change
  6119. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  6120. local velderp=RootPart.Velocity.y
  6121. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  6122. if equipped==true or equipped==false then
  6123. if attack==false then
  6124. idle=idle+1
  6125. else
  6126. idle=0
  6127. end
  6128. if idle>=500 then
  6129. if attack==false then
  6130. --Sheath()
  6131. end
  6132. end
  6133. if RootPart.Velocity.y > 1 and hitfloor==nil then
  6134. Anim="Jump"
  6135. if attack==false then
  6136. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  6137. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  6138. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  6139. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  6140. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
  6141. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
  6142. end
  6143. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  6144. Anim="Fall"
  6145. if attack==false then
  6146. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
  6147. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
  6148. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6149. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6150. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1)
  6151. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
  6152. end
  6153. elseif torvel<1 and hitfloor~=nil then
  6154. Anim="Idle"
  6155. if attack==false then
  6156. if ModeOfGlitch == 1 then
  6157. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  6158. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  6159. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  6160. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2.5 * math.cos(sine / 32)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(-20 - 5 * math.cos(sine / 0.465))),.1)
  6161. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1)
  6162. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6163.  
  6164. elseif ModeOfGlitch == 666 then
  6165. RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1)
  6166. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1)
  6167. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1)
  6168. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6169. RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1)
  6170. LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1)
  6171.  
  6172. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
  6173. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  6174. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  6175. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  6176. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  6177. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  6178. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  6179.  
  6180. elseif ModeOfGlitch == 3 then
  6181. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 - 1 * math.cos(sine / 34))),.1)
  6182. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(20),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  6183. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-20)),.1)
  6184. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1)
  6185. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1)
  6186. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  6187.  
  6188. elseif ModeOfGlitch == 4 then
  6189. RH.C0=clerp(RH.C0,cf(1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(20)),.1)
  6190. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-20)),.1)
  6191. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.025 * math.cos(sine / 32))*angles(math.rad(20 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1)
  6192. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1)
  6193. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1)
  6194. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1)
  6195.  
  6196. elseif ModeOfGlitch == 5 then
  6197. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  6198. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  6199. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  6200. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1)
  6201. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(-30)),.1)
  6202. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1)
  6203.  
  6204. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  6205. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  6206. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  6207. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  6208. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  6209. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(20 + 2.5 * math.cos(sine / 28))),.1)
  6210. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-20 - 2.5 * math.cos(sine / 28))),.1)
  6211.  
  6212. elseif ModeOfGlitch == 12345678987654321 then
  6213. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1)
  6214. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1)
  6215. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-40)),.1)
  6216. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1)
  6217. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
  6218. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
  6219. end
  6220. end
  6221. elseif torvel>2 and torvel<50 and hitfloor~=nil then
  6222. Anim="Walk"
  6223. if attack==false then
  6224. if ModeOfGlitch == 1 then
  6225. RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  6226. LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  6227. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1)
  6228. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 5 * math.cos(sine / 0.325)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 + 5 * math.cos(sine / 8))),.1)
  6229. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1)
  6230. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6231.  
  6232. elseif ModeOfGlitch == 4 or ModeOfGlitch == 666 then
  6233. RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 8))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 12)),math.rad(5 + 25 * math.cos(sine / 12))),.1)
  6234. LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 8))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 12)),math.rad(-5 + 25 * math.cos(sine / 12))),.1)
  6235. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 8))*angles(math.rad(12.5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 12))),.1)
  6236. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1)
  6237. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 - 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1)
  6238. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1)
  6239.  
  6240. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 or ModeOfGlitch ~= 666 then
  6241. RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  6242. LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1)
  6243. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1)
  6244. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 5 * math.cos(sine / 8))),.1)
  6245. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1)
  6246. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 45 * math.cos(sine / 8)),math.rad(0),math.rad(-10 + 10 * math.cos(sine / 4))),.1)
  6247. end
  6248. end
  6249. elseif torvel>=22 and hitfloor~=nil then
  6250. Anim="Run"
  6251. if attack==false then
  6252. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  6253. RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  6254. LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
  6255. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + 0.125 * math.cos(sine / 3))*angles(math.rad(20),math.rad(0),math.rad(0 - 15 * math.cos(sine / 6))),.1)
  6256. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 15 * math.cos(sine / 6))),.1)
  6257. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 155 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1)
  6258. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 155 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1)
  6259. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6260. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2)
  6261. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.2)
  6262. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2)
  6263. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  6264. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30 + 2.5 * math.cos(sine / 28))),.2)
  6265. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30 - 2.5 * math.cos(sine / 28))),.2)
  6266. end
  6267. end
  6268. end
  6269. end
  6270. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement