Advertisement
lxUmbrielxl

FE convert starglitcher

Apr 24th, 2019
155
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 = game:GetService("Players").LocalPlayer
  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. mouse=Player:GetMouse()
  1192. --save shoulders
  1193. RSH, LSH=nil, nil
  1194. --welds
  1195. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1196. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1197. LH=Torso["Left Hip"]
  1198. RH=Torso["Right Hip"]
  1199. TorsoColor=Torso.BrickColor
  1200. function NoOutline(Part)
  1201. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1202. end
  1203. player=Player
  1204. ch=Character
  1205. RSH=ch.Torso["Right Shoulder"]
  1206. LSH=ch.Torso["Left Shoulder"]
  1207. --
  1208. RSH.Parent=nil
  1209. LSH.Parent=nil
  1210. --
  1211. RW.Name="Right Shoulder"
  1212. RW.Part0=ch.Torso
  1213. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1214. RW.C1=cf(0, 0.5, 0)
  1215. RW.Part1=ch["Right Arm"]
  1216. RW.Parent=ch.Torso
  1217. --
  1218. LW.Name="Left Shoulder"
  1219. LW.Part0=ch.Torso
  1220. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1221. LW.C1=cf(0, 0.5, 0)
  1222. LW.Part1=ch["Left Arm"]
  1223. LW.Parent=ch.Torso
  1224.  
  1225. local Stats=Instance.new("BoolValue")
  1226. Stats.Name="Stats"
  1227. Stats.Parent=Character
  1228. local Atk=Instance.new("NumberValue")
  1229. Atk.Name="Damage"
  1230. Atk.Parent=Stats
  1231. Atk.Value=1
  1232. local Def=Instance.new("NumberValue")
  1233. Def.Name="Defense"
  1234. Def.Parent=Stats
  1235. Def.Value=1
  1236. local Speed=Instance.new("NumberValue")
  1237. Speed.Name="Speed"
  1238. Speed.Parent=Stats
  1239. Speed.Value=1
  1240. local Mvmt=Instance.new("NumberValue")
  1241. Mvmt.Name="Movement"
  1242. Mvmt.Parent=Stats
  1243. Mvmt.Value=1
  1244.  
  1245. local donum=0
  1246.  
  1247.  
  1248. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1249. local fp=it("Part")
  1250. fp.formFactor=formfactor
  1251. fp.Parent=parent
  1252. fp.Reflectance=reflectance
  1253. fp.Transparency=transparency
  1254. fp.CanCollide=false
  1255. fp.Locked=true
  1256. fp.BrickColor=brickcolor
  1257. fp.Name=name
  1258. fp.Size=size
  1259. fp.Position=Torso.Position
  1260. NoOutline(fp)
  1261. fp.Material="SmoothPlastic"
  1262. fp:BreakJoints()
  1263. return fp
  1264. end
  1265.  
  1266. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1267. local mesh=it(Mesh)
  1268. mesh.Parent=part
  1269. if Mesh=="SpecialMesh" then
  1270. mesh.MeshType=meshtype
  1271. if meshid~="nil" then
  1272. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1273. end
  1274. end
  1275. mesh.Offset=offset
  1276. mesh.Scale=scale
  1277. return mesh
  1278. end
  1279.  
  1280. function weld(parent,part0,part1,c0)
  1281. local weld=it("Weld")
  1282. weld.Parent=parent
  1283. weld.Part0=part0
  1284. weld.Part1=part1
  1285. weld.C0=c0
  1286. return weld
  1287. end
  1288.  
  1289. local Color1=Torso.BrickColor
  1290.  
  1291. local bodvel=Instance.new("BodyVelocity")
  1292. local bg=Instance.new("BodyGyro")
  1293.  
  1294. function swait(num)
  1295. if num==0 or num==nil then
  1296. game:service'RunService'.Stepped:wait(0)
  1297. else
  1298. for i=0,num do
  1299. game:service'RunService'.Stepped:wait(0)
  1300. end
  1301. end
  1302. end
  1303.  
  1304. -------- RAINBOW LEAVE IT TO ME
  1305. local r = 255
  1306. local g = 0
  1307. local b = 0
  1308. coroutine.resume(coroutine.create(function()
  1309. while wait() do
  1310. for i = 0, 254/5 do
  1311. swait()
  1312. g = g + 5
  1313. end
  1314. for i = 0, 254/5 do
  1315. swait()
  1316. r = r - 5
  1317. end
  1318. for i = 0, 254/5 do
  1319. swait()
  1320. b = b + 5
  1321. end
  1322. for i = 0, 254/5 do
  1323. swait()
  1324. g = g - 5
  1325. end
  1326. for i = 0, 254/5 do
  1327. swait()
  1328. r = r + 5
  1329. end
  1330. for i = 0, 254/5 do
  1331. swait()
  1332. b = b - 5
  1333. end
  1334. end
  1335. end))
  1336.  
  1337.  
  1338. so = function(id,par,vol,pit)
  1339. coroutine.resume(coroutine.create(function()
  1340. local sou = Instance.new("Sound",par or workspace)
  1341. sou.Volume=vol
  1342. sou.Pitch=pit or 1
  1343. sou.SoundId=id
  1344. swait()
  1345. sou:play()
  1346. game:GetService("Debris"):AddItem(sou,6)
  1347. end))
  1348. end
  1349.  
  1350. function clerp(a,b,t)
  1351. local qa = {QuaternionFromCFrame(a)}
  1352. local qb = {QuaternionFromCFrame(b)}
  1353. local ax, ay, az = a.x, a.y, a.z
  1354. local bx, by, bz = b.x, b.y, b.z
  1355. local _t = 1-t
  1356. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1357. end
  1358.  
  1359. function QuaternionFromCFrame(cf)
  1360. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1361. local trace = m00 + m11 + m22
  1362. if trace > 0 then
  1363. local s = math.sqrt(1 + trace)
  1364. local recip = 0.5/s
  1365. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1366. else
  1367. local i = 0
  1368. if m11 > m00 then
  1369. i = 1
  1370. end
  1371. if m22 > (i == 0 and m00 or m11) then
  1372. i = 2
  1373. end
  1374. if i == 0 then
  1375. local s = math.sqrt(m00-m11-m22+1)
  1376. local recip = 0.5/s
  1377. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1378. elseif i == 1 then
  1379. local s = math.sqrt(m11-m22-m00+1)
  1380. local recip = 0.5/s
  1381. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1382. elseif i == 2 then
  1383. local s = math.sqrt(m22-m00-m11+1)
  1384. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1385. end
  1386. end
  1387. end
  1388.  
  1389. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1390. local xs, ys, zs = x + x, y + y, z + z
  1391. local wx, wy, wz = w*xs, w*ys, w*zs
  1392. local xx = x*xs
  1393. local xy = x*ys
  1394. local xz = x*zs
  1395. local yy = y*ys
  1396. local yz = y*zs
  1397. local zz = z*zs
  1398. 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))
  1399. end
  1400.  
  1401. function QuaternionSlerp(a, b, t)
  1402. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1403. local startInterp, finishInterp;
  1404. if cosTheta >= 0.0001 then
  1405. if (1 - cosTheta) > 0.0001 then
  1406. local theta = math.acos(cosTheta)
  1407. local invSinTheta = 1/math.sin(theta)
  1408. startInterp = math.sin((1-t)*theta)*invSinTheta
  1409. finishInterp = math.sin(t*theta)*invSinTheta
  1410. else
  1411. startInterp = 1-t
  1412. finishInterp = t
  1413. end
  1414. else
  1415. if (1+cosTheta) > 0.0001 then
  1416. local theta = math.acos(-cosTheta)
  1417. local invSinTheta = 1/math.sin(theta)
  1418. startInterp = math.sin((t-1)*theta)*invSinTheta
  1419. finishInterp = math.sin(t*theta)*invSinTheta
  1420. else
  1421. startInterp = t-1
  1422. finishInterp = t
  1423. end
  1424. end
  1425. 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
  1426. end
  1427.  
  1428. local function CFrameFromTopBack(at, top, back)
  1429. local right = top:Cross(back)
  1430. return CFrame.new(at.x, at.y, at.z,
  1431. right.x, top.x, back.x,
  1432. right.y, top.y, back.y,
  1433. right.z, top.z, back.z)
  1434. end
  1435.  
  1436. function Triangle(a, b, c)
  1437. local edg1 = (c-a):Dot((b-a).unit)
  1438. local edg2 = (a-b):Dot((c-b).unit)
  1439. local edg3 = (b-c):Dot((a-c).unit)
  1440. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1441. a, b, c = a, b, c
  1442. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1443. a, b, c = b, c, a
  1444. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1445. a, b, c = c, a, b
  1446. else
  1447. assert(false, "unreachable")
  1448. end
  1449.  
  1450. local len1 = (c-a):Dot((b-a).unit)
  1451. local len2 = (b-a).magnitude - len1
  1452. local width = (a + (b-a).unit*len1 - c).magnitude
  1453.  
  1454. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1455.  
  1456. local list = {}
  1457.  
  1458. if len1 > 0.01 then
  1459. local w1 = Instance.new('WedgePart', m)
  1460. game:GetService("Debris"):AddItem(w1,5)
  1461. w1.Material = "SmoothPlastic"
  1462. w1.FormFactor = 'Custom'
  1463. w1.BrickColor = BrickColor.new("Really red")
  1464. w1.Transparency = 0
  1465. w1.Reflectance = 0
  1466. w1.Material = "SmoothPlastic"
  1467. w1.CanCollide = false
  1468. local l1 = Instance.new("PointLight",w1)
  1469. l1.Color = Color3.new(170,0,0)
  1470. NoOutline(w1)
  1471. local sz = Vector3.new(0.2, width, len1)
  1472. w1.Size = sz
  1473. local sp = Instance.new("SpecialMesh",w1)
  1474. sp.MeshType = "Wedge"
  1475. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1476. w1:BreakJoints()
  1477. w1.Anchored = true
  1478. w1.Parent = workspace
  1479. w1.Transparency = 0.7
  1480. table.insert(Effects,{w1,"Disappear",.01})
  1481. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1482. table.insert(list,w1)
  1483. end
  1484.  
  1485. if len2 > 0.01 then
  1486. local w2 = Instance.new('WedgePart', m)
  1487. game:GetService("Debris"):AddItem(w2,5)
  1488. w2.Material = "SmoothPlastic"
  1489. w2.FormFactor = 'Custom'
  1490. w2.BrickColor = BrickColor.new("Really red")
  1491. w2.Transparency = 0
  1492. w2.Reflectance = 0
  1493. w2.Material = "SmoothPlastic"
  1494. w2.CanCollide = false
  1495. local l2 = Instance.new("PointLight",w2)
  1496. l2.Color = Color3.new(170,0,0)
  1497. NoOutline(w2)
  1498. local sz = Vector3.new(0.2, width, len2)
  1499. w2.Size = sz
  1500. local sp = Instance.new("SpecialMesh",w2)
  1501. sp.MeshType = "Wedge"
  1502. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1503. w2:BreakJoints()
  1504. w2.Anchored = true
  1505. w2.Parent = workspace
  1506. w2.Transparency = 0.7
  1507. table.insert(Effects,{w2,"Disappear",.01})
  1508. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1509. table.insert(list,w2)
  1510. end
  1511. return unpack(list)
  1512. end
  1513.  
  1514.  
  1515. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1516. if hit.Parent == nil then
  1517. return
  1518. end
  1519. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1520. for _, v in pairs(hit.Parent:children()) do
  1521. if v:IsA("Humanoid") then
  1522. h = v
  1523. end
  1524. end
  1525. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1526. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1527. return
  1528. end
  1529. local c = Create("ObjectValue")({
  1530. Name = "creator",
  1531. Value = game:service("Players").LocalPlayer,
  1532. Parent = h
  1533. })
  1534. game:GetService("Debris"):AddItem(c, 0.5)
  1535. if HitSound ~= nil and HitPitch ~= nil then
  1536. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1537. end
  1538. local Damage = math.random(minim, maxim)
  1539. local blocked = false
  1540. local block = hit.Parent:findFirstChild("Block")
  1541. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1542. blocked = true
  1543. block.Value = block.Value - 1
  1544. print(block.Value)
  1545. end
  1546. if blocked == false then
  1547. HitHealth = h.Health
  1548. h.Health = h.Health - Damage
  1549. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1550. print("gained kill")
  1551. end
  1552. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1553. else
  1554. h.Health = h.Health - Damage / 2
  1555. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1556. end
  1557. if Type == "Knockdown" then
  1558. local hum = hit.Parent.Humanoid
  1559. hum.PlatformStand = true
  1560. coroutine.resume(coroutine.create(function(HHumanoid)
  1561. swait(1)
  1562. HHumanoid.PlatformStand = false
  1563. end), hum)
  1564. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1565. local bodvol = Create("BodyVelocity")({
  1566. velocity = angle * knockback,
  1567. P = 5000,
  1568. maxForce = Vector3.new(8000, 8000, 8000),
  1569. Parent = hit
  1570. })
  1571. local rl = Create("BodyAngularVelocity")({
  1572. P = 3000,
  1573. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1574. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1575. Parent = hit
  1576. })
  1577. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1578. game:GetService("Debris"):AddItem(rl, 0.5)
  1579. elseif Type == "Normal" then
  1580. local vp = Create("BodyVelocity")({
  1581. P = 500,
  1582. maxForce = Vector3.new(math.huge, 0, math.huge),
  1583. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1584. })
  1585. if knockback > 0 then
  1586. vp.Parent = hit.Parent.Head
  1587. end
  1588. game:GetService("Debris"):AddItem(vp, 0.5)
  1589. elseif Type == "Up" then
  1590. local bodyVelocity = Create("BodyVelocity")({
  1591. velocity = Vector3.new(0, 20, 0),
  1592. P = 5000,
  1593. maxForce = Vector3.new(8000, 8000, 8000),
  1594. Parent = hit
  1595. })
  1596. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1597. local bodyVelocity = Create("BodyVelocity")({
  1598. velocity = Vector3.new(0, 20, 0),
  1599. P = 5000,
  1600. maxForce = Vector3.new(8000, 8000, 8000),
  1601. Parent = hit
  1602. })
  1603. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1604. elseif Type == "Leech" then
  1605. local hum = hit.Parent.Humanoid
  1606. if hum ~= nil then
  1607. for i = 0, 2 do
  1608. 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)
  1609. end
  1610. Humanoid.Health = Humanoid.Health + 10
  1611. end
  1612. elseif Type == "UpKnock" then
  1613. local hum = hit.Parent.Humanoid
  1614. hum.PlatformStand = true
  1615. if hum ~= nil then
  1616. hitr = true
  1617. end
  1618. coroutine.resume(coroutine.create(function(HHumanoid)
  1619. swait(5)
  1620. HHumanoid.PlatformStand = false
  1621. hitr = false
  1622. end), hum)
  1623. local bodyVelocity = Create("BodyVelocity")({
  1624. velocity = Vector3.new(0, 20, 0),
  1625. P = 5000,
  1626. maxForce = Vector3.new(8000, 8000, 8000),
  1627. Parent = hit
  1628. })
  1629. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1630. local bodyVelocity = Create("BodyVelocity")({
  1631. velocity = Vector3.new(0, 20, 0),
  1632. P = 5000,
  1633. maxForce = Vector3.new(8000, 8000, 8000),
  1634. Parent = hit
  1635. })
  1636. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1637. elseif Type == "Snare" then
  1638. local bp = Create("BodyPosition")({
  1639. P = 2000,
  1640. D = 100,
  1641. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1642. position = hit.Parent.Torso.Position,
  1643. Parent = hit.Parent.Torso
  1644. })
  1645. game:GetService("Debris"):AddItem(bp, 1)
  1646. elseif Type == "Slashnare" then
  1647. 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)
  1648. for i = 1, math.random(4, 5) do
  1649. 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)
  1650. end
  1651. local bp = Create("BodyPosition")({
  1652. P = 2000,
  1653. D = 100,
  1654. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1655. position = hit.Parent.Torso.Position,
  1656. Parent = hit.Parent.Torso
  1657. })
  1658. game:GetService("Debris"):AddItem(bp, 1)
  1659. elseif Type == "Spike" then
  1660. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1661. local bp = Create("BodyPosition")({
  1662. P = 2000,
  1663. D = 100,
  1664. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1665. position = hit.Parent.Torso.Position,
  1666. Parent = hit.Parent.Torso
  1667. })
  1668. game:GetService("Debris"):AddItem(bp, 1)
  1669. elseif Type == "Freeze" then
  1670. local BodPos = Create("BodyPosition")({
  1671. P = 50000,
  1672. D = 1000,
  1673. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1674. position = hit.Parent.Torso.Position,
  1675. Parent = hit.Parent.Torso
  1676. })
  1677. local BodGy = Create("BodyGyro")({
  1678. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1679. P = 20000,
  1680. Parent = hit.Parent.Torso,
  1681. cframe = hit.Parent.Torso.CFrame
  1682. })
  1683. hit.Parent.Torso.Anchored = true
  1684. coroutine.resume(coroutine.create(function(Part)
  1685. swait(1.5)
  1686. Part.Anchored = false
  1687. end), hit.Parent.Torso)
  1688. game:GetService("Debris"):AddItem(BodPos, 3)
  1689. game:GetService("Debris"):AddItem(BodGy, 3)
  1690. end
  1691. local debounce = Create("BoolValue")({
  1692. Name = "DebounceHit",
  1693. Parent = hit.Parent,
  1694. Value = true
  1695. })
  1696. game:GetService("Debris"):AddItem(debounce, Delay)
  1697. c = Instance.new("ObjectValue")
  1698. c.Name = "creator"
  1699. c.Value = Player
  1700. c.Parent = h
  1701. game:GetService("Debris"):AddItem(c, 0.5)
  1702. end
  1703. end
  1704. function ShowDamage(Pos, Text, Time, Color)
  1705. local Rate = 0.03333333333333333
  1706. local Pos = Pos or Vector3.new(0, 0, 0)
  1707. local Text = Text or ""
  1708. local Time = Time or 2
  1709. local Color = Color or Color3.new(1, 0, 1)
  1710. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1711. EffectPart.Anchored = true
  1712. local BillboardGui = Create("BillboardGui")({
  1713. Size = UDim2.new(3, 0, 3, 0),
  1714. Adornee = EffectPart,
  1715. Parent = EffectPart
  1716. })
  1717. local TextLabel = Create("TextLabel")({
  1718. BackgroundTransparency = 1,
  1719. Size = UDim2.new(1, 0, 1, 0),
  1720. Text = Text,
  1721. TextColor3 = Color,
  1722. TextScaled = true,
  1723. Font = Enum.Font.ArialBold,
  1724. Parent = BillboardGui
  1725. })
  1726. game.Debris:AddItem(EffectPart, Time + 0.1)
  1727. EffectPart.Parent = game:GetService("Workspace")
  1728. delay(0, function()
  1729. local Frames = Time / Rate
  1730. for Frame = 1, Frames do
  1731. wait(Rate)
  1732. local Percent = Frame / Frames
  1733. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1734. TextLabel.TextTransparency = Percent
  1735. end
  1736. if EffectPart and EffectPart.Parent then
  1737. EffectPart:Destroy()
  1738. end
  1739. end)
  1740. end
  1741. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1742. for _, c in pairs(workspace:children()) do
  1743. local hum = c:findFirstChildOfClass("Humanoid")
  1744. if hum ~= nil then
  1745. local head = c:findFirstChild("Head")
  1746. if head ~= nil then
  1747. local targ = head.Position - Part.Position
  1748. local mag = targ.magnitude
  1749. if magni >= mag and c.Name ~= Player.Name then
  1750. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1751. end
  1752. end
  1753. end
  1754. end
  1755. end
  1756.  
  1757. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1758. for _, c in pairs(workspace:children()) do
  1759. local hum = c:findFirstChild("Humanoid")
  1760. if hum ~= nil then
  1761. local head = c:findFirstChild("Torso")
  1762. if head ~= nil then
  1763. local targ = head.Position - Part.Position
  1764. local mag = targ.magnitude
  1765. if magni >= mag and c.Name ~= Player.Name then
  1766. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1767. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1768. end
  1769. end
  1770. end
  1771. end
  1772. end
  1773.  
  1774. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1775. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1776. end
  1777.  
  1778. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1779. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1780. prt.Anchored=true
  1781. prt.CFrame=cframe
  1782. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1783. --http://www.roblox.com/asset/?id=4770560
  1784. game:GetService("Debris"):AddItem(prt,2)
  1785. CF=prt.CFrame
  1786. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1787. for i=0,1,0.2 do
  1788. wait()
  1789. Part.CFrame=CF*cf(0,0,-0.4)
  1790. end
  1791. for i=0,1,delay do
  1792. wait()
  1793. --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)
  1794. Mesh.Scale=Mesh.Scale
  1795. end
  1796. for i=0,1,0.1 do
  1797. wait()
  1798. Part.Transparency=i
  1799. end
  1800. Part.Parent=nil
  1801. end),prt,msh,CF)
  1802. end
  1803.  
  1804. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1805. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1806. prt.Anchored=true
  1807. prt.Material = "Neon"
  1808. prt.CFrame=cframe
  1809. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1810. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1811. game:GetService("Debris"):AddItem(prt,5)
  1812. coroutine.resume(coroutine.create(function(Part,Mesh)
  1813. for i=0,1,delay do
  1814. swait()
  1815. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1816. Part.Transparency=i
  1817. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1818. end
  1819. Part.Parent=nil
  1820. end),prt,msh)
  1821. end
  1822.  
  1823. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1824. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1825. prt.Anchored=true
  1826. prt.Material = "Neon"
  1827. prt.CFrame=cframe
  1828. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1829. game:GetService("Debris"):AddItem(prt,5)
  1830. coroutine.resume(coroutine.create(function(Part,Mesh)
  1831. local rtype = rottype
  1832. for i=0,1,delay do
  1833. swait()
  1834. if rtype == 1 then
  1835. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1836. elseif rtype == 2 then
  1837. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1838. end
  1839. Part.Transparency=i
  1840. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1841. end
  1842. Part.Parent=nil
  1843. end),prt,msh)
  1844. end
  1845.  
  1846. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1847. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1848. prt.Anchored=true
  1849. prt.CFrame=cframe
  1850. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1851. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1852. game:GetService("Debris"):AddItem(prt,5)
  1853. coroutine.resume(coroutine.create(function(Part,Mesh)
  1854. for i=0,1,delay do
  1855. wait()
  1856. Part.Transparency=i
  1857. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1858. end
  1859. Part.Parent=nil
  1860. end),prt,msh)
  1861. end
  1862.  
  1863. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1864. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1865. prt.Anchored=true
  1866. prt.Material = "Neon"
  1867. prt.CFrame=cframe
  1868. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1869. game:GetService("Debris"):AddItem(prt,5)
  1870. coroutine.resume(coroutine.create(function(Part,Mesh)
  1871. local rtype = rottype
  1872. for i=0,1,delay do
  1873. swait()
  1874. if rtype == 1 then
  1875. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1876. elseif rtype == 2 then
  1877. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1878. end
  1879. Part.Transparency=i
  1880. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1881. end
  1882. Part.Parent=nil
  1883. end),prt,msh)
  1884. end
  1885.  
  1886. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1887. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1888. prt.Anchored=true
  1889. prt.Material = "Neon"
  1890. prt.CFrame=cframe
  1891. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1892. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1893. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1894. game:GetService("Debris"):AddItem(prt,5)
  1895. coroutine.resume(coroutine.create(function(Part,Mesh)
  1896. local rtype = rottype
  1897. for i=0,1,delay do
  1898. swait()
  1899. if rtype == 1 then
  1900. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1901. elseif rtype == 2 then
  1902. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1903. end
  1904. dec.Transparency=i
  1905. dec2.Transparency=i
  1906. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1907. end
  1908. Part.Parent=nil
  1909. end),prt,msh)
  1910. end
  1911.  
  1912. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1913. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1914. prt.Anchored=true
  1915. prt.Material = "Neon"
  1916. prt.CFrame=cframe
  1917. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1918. game:GetService("Debris"):AddItem(prt,5)
  1919. coroutine.resume(coroutine.create(function(Part,Mesh)
  1920. local rtype = rottype
  1921. for i=0,1,delay do
  1922. swait()
  1923. if rtype == 1 then
  1924. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1925. elseif rtype == 2 then
  1926. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1927. end
  1928. prt.Transparency=i
  1929. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1930. end
  1931. Part.Parent=nil
  1932. end),prt,msh)
  1933. end
  1934.  
  1935. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1936. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1937. prt.Anchored=true
  1938. prt.Material = "Neon"
  1939. prt.CFrame=cframe
  1940. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1941. game:GetService("Debris"):AddItem(prt,5)
  1942. coroutine.resume(coroutine.create(function(Part,Mesh)
  1943. local rtype = rottype
  1944. for i=0,1,delay do
  1945. swait()
  1946. if rtype == 1 then
  1947. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1948. elseif rtype == 2 then
  1949. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1950. end
  1951. prt.Transparency=i
  1952. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1953. end
  1954. Part.Parent=nil
  1955. end),prt,msh)
  1956. end
  1957.  
  1958. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1959. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1960. prt.Anchored=true
  1961. prt.Material = "Neon"
  1962. prt.CFrame=cframe
  1963. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1964. game:GetService("Debris"):AddItem(prt,5)
  1965. coroutine.resume(coroutine.create(function(Part,Mesh)
  1966. local rtype = rottype
  1967. for i=0,1,delay do
  1968. swait()
  1969. if rtype == 1 then
  1970. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1971. elseif rtype == 2 then
  1972. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1973. end
  1974. prt.Transparency=i
  1975. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1976. end
  1977. Part.Parent=nil
  1978. end),prt,msh)
  1979. end
  1980.  
  1981. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1982. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1983. prt.Anchored=true
  1984. prt.Material = "Neon"
  1985. prt.CFrame=cframe
  1986. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1987. game:GetService("Debris"):AddItem(prt,5)
  1988. coroutine.resume(coroutine.create(function(Part,Mesh)
  1989. local rtype = rottype
  1990. for i=0,1,delay do
  1991. swait()
  1992. if rtype == 1 then
  1993. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1994. elseif rtype == 2 then
  1995. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1996. end
  1997. prt.Transparency=i
  1998. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1999. end
  2000. Part.Parent=nil
  2001. end),prt,msh)
  2002. end
  2003.  
  2004. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2005. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2006. prt.Anchored=false
  2007. prt.CFrame=cframe
  2008. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2009. local wld=weld(prt,prt,Parent,cframe)
  2010. game:GetService("Debris"):AddItem(prt,5)
  2011. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2012. for i=0,1,delay do
  2013. wait()
  2014. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2015. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2016. Part.Transparency=i
  2017. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2018. end
  2019. Part.Parent=nil
  2020. end),prt,msh,wld)
  2021. end
  2022.  
  2023. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2024. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2025. prt.Anchored=false
  2026. prt.CFrame=cframe
  2027. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2028. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2029. game:GetService("Debris"):AddItem(prt,5)
  2030. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2031. for i=0,1,delay do
  2032. wait()
  2033. Weld.C0=euler(i*20,0,0)
  2034. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2035. Part.Transparency=i
  2036. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2037. end
  2038. Part.Parent=nil
  2039. end),prt,msh,wld)
  2040. end
  2041.  
  2042. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2043. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2044. prt.Anchored=true
  2045. prt.CFrame=cframe
  2046. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2047. game:GetService("Debris"):AddItem(prt,2)
  2048. coroutine.resume(coroutine.create(function(Part,Mesh)
  2049. for i=0,1,delay do
  2050. wait()
  2051. Part.CFrame=Part.CFrame
  2052. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2053. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2054. prt2.Anchored=true
  2055. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2056. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2057. game:GetService("Debris"):AddItem(prt2,2)
  2058. coroutine.resume(coroutine.create(function(Part,Mesh)
  2059. for i=0,1,0.1 do
  2060. wait()
  2061. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2062. end
  2063. Part.Parent=nil
  2064. end),prt2,msh2)
  2065. end
  2066. for i=0,1,delay*2 do
  2067. wait()
  2068. Part.CFrame=Part.CFrame
  2069. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2070. end
  2071. Part.Parent=nil
  2072. end),prt,msh)
  2073. end
  2074.  
  2075. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2076. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2077. prt.Anchored=true
  2078. prt.CFrame=cframe
  2079. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2080. game:GetService("Debris"):AddItem(prt,2)
  2081. coroutine.resume(coroutine.create(function(Part,Mesh)
  2082. for i=0,1,delay do
  2083. wait()
  2084. Part.CFrame=Part.CFrame
  2085. Part.Transparency=i
  2086. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2087. end
  2088. Part.Parent=nil
  2089. end),prt,msh)
  2090. end
  2091.  
  2092. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2093. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2094. prt.Anchored=true
  2095. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2096. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2097. game:GetService("Debris"):AddItem(prt,2)
  2098. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2099. CF=Part.CFrame
  2100. Numbb=0
  2101. randnumb=math.random()/10
  2102. rand1=math.random()/10
  2103. for i=0,1,rand1 do
  2104. wait()
  2105. CF=CF*cf(0,math.random()/2,0)
  2106. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2107. Part.CFrame=CF*euler(Numbb,0,0)
  2108. Part.Transparency=i
  2109. Numbb=Numbb+randnumb
  2110. end
  2111. Part.Parent=nil
  2112. end),prt,CF,Numbb,randnumb)
  2113. end
  2114.  
  2115. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2116. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2117. prt.Anchored=true
  2118. prt.CFrame=cframe
  2119. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2120. game:GetService("Debris"):AddItem(prt,5)
  2121. coroutine.resume(coroutine.create(function(Part,Mesh)
  2122. for i=0,1,delay do
  2123. wait()
  2124. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2125. Part.Transparency=i
  2126. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2127. end
  2128. Part.Parent=nil
  2129. end),prt,msh)
  2130. end
  2131.  
  2132. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2133. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2134. prt.Anchored=true
  2135. prt.CFrame=cframe
  2136. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2137. game:GetService("Debris"):AddItem(prt,2)
  2138. coroutine.resume(coroutine.create(function(Part,Mesh)
  2139. for i=0,1,delay do
  2140. wait()
  2141. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2142. Part.Transparency=i
  2143. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2144. end
  2145. Part.Parent=nil
  2146. end),prt,msh)
  2147. end
  2148.  
  2149. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2150. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2151. prt.Anchored=true
  2152. prt.CFrame=cframe*cf(x,y,z)
  2153. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2154. game:GetService("Debris"):AddItem(prt,5)
  2155. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2156. local num=math.random()
  2157. local num2=math.random(-3,2)+math.random()
  2158. local numm=0
  2159. for i=0,1,delay*2 do
  2160. swait()
  2161. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2162. Part.Transparency=i
  2163. numm=numm+0.01
  2164. end
  2165. Part.Parent=nil
  2166. Mesh.Parent=nil
  2167. end),prt,msh,x,y,z)
  2168. end
  2169.  
  2170. function dmgstart(dmg,what)
  2171. hitcon = what.Touched:connect(function(hit)
  2172. local hum = hit.Parent:FindFirstChild("Humanoid")
  2173. if hum and not hum:IsDescendantOf(Character) then
  2174. hum:TakeDamage(dmg)
  2175. end
  2176. end)
  2177. end
  2178.  
  2179. function dmgstop()
  2180. hitcon:disconnect()
  2181. end
  2182.  
  2183. function Cloak()
  2184. Face.Parent=nil
  2185. cloaked=true
  2186. for _,v in pairs(Torso.Parent:children()) do
  2187. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2188. coroutine.resume(coroutine.create(function()
  2189. for i=0,1,0.2 do
  2190. wait()
  2191. v.Transparency=i
  2192. end
  2193. v.Transparency=1
  2194. end))
  2195. end
  2196. if v.className=="Hat" then
  2197. hatp=v.Handle
  2198. coroutine.resume(coroutine.create(function(derp)
  2199. for i=0,1,0.2 do
  2200. wait()
  2201. derp.Transparency=i
  2202. end
  2203. derp.Transparency=1
  2204. end),hatp)
  2205. end
  2206. end
  2207. for _,v in pairs(m:children()) do
  2208. if v.className=="Part" then
  2209. coroutine.resume(coroutine.create(function()
  2210. for i=0,1,0.2 do
  2211. wait()
  2212. v.Transparency=i
  2213. end
  2214. v.Transparency=1
  2215. end))
  2216. end
  2217. end
  2218. end
  2219.  
  2220. function UnCloak()
  2221. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2222. Face.Parent=Head
  2223. cloaked=false
  2224. for _,v in pairs(Torso.Parent:children()) do
  2225. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2226. coroutine.resume(coroutine.create(function()
  2227. for i=0,1,0.1 do
  2228. wait()
  2229. v.Transparency=v.Transparency-0.1
  2230. end
  2231. v.Transparency=0
  2232. end))
  2233. end
  2234. if v.className=="Hat" then
  2235. hatp=v.Handle
  2236. coroutine.resume(coroutine.create(function(derp)
  2237. for i=0,1,0.1 do
  2238. wait()
  2239. derp.Transparency=derp.Transparency-0.1
  2240. end
  2241. derp.Transparency=0
  2242. end),hatp)
  2243. end
  2244. end
  2245. for _,v in pairs(m:children()) do
  2246. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2247. coroutine.resume(coroutine.create(function()
  2248. for i=0,1,0.1 do
  2249. wait()
  2250. v.Transparency=v.Transparency-0.1
  2251. end
  2252. v.Transparency=0
  2253. end))
  2254. v.Transparency=0
  2255. end
  2256. end
  2257. end
  2258.  
  2259. local origcolor = BrickColor.new("Pastel light blue")
  2260. ---- This section of explosions.
  2261. function Explode(rad,par,pitch,vol,mindam,maxdam)
  2262. local expart = Instance.new("Part",char)
  2263. local expart2 = Instance.new("Part",char)
  2264. local rin = Instance.new("Part",char)
  2265. local rin2 = Instance.new("Part",char)
  2266. local partMesh = Instance.new("SpecialMesh",expart)
  2267. partMesh.MeshType = "Sphere"
  2268. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2269. partMesh2.MeshType = "Sphere"
  2270. local partMesh3 = Instance.new("SpecialMesh",rin)
  2271. partMesh3.MeshType = "Brick"
  2272. local partMesh4 = Instance.new("SpecialMesh",rin2)
  2273. partMesh4.MeshType = "Brick"
  2274. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  2275. partMesh.Scale = vt(rad,rad,rad)
  2276. expart.Size = vt(1,1,1)
  2277. expart.Transparency = 0
  2278. expart.Anchored = true
  2279. expart.Material = "Neon"
  2280. expart.BrickColor = bc("White")
  2281. expart.CFrame = par.CFrame
  2282. partMesh2.Scale = vt(rad,rad,rad)
  2283. expart2.Size = vt(1.15,1.15,1.15)
  2284. expart2.Transparency = 0.5
  2285. expart2.Anchored = true
  2286. expart2.Material = "Neon"
  2287. expart2.BrickColor = par.BrickColor
  2288. expart2.CFrame = par.CFrame
  2289. rin.Size = vt(1.15,1.15,1.15)
  2290. rin.Transparency = 1
  2291. rin.Anchored = true
  2292. rin.Material = "Neon"
  2293. rin.BrickColor = par.BrickColor
  2294. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2295. rin2.Size = vt(1.15,1.15,1.15)
  2296. rin2.Transparency = 1
  2297. rin2.Anchored = true
  2298. rin2.Material = "Neon"
  2299. rin2.BrickColor = par.BrickColor
  2300. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2301. partMesh3.Scale = vt(0,1,0)
  2302. partMesh4.Scale = vt(0,1,0)
  2303. local dec2 = Instance.new("Decal", rin)
  2304. dec2.Face = "Top"
  2305. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2306. dec2.Parent = rin
  2307. local dec2b = dec2:Clone()
  2308. dec2b.Face = "Bottom"
  2309. dec2b.Parent = rin
  2310.  
  2311. local dec2a = Instance.new("Decal", rin2)
  2312. dec2a.Face = "Top"
  2313. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2314. dec2a.Parent = rin2
  2315. local dec2ab = dec2a:Clone()
  2316. dec2ab.Face = "Bottom"
  2317. dec2ab.Parent = rin2
  2318. expart.CanCollide = false
  2319. expart2.CanCollide = false
  2320. rin.CanCollide = false
  2321. rin2.CanCollide = false
  2322. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  2323. local value = 1*rad/6.5
  2324. for i = 0, 199 do
  2325. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2326. expart.CFrame = expart.CFrame
  2327. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2328. expart2.CFrame = expart.CFrame
  2329. value = value - 0.035*rad/30
  2330. if value < 7.5 then
  2331. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  2332. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  2333. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  2334. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  2335. end
  2336. if value < 0 then
  2337. dec2.Transparency = dec2.Transparency + 0.025
  2338. dec2a.Transparency = dec2a.Transparency + 0.025
  2339. dec2b.Transparency = dec2b.Transparency + 0.025
  2340. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2341. expart.Transparency = expart.Transparency + 0.025
  2342. expart2.Transparency = expart2.Transparency + 0.025
  2343. rin.Transparency = rin.Transparency + 0.025
  2344. rin2.Transparency = rin2.Transparency + 0.025
  2345. end
  2346. swait()
  2347. end
  2348. game:GetService("Debris"):AddItem(expart, 1)
  2349. game:GetService("Debris"):AddItem(expart2, 1)
  2350. game:GetService("Debris"):AddItem(rin, 1)
  2351. game:GetService("Debris"):AddItem(rin2, 1)
  2352. end
  2353.  
  2354. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  2355. local expart = Instance.new("Part",char)
  2356. local expart2 = Instance.new("Part",char)
  2357. local partMesh = Instance.new("SpecialMesh",expart)
  2358. partMesh.MeshType = "Sphere"
  2359. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2360. partMesh2.MeshType = "Sphere"
  2361. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  2362. partMesh.Scale = vt(rad,rad,rad)
  2363. expart.Size = vt(1,1,1)
  2364. expart.Transparency = 0
  2365. expart.Anchored = true
  2366. expart.Material = "Neon"
  2367. expart.BrickColor = bc("White")
  2368. expart.CFrame = par.CFrame
  2369. partMesh2.Scale = vt(rad,rad,rad)
  2370. expart2.Size = vt(1.15,1.15,1.15)
  2371. expart2.Transparency = 0.5
  2372. expart2.Anchored = true
  2373. expart2.Material = "Neon"
  2374. expart2.BrickColor = par.BrickColor
  2375. expart2.CFrame = par.CFrame
  2376. expart.CanCollide = false
  2377. expart2.CanCollide = false
  2378. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  2379. local value = 1*rad/6.5
  2380. for i = 0, 75 do
  2381. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2382. expart.CFrame = expart.CFrame
  2383. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2384. expart2.CFrame = expart.CFrame
  2385. value = value - 0.035*rad/5
  2386. if value < 0 then
  2387. value = 0
  2388. expart.Transparency = expart.Transparency + 0.05
  2389. expart2.Transparency = expart2.Transparency + 0.05
  2390. end
  2391. swait()
  2392. end
  2393. game:GetService("Debris"):AddItem(expart, 1)
  2394. game:GetService("Debris"):AddItem(expart2, 1)
  2395. end
  2396.  
  2397. function AreaDanger(rad,par,mindam,maxdam)
  2398. local expart = Instance.new("Part",char)
  2399. local partMesh = Instance.new("SpecialMesh",expart)
  2400. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2401. partMesh.MeshType = "Sphere"
  2402. partMesh.Scale = vt(rad,rad,rad)
  2403. expart.Size = vt(1,1,1)
  2404. expart.Transparency = 0.5
  2405. expart.Anchored = true
  2406. expart.Material = "Neon"
  2407. expart.CanCollide = false
  2408. expart.BrickColor = par.BrickColor
  2409. expart.CFrame = par.CFrame
  2410. local value = 1*rad/5
  2411. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  2412. for i = 0, 14 do
  2413. wait()
  2414. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2415. expart.CFrame = expart.CFrame
  2416. value = value - 0.035*rad
  2417. if value < 0 then
  2418. value = 0
  2419. end
  2420. end
  2421. wait(0.25)
  2422. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  2423. wait(0.5)
  2424. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  2425. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  2426. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  2427. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  2428. for i = 0, 14 do
  2429. wait()
  2430. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2431. expart.CFrame = expart.CFrame
  2432. value = value - 0.035*rad/2
  2433. end
  2434. expart.Transparency = 1
  2435. game:GetService("Debris"):AddItem(expart, 5)
  2436. end
  2437.  
  2438. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  2439. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  2440. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  2441. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  2442. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2443. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  2444. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  2445. for i = 0, 24 do
  2446. 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))
  2447. end
  2448. for i = 0, 24 do
  2449. local expart = Instance.new("Part",char)
  2450. expart.Transparency = 1
  2451. expart.Anchored = true
  2452. expart.CanCollide = false
  2453. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  2454. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  2455. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2456. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  2457. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  2458. for i = 0, 9 do
  2459. 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))
  2460. end
  2461. game:GetService("Debris"):AddItem(expart, 2)
  2462. wait(0.1)
  2463. end
  2464. end
  2465.  
  2466. function EXterPlosion(par)
  2467. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  2468. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  2469. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  2470. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2471. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  2472. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  2473. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  2474. for i = 0, 24 do
  2475. 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))
  2476. end
  2477. for i = 0, 24 do
  2478. 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))
  2479. end
  2480. end
  2481. ----
  2482.  
  2483.  
  2484. function ring(type,pos,scale,value)
  2485. local type = type
  2486. local rng = Instance.new("Part", char)
  2487. rng.Anchored = true
  2488. rng.BrickColor = origcolor
  2489. rng.CanCollide = false
  2490. rng.FormFactor = 3
  2491. rng.Name = "Ring"
  2492. rng.Size = Vector3.new(1, 1, 1)
  2493. rng.Transparency = 0
  2494. rng.TopSurface = 0
  2495. rng.BottomSurface = 0
  2496. rng.CFrame = pos
  2497. local rngm = Instance.new("SpecialMesh", rng)
  2498. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2499. rngm.Scale = scale
  2500. local scaler2 = 1
  2501. if type == "Add" then
  2502. scaler2 = 1*value
  2503. elseif type == "Divide" then
  2504. scaler2 = 1/value
  2505. end
  2506. coroutine.resume(coroutine.create(function()
  2507. for i = 0,10,0.1 do
  2508. swait()
  2509. if type == "Add" then
  2510. scaler2 = scaler2 - 0.01*value
  2511. elseif type == "Divide" then
  2512. scaler2 = scaler2 - 0.01/value
  2513. end
  2514. rng.Transparency = rng.Transparency + 0.01
  2515. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2516. end
  2517. rng:Destroy()
  2518. end))
  2519. end
  2520.  
  2521.  
  2522. function wave(type,pos,scale,value)
  2523. local type = type
  2524. local rng = Instance.new("Part", char)
  2525. rng.Anchored = true
  2526. rng.BrickColor = origcolor
  2527. rng.CanCollide = false
  2528. rng.FormFactor = 3
  2529. rng.Name = "Ring"
  2530. rng.Size = Vector3.new(1, 1, 1)
  2531. rng.Transparency = 0
  2532. rng.TopSurface = 0
  2533. rng.BottomSurface = 0
  2534. rng.CFrame = pos
  2535. local rngm = Instance.new("SpecialMesh", rng)
  2536. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2537. rngm.Scale = scale
  2538. local scaler2 = 1
  2539. if type == "Add" then
  2540. scaler2 = 1*value
  2541. elseif type == "Divide" then
  2542. scaler2 = 1/value
  2543. end
  2544. coroutine.resume(coroutine.create(function()
  2545. for i = 0,10,0.1 do
  2546. swait()
  2547. if type == "Add" then
  2548. scaler2 = scaler2 - 0.01*value
  2549. elseif type == "Divide" then
  2550. scaler2 = scaler2 - 0.01/value
  2551. end
  2552. rng.Transparency = rng.Transparency + 0.01
  2553. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2554. end
  2555. rng:Destroy()
  2556. end))
  2557. end
  2558.  
  2559. function wind(type,pos,scale,value,speed)
  2560. local type = type
  2561. local rng = Instance.new("Part", char)
  2562. rng.Anchored = true
  2563. rng.BrickColor = origcolor
  2564. rng.CanCollide = false
  2565. rng.FormFactor = 3
  2566. rng.Name = "Ring"
  2567. rng.Size = Vector3.new(1, 1, 1)
  2568. rng.Transparency = 0
  2569. rng.TopSurface = 0
  2570. rng.BottomSurface = 0
  2571. rng.CFrame = pos
  2572. local rngm = Instance.new("SpecialMesh", rng)
  2573. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2574. rngm.Scale = scale
  2575. local scaler2 = 1
  2576. if type == "Add" then
  2577. scaler2 = 1*value
  2578. elseif type == "Divide" then
  2579. scaler2 = 1/value
  2580. end
  2581. coroutine.resume(coroutine.create(function()
  2582. for i = 0,10,0.1 do
  2583. swait()
  2584. if type == "Add" then
  2585. scaler2 = scaler2 - 0.01*value
  2586. elseif type == "Divide" then
  2587. scaler2 = scaler2 - 0.01/value
  2588. end
  2589. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2590. rng.Transparency = rng.Transparency + 0.01
  2591. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2592. end
  2593. rng:Destroy()
  2594. end))
  2595. end
  2596.  
  2597. function groundwind(type,pos,scale,value,speed)
  2598. local type = type
  2599. local rng = Instance.new("Part", char)
  2600. rng.Anchored = true
  2601. rng.BrickColor = origcolor
  2602. rng.CanCollide = false
  2603. rng.FormFactor = 3
  2604. rng.Name = "Ring"
  2605. rng.Size = Vector3.new(1, 1, 1)
  2606. rng.Transparency = 0
  2607. rng.TopSurface = 0
  2608. rng.BottomSurface = 0
  2609. rng.CFrame = pos
  2610. local rngm = Instance.new("SpecialMesh", rng)
  2611. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2612. rngm.Scale = scale
  2613. local scaler2 = 1
  2614. if type == "Add" then
  2615. scaler2 = 1*value
  2616. elseif type == "Divide" then
  2617. scaler2 = 1/value
  2618. end
  2619. coroutine.resume(coroutine.create(function()
  2620. for i = 0,10,0.1 do
  2621. swait()
  2622. if type == "Add" then
  2623. scaler2 = scaler2 - 0.01*value
  2624. elseif type == "Divide" then
  2625. scaler2 = scaler2 - 0.01/value
  2626. end
  2627. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2628. rng.Transparency = rng.Transparency + 0.01
  2629. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2630. end
  2631. rng:Destroy()
  2632. end))
  2633. end
  2634.  
  2635. function CameraManager()
  2636. if TwoD and not CamInterrupt then
  2637. if Humanoid.Health > 0 then
  2638. Camera.CameraSubject = Humanoid
  2639. Camera.CameraType = "Scriptable"
  2640. Humanoid.AutoRotate = false
  2641. if Booleans.GyroUse then
  2642. Directer.MaxTorque = Vec3(0, huge, 0)
  2643. else
  2644. Directer.MaxTorque = Vec3(0, 0, 0)
  2645. end
  2646. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2647. if Booleans.CamFollow then
  2648. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2649. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2650. else
  2651. CPart.Position = RootPart.Position
  2652. end
  2653. else
  2654. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2655. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2656. end
  2657. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2658. else
  2659. Camera.CameraSubject = Humanoid
  2660. Camera.CameraType = "Custom"
  2661. Controller.Disabled = false
  2662. end
  2663. end
  2664. end
  2665.  
  2666. function sphere(bonuspeed,type,pos,scale,value,color)
  2667. local type = type
  2668. local rng = Instance.new("Part", char)
  2669. rng.Anchored = true
  2670. rng.BrickColor = color
  2671. rng.CanCollide = false
  2672. rng.FormFactor = 3
  2673. rng.Name = "Ring"
  2674. rng.Material = "Neon"
  2675. rng.Size = Vector3.new(1, 1, 1)
  2676. rng.Transparency = 0
  2677. rng.TopSurface = 0
  2678. rng.BottomSurface = 0
  2679. rng.CFrame = pos
  2680. local rngm = Instance.new("SpecialMesh", rng)
  2681. rngm.MeshType = "Sphere"
  2682. rngm.Scale = scale
  2683. if rainbowmode == true then
  2684. rng.Color = Color3.new(r/255,g/255,b/255)
  2685. end
  2686. local scaler2 = 1
  2687. if type == "Add" then
  2688. scaler2 = 1*value
  2689. elseif type == "Divide" then
  2690. scaler2 = 1/value
  2691. end
  2692. coroutine.resume(coroutine.create(function()
  2693. for i = 0,10/bonuspeed,0.1 do
  2694. swait()
  2695. if rainbowmode == true then
  2696. rng.Color = Color3.new(r/255,g/255,b/255)
  2697. end
  2698. if type == "Add" then
  2699. scaler2 = scaler2 - 0.01*value/bonuspeed
  2700. elseif type == "Divide" then
  2701. scaler2 = scaler2 - 0.01/value*bonuspeed
  2702. end
  2703. if chaosmode == true then
  2704. rng.BrickColor = BrickColor.random()
  2705. end
  2706. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2707. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2708. end
  2709. rng:Destroy()
  2710. end))
  2711. end
  2712.  
  2713. function spherew(bonuspeed,type,pos,scale,value,color)
  2714. local type = type
  2715. local rng = Instance.new("Part", workspace)
  2716. rng.Anchored = true
  2717. rng.BrickColor = color
  2718. rng.CanCollide = false
  2719. rng.FormFactor = 3
  2720. rng.Name = "Ring"
  2721. rng.Material = "Neon"
  2722. rng.Size = Vector3.new(1, 1, 1)
  2723. rng.Transparency = 0
  2724. rng.TopSurface = 0
  2725. rng.BottomSurface = 0
  2726. rng.CFrame = pos
  2727. local rngm = Instance.new("SpecialMesh", rng)
  2728. rngm.MeshType = "Sphere"
  2729. rngm.Scale = scale
  2730. if rainbowmode == true then
  2731. rng.Color = Color3.new(r/255,g/255,b/255)
  2732. end
  2733. local scaler2 = 1
  2734. if type == "Add" then
  2735. scaler2 = 1*value
  2736. elseif type == "Divide" then
  2737. scaler2 = 1/value
  2738. end
  2739. coroutine.resume(coroutine.create(function()
  2740. for i = 0,10/bonuspeed,0.1 do
  2741. swait()
  2742. if rainbowmode == true then
  2743. rng.Color = Color3.new(r/255,g/255,b/255)
  2744. end
  2745. if type == "Add" then
  2746. scaler2 = scaler2 - 0.01*value/bonuspeed
  2747. elseif type == "Divide" then
  2748. scaler2 = scaler2 - 0.01/value*bonuspeed
  2749. end
  2750. if chaosmode == true then
  2751. rng.BrickColor = BrickColor.random()
  2752. end
  2753. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2754. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2755. end
  2756. rng:Destroy()
  2757. end))
  2758. end
  2759.  
  2760. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2761. local type = type
  2762. local rng = Instance.new("Part", char)
  2763. rng.Anchored = true
  2764. rng.BrickColor = color
  2765. rng.CanCollide = false
  2766. rng.FormFactor = 3
  2767. rng.Name = "Ring"
  2768. rng.Material = "Neon"
  2769. rng.Size = Vector3.new(1, 1, 1)
  2770. rng.Transparency = 0
  2771. rng.TopSurface = 0
  2772. rng.BottomSurface = 0
  2773. rng.CFrame = pos
  2774. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2775. local rngm = Instance.new("SpecialMesh", rng)
  2776. rngm.MeshType = "Brick"
  2777. rngm.Scale = vt(x1,y1,z1)
  2778. if rainbowmode == true then
  2779. rng.Color = Color3.new(r/255,g/255,b/255)
  2780. end
  2781. local scaler2 = 1
  2782. local speeder = FastSpeed/10
  2783. if type == "Add" then
  2784. scaler2 = 1*value
  2785. elseif type == "Divide" then
  2786. scaler2 = 1/value
  2787. end
  2788. coroutine.resume(coroutine.create(function()
  2789. for i = 0,10/bonuspeed,0.1 do
  2790. swait()
  2791. if rainbowmode == true then
  2792. rng.Color = Color3.new(r/255,g/255,b/255)
  2793. end
  2794. if type == "Add" then
  2795. scaler2 = scaler2 - 0.01*value/bonuspeed
  2796. elseif type == "Divide" then
  2797. scaler2 = scaler2 - 0.01/value*bonuspeed
  2798. end
  2799. if chaosmode == true then
  2800. rng.BrickColor = BrickColor.random()
  2801. end
  2802. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2803. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2804. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2805. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2806. end
  2807. rng:Destroy()
  2808. end))
  2809. end
  2810.  
  2811. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2812. local type = type
  2813. local rng = Instance.new("Part", char)
  2814. rng.Anchored = true
  2815. rng.BrickColor = color
  2816. rng.CanCollide = false
  2817. rng.FormFactor = 3
  2818. rng.Name = "Ring"
  2819. rng.Material = "Neon"
  2820. rng.Size = Vector3.new(1, 1, 1)
  2821. rng.Transparency = 0
  2822. rng.TopSurface = 0
  2823. rng.BottomSurface = 0
  2824. rng.CFrame = pos
  2825. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2826. local rngm = Instance.new("SpecialMesh", rng)
  2827. rngm.MeshType = "Brick"
  2828. rngm.Scale = vt(x1,y1,z1)
  2829. if rainbowmode == true then
  2830. rng.Color = Color3.new(r/255,g/255,b/255)
  2831. end
  2832. local scaler2 = 0
  2833. local speeder = FastSpeed/10
  2834. if type == "Add" then
  2835. scaler2 = 1*value
  2836. elseif type == "Divide" then
  2837. scaler2 = 1/value
  2838. end
  2839. coroutine.resume(coroutine.create(function()
  2840. for i = 0,10/bonuspeed,0.1 do
  2841. swait()
  2842. if rainbowmode == true then
  2843. rng.Color = Color3.new(r/255,g/255,b/255)
  2844. end
  2845. if type == "Add" then
  2846. scaler2 = scaler2 - 0.01*value/bonuspeed
  2847. elseif type == "Divide" then
  2848. scaler2 = scaler2 - 0.01/value*bonuspeed
  2849. end
  2850. if chaosmode == true then
  2851. rng.BrickColor = BrickColor.random()
  2852. end
  2853. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2854. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2855. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2856. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2857. end
  2858. rng:Destroy()
  2859. end))
  2860. end
  2861.  
  2862. function sphereMKw(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2863. local type = type
  2864. local rng = Instance.new("Part", workspace)
  2865. rng.Anchored = true
  2866. rng.BrickColor = color
  2867. rng.CanCollide = false
  2868. rng.FormFactor = 3
  2869. rng.Name = "Ring"
  2870. rng.Material = "Neon"
  2871. rng.Size = Vector3.new(1, 1, 1)
  2872. rng.Transparency = 0
  2873. rng.TopSurface = 0
  2874. rng.BottomSurface = 0
  2875. rng.CFrame = pos
  2876. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2877. local rngm = Instance.new("SpecialMesh", rng)
  2878. rngm.MeshType = "Sphere"
  2879. rngm.Scale = vt(x1,y1,z1)
  2880. if rainbowmode == true then
  2881. rng.Color = Color3.new(r/255,g/255,b/255)
  2882. end
  2883. local scaler2 = 1
  2884. local speeder = FastSpeed
  2885. if type == "Add" then
  2886. scaler2 = 1*value
  2887. elseif type == "Divide" then
  2888. scaler2 = 1/value
  2889. end
  2890. coroutine.resume(coroutine.create(function()
  2891. for i = 0,10/bonuspeed,0.1 do
  2892. swait()
  2893. if rainbowmode == true then
  2894. rng.Color = Color3.new(r/255,g/255,b/255)
  2895. end
  2896. if type == "Add" then
  2897. scaler2 = scaler2 - 0.01*value/bonuspeed
  2898. elseif type == "Divide" then
  2899. scaler2 = scaler2 - 0.01/value*bonuspeed
  2900. end
  2901. if chaosmode == true then
  2902. rng.BrickColor = BrickColor.random()
  2903. end
  2904. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2905. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2906. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2907. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2908. end
  2909. rng:Destroy()
  2910. end))
  2911. end
  2912. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2913. local type = type
  2914. local rng = Instance.new("Part", char)
  2915. rng.Anchored = true
  2916. rng.BrickColor = color
  2917. rng.CanCollide = false
  2918. rng.FormFactor = 3
  2919. rng.Name = "Ring"
  2920. rng.Material = "Neon"
  2921. rng.Size = Vector3.new(1, 1, 1)
  2922. rng.Transparency = 0
  2923. rng.TopSurface = 0
  2924. rng.BottomSurface = 0
  2925. rng.CFrame = pos
  2926. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2927. local rngm = Instance.new("SpecialMesh", rng)
  2928. rngm.MeshType = "Sphere"
  2929. rngm.Scale = vt(x1,y1,z1)
  2930. if rainbowmode == true then
  2931. rng.Color = Color3.new(r/255,g/255,b/255)
  2932. end
  2933. local scaler2 = 1
  2934. local speeder = FastSpeed
  2935. if type == "Add" then
  2936. scaler2 = 1*value
  2937. elseif type == "Divide" then
  2938. scaler2 = 1/value
  2939. end
  2940. coroutine.resume(coroutine.create(function()
  2941. for i = 0,10/bonuspeed,0.1 do
  2942. swait()
  2943. if rainbowmode == true then
  2944. rng.Color = Color3.new(r/255,g/255,b/255)
  2945. end
  2946. if type == "Add" then
  2947. scaler2 = scaler2 - 0.01*value/bonuspeed
  2948. elseif type == "Divide" then
  2949. scaler2 = scaler2 - 0.01/value*bonuspeed
  2950. end
  2951. if chaosmode == true then
  2952. rng.BrickColor = BrickColor.random()
  2953. end
  2954. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2955. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2956. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2957. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2958. end
  2959. rng:Destroy()
  2960. end))
  2961. end
  2962.  
  2963.  
  2964. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2965. local type = type
  2966. local rng = Instance.new("Part", char)
  2967. rng.Anchored = true
  2968. rng.BrickColor = color
  2969. rng.CanCollide = false
  2970. rng.FormFactor = 3
  2971. rng.Name = "Ring"
  2972. rng.Material = "Neon"
  2973. rng.Size = Vector3.new(1, 1, 1)
  2974. rng.Transparency = 1
  2975. rng.TopSurface = 0
  2976. rng.BottomSurface = 0
  2977. rng.CFrame = pos
  2978. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2979. local rngm = Instance.new("SpecialMesh", rng)
  2980. rngm.MeshType = "Sphere"
  2981. rngm.Scale = vt(x1,y1,z1)
  2982. if rainbowmode == true then
  2983. rng.Color = Color3.new(r/255,g/255,b/255)
  2984. end
  2985. local scaler2 = 1
  2986. local speeder = FastSpeed
  2987. if type == "Add" then
  2988. scaler2 = 1*value
  2989. elseif type == "Divide" then
  2990. scaler2 = 1/value
  2991. end
  2992. coroutine.resume(coroutine.create(function()
  2993. for i = 0,10/bonuspeed,0.1 do
  2994. swait()
  2995. if rainbowmode == true then
  2996. rng.Color = Color3.new(r/255,g/255,b/255)
  2997. end
  2998. if type == "Add" then
  2999. scaler2 = scaler2 - 0.01*value/bonuspeed
  3000. elseif type == "Divide" then
  3001. scaler2 = scaler2 - 0.01/value*bonuspeed
  3002. end
  3003. if chaosmode == true then
  3004. rng.BrickColor = BrickColor.random()
  3005. end
  3006. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3007. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3008. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3009. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3010. end
  3011. rng:Destroy()
  3012. end))
  3013. end
  3014.  
  3015. function dmg(dude)
  3016. if dude.Name ~= Character then
  3017. local bgf = Instance.new("BodyGyro",dude.Head)
  3018. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3019. local val = Instance.new("BoolValue",dude)
  3020. val.Name = "IsHit"
  3021. local ds = coroutine.wrap(function()
  3022. dude:WaitForChild("Head"):BreakJoints()
  3023. wait(0.5)
  3024. targetted = nil
  3025. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  3026. coroutine.resume(coroutine.create(function()
  3027. for i, v in pairs(dude:GetChildren()) do
  3028. if v:IsA("Accessory") then
  3029. v:Destroy()
  3030. end
  3031. if v:IsA("Humanoid") then
  3032. v:Destroy()
  3033. end
  3034. if v:IsA("CharacterMesh") then
  3035. v:Destroy()
  3036. end
  3037. if v:IsA("Model") then
  3038. v:Destroy()
  3039. end
  3040. if v:IsA("Part") or v:IsA("MeshPart") then
  3041. for x, o in pairs(v:GetChildren()) do
  3042. if o:IsA("Decal") then
  3043. o:Destroy()
  3044. end
  3045. end
  3046. coroutine.resume(coroutine.create(function()
  3047. v.Material = "Neon"
  3048. v.CanCollide = false
  3049. local bld = Instance.new("ParticleEmitter",v)
  3050. bld.LightEmission = 1
  3051. bld.Texture = "rbxassetid://284205403"
  3052. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  3053. bld.Rate = 50
  3054. bld.Lifetime = NumberRange.new(1)
  3055. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  3056. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  3057. bld.Speed = NumberRange.new(0,0)
  3058. bld.VelocitySpread = 50000
  3059. bld.Rotation = NumberRange.new(-500,500)
  3060. bld.RotSpeed = NumberRange.new(-500,500)
  3061. local sbs = Instance.new("BodyPosition", v)
  3062. sbs.P = 3000
  3063. sbs.D = 1000
  3064. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3065. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  3066. v.Color = Color3.new(1,1,1)
  3067. coroutine.resume(coroutine.create(function()
  3068. for i = 0, 49 do
  3069. swait(1)
  3070. v.Transparency = v.Transparency + 0.02
  3071. end
  3072. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1)
  3073. bld.Speed = NumberRange.new(1,5)
  3074. bld.Acceleration = vt(0,10,0)
  3075. wait(0.5)
  3076. bld.Enabled = false
  3077. wait(3)
  3078. v:Destroy()
  3079. dude:Destroy()
  3080. end))
  3081. end))
  3082. end
  3083. end
  3084. end))
  3085. end)
  3086. ds()
  3087. end
  3088. end
  3089.  
  3090.  
  3091. function FindNearestHead(Position, Distance, SinglePlayer)
  3092. if SinglePlayer then
  3093. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3094. end
  3095. local List = {}
  3096. for i, v in pairs(workspace:GetChildren()) do
  3097. if v:IsA("Model") then
  3098. if v:findFirstChild("Head") then
  3099. if v ~= Character then
  3100. if (v.Head.Position - Position).magnitude <= Distance then
  3101. table.insert(List, v)
  3102. end
  3103. end
  3104. end
  3105. end
  3106. end
  3107. return List
  3108. end
  3109.  
  3110. function FaceMouse()
  3111. Cam = workspace.CurrentCamera
  3112. return {
  3113. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3114. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3115. }
  3116. end
  3117.  
  3118. function FaceMouse2()
  3119. Cam = workspace.CurrentCamera
  3120. return {
  3121. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3122. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3123. }
  3124. end
  3125.  
  3126. local ModeOfGlitch = 1
  3127. -- Functions are ready.
  3128. local storehumanoidWS = 16
  3129.  
  3130. function Blink()
  3131. for i = 0, 14 do
  3132. 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)
  3133. end
  3134. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3135. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3136. CameraEnshaking(2,10)
  3137. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3138. if v:FindFirstChild('Head') then
  3139. end
  3140. end
  3141. for i = 0, 14 do
  3142. 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)
  3143. end
  3144. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3145. end
  3146.  
  3147. function ExtinctiveHeartbreak()
  3148. local targetted = nil
  3149. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3150. targetted = mouse.Target.Parent
  3151. end
  3152. if targetted ~= nil then
  3153. attack = true
  3154. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3155. for i = 0, 9 do
  3156. 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)
  3157. end
  3158. for i = 0, 24 do
  3159. 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)
  3160. end
  3161. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3162. local originalpos = root.CFrame
  3163. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  3164. for i = 0, 9 do
  3165. 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)
  3166. end
  3167. for i = 0, 24 do
  3168. 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)
  3169. end
  3170. hum.WalkSpeed = 0
  3171. targetted.Head.Anchored = true
  3172. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3173. for i = 0,2,0.1 do
  3174. swait()
  3175. 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)
  3176. 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)
  3177. 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)
  3178. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3179. 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)
  3180. 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)
  3181. end
  3182. coroutine.resume(coroutine.create(function()
  3183. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
  3184. bld.LightEmission = 0.1
  3185. bld.Texture = "rbxassetid://284205403"
  3186. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3187. bld.Rate = 500
  3188. bld.Lifetime = NumberRange.new(1)
  3189. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3190. bld.Acceleration = vt(0,-25,0)
  3191. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3192. bld.Speed = NumberRange.new(10,50)
  3193. bld.EmissionDirection = "Front"
  3194. bld.VelocitySpread = 25
  3195. bld.Rotation = NumberRange.new(-500,500)
  3196. bld.RotSpeed = NumberRange.new(-500,500)
  3197. end))
  3198. coroutine.resume(coroutine.create(function()
  3199. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso"))
  3200. bld.LightEmission = 0.1
  3201. bld.Texture = "rbxassetid://284205403"
  3202. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3203. bld.Rate = 500
  3204. bld.Lifetime = NumberRange.new(1)
  3205. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3206. bld.Acceleration = vt(0,-25,0)
  3207. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3208. bld.Speed = NumberRange.new(10,50)
  3209. bld.EmissionDirection = "Front"
  3210. bld.VelocitySpread = 25
  3211. bld.Rotation = NumberRange.new(-500,500)
  3212. bld.RotSpeed = NumberRange.new(-500,500)
  3213. end))
  3214. CameraEnshaking(5,5)
  3215. game:GetService("Debris"):AddItem(bld,3)
  3216. dmg(targetted)
  3217. CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Head, 1,1)
  3218. for i = 0,1,0.1 do
  3219. swait()
  3220. 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)
  3221. 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)
  3222. 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)
  3223. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  3224. 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)
  3225. 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)
  3226. end
  3227. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3228. for i = 0, 9 do
  3229. 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)
  3230. end
  3231. for i = 0, 24 do
  3232. 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)
  3233. end
  3234. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3235. root.CFrame = originalpos
  3236. for i = 0, 9 do
  3237. 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)
  3238. end
  3239. for i = 0, 24 do
  3240. 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)
  3241. end
  3242. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3243. bld.Enabled = false
  3244. attack = false
  3245. hum.WalkSpeed = storehumanoidWS
  3246. end
  3247. end
  3248. function MeteorStrike()
  3249. attack = true
  3250. for i = 0, 2, 0.1 do
  3251. swait()
  3252. 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)
  3253. 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)
  3254. 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)
  3255. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3256. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3257. 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)
  3258. end
  3259. CFuncs["Sound"].Create("rbxassetid://136007472", root, 1,2)
  3260. for i=1,20 do
  3261. 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)
  3262. swait()
  3263. end
  3264. swait(30)
  3265. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3266. for i =1,20 do
  3267. 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)
  3268. 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)
  3269. end
  3270. for i = 0,2,0.1 do
  3271. swait()
  3272. 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)
  3273. 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)
  3274. 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)
  3275. 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)
  3276. 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)
  3277. 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)
  3278. end
  3279. for i =1,20 do
  3280. 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)
  3281. end
  3282. text.TextTransparency = 1
  3283. text.TextStrokeTransparency = 1
  3284. tr2.Enabled = false
  3285. tr1.Enabled = false
  3286. tr3.Enabled = false
  3287. tl1.Enabled = false
  3288. tl2.Enabled = false
  3289. tl3.Enabled = false
  3290. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3291. eff = false
  3292. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3293. local invtab = {}
  3294. local function search(targ)
  3295. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3296. table.insert(invtab,targ)
  3297. end
  3298. for i,v in pairs(targ:GetChildren()) do
  3299. search(v)
  3300. end
  3301. end
  3302. search(plr.Character)
  3303. local frm = 0
  3304. local frmcon
  3305. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3306. if frm < 10 then
  3307. for i,v in pairs(invtab) do
  3308. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3309. v.Transparency = v.Transparency + 0.1
  3310. end
  3311. end
  3312. frm = frm + 1
  3313. else
  3314. frmcon:disconnect()
  3315. end
  3316. end)
  3317. swait(200)
  3318. text.TextTransparency = 0
  3319. text.TextStrokeTransparency = 0
  3320. tr2.Enabled = false
  3321. tr1.Enabled = false
  3322. tr3.Enabled = false
  3323. tl1.Enabled = false
  3324. tl2.Enabled = false
  3325. tl3.Enabled = false
  3326. eff = true
  3327. for i =1,20 do
  3328. 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)
  3329. end
  3330. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3331. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3332. local invtab = {}
  3333. local function search(targ)
  3334. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3335. table.insert(invtab,targ)
  3336. end
  3337. for i,v in pairs(targ:GetChildren()) do
  3338. search(v)
  3339. end
  3340. end
  3341. search(plr.Character)
  3342. local frm = 0
  3343. local frmcon
  3344. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3345. if frm < 10 then
  3346. for i,v in pairs(invtab) do
  3347. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3348. v.Transparency = v.Transparency - 0.1
  3349. end
  3350. end
  3351. frm = frm + 1
  3352. else
  3353. frmcon:disconnect()
  3354. end
  3355. end)
  3356. swait(5)
  3357. for i = 0, 2, 0.1 do
  3358. swait()
  3359. 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)
  3360. 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)
  3361. 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)
  3362. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3363. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3364. 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)
  3365. end
  3366. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3367. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  3368. MagniDamage(root, 30, 65,90, 0, "Normal")
  3369. for i =1,20 do
  3370. 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)
  3371. end
  3372. sphere(1,"Add",Torso.CFrame,vt(1,1,1),1,MAINRUINCOLOR)
  3373. for i =1,20 do
  3374. 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)
  3375. end
  3376. swait(20)
  3377. attack = false
  3378. tr2.Enabled = true
  3379. tr1.Enabled = true
  3380. tr3.Enabled = true
  3381. tl1.Enabled = true
  3382. tl2.Enabled = true
  3383. tl3.Enabled = true
  3384. end
  3385. function FinalCalam()
  3386. attack = true
  3387. hum.WalkSpeed = 0
  3388. local orb = Instance.new("Part", char)
  3389. orb.Anchored = true
  3390. orb.BrickColor = MAINRUINCOLOR
  3391. orb.CanCollide = false
  3392. orb.FormFactor = 3
  3393. orb.Name = "Ring"
  3394. orb.Material = "Neon"
  3395. orb.Size = Vector3.new(1, 1, 1)
  3396. orb.Transparency = 0
  3397. orb.TopSurface = 0
  3398. orb.BottomSurface = 0
  3399. local orbm = Instance.new("SpecialMesh", orb)
  3400. orbm.MeshType = "Sphere"
  3401. orbm.Name = "SizeMesh"
  3402. orbm.Scale = vt(0,0,0)
  3403. local scaled = 0.1
  3404. local posid = 0
  3405. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3406. for i = 0, 5, 0.1 do
  3407. swait()
  3408. scaled = scaled - 0.001
  3409. posid = posid - scaled
  3410. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3411. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3412. 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)
  3413. 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)
  3414. 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)
  3415. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3416. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3417. 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)
  3418. end
  3419. swait(60)
  3420. for i =1,3 do
  3421. swait(30)
  3422. CFuncs["Sound"].Create("rbxassetid://847061203", orb, 1,0.9)
  3423. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3424. end
  3425. swait(30)
  3426. for i = 0, 2, 0.1 do
  3427. swait()
  3428. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3429. 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)
  3430. 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)
  3431. 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)
  3432. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3433. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3434. 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)
  3435. end
  3436. swait(60)
  3437. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3438. CFuncs["Sound"].Create("rbxassetid://151304356", workspace, 5,1)
  3439. sphere(0.2,"Add",orb.CFrame,vt(10,10,10),5,MAINRUINCOLOR)
  3440. sphere(0.5,"Add",orb.CFrame,vt(1,1,1),5,MAINRUINCOLOR)
  3441. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3442. if v:FindFirstChild('Head') then
  3443. dmg(v)
  3444. end
  3445. end
  3446. for i = 1,20 do
  3447. 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)
  3448. for i = 0, 10 do
  3449. 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)
  3450. end
  3451. end
  3452. orb:Remove()
  3453. attack = false
  3454. hum.WalkSpeed = storehumanoidWS
  3455. end
  3456. function PureBomb()
  3457. attack = true
  3458.  
  3459. local orb = Instance.new("Part", char)
  3460. orb.Anchored = true
  3461. orb.BrickColor = BrickColor.new("Toothpaste")
  3462. orb.CanCollide = false
  3463. orb.FormFactor = 3
  3464. orb.Name = "Ring"
  3465. orb.Material = "Neon"
  3466. orb.Size = Vector3.new(1, 1, 1)
  3467. orb.Transparency = 0
  3468. orb.TopSurface = 0
  3469. orb.BottomSurface = 0
  3470. local orbm = Instance.new("SpecialMesh", orb)
  3471. orbm.MeshType = "Sphere"
  3472. orbm.Name = "SizeMesh"
  3473. orbm.Scale = vt(0,0,0)
  3474. local scaled = 0.1
  3475. local posid = 0
  3476. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3477. for i = 0, 5, 0.1 do
  3478. swait()
  3479. scaled = scaled - 0.001
  3480. posid = posid - scaled
  3481. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3482. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3483. 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)
  3484. 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)
  3485. 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)
  3486. 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)
  3487. 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)
  3488. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3489. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3490. 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)
  3491. end
  3492. for i = 0, 2, 0.1 do
  3493. swait()
  3494. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3495. 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)
  3496. 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)
  3497. 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)
  3498. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3499. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3500. 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)
  3501. end
  3502. coroutine.resume(coroutine.create(function()
  3503. orb.Anchored = false
  3504. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3505. local a = Instance.new("Part",workspace)
  3506. a.Name = "Direction"
  3507. a.Anchored = true
  3508. a.BrickColor = bc("Bright red")
  3509. a.Material = "Neon"
  3510. a.Transparency = 1
  3511. a.CanCollide = false
  3512. local ray = Ray.new(
  3513. orb.CFrame.p, -- origin
  3514. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3515. )
  3516. local ignore = orb
  3517. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3518. a.BottomSurface = 10
  3519. a.TopSurface = 10
  3520. local distance = (orb.CFrame.p - position).magnitude
  3521. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3522. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3523. orb.CFrame = a.CFrame
  3524. a:Destroy()
  3525. local bv = Instance.new("BodyVelocity")
  3526. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3527. bv.velocity = orb.CFrame.lookVector*125
  3528. bv.Parent = orb
  3529. local hitted = false
  3530. game:GetService("Debris"):AddItem(orb, 15)
  3531. wait()
  3532. local hit =orb.Touched:connect(function(hit)
  3533. if hitted == false then
  3534. hitted = true
  3535. CameraEnshaking(10,2.5)
  3536. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3537. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3538. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3539. for i = 0, 49 do
  3540. 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)
  3541. end
  3542. for i = 0, 9 do
  3543. 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)
  3544. 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)
  3545. end
  3546. orb.Anchored = true
  3547. orb.Transparency = 1
  3548. wait(8)
  3549. orb:Destroy()
  3550. end
  3551. end)
  3552. end))
  3553. for i = 0, 1, 0.1 do
  3554. swait()
  3555. 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)
  3556. 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)
  3557. 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)
  3558. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3559. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3560. 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)
  3561. end
  3562. attack = false
  3563. end
  3564.  
  3565. function ChaosGroundStrike()
  3566. attack = true
  3567. for i = 0, 2, 0.1 do
  3568. swait()
  3569. 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)
  3570. 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)
  3571. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3572. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3573. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3574. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3575. end
  3576. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3577. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3578. CameraEnshaking(4,12)
  3579. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3580. if v:FindFirstChild('Head') then
  3581. dmg(v)
  3582. end
  3583. end
  3584. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3585. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3586. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3587. for i = 0, 2, 0.1 do
  3588. swait()
  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. 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)
  3591. 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)
  3592. 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)
  3593. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3594. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3595. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3596. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3597. end
  3598. attack = false
  3599. end
  3600.  
  3601. function Starfall()
  3602. attack = true
  3603. hum.WalkSpeed = 0
  3604. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3605. for i = 0, 5, 0.1 do
  3606. swait()
  3607. 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)
  3608. 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)
  3609. 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)
  3610. 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)
  3611. 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)
  3612. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3613. 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)
  3614. 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)
  3615. end
  3616. local Overed = false
  3617. CameraEnshaking(2,20)
  3618. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3619. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3620. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3621. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3622. local orb = Instance.new("Part", char)
  3623. orb.Anchored = true
  3624. orb.BrickColor = BrickColor.new("Toothpaste")
  3625. orb.CanCollide = false
  3626. orb.FormFactor = 3
  3627. orb.Name = "Remenant"
  3628. orb.Material = "Neon"
  3629. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3630. orb.Size = Vector3.new(1, 1, 1)
  3631. orb.Transparency = 1
  3632. orb.TopSurface = 0
  3633. orb.BottomSurface = 0
  3634. hum.WalkSpeed = storehumanoidWS
  3635. coroutine.resume(coroutine.create(function()
  3636. for i = 0, 9 do
  3637. swait(10)
  3638. local lb = Instance.new("Part")
  3639. lb.Color = MAINRUINCOLOR.Color
  3640. lb.CanCollide = false
  3641. lb.Material = "Neon"
  3642. lb.Anchored = true
  3643. lb.TopSurface = 0
  3644. lb.BottomSurface = 0
  3645. lb.Transparency = 0
  3646. lb.Size = vt(1,1,1)
  3647. 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)))
  3648. lb.Anchored = false
  3649. lb.Parent = char
  3650. local thingery = Instance.new("SpecialMesh",lb)
  3651. thingery.MeshType = "Sphere"
  3652. thingery.Scale = vt(20,20,20)
  3653. game:GetService("Debris"):AddItem(lb, 10)
  3654. local bv = Instance.new("BodyVelocity")
  3655. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3656. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3657. bv.Parent = lb
  3658. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3659. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3660. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3661. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3662. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3663. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3664. local hitted = false
  3665. coroutine.resume(coroutine.create(function()
  3666. while true do
  3667. swait(1)
  3668. if lb.Parent ~= nil and hitted == false then
  3669. 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)
  3670. elseif lb.Parent == nil then
  3671. break
  3672. end
  3673. end
  3674. end))
  3675.  
  3676. game:GetService("Debris"):AddItem(a, 0.1)
  3677.  
  3678. coroutine.resume(coroutine.create(function()
  3679. swait(1)
  3680. lb.Touched:connect(function(hit)
  3681. if hitted == false then
  3682. hitted = true
  3683. lb.Transparency = 1
  3684. lb.Anchored = true
  3685. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3686. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3687. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3688. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3689. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3690. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3691. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3692. CameraEnshaking(1,5)
  3693. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3694. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3695. for i = 0, 9 do
  3696. 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)
  3697. end
  3698. for i = 0, 49 do
  3699. swait()
  3700. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3701. 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)
  3702. end
  3703. end
  3704. end)
  3705. end))
  3706. end
  3707. Overed = true
  3708. orb:Destroy()
  3709. end))
  3710.  
  3711. attack = false
  3712. end
  3713.  
  3714. function StarfallEX()
  3715. attack = true
  3716. hum.WalkSpeed = 0
  3717. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3718. for i = 0, 5, 0.1 do
  3719. swait()
  3720. 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)
  3721. 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)
  3722. 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)
  3723. 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)
  3724. 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)
  3725. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3726. 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)
  3727. 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)
  3728. end
  3729. local Overed = false
  3730. CameraEnshaking(2,20)
  3731. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3732. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3733. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3734. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3735. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3736. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3737. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3738. local orb = Instance.new("Part", char)
  3739. orb.Anchored = true
  3740. orb.BrickColor = BrickColor.new("Toothpaste")
  3741. orb.CanCollide = false
  3742. orb.FormFactor = 3
  3743. orb.Name = "Remenant"
  3744. orb.Material = "Neon"
  3745. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3746. orb.Size = Vector3.new(1, 1, 1)
  3747. orb.Transparency = 1
  3748. orb.TopSurface = 0
  3749. orb.BottomSurface = 0
  3750. hum.WalkSpeed = storehumanoidWS
  3751. coroutine.resume(coroutine.create(function()
  3752. for i = 0, 9 do
  3753. swait(10)
  3754. local lb = Instance.new("Part")
  3755. lb.Color = MAINRUINCOLOR.Color
  3756. lb.CanCollide = false
  3757. lb.Material = "Neon"
  3758. lb.Anchored = true
  3759. lb.TopSurface = 0
  3760. lb.BottomSurface = 0
  3761. lb.Transparency = 0
  3762. lb.Size = vt(1,1,1)
  3763. 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)))
  3764. lb.Anchored = false
  3765. lb.Parent = char
  3766. local thingery = Instance.new("SpecialMesh",lb)
  3767. thingery.MeshType = "Sphere"
  3768. thingery.Scale = vt(20,20,20)
  3769. game:GetService("Debris"):AddItem(lb, 10)
  3770. local bv = Instance.new("BodyVelocity")
  3771. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3772. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3773. bv.Parent = lb
  3774. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3775. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3776. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3777. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3778. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3779. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3780. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3781. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3782. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3783. local hitted = false
  3784. coroutine.resume(coroutine.create(function()
  3785. while true do
  3786. swait(1)
  3787. if lb.Parent ~= nil and hitted == false then
  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. 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)
  3790. elseif lb.Parent == nil then
  3791. break
  3792. end
  3793. end
  3794. end))
  3795.  
  3796. game:GetService("Debris"):AddItem(a, 0.1)
  3797.  
  3798. coroutine.resume(coroutine.create(function()
  3799. swait(1)
  3800. lb.Touched:connect(function(hit)
  3801. if hitted == false then
  3802. hitted = true
  3803. lb.Transparency = 1
  3804. lb.Anchored = true
  3805. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3806. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3807. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3808. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3809. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3810. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3811. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3812. CameraEnshaking(10,5)
  3813. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3814. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3815. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3816. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3817. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3818. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3819. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3820. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3821. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3822. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3823. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3824. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3825. for i = 0, 9 do
  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. 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)
  3832. end
  3833. for i = 0, 49 do
  3834. swait()
  3835. MagniDamage(lb, 30, 30, 60, 0, "Normal")
  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. 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)
  3839. end
  3840. end
  3841. end)
  3842. end))
  3843. end
  3844. Overed = true
  3845. orb:Destroy()
  3846. end))
  3847.  
  3848. attack = false
  3849. end
  3850.  
  3851. function StarDivision()
  3852. attack = true
  3853. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  3854. for i = 0, 2, 0.1 do
  3855. swait()
  3856. 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)
  3857. 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)
  3858. 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)
  3859. 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)
  3860. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
  3861. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  3862. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6)
  3863. end
  3864. local orb = Instance.new("Part", char)
  3865. orb.BrickColor = MAINRUINCOLOR
  3866. orb.CanCollide = false
  3867. orb.FormFactor = 3
  3868. orb.Name = "Ring"
  3869. orb.Material = "Neon"
  3870. orb.Size = Vector3.new(1, 1, 1)
  3871. orb.Transparency = 0
  3872. orb.TopSurface = 0
  3873. orb.BottomSurface = 0
  3874. local orbm = Instance.new("SpecialMesh", orb)
  3875. orbm.MeshType = "Sphere"
  3876. orbm.Name = "SizeMesh"
  3877. orbm.Scale = vt(2,2,2)
  3878. local a = Instance.new("Part",workspace)
  3879. a.Name = "Direction"
  3880. a.Anchored = true
  3881. a.BrickColor = bc("Bright red")
  3882. a.Material = "Neon"
  3883. a.Transparency = 1
  3884. a.CanCollide = false
  3885. local ray = Ray.new(
  3886. sorb.CFrame.p, -- origin
  3887. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  3888. )
  3889. local ignore = sorb
  3890. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3891. a.BottomSurface = 10
  3892. a.TopSurface = 10
  3893. local distance = (sorb.CFrame.p - position).magnitude
  3894. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3895. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3896. orb.CFrame = a.CFrame
  3897. a:Destroy()
  3898. local bv = Instance.new("BodyVelocity")
  3899. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3900. bv.velocity = orb.CFrame.lookVector*100
  3901. bv.Parent = orb
  3902. local hitted = false
  3903. game:GetService("Debris"):AddItem(orb, 10)
  3904. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  3905. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  3906. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  3907. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  3908. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  3909. coroutine.resume(coroutine.create(function()
  3910. while true do
  3911. swait(1)
  3912. if orb.Parent ~= nil and hitted == false then
  3913. 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)
  3914. elseif orb.Parent == nil then
  3915. break
  3916. end
  3917. end
  3918. end))
  3919. coroutine.resume(coroutine.create(function()
  3920. swait(1)
  3921. orb.Touched:connect(function(hit)
  3922. if hitted == false then
  3923. hitted = true
  3924. game:GetService("Debris"):AddItem(orb, 5)
  3925. orb.Transparency = 1
  3926. orb.Anchored = true
  3927. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3928. elocacenter.Anchored = true
  3929. elocacenter.CFrame = orb.CFrame
  3930. elocacenter.Orientation = vt(0,0,0)
  3931. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3932. eloca1.Anchored = true
  3933. eloca1.CFrame = elocacenter.CFrame
  3934. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3935. eloca2.Anchored = true
  3936. eloca2.CFrame = elocacenter.CFrame
  3937. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3938. eloca3.Anchored = true
  3939. eloca3.CFrame = elocacenter.CFrame
  3940. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3941. eloca4.Anchored = true
  3942. eloca4.CFrame = elocacenter.CFrame
  3943. local lookavec = 0
  3944. local speeds = 0
  3945. CameraEnshaking(1,1)
  3946. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  3947. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3948. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3949. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3950. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3951. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3952. for i = 0, 99 do
  3953. swait()
  3954. lookavec = lookavec + 1
  3955. speeds = speeds + 0.1
  3956. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3957. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3958. 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)
  3959.  
  3960. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3961. 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)
  3962.  
  3963. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3964. 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)
  3965.  
  3966. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3967. 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)
  3968. end
  3969.  
  3970. for i = 0, 149 do
  3971. swait()
  3972. speeds = speeds + 0.1
  3973. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3974. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3975. 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)
  3976.  
  3977. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3978. 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)
  3979.  
  3980. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3981. 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)
  3982.  
  3983. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3984. 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)
  3985. end
  3986. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  3987. if v:FindFirstChild('Head') then
  3988. dmg(v)
  3989. end
  3990. end
  3991. CameraEnshaking(7,30)
  3992. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  3993. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  3994. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  3995. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  3996. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  3997. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  3998. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  3999. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4000. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4001. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4002. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4003. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4004. for i = 0, 24 do
  4005. 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)
  4006. 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)
  4007. 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)
  4008. 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)
  4009. end
  4010. coroutine.resume(coroutine.create(function()
  4011. for i = 0, 499 do
  4012. swait(1)
  4013. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4014. 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)
  4015. end
  4016. elocacenter:Destroy()
  4017. eloca1:Destroy()
  4018. eloca2:Destroy()
  4019. eloca3:Destroy()
  4020. eloca4:Destroy()
  4021. end))
  4022. end
  4023. end)
  4024. end))
  4025. attack = false
  4026. end
  4027.  
  4028.  
  4029. function UniversalCollapse()
  4030. attack = true
  4031. local speedearn = 0
  4032. hum.WalkSpeed = 0
  4033. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4034. for i = 0, 10, 0.1 do
  4035. swait()
  4036. speedearn = speedearn + 0.1
  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. 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)
  4042. 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)
  4043. 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)
  4044. 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)
  4045. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4046. 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)
  4047. 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)
  4048. end
  4049. CameraEnshaking(5,45)
  4050. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4051. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4052. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4053. if v:FindFirstChild('Head') then
  4054. dmg(v)
  4055. end
  4056. end
  4057. hum.WalkSpeed = storehumanoidWS
  4058. attack = false
  4059. end
  4060. function ChaosBegone()
  4061. attack = true
  4062. local speedearn = 0
  4063. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75)
  4064. for i = 0, 10, 0.1 do
  4065. swait()
  4066. speedearn = speedearn + 0.1
  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. 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)
  4072. 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)
  4073. 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)
  4074. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4075. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4076. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4077. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4078. end
  4079. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  4080. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1)
  4081. CameraEnshaking(5,25)
  4082. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4083. if v:FindFirstChild('Head') then
  4084. dmg(v)
  4085. end
  4086. end
  4087. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4088. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4089. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4090. for i = 0, 3, 0.1 do
  4091. swait()
  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. 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)
  4096. 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)
  4097. 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)
  4098. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4099. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4100. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4101. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4102. end
  4103. attack = false
  4104. end
  4105.  
  4106. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4107. local orb = Instance.new("Part", char)
  4108. orb.Anchored = true
  4109. orb.BrickColor = color
  4110. orb.CanCollide = false
  4111. orb.FormFactor = 3
  4112. orb.Name = "Ring"
  4113. orb.Material = "Neon"
  4114. orb.Size = Vector3.new(1, 1, 1)
  4115. orb.Transparency = 0
  4116. orb.TopSurface = 0
  4117. orb.BottomSurface = 0
  4118. local orbm = Instance.new("SpecialMesh", orb)
  4119. orbm.MeshType = "Sphere"
  4120. orb.CFrame = positted
  4121. orbm.Name = "SizeMesh"
  4122. orbm.Scale = vt(1,1,1)
  4123. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4124. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4125. --[[for i = 0, 2 do
  4126. 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)
  4127. end]]--
  4128. coroutine.resume(coroutine.create(function()
  4129. wait(timer)
  4130. CameraEnshaking(3,ShakePower)
  4131. orb.Transparency = 1
  4132. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4133. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4134. --[[for i = 0, 4 do
  4135. 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)
  4136. end]]--
  4137. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4138. wait(3)
  4139. orb:Destroy()
  4140. end))
  4141. end
  4142.  
  4143. function orb_spawn(positted,timer)
  4144. local randomcol = math.random(1,2)
  4145. local orb = Instance.new("Part", char)
  4146. orb.Anchored = true
  4147. if randomcol == 1 then
  4148. orb.BrickColor = BrickColor.new("White")
  4149. elseif randomcol == 2 then
  4150. orb.BrickColor = BrickColor.new("Really black")
  4151. end
  4152. orb.CanCollide = false
  4153. orb.FormFactor = 3
  4154. orb.Name = "Ring"
  4155. orb.Material = "Neon"
  4156. orb.Size = Vector3.new(1, 1, 1)
  4157. orb.Transparency = 0
  4158. orb.TopSurface = 0
  4159. orb.BottomSurface = 0
  4160. local orbm = Instance.new("SpecialMesh", orb)
  4161. orbm.MeshType = "Sphere"
  4162. orb.CFrame = positted
  4163. orbm.Name = "SizeMesh"
  4164. orbm.Scale = vt(1,1,1)
  4165. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4166. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4167. for i = 0, 2 do
  4168. 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)
  4169. end
  4170. coroutine.resume(coroutine.create(function()
  4171. wait(timer)
  4172. CameraEnshaking(3,2)
  4173. orb.Transparency = 1
  4174. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4175. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4176. for i = 0, 4 do
  4177. 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)
  4178. end
  4179. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4180. wait(3)
  4181. orb:Destroy()
  4182. end))
  4183. end
  4184.  
  4185. function scattercorrupt()
  4186. attack = true
  4187. local rot = 0
  4188. local randomrotations = math.random(1,2)
  4189. local lookv = 2.5
  4190. local power = 5
  4191. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4192. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4193. for i = 0, 9 do
  4194. 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)
  4195. end
  4196. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  4197. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  4198. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4199. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  4200. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  4201. local hite = Instance.new("Part", char)
  4202. hite.Anchored = true
  4203. hite.CanCollide = false
  4204. hite.FormFactor = 3
  4205. hite.Name = "Ring"
  4206. hite.Material = "Neon"
  4207. hite.Size = Vector3.new(1, 1, 1)
  4208. hite.Transparency = 1
  4209. hite.TopSurface = 0
  4210. hite.BottomSurface = 0
  4211. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4212. local rem = Instance.new("Part", char)
  4213. rem.Anchored = true
  4214. rem.CanCollide = false
  4215. rem.FormFactor = 3
  4216. rem.Name = "Ring"
  4217. rem.Material = "Neon"
  4218. rem.Size = Vector3.new(1, 1, 1)
  4219. rem.Transparency = 1
  4220. rem.TopSurface = 0
  4221. rem.BottomSurface = 0
  4222. rem.CFrame = hite.CFrame
  4223. local rem2 = rem:Clone()
  4224. rem2.Parent = char
  4225. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4226. local rem3 = rem:Clone()
  4227. rem3.Parent = char
  4228. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4229. local rem4 = rem:Clone()
  4230. rem4.Parent = char
  4231. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4232. hite:Destroy()
  4233. coroutine.resume(coroutine.create(function()
  4234. for i = 0, 24 do
  4235. swait(1)
  4236. if randomrotations == 1 then
  4237. rot = rot + 1
  4238. elseif randomrotations == 2 then
  4239. rot = rot - 1
  4240. end
  4241. power = power + 0.5
  4242. lookv = lookv + 7.5
  4243. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4244. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4245. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4246. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4247. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4248. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4249. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4250. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4251. end
  4252. end))
  4253. attack = false
  4254. end
  4255. function yinyangi()
  4256. attack = true
  4257. for i = 0, 2, 0.1 do
  4258. swait()
  4259. 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)
  4260. 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)
  4261. 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)
  4262. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4263. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4264. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4265. end
  4266. local bv = Instance.new("BodyVelocity")
  4267. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4268. bv.velocity = root.CFrame.lookVector*175
  4269. bv.Parent = root
  4270. for Rotations = 0, 9 do
  4271. for i = 0, 1, 0.5 do
  4272. swait()
  4273. bv.velocity = root.CFrame.lookVector*175
  4274. 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)
  4275. 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)
  4276. 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)
  4277. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4278. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4279. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4280. end
  4281. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4282. for i = 0, 1, 0.5 do
  4283. swait()
  4284. bv.velocity = root.CFrame.lookVector*175
  4285. 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)
  4286. 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)
  4287. 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)
  4288. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4289. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4290. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4291. end
  4292. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4293. for i = 0, 1, 0.5 do
  4294. swait()
  4295. bv.velocity = root.CFrame.lookVector*175
  4296. 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)
  4297. 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)
  4298. 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)
  4299. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4300. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4301. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4302. end
  4303. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4304. for i = 0, 1, 0.5 do
  4305. swait()
  4306. bv.velocity = root.CFrame.lookVector*175
  4307. 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)
  4308. 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)
  4309. 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)
  4310. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4311. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4312. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4313. end
  4314. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4315. end
  4316. bv:Destroy()
  4317. attack = false
  4318. end
  4319.  
  4320. function Wip()
  4321. attack = true
  4322.  
  4323. local rngb = Instance.new("Part", char)
  4324. rngb.Anchored = true
  4325. rngb.BrickColor = origcolor
  4326. rngb.CanCollide = false
  4327. rngb.FormFactor = 3
  4328. rngb.Name = "Ring"
  4329. rngb.Material = "Neon"
  4330. rngb.Size = Vector3.new(1, 0.05, 1)
  4331. rngb.Transparency = 1
  4332. rngb.TopSurface = 0
  4333. rngb.BottomSurface = 0
  4334. local rngmb = Instance.new("SpecialMesh", rngb)
  4335. rngmb.MeshType = "Brick"
  4336. rngmb.Name = "SizeMesh"
  4337. rngmb.Scale = vt(0,1,0)
  4338.  
  4339. local orb = rngb:Clone()
  4340. orb.Parent = char
  4341. orb.Transparency = 0
  4342. orb.BrickColor = BrickColor.new("White")
  4343. orb.Size = vt(1,1,1)
  4344. local orbmish = orb.SizeMesh
  4345. orbmish.Scale = vt(0,0,0)
  4346. orbmish.MeshType = "Sphere"
  4347.  
  4348. local orbe = rngb:Clone()
  4349. orbe.Parent = char
  4350. orbe.Transparency = 0.5
  4351. orbe.BrickColor = BrickColor.new("New Yeller")
  4352. orbe.Size = vt(1,1,1)
  4353. local orbmish2 = orbe.SizeMesh
  4354. orbmish2.Scale = vt(0,0,0)
  4355. orbmish2.MeshType = "Sphere"
  4356. orbe.Color = Color3.new(r/255,g/255,b/255)
  4357.  
  4358. rngb:Destroy()
  4359. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4360. local scaled = 1
  4361. for i = 0,5,0.1 do
  4362. swait()
  4363. scaled = scaled - 0.02
  4364. if rainbowmode == true then
  4365. orbe.Color = Color3.new(r/255,g/255,b/255)
  4366. end
  4367. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4368. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4369. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4370. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4371. 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)
  4372. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4373. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4374. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4375. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4376. 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)
  4377. 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)
  4378. RootPart.CFrame = FaceMouse()[1]
  4379. end]]--
  4380. for i = 0,5,0.1 do
  4381. swait()
  4382. if rainbowmode == true then
  4383. orbe.Color = Color3.new(r/255,g/255,b/255)
  4384. end
  4385. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4386. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4387. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4388. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4389. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4390. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4391. 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)
  4392. 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)
  4393. RootPart.CFrame = FaceMouse()[1]
  4394. end
  4395. orbe.Transparency = 1
  4396. orb.Transparency = 1
  4397. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4398. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4399. local a = Instance.new("Part",Character)
  4400. a.Name = "Direction"
  4401. a.Anchored = true
  4402. a.BrickColor = bc("White")
  4403. a.Material = "Neon"
  4404. a.Transparency = 0
  4405. a.Shape = "Cylinder"
  4406. a.CanCollide = false
  4407. local a2 = Instance.new("Part",Character)
  4408. a2.Name = "Direction"
  4409. a2.Anchored = true
  4410. a2.BrickColor = bc("New Yeller")
  4411. a2.Color = Color3.new(r/255,g/255,b/255)
  4412. a2.Material = "Neon"
  4413. a2.Transparency = 0.5
  4414. a2.Shape = "Cylinder"
  4415. a2.CanCollide = false
  4416. local ba = Instance.new("Part",Character)
  4417. ba.Name = "HitDirect"
  4418. ba.Anchored = true
  4419. ba.BrickColor = bc("Cool yellow")
  4420. ba.Material = "Neon"
  4421. ba.Transparency = 1
  4422. ba.CanCollide = false
  4423. local ray = Ray.new(
  4424. orb.CFrame.p, -- origin
  4425. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4426. )
  4427. local ignore = Character
  4428. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4429. a.BottomSurface = 10
  4430. a.TopSurface = 10
  4431. a2.BottomSurface = 10
  4432. a2.TopSurface = 10
  4433. local distance = (orb.CFrame.p - position).magnitude
  4434. a.Size = Vector3.new(distance, 1, 1)
  4435. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4436. a2.Size = Vector3.new(distance, 1, 1)
  4437. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4438. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4439. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4440. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4441. game:GetService("Debris"):AddItem(a, 20)
  4442. game:GetService("Debris"):AddItem(a2, 20)
  4443. game:GetService("Debris"):AddItem(ba, 20)
  4444. local msh = Instance.new("SpecialMesh",a)
  4445. msh.MeshType = "Cylinder"
  4446. msh.Scale = vt(1,5*5,5*5)
  4447. local msh2 = Instance.new("SpecialMesh",a2)
  4448. msh2.MeshType = "Cylinder"
  4449. msh2.Scale = vt(1,6*5,6*5)
  4450.  
  4451. for i = 0,10,0.1 do
  4452. swait()
  4453. CameraEnshaking(1,5)
  4454. a2.Color = Color3.new(r/255,g/255,b/255)
  4455. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4456. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4457. ray = Ray.new(
  4458. orb.CFrame.p, -- origin
  4459. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4460. )
  4461. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4462. distance = (orb.CFrame.p - position).magnitude
  4463. if typrot == 1 then
  4464. rotation = rotation + 2.5
  4465. elseif typrot == 2 then
  4466. rotation = rotation - 2.5
  4467. end
  4468. RootPart.CFrame = FaceMouse()[1]
  4469. a.Size = Vector3.new(distance, 1, 1)
  4470. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4471. a2.Size = Vector3.new(distance, 1, 1)
  4472. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4473. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4474. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4475. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4476. msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5)
  4477. msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5)
  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. 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)
  4480. MagniDamage(ba, 30, 500,60000, 0, "Normal")
  4481. end
  4482. a:Destroy()
  4483. a2:Destroy()
  4484. ba:Destroy()
  4485. orb:Destroy()
  4486. orbe:Destroy()
  4487. attack = false
  4488. end
  4489. function HolyBarrier()
  4490. attack = true
  4491. shielding = true
  4492. for i = 0, 2, 0.1 do
  4493. swait()
  4494. 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)
  4495. 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)
  4496. 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)
  4497. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
  4498. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1)
  4499. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1)
  4500. end
  4501. CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1)
  4502. stash = Instance.new("Model",workspace)
  4503. local barrier = Instance.new("Part",stash)
  4504. barrier.Anchored = true
  4505. barrier.CanCollide = false
  4506. barrier.Size = Vector3.new(20,20,20)
  4507. barrier.CFrame = root.CFrame
  4508. barrier.Transparency = 0.6
  4509. barrier.BrickColor = MAINRUINCOLOR
  4510. barrier.Material = Enum.Material.Neon
  4511. barrier.Shape = Enum.PartType.Ball
  4512. barrier.CFrame = root.CFrame
  4513. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  4514. Torso.Anchored = true
  4515. for i=1,50 do
  4516. local p = Instance.new("Part",stash)
  4517. p.Anchored = true
  4518. p.Transparency = 1
  4519. p.Size = Vector3.new(11,11,11)
  4520. p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
  4521. end
  4522. repeat
  4523. swait(5)
  4524. 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)
  4525. until shielding == false
  4526. stash:Remove()
  4527. Torso.Anchored = false
  4528. shielding = false
  4529. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  4530. attack = false
  4531. end
  4532. function Judgement()
  4533. attack = true
  4534. judgement = true
  4535. hum.WalkSpeed = 0
  4536. local p = Instance.new("Part",root)
  4537. p.Anchored = true
  4538. p.CanCollide = false
  4539. p.BrickColor = MAINRUINCOLOR
  4540. p.Material = Enum.Material.Neon
  4541. p.Size = Vector3.new(1,1,1)
  4542. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4543. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4544. local m = Instance.new("SpecialMesh",p)
  4545. m.MeshType = "Cylinder"
  4546. m.Scale = Vector3.new(2000,2,2)
  4547. local targ = Instance.new("Part",root)
  4548. targ.Anchored = true
  4549. targ.Transparency = 1
  4550. targ.CanCollide = false
  4551. targ.Size = Vector3.new(1,1,1)
  4552. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4553. local s = Instance.new("Sound",targ)
  4554. s.SoundId = "https://roblox.com/asset/?id=115327352"
  4555. s.Looped = true
  4556. s.Pitch = 1.2
  4557. s.Volume = 3
  4558. spawn(function()
  4559. swait(15)
  4560. s:Play()
  4561. end)
  4562. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  4563. for i = 1,15 do
  4564. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4565. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  4566. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  4567. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  4568. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  4569. 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)
  4570. 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)
  4571. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR)
  4572. 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)
  4573. m.Scale = m.Scale+Vector3.new(0,1,1)
  4574. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4575. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4576. swait()
  4577. end
  4578. 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)
  4579. repeat
  4580. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4581. 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)
  4582. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR)
  4583. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4584. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4585. MagniDamage(targ, 25, 5, 8, 0, "Normal")
  4586. swait()
  4587. until judgement == false
  4588. for i =1,15 do
  4589. m.Scale = m.Scale-Vector3.new(1,1,1)
  4590. p.Transparency = i / 15
  4591. s.Pitch = s.Pitch - 0.4
  4592. swait()
  4593. end
  4594. p:Destroy()
  4595. hum.WalkSpeed = storehumanoidWS
  4596. attack = false
  4597. end
  4598.  
  4599. function UniversalSpark()
  4600. attack = true
  4601.  
  4602. local rngb = Instance.new("Part", char)
  4603. rngb.Anchored = true
  4604. rngb.BrickColor = origcolor
  4605. rngb.CanCollide = false
  4606. rngb.FormFactor = 3
  4607. rngb.Name = "Ring"
  4608. rngb.Material = "Neon"
  4609. rngb.Size = Vector3.new(1, 0.05, 1)
  4610. rngb.Transparency = 1
  4611. rngb.TopSurface = 0
  4612. rngb.BottomSurface = 0
  4613. local rngmb = Instance.new("SpecialMesh", rngb)
  4614. rngmb.MeshType = "Brick"
  4615. rngmb.Name = "SizeMesh"
  4616. rngmb.Scale = vt(0,1,0)
  4617.  
  4618. local orb = rngb:Clone()
  4619. orb.Parent = char
  4620. orb.Transparency = 0
  4621. orb.BrickColor = BrickColor.new("White")
  4622. orb.Size = vt(1,1,1)
  4623. local orbmish = orb.SizeMesh
  4624. orbmish.Scale = vt(0,0,0)
  4625. orbmish.MeshType = "Sphere"
  4626.  
  4627. local orbe = rngb:Clone()
  4628. orbe.Parent = char
  4629. orbe.Transparency = 0.5
  4630. orbe.BrickColor = BrickColor.new("New Yeller")
  4631. orbe.Size = vt(1,1,1)
  4632. local orbmish2 = orbe.SizeMesh
  4633. orbmish2.Scale = vt(0,0,0)
  4634. orbmish2.MeshType = "Sphere"
  4635. orbe.Color = Color3.new(r/255,g/255,b/255)
  4636.  
  4637. rngb:Destroy()
  4638. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4639. local scaled = 1
  4640. for i = 0,5,0.1 do
  4641. swait()
  4642. scaled = scaled - 0.02
  4643. if rainbowmode == true then
  4644. orbe.Color = Color3.new(r/255,g/255,b/255)
  4645. end
  4646. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4647. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4648. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4649. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4650. 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)
  4651. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4652. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4653. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4654. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4655. 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)
  4656. 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)
  4657. RootPart.CFrame = FaceMouse()[1]
  4658. end]]--
  4659. for i = 0,5,0.1 do
  4660. swait()
  4661. if rainbowmode == true then
  4662. orbe.Color = Color3.new(r/255,g/255,b/255)
  4663. end
  4664. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4665. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4666. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4667. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4668. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4669. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4670. 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)
  4671. 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)
  4672. RootPart.CFrame = FaceMouse()[1]
  4673. end
  4674. orbe.Transparency = 1
  4675. orb.Transparency = 1
  4676. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4677. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  4678. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  4679. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4680.  
  4681. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4682. CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1)
  4683. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4684. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1)
  4685. CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1)
  4686. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  4687. CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1)
  4688. local xd= Instance.new("Sound",char)
  4689. xd.SoundId = "rbxassetid://445796828"
  4690. xd.Pitch = 0.75
  4691. xd.Looped = true
  4692. xd.Volume = 1.25
  4693. xd:Play()
  4694. local a = Instance.new("Part",Character)
  4695. a.Name = "Direction"
  4696. a.Anchored = true
  4697. a.BrickColor = bc("Alder")
  4698. a.Color = MAINRUINCOLOR.Color
  4699. a.Material = "Neon"
  4700. a.Transparency = 0.5
  4701. a.Shape = "Cylinder"
  4702. a.CanCollide = false
  4703. local a2 = Instance.new("Part",Character)
  4704. a2.Name = "Direction"
  4705. a2.Anchored = true
  4706. a2.BrickColor = bc("New Yeller")
  4707. a2.Color = MAINRUINCOLOR.Color
  4708. a2.Material = "Neon"
  4709. a2.Transparency = 0.5
  4710. a2.Shape = "Cylinder"
  4711. a2.CanCollide = false
  4712. local ba = Instance.new("Part",Character)
  4713. ba.Name = "HitDirect"
  4714. ba.Anchored = true
  4715. ba.BrickColor = bc("Cool yellow")
  4716. ba.Material = "Neon"
  4717. ba.Transparency = 1
  4718. ba.CanCollide = false
  4719. local ray = Ray.new(
  4720. orb.CFrame.p, -- origin
  4721. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4722. )
  4723. local ignore = Character
  4724. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4725. a.BottomSurface = 10
  4726. a.TopSurface = 10
  4727. a2.BottomSurface = 10
  4728. a2.TopSurface = 10
  4729. local distance = (orb.CFrame.p - position).magnitude
  4730. a.Size = Vector3.new(distance, 1, 1)
  4731. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4732. a2.Size = Vector3.new(distance, 1, 1)
  4733. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4734. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4735. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4736. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4737. game:GetService("Debris"):AddItem(a, 60)
  4738. game:GetService("Debris"):AddItem(a2, 60)
  4739. game:GetService("Debris"):AddItem(ba, 60)
  4740. local outerscale = 0
  4741. local msh = Instance.new("SpecialMesh",a)
  4742. msh.MeshType = "Cylinder"
  4743. msh.Scale = vt(1,0,0)
  4744. local msh2 = Instance.new("SpecialMesh",a2)
  4745. msh2.MeshType = "Cylinder"
  4746. msh2.Scale = vt(1,0,0)
  4747. for i = 0,2,0.1 do
  4748. swait()
  4749. CameraEnshaking(1,1)
  4750. msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20)
  4751. msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15)
  4752. outerscale = outerscale - 0.015
  4753. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4754. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4755. ray = Ray.new(
  4756. orb.CFrame.p, -- origin
  4757. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4758. )
  4759. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4760. distance = (orb.CFrame.p - position).magnitude
  4761. if typrot == 1 then
  4762. rotation = rotation + 2.5
  4763. elseif typrot == 2 then
  4764. rotation = rotation - 2.5
  4765. end
  4766. RootPart.CFrame = FaceMouse()[1]
  4767. a.Size = Vector3.new(distance, 1, 1)
  4768. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4769. a2.Size = Vector3.new(distance, 1, 1)
  4770. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4771. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4772. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4773. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),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. 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)
  4776. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4777. end
  4778. for z = 0, 2 do
  4779. for i = 0,4,0.1 do
  4780. swait()
  4781. CameraEnshaking(1,1)
  4782. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4783. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4784. outerscale = outerscale + 0.015
  4785. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4786. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4787. ray = Ray.new(
  4788. orb.CFrame.p, -- origin
  4789. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4790. )
  4791. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4792. distance = (orb.CFrame.p - position).magnitude
  4793. if typrot == 1 then
  4794. rotation = rotation + 2.5
  4795. elseif typrot == 2 then
  4796. rotation = rotation - 2.5
  4797. end
  4798. RootPart.CFrame = FaceMouse()[1]
  4799. a.Size = Vector3.new(distance, 1, 1)
  4800. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4801. a2.Size = Vector3.new(distance, 1, 1)
  4802. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4803. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4804. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4805. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),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. 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)
  4808. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4809. end
  4810. for i = 0,4,0.1 do
  4811. swait()
  4812. CameraEnshaking(1,1)
  4813. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4814. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4815. outerscale = outerscale - 0.015
  4816. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4817. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4818. ray = Ray.new(
  4819. orb.CFrame.p, -- origin
  4820. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4821. )
  4822. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4823. distance = (orb.CFrame.p - position).magnitude
  4824. if typrot == 1 then
  4825. rotation = rotation + 2.5
  4826. elseif typrot == 2 then
  4827. rotation = rotation - 2.5
  4828. end
  4829. RootPart.CFrame = FaceMouse()[1]
  4830. a.Size = Vector3.new(distance, 1, 1)
  4831. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4832. a2.Size = Vector3.new(distance, 1, 1)
  4833. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4834. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4835. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4836. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),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. 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)
  4839. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4840. end
  4841. end
  4842. for i = 0,4,0.1 do
  4843. swait()
  4844. CameraEnshaking(1,1)
  4845. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4846. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4847. xd.Volume = xd.Volume - 0.025
  4848. a.Transparency = a.Transparency + 0.025
  4849. a2.Transparency = a2.Transparency + 0.025
  4850. outerscale = outerscale - 0.015
  4851. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4852. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4853. ray = Ray.new(
  4854. orb.CFrame.p, -- origin
  4855. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4856. )
  4857. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4858. distance = (orb.CFrame.p - position).magnitude
  4859. if typrot == 1 then
  4860. rotation = rotation + 2.5
  4861. elseif typrot == 2 then
  4862. rotation = rotation - 2.5
  4863. end
  4864. RootPart.CFrame = FaceMouse()[1]
  4865. a.Size = Vector3.new(distance, 1, 1)
  4866. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4867. a2.Size = Vector3.new(distance, 1, 1)
  4868. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4869. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4870. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4871. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),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. 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)
  4874. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4875. end
  4876. xd:Destroy()
  4877. a:Destroy()
  4878. a2:Destroy()
  4879. ba:Destroy()
  4880. orb:Destroy()
  4881. orbe:Destroy()
  4882. attack = false
  4883. end
  4884.  
  4885.  
  4886. function resetmode()
  4887. rainbowmode = false
  4888. chaosmode = false
  4889. tl1.Enabled = false
  4890. tl2.Enabled = false
  4891. tl3.Enabled = false
  4892. ModeOfGlitch = 1
  4893. storehumanoidWS = 16
  4894. coroutine.resume(coroutine.create(function()
  4895. attack = true
  4896. hum.WalkSpeed = 0
  4897. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25)
  4898. for i = 0,4,0.1 do
  4899. swait()
  4900. 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)
  4901. 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)
  4902. 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)
  4903. 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)
  4904. 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)
  4905. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.5)
  4906. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.5)
  4907. end
  4908. CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1)
  4909. CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1)
  4910. CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1)
  4911. CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75)
  4912. RecolorTextAndRename("Mayhem",Color3.new(0,0,0),Color3.new(1,0,0))
  4913. CameraEnshaking(5,2.5)
  4914. MAINRUINCOLOR = BrickColor.new("Really red")
  4915. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4916. for i = 0, 49 do
  4917. 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)
  4918. end
  4919. for i = 0,3,0.1 do
  4920. 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)
  4921. end
  4922. for i, v in pairs(mw2:GetChildren()) do
  4923. if v:IsA("Part") then
  4924. v.BrickColor = BrickColor.new("Really red")
  4925. v.Material = "Neon"
  4926. end
  4927. end
  4928. for i, v in pairs(mw1:GetChildren()) do
  4929. if v:IsA("Part") then
  4930. v.Transparency = 1
  4931. v.BrickColor = BrickColor.new("Really red")
  4932. v.Material = "Neon"
  4933. end
  4934. end
  4935. for i, v in pairs(m:GetChildren()) do
  4936. if v:IsA("Part") then
  4937. v.BrickColor = BrickColor.new("Really black")
  4938. v.Material = "Glass"
  4939. end
  4940. end
  4941. for i, v in pairs(m2:GetChildren()) do
  4942. if v:IsA("Part") then
  4943. v.BrickColor = BrickColor.new("Crimson")
  4944. v.Material = "Granite"
  4945. end
  4946. end
  4947. for i, v in pairs(m3:GetChildren()) do
  4948. if v:IsA("Part") then
  4949. v.BrickColor = BrickColor.new("Really red")
  4950. v.Material = "Neon"
  4951. end
  4952. end
  4953. for i, v in pairs(extrawingmod1:GetChildren()) do
  4954. if v:IsA("Part") then
  4955. v.Transparency = 1
  4956. v.BrickColor = BrickColor.new("White")
  4957. v.Material = "Neon"
  4958. end
  4959. end
  4960. for i, v in pairs(extrawingmod2:GetChildren()) do
  4961. if v:IsA("Part") then
  4962. v.Transparency = 1
  4963. v.BrickColor = BrickColor.new("White")
  4964. v.Material = "Neon"
  4965. end
  4966. end
  4967. for i = 0,2,0.1 do
  4968. swait()
  4969. 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)
  4970. 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)
  4971. 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)
  4972. 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)
  4973. 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)
  4974. 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)
  4975. end
  4976. hum.WalkSpeed = storehumanoidWS
  4977. attack = false
  4978. end))
  4979. newTheme("rbxassetid://614032233",48.6,1,0.3)
  4980. end
  4981.  
  4982. function attackone()
  4983. attack = true
  4984. for i = 0,1,0.1 do
  4985. swait()
  4986. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2)
  4987. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2)
  4988. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  4989. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  4990. 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)
  4991. 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)
  4992. end
  4993. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1)
  4994.  
  4995. local hitb = Instance.new("Part", char)
  4996. hitb.Anchored = true
  4997. hitb.CanCollide = false
  4998. hitb.FormFactor = 3
  4999. hitb.Name = "Ring"
  5000. hitb.Material = "Neon"
  5001. hitb.Size = Vector3.new(1, 1, 1)
  5002. hitb.Transparency = 1
  5003. hitb.TopSurface = 0
  5004. hitb.BottomSurface = 0
  5005. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  5006. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  5007. hitb:Destroy()
  5008. for i = 0,1,0.1 do
  5009. swait()
  5010. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4)
  5011. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4)
  5012. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  5013. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  5014. 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)
  5015. 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)
  5016. end
  5017.  
  5018. attack = false
  5019. end
  5020.  
  5021. function attacktwo()
  5022. attack = true
  5023. for i = 0,1,0.1 do
  5024. swait()
  5025. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2)
  5026. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  5027. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  5028. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  5029. 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)
  5030. 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)
  5031. end
  5032. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1)
  5033. local hitb = Instance.new("Part", char)
  5034. hitb.Anchored = true
  5035. hitb.CanCollide = false
  5036. hitb.FormFactor = 3
  5037. hitb.Name = "Ring"
  5038. hitb.Material = "Neon"
  5039. hitb.Size = Vector3.new(1, 1, 1)
  5040. hitb.Transparency = 1
  5041. hitb.TopSurface = 0
  5042. hitb.BottomSurface = 0
  5043. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  5044. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  5045. hitb:Destroy()
  5046. for i = 0,1,0.1 do
  5047. swait()
  5048. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4)
  5049. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4)
  5050. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  5051. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  5052. 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)
  5053. 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)
  5054. end
  5055. attack = false
  5056. end
  5057.  
  5058. function attackthree()
  5059. attack = true
  5060. for i = 0,1,0.1 do
  5061. swait()
  5062. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3)
  5063. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3)
  5064. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  5065. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5066. 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)
  5067. 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)
  5068. end
  5069. local distlook = 5
  5070. for i = 0, 4 do
  5071. swait(2)
  5072. CameraEnshaking(2,3)
  5073. local hite = Instance.new("Part", char)
  5074. hite.Anchored = true
  5075. hite.CanCollide = false
  5076. hite.FormFactor = 3
  5077. hite.Name = "Ring"
  5078. hite.Material = "Neon"
  5079. hite.Size = Vector3.new(1, 1, 1)
  5080. hite.Transparency = 1
  5081. hite.TopSurface = 0
  5082. hite.BottomSurface = 0
  5083. hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook
  5084. sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR)
  5085. sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR)
  5086. MagniDamage(hite, 10, 15,35, 0, "Normal")
  5087. for i = 0, 2 do
  5088. 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)
  5089. 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)
  5090. 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)
  5091. end
  5092. CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1)
  5093. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6)
  5094. game:GetService("Debris"):AddItem(hite, 5)
  5095. distlook = distlook + 10
  5096. end
  5097. attack = false
  5098. end
  5099.  
  5100. local ActiveGia = false
  5101. function THEHELLITSTHATBIG()
  5102. ActiveGia = true
  5103. attack = true
  5104. hum.WalkSpeed = 0
  5105. for i = 0,2,0.1 do
  5106. swait()
  5107. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5108. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5109. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5110. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5111. 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)
  5112. 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)
  5113. end
  5114. for i = 0,1,0.1 do
  5115. torsweld.C1=clerp(torsweld.C1,cf(0,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5116. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  5117. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  5118. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5119. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5120. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  5121. end
  5122. CFuncs["Sound"].Create("rbxassetid://528589382", sectors, 5, 1)
  5123. secrleg.Transparency = 0.5
  5124. seclleg.Transparency = 0.5
  5125. secrarm.Transparency = 0.5
  5126. seclarm.Transparency = 0.5
  5127. seched.Transparency = 0.5
  5128. sectors.Transparency = 0.5
  5129. for i = 0,25,0.1 do
  5130. swait()
  5131. 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)
  5132. 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)
  5133. 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)
  5134. 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)
  5135. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5136. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5137. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5138. end
  5139. --[[secrleg.Transparency = 1
  5140. seclleg.Transparency = 1
  5141. secrarm.Transparency = 1
  5142. seclarm.Transparency = 1
  5143. seched.Transparency = 1
  5144. sectors.Transparency = 1]]--
  5145. torsweld.Part0 = root
  5146. hum.WalkSpeed = storehumanoidWS
  5147. attack = false
  5148. end
  5149.  
  5150. function removelol()
  5151. ActiveGia = false
  5152. attack = true
  5153. hum.WalkSpeed = 0
  5154. for i = 0,2,0.1 do
  5155. swait()
  5156. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5157. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5158. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5159. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5160. 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)
  5161. 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)
  5162. end
  5163. CFuncs["Sound"].Create("rbxassetid://528589274", sectors, 5, 1)
  5164. for i = 0,25,0.1 do
  5165. swait()
  5166. secrleg.Transparency = secrleg.Transparency + 0.00225
  5167. seclleg.Transparency = secrleg.Transparency
  5168. secrarm.Transparency = secrleg.Transparency
  5169. seclarm.Transparency = secrleg.Transparency
  5170. seched.Transparency = secrleg.Transparency
  5171. sectors.Transparency = secrleg.Transparency
  5172. 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)
  5173. 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)
  5174. 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)
  5175. 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)
  5176. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5177. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5178. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5179. end
  5180. CFuncs["Sound"].Create("rbxassetid://468991944", sectors, 10, 1)
  5181. sphere(1,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5182. sphere(2,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5183. sphere(3,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5184. secrleg.Transparency = 1
  5185. seclleg.Transparency = 1
  5186. secrarm.Transparency = 1
  5187. seclarm.Transparency = 1
  5188. seched.Transparency = 1
  5189. sectors.Transparency = 1
  5190. torsweld.Part0 = root
  5191. hum.WalkSpeed = storehumanoidWS
  5192. attack = false
  5193. end
  5194.  
  5195. function FinalCalamity()
  5196. end
  5197.  
  5198. local attacktype = 1
  5199. mouse.Button1Down:connect(function()
  5200. if attack == false and attacktype == 1 then
  5201. attacktype = 2
  5202. attackone()
  5203. elseif attack == false and attacktype == 2 then
  5204. attacktype = 3
  5205. attacktwo()
  5206. elseif attack == false and attacktype == 3 then
  5207. attacktype = 1
  5208. attackthree()
  5209. elseif attack == false and attacktype == 4 then
  5210. attacktype = 1
  5211. --attackfour()
  5212. end
  5213. end)
  5214. mouse.KeyDown:connect(function(k)
  5215. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  5216. ModeOfGlitch = 2
  5217. storehumanoidWS = 16
  5218. hum.WalkSpeed = 16
  5219. rainbowmode = false
  5220. chaosmode = false
  5221. tl1.Enabled = false
  5222. tl2.Enabled = false
  5223. tl3.Enabled = false
  5224. RecolorTextAndRename("Purity",Color3.new(1,1,1),Color3.new(0,1,1))
  5225. newTheme("rbxassetid://1539245059",0,1,0.3)
  5226. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  5227. for i, v in pairs(mw2:GetChildren()) do
  5228. if v:IsA("Part") then
  5229. v.BrickColor = MAINRUINCOLOR
  5230. v.Material = "Neon"
  5231. end
  5232. end
  5233. for i, v in pairs(mw1:GetChildren()) do
  5234. if v:IsA("Part") then
  5235. v.Transparency = 1
  5236. v.BrickColor = MAINRUINCOLOR
  5237. v.Material = "Neon"
  5238. end
  5239. end
  5240. for i, v in pairs(m:GetChildren()) do
  5241. if v:IsA("Part") then
  5242. v.BrickColor = BrickColor.new("White")
  5243. v.Material = "Ice"
  5244. end
  5245. end
  5246. for i, v in pairs(m2:GetChildren()) do
  5247. if v:IsA("Part") then
  5248. v.BrickColor = BrickColor.new("Pastel light blue")
  5249. v.Material = "Glass"
  5250. end
  5251. end
  5252. for i, v in pairs(m3:GetChildren()) do
  5253. if v:IsA("Part") then
  5254. v.BrickColor = BrickColor.new("Toothpaste")
  5255. v.Material = "Neon"
  5256. end
  5257. end
  5258. for i, v in pairs(extrawingmod1:GetChildren()) do
  5259. if v:IsA("Part") then
  5260. v.Transparency = 1
  5261. v.BrickColor = BrickColor.new("White")
  5262. v.Material = "Neon"
  5263. end
  5264. end
  5265. for i, v in pairs(extrawingmod2:GetChildren()) do
  5266. if v:IsA("Part") then
  5267. v.Transparency = 1
  5268. v.BrickColor = BrickColor.new("White")
  5269. v.Material = "Neon"
  5270. end
  5271. end
  5272. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  5273. resetmode()
  5274. end
  5275. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  5276. ModeOfGlitch = 3
  5277. storehumanoidWS = 16
  5278. hum.WalkSpeed = 16
  5279. rainbowmode = false
  5280. chaosmode = false
  5281. tl1.Enabled = false
  5282. tl2.Enabled = false
  5283. tl3.Enabled = false
  5284. RecolorTextAndRename("Corruption",Color3.new(0,0,0),Color3.new(0.35,0,1))
  5285. newTheme("rbxassetid://1283869370",58.15,0.98,1.25)
  5286. MAINRUINCOLOR = BrickColor.new("Royal purple")
  5287. for i, v in pairs(mw2:GetChildren()) do
  5288. if v:IsA("Part") then
  5289. v.BrickColor = MAINRUINCOLOR
  5290. v.Material = "Neon"
  5291. end
  5292. end
  5293. for i, v in pairs(mw1:GetChildren()) do
  5294. if v:IsA("Part") then
  5295. v.Transparency = 1
  5296. v.BrickColor = MAINRUINCOLOR
  5297. v.Material = "Neon"
  5298. end
  5299. end
  5300. for i, v in pairs(m:GetChildren()) do
  5301. if v:IsA("Part") then
  5302. v.BrickColor = BrickColor.new("Black")
  5303. v.Material = "Ice"
  5304. end
  5305. end
  5306. for i, v in pairs(m2:GetChildren()) do
  5307. if v:IsA("Part") then
  5308. v.BrickColor = BrickColor.new("Dark indigo")
  5309. v.Material = "Glass"
  5310. end
  5311. end
  5312. for i, v in pairs(m3:GetChildren()) do
  5313. if v:IsA("Part") then
  5314. v.BrickColor = BrickColor.new("Royal purple")
  5315. v.Material = "Neon"
  5316. end
  5317. end
  5318. for i, v in pairs(extrawingmod1:GetChildren()) do
  5319. if v:IsA("Part") then
  5320. v.Transparency = 1
  5321. v.BrickColor = BrickColor.new("White")
  5322. v.Material = "Neon"
  5323. end
  5324. end
  5325. for i, v in pairs(extrawingmod2:GetChildren()) do
  5326. if v:IsA("Part") then
  5327. v.Transparency = 1
  5328. v.BrickColor = BrickColor.new("White")
  5329. v.Material = "Neon"
  5330. end
  5331. end
  5332. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  5333. resetmode()
  5334. end
  5335. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  5336. ModeOfGlitch = 4
  5337. storehumanoidWS = 16
  5338. hum.WalkSpeed = 16
  5339. rainbowmode = false
  5340. chaosmode = true
  5341. tl1.Enabled = true
  5342. tl2.Enabled = true
  5343. tl3.Enabled = true
  5344. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
  5345. newTheme("rbxassetid://1369263130",0,1,1)
  5346. MAINRUINCOLOR = BrickColor.new("Black")
  5347. for i, v in pairs(mw2:GetChildren()) do
  5348. if v:IsA("Part") then
  5349. v.BrickColor = MAINRUINCOLOR
  5350. v.Material = "Neon"
  5351. end
  5352. end
  5353. for i, v in pairs(mw1:GetChildren()) do
  5354. if v:IsA("Part") then
  5355. v.Transparency = 0.75
  5356. v.BrickColor = BrickColor.random()
  5357. v.Material = "Neon"
  5358. end
  5359. end
  5360. for i, v in pairs(m:GetChildren()) do
  5361. if v:IsA("Part") then
  5362. v.BrickColor = BrickColor.new("Black")
  5363. v.Material = "Neon"
  5364. end
  5365. end
  5366. for i, v in pairs(m2:GetChildren()) do
  5367. if v:IsA("Part") then
  5368. v.BrickColor = BrickColor.random()
  5369. v.Material = "Neon"
  5370. end
  5371. end
  5372. for i, v in pairs(m3:GetChildren()) do
  5373. if v:IsA("Part") then
  5374. v.BrickColor = BrickColor.new("Black")
  5375. v.Material = "Neon"
  5376. end
  5377. end
  5378. for i, v in pairs(extrawingmod1:GetChildren()) do
  5379. if v:IsA("Part") then
  5380. v.Transparency = 1
  5381. v.BrickColor = BrickColor.new("White")
  5382. v.Material = "Neon"
  5383. end
  5384. end
  5385. for i, v in pairs(extrawingmod2:GetChildren()) do
  5386. if v:IsA("Part") then
  5387. v.Transparency = 1
  5388. v.BrickColor = BrickColor.new("White")
  5389. v.Material = "Neon"
  5390. end
  5391. end
  5392. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  5393. resetmode()
  5394. end
  5395. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  5396. ModeOfGlitch = 5
  5397. storehumanoidWS = 16
  5398. hum.WalkSpeed = 16
  5399. rainbowmode = false
  5400. chaosmode = false
  5401. tl1.Enabled = true
  5402. tl2.Enabled = true
  5403. tl3.Enabled = true
  5404. RecolorTextAndRename("Divinity",Color3.new(1,1,1),Color3.new(1,1,0.5))
  5405. newTheme("rbxassetid://661079869",0,1.02,1)
  5406. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  5407. for i, v in pairs(mw2:GetChildren()) do
  5408. if v:IsA("Part") then
  5409. v.BrickColor = MAINRUINCOLOR
  5410. v.Material = "Neon"
  5411. end
  5412. end
  5413. for i, v in pairs(mw1:GetChildren()) do
  5414. if v:IsA("Part") then
  5415. v.Transparency = 0
  5416. v.BrickColor = MAINRUINCOLOR
  5417. v.Material = "Neon"
  5418. end
  5419. end
  5420. for i, v in pairs(m:GetChildren()) do
  5421. if v:IsA("Part") then
  5422. v.BrickColor = BrickColor.new("Cool yellow")
  5423. v.Material = "Ice"
  5424. end
  5425. end
  5426. for i, v in pairs(m2:GetChildren()) do
  5427. if v:IsA("Part") then
  5428. v.BrickColor = BrickColor.new("Bright yellow")
  5429. v.Material = "Ice"
  5430. end
  5431. end
  5432. for i, v in pairs(m3:GetChildren()) do
  5433. if v:IsA("Part") then
  5434. v.BrickColor = BrickColor.new("Bright yellow")
  5435. v.Material = "Neon"
  5436. end
  5437. end
  5438. for i, v in pairs(extrawingmod1:GetChildren()) do
  5439. if v:IsA("Part") then
  5440. v.Transparency = 1
  5441. v.BrickColor = BrickColor.new("White")
  5442. v.Material = "Neon"
  5443. end
  5444. end
  5445. for i, v in pairs(extrawingmod2:GetChildren()) do
  5446. if v:IsA("Part") then
  5447. v.Transparency = 1
  5448. v.BrickColor = BrickColor.new("White")
  5449. v.Material = "Neon"
  5450. end
  5451. end
  5452. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  5453. resetmode()
  5454. end
  5455. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  5456. ModeOfGlitch = 6
  5457. storehumanoidWS = 75
  5458. hum.WalkSpeed = 75
  5459. rainbowmode = false
  5460. chaosmode = false
  5461. tl1.Enabled = true
  5462. tl2.Enabled = true
  5463. tl3.Enabled = true
  5464. RecolorTextAndRename("Equinox",Color3.new(0,0,0),Color3.new(1,1,1))
  5465. newTheme("rbxassetid://395351949",0,1,1)
  5466. MAINRUINCOLOR = BrickColor.new("White")
  5467. for i, v in pairs(mw2:GetChildren()) do
  5468. if v:IsA("Part") then
  5469. v.BrickColor = MAINRUINCOLOR
  5470. v.Material = "Neon"
  5471. end
  5472. end
  5473. for i, v in pairs(mw1:GetChildren()) do
  5474. if v:IsA("Part") then
  5475. v.Transparency = 0
  5476. v.BrickColor = MAINRUINCOLOR
  5477. v.Material = "Neon"
  5478. end
  5479. end
  5480. for i, v in pairs(m:GetChildren()) do
  5481. if v:IsA("Part") then
  5482. v.BrickColor = BrickColor.new("White")
  5483. v.Material = "Ice"
  5484. end
  5485. end
  5486. for i, v in pairs(m2:GetChildren()) do
  5487. if v:IsA("Part") then
  5488. v.BrickColor = BrickColor.new("Really black")
  5489. v.Material = "Ice"
  5490. end
  5491. end
  5492. for i, v in pairs(m3:GetChildren()) do
  5493. if v:IsA("Part") then
  5494. v.BrickColor = BrickColor.new("White")
  5495. v.Material = "Neon"
  5496. end
  5497. end
  5498. for i, v in pairs(extrawingmod1:GetChildren()) do
  5499. if v:IsA("Part") then
  5500. v.Transparency = 1
  5501. v.BrickColor = BrickColor.new("White")
  5502. v.Material = "Neon"
  5503. end
  5504. end
  5505. for i, v in pairs(extrawingmod2:GetChildren()) do
  5506. if v:IsA("Part") then
  5507. v.Transparency = 1
  5508. v.BrickColor = BrickColor.new("White")
  5509. v.Material = "Neon"
  5510. end
  5511. end
  5512. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  5513. resetmode()
  5514. end
  5515. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  5516. ModeOfGlitch = 6127843
  5517. storehumanoidWS = 50
  5518. hum.WalkSpeed = 50
  5519. rainbowmode = true
  5520. chaosmode = false
  5521. tl1.Enabled = true
  5522. tl2.Enabled = true
  5523. tl3.Enabled = true
  5524. RecolorTextAndRename("RAINBOW",Color3.new(1,1,1),Color3.new(1,1,1))
  5525. newTheme("rbxassetid://147930134",0,1,1)
  5526. MAINRUINCOLOR = BrickColor.new("White")
  5527. for i, v in pairs(mw2:GetChildren()) do
  5528. if v:IsA("Part") then
  5529. v.BrickColor = MAINRUINCOLOR
  5530. v.Material = "Neon"
  5531. end
  5532. end
  5533. for i, v in pairs(mw1:GetChildren()) do
  5534. if v:IsA("Part") then
  5535. v.Transparency = 0
  5536. v.BrickColor = MAINRUINCOLOR
  5537. v.Material = "Neon"
  5538. end
  5539. end
  5540. for i, v in pairs(m:GetChildren()) do
  5541. if v:IsA("Part") then
  5542. v.BrickColor = BrickColor.new("White")
  5543. v.Material = "Neon"
  5544. end
  5545. end
  5546. for i, v in pairs(m2:GetChildren()) do
  5547. if v:IsA("Part") then
  5548. v.BrickColor = BrickColor.new("White")
  5549. v.Material = "Neon"
  5550. end
  5551. end
  5552. for i, v in pairs(m3:GetChildren()) do
  5553. if v:IsA("Part") then
  5554. v.BrickColor = BrickColor.new("White")
  5555. v.Material = "Neon"
  5556. end
  5557. end
  5558. for i, v in pairs(extrawingmod1:GetChildren()) do
  5559. if v:IsA("Part") then
  5560. v.Transparency = 1
  5561. v.BrickColor = BrickColor.new("White")
  5562. v.Material = "Neon"
  5563. end
  5564. end
  5565. for i, v in pairs(extrawingmod2:GetChildren()) do
  5566. if v:IsA("Part") then
  5567. v.Transparency = 1
  5568. v.BrickColor = BrickColor.new("White")
  5569. v.Material = "Neon"
  5570. end
  5571. end
  5572. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  5573. resetmode()
  5574. end
  5575. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  5576. ModeOfGlitch = 1000000
  5577. storehumanoidWS = 100
  5578. hum.WalkSpeed = 100
  5579. rainbowmode = false
  5580. chaosmode = false
  5581. tl1.Enabled = true
  5582. tl2.Enabled = true
  5583. tl3.Enabled = true
  5584. RecolorTextAndRename("CALAMITY",Color3.new(0.25,0,1),Color3.new(0.5,0,1))
  5585. newTheme("rbxassetid://1359036559",0,1,1)
  5586. MAINRUINCOLOR = BrickColor.new("Bright violet")
  5587. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5588. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5589. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5590. for i, v in pairs(mw2:GetChildren()) do
  5591. if v:IsA("Part") then
  5592. v.BrickColor = MAINRUINCOLOR
  5593. v.Material = "Neon"
  5594. end
  5595. end
  5596. for i, v in pairs(mw1:GetChildren()) do
  5597. if v:IsA("Part") then
  5598. v.Transparency = 0
  5599. v.BrickColor = MAINRUINCOLOR
  5600. v.Material = "Neon"
  5601. end
  5602. end
  5603. for i, v in pairs(m:GetChildren()) do
  5604. if v:IsA("Part") then
  5605. v.Color = Color3.new(0.5,0,1)
  5606. v.Material = "Neon"
  5607. end
  5608. end
  5609. for i, v in pairs(m2:GetChildren()) do
  5610. if v:IsA("Part") then
  5611. v.Color = Color3.new(0.25,0,1)
  5612. v.Material = "Neon"
  5613. end
  5614. end
  5615. for i, v in pairs(m3:GetChildren()) do
  5616. if v:IsA("Part") then
  5617. v.Color = Color3.new(0.45,0,1)
  5618. v.Material = "Neon"
  5619. end
  5620. end
  5621. for i, v in pairs(extrawingmod1:GetChildren()) do
  5622. if v:IsA("Part") then
  5623. v.Transparency = 0.75
  5624. v.Color = Color3.new(0.25,0,1)
  5625. v.Material = "Neon"
  5626. end
  5627. end
  5628. for i, v in pairs(extrawingmod2:GetChildren()) do
  5629. if v:IsA("Part") then
  5630. v.Transparency = 0.75
  5631. v.Color = Color3.new(0.5,0,1)
  5632. v.Material = "Neon"
  5633. end
  5634. end
  5635. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  5636. resetmode()
  5637. end
  5638. if k == "m" and attack == false and ModeOfGlitch == 1000000 and ModeOfGlitch ~= 12345678987654321 then
  5639. newThemeCust("rbxassetid://1504604335",0,1,1)
  5640. attack = true
  5641. hum.WalkSpeed = 0
  5642. MAINRUINCOLOR = BrickColor.new("Royal purple")
  5643. for i = 0, 24, 0.1 do
  5644. swait()
  5645. 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)
  5646. 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)
  5647. 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)
  5648. 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)
  5649. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5650. 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)
  5651. 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)
  5652. end
  5653. CameraEnshaking(1,1)
  5654. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5655. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5656. wait(0.55)
  5657. CameraEnshaking(1,2)
  5658. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5659. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5660. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5661. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5662. wait(0.55)
  5663. CameraEnshaking(1,3)
  5664. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5665. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5666. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5667. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5668. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5669. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5670. wait(0.55)
  5671. CameraEnshaking(10,5)
  5672. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5673. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5674. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5675. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5676. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5677. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5678. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5679. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5680. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5681. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5682. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5683. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5684. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5685. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5686. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5687. for i = 0, 49 do
  5688. 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)
  5689. 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)
  5690. 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)
  5691. 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)
  5692. end
  5693. ModeOfGlitch = 12345678987654321
  5694. storehumanoidWS = 200
  5695. hum.WalkSpeed = 200
  5696. rainbowmode = false
  5697. chaosmode = false
  5698. tl1.Enabled = true
  5699. tl2.Enabled = true
  5700. tl3.Enabled = true
  5701. RecolorTextAndRename("CATASTROPHE",Color3.new(0.5,0,1),Color3.new(0.75,0,1))
  5702. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5703. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5704. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5705. for i, v in pairs(mw2:GetChildren()) do
  5706. if v:IsA("Part") then
  5707. v.BrickColor = MAINRUINCOLOR
  5708. v.Material = "Neon"
  5709. end
  5710. end
  5711. for i, v in pairs(mw1:GetChildren()) do
  5712. if v:IsA("Part") then
  5713. v.Transparency = 0
  5714. v.BrickColor = MAINRUINCOLOR
  5715. v.Material = "Neon"
  5716. end
  5717. end
  5718. for i, v in pairs(m:GetChildren()) do
  5719. if v:IsA("Part") then
  5720. v.Color = Color3.new(0.5,0,1)
  5721. v.Material = "Neon"
  5722. end
  5723. end
  5724. for i, v in pairs(m2:GetChildren()) do
  5725. if v:IsA("Part") then
  5726. v.Color = Color3.new(0.5,0,1)
  5727. v.Material = "Neon"
  5728. end
  5729. end
  5730. for i, v in pairs(m3:GetChildren()) do
  5731. if v:IsA("Part") then
  5732. v.Color = Color3.new(0.5,0,1)
  5733. v.Material = "Neon"
  5734. end
  5735. end
  5736. for i, v in pairs(extrawingmod1:GetChildren()) do
  5737. if v:IsA("Part") then
  5738. v.Transparency = 0
  5739. v.Color = Color3.new(0.5,0,1)
  5740. v.Material = "Neon"
  5741. end
  5742. end
  5743. for i, v in pairs(extrawingmod2:GetChildren()) do
  5744. if v:IsA("Part") then
  5745. v.Transparency = 0
  5746. v.Color = Color3.new(0.5,0,1)
  5747. v.Material = "Neon"
  5748. end
  5749. attack = false
  5750. end
  5751. elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654321 then
  5752. resetmode()
  5753. end
  5754. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 666 then
  5755. newThemeCust("rbxassetid://723652641",0,1,1)
  5756. attack = true
  5757. hum.WalkSpeed = 0
  5758. MAINRUINCOLOR = BrickColor.new("Crimson")
  5759. for i = 0, 24, 0.1 do
  5760. swait()
  5761. 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)
  5762. 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)
  5763. 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)
  5764. 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)
  5765. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5766. 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)
  5767. 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)
  5768. end
  5769. CameraEnshaking(1,1)
  5770. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5771. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5772. wait(0.55)
  5773. CameraEnshaking(1,2)
  5774. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5775. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5776. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5777. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5778. wait(0.55)
  5779. CameraEnshaking(1,3)
  5780. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5781. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5782. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5783. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5784. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5785. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5786. wait(0.55)
  5787. CameraEnshaking(10,5)
  5788. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5789. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5790. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5791. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5792. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5793. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5794. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5795. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5796. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5797. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5798. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5799. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5800. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5801. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5802. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5803. for i = 0, 49 do
  5804. 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)
  5805. 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)
  5806. 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)
  5807. 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)
  5808. end
  5809. ModeOfGlitch = 666
  5810. storehumanoidWS = 16
  5811. hum.WalkSpeed = 16
  5812. rainbowmode = false
  5813. chaosmode = false
  5814. tl1.Enabled = true
  5815. tl2.Enabled = true
  5816. tl3.Enabled = true
  5817. RecolorTextAndRename("DeStRuCtIoN",Color3.new(1,0,0),Color3.new(0.75,0,0))
  5818. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5819. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5820. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5821. for i, v in pairs(mw2:GetChildren()) do
  5822. if v:IsA("Part") then
  5823. v.BrickColor = MAINRUINCOLOR
  5824. v.Material = "Neon"
  5825. end
  5826. end
  5827. for i, v in pairs(mw1:GetChildren()) do
  5828. if v:IsA("Part") then
  5829. v.Transparency = 0
  5830. v.BrickColor = MAINRUINCOLOR
  5831. v.Material = "Neon"
  5832. end
  5833. end
  5834. for i, v in pairs(m:GetChildren()) do
  5835. if v:IsA("Part") then
  5836. v.Color = Color3.new(1,0,0)
  5837. v.Material = "Neon"
  5838. end
  5839. end
  5840. for i, v in pairs(m2:GetChildren()) do
  5841. if v:IsA("Part") then
  5842. v.Color = Color3.new(1,0,0)
  5843. v.Material = "Neon"
  5844. end
  5845. end
  5846. for i, v in pairs(m3:GetChildren()) do
  5847. if v:IsA("Part") then
  5848. v.Color = Color3.new(1,0,0)
  5849. v.Material = "Neon"
  5850. end
  5851. end
  5852. for i, v in pairs(extrawingmod1:GetChildren()) do
  5853. if v:IsA("Part") then
  5854. v.Transparency = 0
  5855. v.Color = Color3.new(1,0,0)
  5856. v.Material = "Neon"
  5857. end
  5858. end
  5859. for i, v in pairs(extrawingmod2:GetChildren()) do
  5860. if v:IsA("Part") then
  5861. v.Transparency = 0
  5862. v.Color = Color3.new(1,0,0)
  5863. v.Material = "Neon"
  5864. end
  5865. attack = false
  5866. end
  5867. elseif k == "b" and attack == false and ModeOfGlitch == 666 then
  5868. resetmode()
  5869. end
  5870. if k == "l" and toggleTag == false then
  5871. toggleTag = true
  5872. text.TextTransparency = 0
  5873. text.TextStrokeTransparency = 0
  5874. elseif k == "l" and toggleTag == true then
  5875. toggleTag = false
  5876. text.TextTransparency = 1
  5877. text.TextStrokeTransparency = 1
  5878. end
  5879. if k == "z" and attack == false and ModeOfGlitch == 1 then
  5880. ExtinctiveHeartbreak()
  5881. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  5882. PureBomb()
  5883. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  5884. scattercorrupt()
  5885. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  5886. ChaosGroundStrike()
  5887. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  5888. Judgement()
  5889. elseif k == "f" and attack == false and ModeOfGlitch == 5 then
  5890. HolyBarrier()
  5891. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  5892. Starfall()
  5893. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  5894. yinyangi()
  5895. elseif k == "x" and attack == false and ModeOfGlitch == 6 then
  5896. MeteorStrike()
  5897. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  5898. Wip()
  5899. elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654321 then
  5900. StarfallEX()
  5901. elseif k == "c" and attack == false and ModeOfGlitch == 12345678987654321 then
  5902. FinalCalam()
  5903. end
  5904. if k == "n" and attack == false then
  5905. Blink()
  5906. elseif k == "x" and attack == false and ModeOfGlitch == 1000000 then
  5907. StarDivision()
  5908. end
  5909. if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then
  5910. UniversalCollapse()
  5911. end
  5912. if k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed < 200 then
  5913. hum.WalkSpeed = 16 + 184
  5914. elseif k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed == 200 then
  5915. hum.WalkSpeed = 200 - 184
  5916. end
  5917. if k == "x" and attack == false and ModeOfGlitch == 12345678987654321 then
  5918. UniversalSpark()
  5919. end
  5920. if k == "z" and attack == false and ModeOfGlitch == 666 then
  5921. StarDivision()
  5922. end
  5923. if k == "x" and attack == false and ModeOfGlitch == 666 then
  5924. Starfall()
  5925. end
  5926. if k == "m" and attack == false and ModeOfGlitch == 4 then
  5927. ChaosBegone()
  5928. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == false then
  5929. THEHELLITSTHATBIG()
  5930. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == true then
  5931. removelol()
  5932. end
  5933. end)
  5934. mouse.KeyUp:connect(function(k)
  5935. if k == "f" and ModeOfGlitch == 5 then
  5936. shielding = false
  5937. end
  5938. if k == "z" and ModeOfGlitch == 5 then
  5939. judgement = false
  5940. end
  5941. end)
  5942. coroutine.resume(coroutine.create(function()
  5943. while true do
  5944. swait(2)
  5945. if rainbowmode == true or ModeOfGlitch == 6 then
  5946. if eff == true then
  5947. 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)
  5948. end
  5949. end
  5950. end
  5951. end))
  5952. coroutine.resume(coroutine.create(function()
  5953. while true do
  5954. swait(2)
  5955. if shielding == true then
  5956. end
  5957. end
  5958. end))
  5959.  
  5960.  
  5961. coroutine.resume(coroutine.create(function()
  5962. while true do
  5963. if ModeOfGlitch == 1000000 then
  5964. swait(0.5)
  5965. end
  5966. swait()
  5967. if ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  5968. 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)
  5969. end
  5970. if ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  5971. 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)
  5972. end
  5973. end
  5974. end))
  5975.  
  5976.  
  5977. coroutine.resume(coroutine.create(function()
  5978. while true do
  5979. swait(2)
  5980. if chaosmode == true then
  5981. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  5982. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  5983. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  5984. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
  5985. for i, v in pairs(mw1:GetChildren()) do
  5986. if v:IsA("Part") then
  5987. v.Transparency = 0.75
  5988. v.BrickColor = BrickColor.random()
  5989. v.Material = "Neon"
  5990. end
  5991. end
  5992. for i, v in pairs(m2:GetChildren()) do
  5993. if v:IsA("Part") then
  5994. v.BrickColor = BrickColor.random()
  5995. v.Material = "Neon"
  5996. end
  5997. end
  5998. for i, v in pairs(secondchar:GetChildren()) do
  5999. if v:IsA("Part") then
  6000. v.BrickColor = BrickColor.random()
  6001. v.Material = "Neon"
  6002. end
  6003. end
  6004. end
  6005. end
  6006. end))
  6007. Humanoid.Name = "STARGLITCHER"
  6008. Humanoid.MaxHealth = math.huge
  6009. Humanoid.Health = math.huge
  6010. Instance.new("ForceField",char).Visible = false
  6011. Humanoid.Animator.Parent = nil
  6012. idleanim=.4
  6013. while true do
  6014. if rainbowmode == false then
  6015. tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6016. tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6017. tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6018. for i, v in pairs(secondchar:GetChildren()) do
  6019. if v:IsA("Part") then
  6020. v.BrickColor = MAINRUINCOLOR
  6021. v.Material = "Neon"
  6022. end
  6023. end
  6024. if chaosmode == false then
  6025. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6026. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6027. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6028. for i, v in pairs(secondchar:GetChildren()) do
  6029. if v:IsA("Part") then
  6030. v.BrickColor = MAINRUINCOLOR
  6031. v.Material = "Neon"
  6032. end
  6033. end
  6034. end
  6035. end
  6036. if rainbowmode == true then
  6037. RecolorTextAndRename("RAINBOW",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500))
  6038. MAINRUINCOLOR = BrickColor.new("White")
  6039. tr1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6040. tr2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6041. tr3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6042. tl1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6043. tl2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6044. tl3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6045. for i, v in pairs(m:GetChildren()) do
  6046. if v:IsA("Part") then
  6047. v.Color = Color3.new(r/255,g/255,b/255)
  6048. end
  6049. end
  6050. for i, v in pairs(m2:GetChildren()) do
  6051. if v:IsA("Part") then
  6052. v.Color = Color3.new(r/255,g/255,b/255)
  6053. end
  6054. end
  6055. for i, v in pairs(secondchar:GetChildren()) do
  6056. if v:IsA("Part") then
  6057. v.Color = Color3.new(r/255,g/255,b/255)
  6058. v.Material = "Neon"
  6059. end
  6060. end
  6061. for i, v in pairs(m3:GetChildren()) do
  6062. if v:IsA("Part") then
  6063. v.Color = Color3.new(r/255,g/255,b/255)
  6064. end
  6065. end
  6066. for i, v in pairs(mw1:GetChildren()) do
  6067. if v:IsA("Part") then
  6068. v.Color = Color3.new(r/255,g/255,b/255)
  6069. v.Material = "Neon"
  6070. end
  6071. end
  6072. for i, v in pairs(mw2:GetChildren()) do
  6073. if v:IsA("Part") then
  6074. v.Color = Color3.new(r/255,g/255,b/255)
  6075. v.Material = "Neon"
  6076. end
  6077. end
  6078. end
  6079. CameraManager()
  6080. swait()
  6081. 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)
  6082. 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)
  6083. 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)
  6084. 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)
  6085. 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)
  6086. 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)
  6087.  
  6088. if attack == false and ActiveGia == false then
  6089. torsweld.C1=clerp(torsweld.C1,cf(2,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6090. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  6091. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  6092. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6093. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6094. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  6095. elseif attack == false and ActiveGia == true then
  6096. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  6097. 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)
  6098. 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)
  6099. 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)
  6100. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6101. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6102. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  6103. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6104. 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)
  6105. 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)
  6106. 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)
  6107. 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)
  6108. 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)
  6109. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(5),math.rad(0),math.rad(0)),0.025)
  6110. end
  6111. end
  6112.  
  6113. 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)
  6114. 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)
  6115. 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)
  6116. 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)
  6117. 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)
  6118. 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)
  6119. sine = sine + change
  6120. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  6121. local velderp=RootPart.Velocity.y
  6122. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  6123. if equipped==true or equipped==false then
  6124. if attack==false then
  6125. idle=idle+1
  6126. else
  6127. idle=0
  6128. end
  6129. if idle>=500 then
  6130. if attack==false then
  6131. --Sheath()
  6132. end
  6133. end
  6134. if RootPart.Velocity.y > 1 and hitfloor==nil then
  6135. Anim="Jump"
  6136. if attack==false then
  6137. 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)
  6138. 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)
  6139. 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)
  6140. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  6141. 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)
  6142. 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)
  6143. end
  6144. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  6145. Anim="Fall"
  6146. if attack==false then
  6147. 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)
  6148. 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)
  6149. 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)
  6150. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6151. 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)
  6152. 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)
  6153. end
  6154. elseif torvel<1 and hitfloor~=nil then
  6155. Anim="Idle"
  6156. if attack==false then
  6157. if ModeOfGlitch == 1 then
  6158. 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)
  6159. 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)
  6160. 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)
  6161. 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)
  6162. 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)
  6163. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6164.  
  6165. elseif ModeOfGlitch == 666 then
  6166. 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)
  6167. 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)
  6168. 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)
  6169. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6170. 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)
  6171. 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)
  6172.  
  6173. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
  6174. 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)
  6175. 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)
  6176. 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)
  6177. 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)
  6178. 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)
  6179. 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)
  6180.  
  6181. elseif ModeOfGlitch == 3 then
  6182. 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)
  6183. 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)
  6184. 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)
  6185. 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)
  6186. 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)
  6187. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  6188.  
  6189. elseif ModeOfGlitch == 4 then
  6190. 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)
  6191. 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)
  6192. 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)
  6193. 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)
  6194. 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)
  6195. 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)
  6196.  
  6197. elseif ModeOfGlitch == 5 then
  6198. 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)
  6199. 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)
  6200. 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)
  6201. 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)
  6202. 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)
  6203. 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)
  6204.  
  6205. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  6206. 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)
  6207. 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)
  6208. 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)
  6209. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  6210. 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)
  6211. 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)
  6212.  
  6213. elseif ModeOfGlitch == 12345678987654321 then
  6214. 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)
  6215. 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)
  6216. 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)
  6217. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1)
  6218. 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)
  6219. 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)
  6220. end
  6221. end
  6222. elseif torvel>2 and torvel<50 and hitfloor~=nil then
  6223. Anim="Walk"
  6224. if attack==false then
  6225. if ModeOfGlitch == 1 then
  6226. 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)
  6227. 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)
  6228. 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)
  6229. 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)
  6230. 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)
  6231. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6232.  
  6233. elseif ModeOfGlitch == 4 or ModeOfGlitch == 666 then
  6234. 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)
  6235. 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)
  6236. 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)
  6237. 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)
  6238. 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)
  6239. 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)
  6240.  
  6241. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 or ModeOfGlitch ~= 666 then
  6242. 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)
  6243. 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)
  6244. 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)
  6245. 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)
  6246. 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)
  6247. 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)
  6248. end
  6249. end
  6250. elseif torvel>=22 and hitfloor~=nil then
  6251. Anim="Run"
  6252. if attack==false then
  6253. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  6254. 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)
  6255. 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)
  6256. 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)
  6257. 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)
  6258. 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)
  6259. 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)
  6260. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6261. 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)
  6262. 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)
  6263. 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)
  6264. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  6265. 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)
  6266. 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)
  6267. end
  6268. end
  6269. end
  6270. end
  6271. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement