Advertisement
Fullgamer309

Untitled

Apr 8th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 250.30 KB | None | 0 0
  1. -- This script has been converted to FE by jh0nd0eone
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by jh0nd0eone")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88. warn([[Star Glitcher Loaded.
  89. All purpose switcher... -- wat
  90.  
  91. It's not over yet.
  92. The faith is among us.
  93. And yet you still haven't defeated me.
  94. Now is my chance to destroy you.
  95. Then you're out of the world.
  96. With the elemental being struggling to gain power.
  97. This is the result.
  98. Very unstable and powerful.
  99. A insanely chaotic being.
  100. Who haven't ever known that one could hold this power.
  101. It's the one that has been created by an unknown being.
  102. You'll know this name already.
  103. Till now.
  104. The power is inside your body.
  105. You will decide things with this.
  106. And the future changes within the power.
  107. For now, you'll decide your own.
  108. You're one of them who holds this power.
  109. And so on, you would get chaotic to everyone else.
  110. You seem to dont trust everyone else, but one.
  111. That one... you can't know.
  112. It's only your decision.
  113. At yourself.
  114. No mercy, or spare.
  115.  
  116.  
  117. Created by 'NoobyGames12'
  118. Edited by 'danny199990'
  119. Some stuff by 'XXUNORIBOASXX'
  120. ]])
  121. print([[Icons:
  122. ! = New
  123. ? = Spoilers
  124. * = Exclusivity
  125. ]])
  126. warn([[V 3.3.1 (ON PROGRESS) Update Log:
  127. - Originall themes included
  128. ! - Calamity's "Z" has changed.
  129. ! - Starfall EX added.
  130. ! - Mayhem now has Destruction mode.
  131. ! - Chaos theme has been changed.
  132. ! - Purity's theme has been extended.
  133. ? - Corruption's "Z" will have animation sooner.
  134. ! - Calamity's "X" is added, named Starfall.
  135. * - Catastrophe's "Z" coming soon, same as Calamity's "Z" but more powerful.
  136. ! - Divinity's Shield move fixed, wont break anymore(Hold F)(Made by danny199990).
  137. ! - Equinox's MeteorStrike move(X) added(Made by danny199990).
  138. ! - Divinity's Judgement move(Z) collison issue fixed(Made by danny199990).
  139. ! - Divinity's Judgement move(Z) can now be held as long as you want it to.
  140.  
  141. I'd like if you wouldnt remove my or NoobyGames's credit, thanks alot ;).
  142. ]])
  143. --- its obs smooth af do not touch
  144. ---- Sources and functions might be taken from others
  145. plr = owner
  146. char = plr.Character
  147. hum = char.Humanoid
  148. local cam = game.Workspace.CurrentCamera
  149. Camera = cam
  150. local CamInterrupt = false
  151. local TwoD = false
  152. local TargetInfo = {nil, nil}
  153. cam.CameraType = "Custom"
  154. t = char.Torso
  155. h = char.Head
  156. ra = char["Right Arm"]
  157. la = char["Left Arm"]
  158. rl = char["Right Leg"]
  159. ll = char["Left Leg"]
  160. tors = char.Torso
  161. lleg = char["Left Leg"]
  162. root = char.HumanoidRootPart
  163. hed = char.Head
  164. rleg = char["Right Leg"]
  165. rarm = char["Right Arm"]
  166. larm = char["Left Arm"]
  167. radian = math.rad
  168. random = math.random
  169. Vec3 = Vector3.new
  170. Inst = Instance.new
  171. cFrame = CFrame.new
  172. Euler = CFrame.fromEulerAnglesXYZ
  173. vt = Vector3.new
  174. bc = BrickColor.new
  175. br = BrickColor.random
  176. it = Instance.new
  177. cf = CFrame.new
  178. local eff = true
  179. local shielding = false
  180.  
  181. local Booleans = {
  182. CamFollow = true,
  183. GyroUse = true
  184. }
  185.  
  186. function lerp(object, newCFrame, alpha)
  187. return object:lerp(newCFrame, alpha)
  188. end
  189.  
  190. local Directer = Inst("BodyGyro", root)
  191. Directer.MaxTorque = Vec3(0, 0, 0)
  192. Directer.P = 600000
  193. local CPart = Inst("Part")
  194. CPart.Anchored = true
  195. CPart.CanCollide = false
  196. CPart.Locked = true
  197. CPart.Transparency = 1
  198.  
  199. local rainbowmode = false
  200. local chaosmode = false
  201.  
  202. kan = Instance.new("Sound",char)
  203. kan.Volume = 1.25
  204. kan.TimePosition = 0
  205. kan.PlaybackSpeed = 1
  206. kan.Pitch = 1
  207. kan.SoundId = "rbxassetid://614032233"
  208. kan.Name = "wrecked"
  209. kan.Looped = true
  210. kan:Play()
  211.  
  212. function newTheme(ID,timepos,pitch,vol)
  213. local kanz = kan
  214. --kanz:Stop()
  215. --kanz.Volume = vol
  216. --kanz.TimePosition = timepos
  217. kanz.PlaybackSpeed = pitch
  218. kanz.Pitch = pitch
  219. kanz.SoundId = ID
  220. kanz.Name = "wrecked"
  221. kanz.Looped = true
  222. kanz.Volume = 0.3
  223. --kanz:Play()
  224. --coroutine.resume(coroutine.create(function()
  225. --wait(0.05)
  226. --end))
  227. end
  228.  
  229. function newThemeCust(ID,timepos,pitch,vol)
  230. local kanz = kan
  231. kanz:Stop()
  232. kanz.Volume = vol
  233. kanz.TimePosition = timepos
  234. kanz.PlaybackSpeed = pitch
  235. kanz.Pitch = pitch
  236. kanz.SoundId = ID
  237. kanz.Name = "wrecked"
  238. kanz.Looped = true
  239. kanz:Play()
  240. coroutine.resume(coroutine.create(function()
  241. wait(0.05)
  242. end))
  243. end
  244.  
  245.  
  246.  
  247. function CameraShake(Times, Power, PlayerTarget)
  248. coroutine.resume(coroutine.create(function()
  249. FV = Instance.new("BoolValue", PlayerTarget)
  250. FV.Name = "CameraShake"
  251. for ShakeNum=1,Times do
  252. swait()
  253. local ef=Power
  254. if ef>=1 then
  255. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  256. else
  257. ef=Power*10
  258. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  259. end
  260. end
  261. Humanoid.CameraOffset = Vector3.new(0,0,0)
  262. FV:Destroy()
  263. end))
  264. end
  265.  
  266. function CameraEnshaking(Length,Intensity)
  267. coroutine.resume(coroutine.create(function()
  268. local intensity = 1*Intensity
  269. local rotM = 0.01*Intensity
  270. for i = 0, Length, 0.1 do
  271. swait()
  272. intensity = intensity - 0.05*Intensity/Length
  273. rotM = rotM - 0.0005*Intensity/Length
  274. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  275. 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)
  276. end
  277. Humanoid.CameraOffset = Vec3(0, 0, 0)
  278. end))
  279. end
  280. CamShake=function(Part,Distan,Power,Times)
  281. local de=Part.Position
  282. for i,v in pairs(workspace:children()) do
  283. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  284. for _,c in pairs(v:children()) do
  285. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  286. local Noob=v.Humanoid
  287. if Noob~=nil then
  288. coroutine.resume(coroutine.create(function()
  289. FV = Instance.new("BoolValue", Noob)
  290. FV.Name = "CameraShake"
  291. for ShakeNum=1,Times do
  292. swait()
  293. local ef=Power
  294. if ef>=1 then
  295. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  296. else
  297. ef=Power*10
  298. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  299. end
  300. end
  301. Humanoid.CameraOffset = Vector3.new(0,0,0)
  302. FV:Destroy()
  303. end))
  304. CameraShake(Times, Power, Noob)
  305. end
  306. end
  307. end
  308. end
  309. end
  310. end
  311.  
  312. function chatfunc(text,color)
  313. local chat = coroutine.wrap(function()
  314. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  315. Character:FindFirstChild("TalkingBillBoard"):destroy()
  316. end
  317. local naeeym2 = Instance.new("BillboardGui",Character)
  318. naeeym2.Size = UDim2.new(0,100,0,40)
  319. naeeym2.StudsOffset = Vector3.new(0,3,0)
  320. naeeym2.Adornee = Character.Head
  321. naeeym2.Name = "TalkingBillBoard"
  322. local tecks2 = Instance.new("TextLabel",naeeym2)
  323. tecks2.BackgroundTransparency = 1
  324. tecks2.BorderSizePixel = 0
  325. tecks2.Text = ""
  326. tecks2.Font = "SciFi"
  327. tecks2.TextSize = 30
  328. tecks2.TextStrokeTransparency = 0
  329. tecks2.TextColor3 = color
  330. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  331. tecks2.Size = UDim2.new(1,0,0.5,0)
  332. local tecks3 = Instance.new("TextLabel",naeeym2)
  333. tecks3.BackgroundTransparency = 1
  334. tecks3.BorderSizePixel = 0
  335. tecks3.Text = ""
  336. tecks3.Font = "SciFi"
  337. tecks3.TextSize = 30
  338. tecks3.TextStrokeTransparency = 0
  339. tecks3.TextColor3 = Color3.new(0,0,0)
  340. tecks3.TextStrokeColor3 = color
  341. tecks3.Size = UDim2.new(1,0,0.5,0)
  342. coroutine.resume(coroutine.create(function()
  343. while true do
  344. swait(1)
  345. plr.Character.wrecked.Volume = 0.3
  346. if chaosmode == true then
  347. tecks2.TextColor3 = BrickColor.random().Color
  348. tecks3.TextStrokeColor3 = BrickColor.random().Color
  349. end
  350. tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  351. tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
  352. tecks2.Rotation = math.random(-5,5)
  353. tecks3.Rotation = math.random(-5,5)
  354. end
  355. end))
  356. for i = 1,string.len(text),1 do
  357. CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
  358. tecks2.Text = string.sub(text,1,i)
  359. tecks3.Text = string.sub(text,1,i)
  360. swait(1)
  361. end
  362. wait(1)
  363. local randomrot = math.random(1,2)
  364. if randomrot == 1 then
  365. for i = 1, 50 do
  366. swait()
  367. tecks2.Rotation = tecks2.Rotation - .75
  368. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  369. tecks2.TextTransparency = tecks2.TextTransparency + .04
  370. tecks3.Rotation = tecks2.Rotation + .75
  371. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  372. tecks3.TextTransparency = tecks2.TextTransparency + .04
  373. end
  374. elseif randomrot == 2 then
  375. for i = 1, 50 do
  376. swait()
  377. tecks2.Rotation = tecks2.Rotation + .75
  378. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  379. tecks2.TextTransparency = tecks2.TextTransparency + .04
  380. tecks3.Rotation = tecks2.Rotation - .75
  381. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  382. tecks3.TextTransparency = tecks2.TextTransparency + .04
  383. end
  384. end
  385. naeeym2:Destroy()
  386. end)
  387. chat()
  388. end
  389.  
  390.  
  391. local Create = LoadLibrary("RbxUtility").Create
  392.  
  393. CFuncs = {
  394. ["Part"] = {
  395. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  396. local Part = Create("Part"){
  397. Parent = Parent,
  398. Reflectance = Reflectance,
  399. Transparency = Transparency,
  400. CanCollide = false,
  401. Locked = true,
  402. BrickColor = BrickColor.new(tostring(BColor)),
  403. Name = Name,
  404. Size = Size,
  405. Material = Material,
  406. }
  407. RemoveOutlines(Part)
  408. return Part
  409. end;
  410. };
  411.  
  412. ["Mesh"] = {
  413. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  414. local Msh = Create(Mesh){
  415. Parent = Part,
  416. Offset = OffSet,
  417. Scale = Scale,
  418. }
  419. if Mesh == "SpecialMesh" then
  420. Msh.MeshType = MeshType
  421. Msh.MeshId = MeshId
  422. end
  423. return Msh
  424. end;
  425. };
  426.  
  427. ["Mesh"] = {
  428. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  429. local Msh = Create(Mesh){
  430. Parent = Part,
  431. Offset = OffSet,
  432. Scale = Scale,
  433. }
  434. if Mesh == "SpecialMesh" then
  435. Msh.MeshType = MeshType
  436. Msh.MeshId = MeshId
  437. end
  438. return Msh
  439. end;
  440. };
  441.  
  442. ["Weld"] = {
  443. Create = function(Parent, Part0, Part1, C0, C1)
  444. local Weld = Create("Weld"){
  445. Parent = Parent,
  446. Part0 = Part0,
  447. Part1 = Part1,
  448. C0 = C0,
  449. C1 = C1,
  450. }
  451. return Weld
  452. end;
  453. };
  454.  
  455. ["Sound"] = {
  456. Create = function(id, par, vol, pit)
  457. coroutine.resume(coroutine.create(function()
  458. local S = Create("Sound"){
  459. Volume = vol,
  460. Name = "EffectSoundo",
  461. Pitch = pit or 1,
  462. SoundId = id,
  463. Parent = par or workspace,
  464. }
  465. wait()
  466. S:play()
  467. game:GetService("Debris"):AddItem(S, 10)
  468. end))
  469. end;
  470. };
  471.  
  472. ["LongSound"] = {
  473. Create = function(id, par, vol, pit)
  474. coroutine.resume(coroutine.create(function()
  475. local S = Create("Sound"){
  476. Volume = vol,
  477. Pitch = pit or 1,
  478. SoundId = id,
  479. Parent = par or workspace,
  480. }
  481. wait()
  482. S:play()
  483. game:GetService("Debris"):AddItem(S, 30)
  484. end))
  485. end;
  486. };
  487.  
  488. ["ParticleEmitter"] = {
  489. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  490. local fp = Create("ParticleEmitter"){
  491. Parent = Parent,
  492. Color = ColorSequence.new(Color1, Color2),
  493. LightEmission = LightEmission,
  494. Size = Size,
  495. Texture = Texture,
  496. Transparency = Transparency,
  497. ZOffset = ZOffset,
  498. Acceleration = Accel,
  499. Drag = Drag,
  500. LockedToPart = LockedToPart,
  501. VelocityInheritance = VelocityInheritance,
  502. EmissionDirection = EmissionDirection,
  503. Enabled = Enabled,
  504. Lifetime = LifeTime,
  505. Rate = Rate,
  506. Rotation = Rotation,
  507. RotSpeed = RotSpeed,
  508. Speed = Speed,
  509. VelocitySpread = VelocitySpread,
  510. }
  511. return fp
  512. end;
  513. };
  514.  
  515. CreateTemplate = {
  516.  
  517. };
  518. }
  519.  
  520.  
  521.  
  522. New = function(Object, Parent, Name, Data)
  523. local Object = Instance.new(Object)
  524. for Index, Value in pairs(Data or {}) do
  525. Object[Index] = Value
  526. end
  527. Object.Parent = Parent
  528. Object.Name = Name
  529. return Object
  530. end
  531. local halocolor = BrickColor.new("Pastel light blue")
  532. local halocolor2 = BrickColor.new("Cool yellow")
  533. local starcolor = BrickColor.new("Bright yellow")
  534. local lunacolor = BrickColor.new("Navy blue")
  535. local lunacolor2 = BrickColor.new("Bright blue")
  536. local wepcolor = BrickColor.new("Really black")
  537. local maincolor = BrickColor.new("Really black")
  538. local m = Instance.new("Model",char)
  539. local m2 = Instance.new("Model",char)
  540. local m3 = Instance.new("Model",char)
  541. local mw1 = Instance.new("Model",char)
  542. local mw2 = Instance.new("Model",char)
  543.  
  544. local extrawingmod1 = Instance.new("Model",char)
  545. local extrawingmod2 = Instance.new("Model",char)
  546.  
  547. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  548. local p = Instance.new("Part")
  549. p.TopSurface = 0
  550. p.BottomSurface = 0
  551. p.Parent = parent
  552. p.Size = Vector3.new(0.1,0.1,0.1)
  553. p.Transparency = transparency
  554. p.Reflectance = reflectance
  555. p.CanCollide = false
  556. p.Locked = true
  557. p.BrickColor = brickcolor
  558. p.Material = material
  559. return p
  560. end
  561.  
  562. function CreateMesh(parent,meshtype,x1,y1,z1)
  563. local mesh = Instance.new("SpecialMesh",parent)
  564. mesh.MeshType = meshtype
  565. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  566. return mesh
  567. end
  568.  
  569. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  570. local mesh = Instance.new("SpecialMesh",parent)
  571. mesh.MeshType = "FileMesh"
  572. mesh.MeshId = meshid
  573. mesh.Scale = Vector3.new(x1,y1,z1)
  574. return mesh
  575. end
  576.  
  577.  
  578. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  579. local mesh = Instance.new("SpecialMesh",parent)
  580. mesh.MeshType = "FileMesh"
  581. mesh.MeshId = meshid
  582. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  583. mesh.Scale = Vector3.new(x1,y1,z1)
  584. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  585. return mesh
  586. end
  587.  
  588. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  589. local weld = Instance.new("Weld")
  590. weld.Parent = parent
  591. weld.Part0 = part0
  592. weld.Part1 = part1
  593. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  594. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  595. return weld
  596. end
  597.  
  598.  
  599. --------------
  600. local secondchar = Instance.new("Model",char)
  601. local GhostCol = BrickColor.new("Really red")
  602. local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol)
  603. CreateMesh(sectors,"Brick",2*8,2*8,1*8)
  604. 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))
  605.  
  606. local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  607. CreateMesh(seclarm,"Brick",1*8,2*8,1*8)
  608. 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))
  609.  
  610. local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
  611. CreateMesh(secrarm,"Brick",1*8,2*8,1*8)
  612. 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))
  613.  
  614. local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  615. CreateMesh(seclleg,"Brick",1*8,2*8,1*8)
  616. 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))
  617.  
  618. local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
  619. CreateMesh(secrleg,"Brick",1*8,2*8,1*8)
  620. 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))
  621.  
  622. local seched = CreateParta(secondchar,1,0,"Neon",GhostCol)
  623. CreateMesh(seched,"Brick",1*8,1*8,1*8)
  624. 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))
  625. --------------
  626. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  627. 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))
  628. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  629. 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))
  630.  
  631. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  632. CreateMesh(handle,"Brick",0,0,0)
  633. 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))
  634. local valuaring = 10
  635. for i = 0, 49 do
  636. valuaring = valuaring + 10
  637. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  638. CreateMesh(rn,"Brick",0.25,0.1,0.1)
  639. 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))
  640. end
  641.  
  642. handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  643. CreateMesh(handle,"Brick",0,0,0)
  644. 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))
  645. local valuaring = 10
  646. for i = 0, 49 do
  647. valuaring = valuaring + 10
  648. rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  649. CreateMesh(rn,"Brick",0.5,0.2,0.2)
  650. 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))
  651. end
  652.  
  653.  
  654. local handle = CreateParta(m,1,1,"Neon",maincolor)
  655. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  656. 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))
  657.  
  658. --- Left wing.
  659.  
  660. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  661. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  662. 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))
  663.  
  664. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  665. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  666. 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))
  667. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  668. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  669. 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))
  670. A0 = Instance.new('Attachment',wed)
  671. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  672. CreateMesh(wed,"Wedge",0.05,0.5,3)
  673. 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))
  674. A1 = Instance.new('Attachment',wed)
  675. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  676. CreateMesh(wed,"Wedge",0.05,3,0.5)
  677. 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))
  678.  
  679. tl1 = Instance.new('Trail',wed)
  680. tl1.Attachment0 = A0
  681. tl1.Attachment1 = A1
  682. --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  683. tl1.LightEmission = 1
  684. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  685. tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  686. tl1.Lifetime = 0.6
  687.  
  688.  
  689. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  690. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  691. 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))
  692.  
  693. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  694. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  695. 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))
  696. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  697. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  698. 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))
  699. A0 = Instance.new('Attachment',wed)
  700. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  701. CreateMesh(wed,"Wedge",0.05,0.5,3)
  702. 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))
  703. A1 = Instance.new('Attachment',wed)
  704. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  705. CreateMesh(wed,"Wedge",0.05,3,0.5)
  706. 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))
  707.  
  708. tl2 = Instance.new('Trail',wed)
  709. tl2.Attachment0 = A0
  710. tl2.Attachment1 = A1
  711. --tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  712. tl2.LightEmission = 1
  713. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  714. tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  715. tl2.Lifetime = 0.6
  716.  
  717. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  718. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  719. 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))
  720.  
  721. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  722. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  723. 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))
  724. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  725. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  726. 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))
  727. A0 = Instance.new('Attachment',wed)
  728. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  729. CreateMesh(wed,"Wedge",0.05,0.5,3)
  730. 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))
  731. A1 = Instance.new('Attachment',wed)
  732. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  733. CreateMesh(wed,"Wedge",0.05,3,0.5)
  734. 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))
  735.  
  736. tl3 = Instance.new('Trail',wed)
  737. tl3.Attachment0 = A0
  738. tl3.Attachment1 = A1
  739. --tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  740. tl3.LightEmission = 1
  741. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  742. tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  743. tl3.Lifetime = 0.6
  744.  
  745. tl1.Enabled = false
  746. tl2.Enabled = false
  747. tl3.Enabled = false
  748. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  749. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  750. 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))
  751.  
  752. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  753. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  754. 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))
  755. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  756. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  757. 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))
  758. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  759. CreateMesh(wed,"Wedge",0.05,0.5,3)
  760. 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))
  761. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  762. CreateMesh(wed,"Wedge",0.05,3,0.5)
  763. 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))
  764.  
  765. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  766. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  767. 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))
  768.  
  769. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  770. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  771. 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))
  772. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  773. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  774. 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))
  775. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  776. CreateMesh(wed,"Wedge",0.05,0.5,3)
  777. 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))
  778. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  779. CreateMesh(wed,"Wedge",0.05,3,0.5)
  780. 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))
  781.  
  782. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  783. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  784. 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))
  785.  
  786. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  787. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  788. 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))
  789. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  790. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  791. 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))
  792. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  793. CreateMesh(wed,"Wedge",0.05,0.5,3)
  794. 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))
  795. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  796. CreateMesh(wed,"Wedge",0.05,3,0.5)
  797. 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))
  798.  
  799. -- Right wing.
  800.  
  801. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  802. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  803. 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))
  804.  
  805. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  806. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  807. 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))
  808. A0 = Instance.new('Attachment',wed)
  809. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  810. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  811. 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))
  812. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  813. CreateMesh(wed,"Wedge",0.05,0.5,3)
  814. 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))
  815. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  816. CreateMesh(wed,"Wedge",0.05,3,0.5)
  817. 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))
  818. A1 = Instance.new('Attachment',wed)
  819.  
  820. tr1 = Instance.new('Trail',wed)
  821. tr1.Attachment0 = A0
  822. tr1.Attachment1 = A1
  823. --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  824. tr1.LightEmission = 1
  825. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  826. tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  827. tr1.Lifetime = 0.6
  828.  
  829. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  830. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  831. 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))
  832.  
  833. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  834. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  835. 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))
  836. A0 = Instance.new('Attachment',wed)
  837. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  838. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  839. 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))
  840. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  841. CreateMesh(wed,"Wedge",0.05,0.5,3)
  842. 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))
  843. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  844. CreateMesh(wed,"Wedge",0.05,3,0.5)
  845. 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))
  846. A1 = Instance.new('Attachment',wed)
  847.  
  848. tr2 = Instance.new('Trail',wed)
  849. tr2.Attachment0 = A0
  850. tr2.Attachment1 = A1
  851. --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  852. tr2.LightEmission = 1
  853. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  854. tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  855. tr2.Lifetime = 0.6
  856.  
  857. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  858. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  859. 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))
  860.  
  861. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  862. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  863. 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))
  864. A0 = Instance.new('Attachment',wed)
  865. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  866. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  867. 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))
  868. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  869. CreateMesh(wed,"Wedge",0.05,0.5,3)
  870. 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))
  871. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  872. CreateMesh(wed,"Wedge",0.05,3,0.5)
  873. 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))
  874. A1 = Instance.new('Attachment',wed)
  875.  
  876. tr3 = Instance.new('Trail',wed)
  877. tr3.Attachment0 = A0
  878. tr3.Attachment1 = A1
  879. --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  880. tr3.LightEmission = 1
  881. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  882. tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
  883. tr3.Lifetime = 0.6
  884.  
  885.  
  886. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  887. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  888. 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))
  889.  
  890. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  891. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  892. 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))
  893. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  894. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  895. 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))
  896. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  897. CreateMesh(wed,"Wedge",0.05,0.5,3)
  898. 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))
  899. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  900. CreateMesh(wed,"Wedge",0.05,3,0.5)
  901. 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))
  902.  
  903. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  904. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  905. 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))
  906.  
  907. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  908. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  909. 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))
  910. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  911. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  912. 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))
  913. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  914. CreateMesh(wed,"Wedge",0.05,0.5,3)
  915. 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))
  916. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  917. CreateMesh(wed,"Wedge",0.05,3,0.5)
  918. 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))
  919.  
  920. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  921. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  922. 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))
  923.  
  924. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  925. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  926. 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))
  927. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  928. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  929. 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))
  930. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  931. CreateMesh(wed,"Wedge",0.05,0.5,3)
  932. 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))
  933. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  934. CreateMesh(wed,"Wedge",0.05,3,0.5)
  935. 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))
  936.  
  937. ---- HERES THE RING
  938.  
  939.  
  940. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  941. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  942. 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))
  943. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  944. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  945. 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))
  946. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  947. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  948. 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))
  949.  
  950.  
  951. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  952. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  953. 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))
  954.  
  955. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  956. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  957. 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))
  958.  
  959.  
  960.  
  961. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  962. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  963. 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))
  964.  
  965. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  966. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  967. 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))
  968.  
  969. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  970. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  971. 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))
  972.  
  973. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  974. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  975. 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))
  976. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  977. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  978. 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))
  979.  
  980. --- second ring
  981.  
  982. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  983. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  984. 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))
  985. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  986. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  987. 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))
  988. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  989. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  990. 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))
  991.  
  992. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  993. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  994. 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))
  995.  
  996. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  997. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  998. 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))
  999.  
  1000.  
  1001.  
  1002. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1003. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1004. 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))
  1005.  
  1006. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1007. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1008. 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))
  1009.  
  1010. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1011. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1012. 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))
  1013.  
  1014. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1015. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1016. 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))
  1017. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1018. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1019. 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))]]--
  1020.  
  1021.  
  1022.  
  1023. for i, v in pairs(m:GetChildren()) do
  1024. if v:IsA("Part") then
  1025. v.BrickColor = BrickColor.new("Really black")
  1026. v.Material = "Glass"
  1027. end
  1028. end
  1029. for i, v in pairs(m2:GetChildren()) do
  1030. if v:IsA("Part") then
  1031. v.BrickColor = BrickColor.new("Crimson")
  1032. v.Material = "Granite"
  1033. end
  1034. end
  1035. for i, v in pairs(m3:GetChildren()) do
  1036. if v:IsA("Part") then
  1037. v.BrickColor = BrickColor.new("Really red")
  1038. v.Material = "Neon"
  1039. end
  1040. end
  1041. for i, v in pairs(mw2:GetChildren()) do
  1042. if v:IsA("Part") then
  1043. v.BrickColor = BrickColor.new("Really red")
  1044. v.Material = "Neon"
  1045. end
  1046. end
  1047. for i, v in pairs(mw1:GetChildren()) do
  1048. if v:IsA("Part") then
  1049. v.Transparency = 1
  1050. v.BrickColor = BrickColor.new("Really red")
  1051. v.Material = "Neon"
  1052. end
  1053. end
  1054. for i, v in pairs(extrawingmod1:GetChildren()) do
  1055. if v:IsA("Part") then
  1056. v.Transparency = 1
  1057. v.BrickColor = BrickColor.new("White")
  1058. v.Material = "Neon"
  1059. end
  1060. end
  1061. for i, v in pairs(extrawingmod2:GetChildren()) do
  1062. if v:IsA("Part") then
  1063. v.Transparency = 1
  1064. v.BrickColor = BrickColor.new("White")
  1065. v.Material = "Neon"
  1066. end
  1067. end
  1068. local MAINRUINCOLOR = BrickColor.new("Really red")
  1069. ------
  1070.  
  1071.  
  1072. function RemoveOutlines(part)
  1073. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1074. end
  1075. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1076. local Part = Create("Part")({
  1077. Parent = Parent,
  1078. Reflectance = Reflectance,
  1079. Transparency = Transparency,
  1080. CanCollide = false,
  1081. Locked = true,
  1082. BrickColor = BrickColor.new(tostring(BColor)),
  1083. Name = Name,
  1084. Size = Size,
  1085. Material = Material
  1086. })
  1087. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1088. RemoveOutlines(Part)
  1089. return Part
  1090. end
  1091. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1092. local Msh = Create(Mesh)({
  1093. Parent = Part,
  1094. Offset = OffSet,
  1095. Scale = Scale
  1096. })
  1097. if Mesh == "SpecialMesh" then
  1098. Msh.MeshType = MeshType
  1099. Msh.MeshId = MeshId
  1100. end
  1101. return Msh
  1102. end
  1103. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1104. local Weld = Create("Weld")({
  1105. Parent = Parent,
  1106. Part0 = Part0,
  1107. Part1 = Part1,
  1108. C0 = C0,
  1109. C1 = C1
  1110. })
  1111. return Weld
  1112. end
  1113.  
  1114. Player=owner
  1115. Character=Player.Character
  1116. PlayerGui=Player.PlayerGui
  1117. Backpack=Player.Backpack
  1118. Torso=Character.Torso
  1119. Head=Character.Head
  1120. Humanoid=Character.Humanoid
  1121. m=Instance.new('Model',Character)
  1122. LeftArm=Character["Left Arm"]
  1123. LeftLeg=Character["Left Leg"]
  1124. RightArm=Character["Right Arm"]
  1125. RightLeg=Character["Right Leg"]
  1126. LS=Torso["Left Shoulder"]
  1127. LH=Torso["Left Hip"]
  1128. RS=Torso["Right Shoulder"]
  1129. RH=Torso["Right Hip"]
  1130. Face = Head.face
  1131. Neck=Torso.Neck
  1132. it=Instance.new
  1133. attacktype=1
  1134. vt=Vector3.new
  1135. cf=CFrame.new
  1136. euler=CFrame.fromEulerAnglesXYZ
  1137. angles=CFrame.Angles
  1138. cloaked=false
  1139. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1140. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1141. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1142. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1143. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1144. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1145. RootPart=Character.HumanoidRootPart
  1146. RootJoint=RootPart.RootJoint
  1147. RootCF=euler(-1.57,0,3.14)
  1148. attack = false
  1149. attackdebounce = false
  1150. deb=false
  1151. equipped=true
  1152. hand=false
  1153. MMouse=nil
  1154. combo=0
  1155. mana=0
  1156. trispeed=.2
  1157. attackmode='none'
  1158. local idle=0
  1159. local Anim="Idle"
  1160. local Effects={}
  1161. local gun=false
  1162. local shoot=false
  1163. local sine = 0
  1164. local change = 1
  1165. player=nil
  1166.  
  1167.  
  1168. local toggleTag = true
  1169. local txt = Instance.new("BillboardGui", Head)
  1170. txt.Adornee = nil
  1171. txt.Name = "NameDetect"
  1172. txt.Size = UDim2.new(4, 0, 1.2, 0)
  1173. txt.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  1174. local text = Instance.new("TextLabel", txt)
  1175. text.Size = UDim2.new(10/2, 0, 7/2, 0)
  1176. text.FontSize = "Size8"
  1177. text.TextScaled = true
  1178. text.TextTransparency = 0
  1179. text.BackgroundTransparency = 1
  1180. text.TextTransparency = 0
  1181. text.TextStrokeTransparency = 0
  1182. text.Font = "Fantasy"
  1183. text.TextStrokeColor3 = Color3.new(1,0,0)
  1184. text.TextColor3 = Color3.new(0,0,0)
  1185. text.Text = "Mayhem"
  1186.  
  1187. function RecolorTextAndRename(name,col1,col2)
  1188. text.TextStrokeColor3 = col2
  1189. text.TextColor3 = col1
  1190. text.Text = name
  1191. end
  1192. mouse=Player:GetMouse()
  1193. --save shoulders
  1194. RSH, LSH=nil, nil
  1195. --welds
  1196. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1197. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1198. LH=Torso["Left Hip"]
  1199. RH=Torso["Right Hip"]
  1200. TorsoColor=Torso.BrickColor
  1201. function NoOutline(Part)
  1202. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1203. end
  1204. player=Player
  1205. ch=Character
  1206. RSH=ch.Torso["Right Shoulder"]
  1207. LSH=ch.Torso["Left Shoulder"]
  1208. --
  1209. RSH.Parent=nil
  1210. LSH.Parent=nil
  1211. --
  1212. RW.Name="Right Shoulder"
  1213. RW.Part0=ch.Torso
  1214. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1215. RW.C1=cf(0, 0.5, 0)
  1216. RW.Part1=ch["Right Arm"]
  1217. RW.Parent=ch.Torso
  1218. --
  1219. LW.Name="Left Shoulder"
  1220. LW.Part0=ch.Torso
  1221. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1222. LW.C1=cf(0, 0.5, 0)
  1223. LW.Part1=ch["Left Arm"]
  1224. LW.Parent=ch.Torso
  1225.  
  1226. local Stats=Instance.new("BoolValue")
  1227. Stats.Name="Stats"
  1228. Stats.Parent=Character
  1229. local Atk=Instance.new("NumberValue")
  1230. Atk.Name="Damage"
  1231. Atk.Parent=Stats
  1232. Atk.Value=1
  1233. local Def=Instance.new("NumberValue")
  1234. Def.Name="Defense"
  1235. Def.Parent=Stats
  1236. Def.Value=1
  1237. local Speed=Instance.new("NumberValue")
  1238. Speed.Name="Speed"
  1239. Speed.Parent=Stats
  1240. Speed.Value=1
  1241. local Mvmt=Instance.new("NumberValue")
  1242. Mvmt.Name="Movement"
  1243. Mvmt.Parent=Stats
  1244. Mvmt.Value=1
  1245.  
  1246. local donum=0
  1247.  
  1248.  
  1249. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1250. local fp=it("Part")
  1251. fp.formFactor=formfactor
  1252. fp.Parent=parent
  1253. fp.Reflectance=reflectance
  1254. fp.Transparency=transparency
  1255. fp.CanCollide=false
  1256. fp.Locked=true
  1257. fp.BrickColor=brickcolor
  1258. fp.Name=name
  1259. fp.Size=size
  1260. fp.Position=Torso.Position
  1261. NoOutline(fp)
  1262. fp.Material="SmoothPlastic"
  1263. fp:BreakJoints()
  1264. return fp
  1265. end
  1266.  
  1267. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1268. local mesh=it(Mesh)
  1269. mesh.Parent=part
  1270. if Mesh=="SpecialMesh" then
  1271. mesh.MeshType=meshtype
  1272. if meshid~="nil" then
  1273. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1274. end
  1275. end
  1276. mesh.Offset=offset
  1277. mesh.Scale=scale
  1278. return mesh
  1279. end
  1280.  
  1281. function weld(parent,part0,part1,c0)
  1282. local weld=it("Weld")
  1283. weld.Parent=parent
  1284. weld.Part0=part0
  1285. weld.Part1=part1
  1286. weld.C0=c0
  1287. return weld
  1288. end
  1289.  
  1290. local Color1=Torso.BrickColor
  1291.  
  1292. local bodvel=Instance.new("BodyVelocity")
  1293. local bg=Instance.new("BodyGyro")
  1294.  
  1295. function swait(num)
  1296. if num==0 or num==nil then
  1297. game:service'RunService'.Stepped:wait(0)
  1298. else
  1299. for i=0,num do
  1300. game:service'RunService'.Stepped:wait(0)
  1301. end
  1302. end
  1303. end
  1304.  
  1305. -------- RAINBOW LEAVE IT TO ME
  1306. local r = 255
  1307. local g = 0
  1308. local b = 0
  1309. coroutine.resume(coroutine.create(function()
  1310. while wait() do
  1311. for i = 0, 254/5 do
  1312. swait()
  1313. g = g + 5
  1314. end
  1315. for i = 0, 254/5 do
  1316. swait()
  1317. r = r - 5
  1318. end
  1319. for i = 0, 254/5 do
  1320. swait()
  1321. b = b + 5
  1322. end
  1323. for i = 0, 254/5 do
  1324. swait()
  1325. g = g - 5
  1326. end
  1327. for i = 0, 254/5 do
  1328. swait()
  1329. r = r + 5
  1330. end
  1331. for i = 0, 254/5 do
  1332. swait()
  1333. b = b - 5
  1334. end
  1335. end
  1336. end))
  1337.  
  1338.  
  1339. so = function(id,par,vol,pit)
  1340. coroutine.resume(coroutine.create(function()
  1341. local sou = Instance.new("Sound",par or workspace)
  1342. sou.Volume=vol
  1343. sou.Pitch=pit or 1
  1344. sou.SoundId=id
  1345. swait()
  1346. sou:play()
  1347. game:GetService("Debris"):AddItem(sou,6)
  1348. end))
  1349. end
  1350.  
  1351. function clerp(a,b,t)
  1352. local qa = {QuaternionFromCFrame(a)}
  1353. local qb = {QuaternionFromCFrame(b)}
  1354. local ax, ay, az = a.x, a.y, a.z
  1355. local bx, by, bz = b.x, b.y, b.z
  1356. local _t = 1-t
  1357. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1358. end
  1359.  
  1360. function QuaternionFromCFrame(cf)
  1361. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1362. local trace = m00 + m11 + m22
  1363. if trace > 0 then
  1364. local s = math.sqrt(1 + trace)
  1365. local recip = 0.5/s
  1366. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1367. else
  1368. local i = 0
  1369. if m11 > m00 then
  1370. i = 1
  1371. end
  1372. if m22 > (i == 0 and m00 or m11) then
  1373. i = 2
  1374. end
  1375. if i == 0 then
  1376. local s = math.sqrt(m00-m11-m22+1)
  1377. local recip = 0.5/s
  1378. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1379. elseif i == 1 then
  1380. local s = math.sqrt(m11-m22-m00+1)
  1381. local recip = 0.5/s
  1382. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1383. elseif i == 2 then
  1384. local s = math.sqrt(m22-m00-m11+1)
  1385. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1386. end
  1387. end
  1388. end
  1389.  
  1390. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1391. local xs, ys, zs = x + x, y + y, z + z
  1392. local wx, wy, wz = w*xs, w*ys, w*zs
  1393. local xx = x*xs
  1394. local xy = x*ys
  1395. local xz = x*zs
  1396. local yy = y*ys
  1397. local yz = y*zs
  1398. local zz = z*zs
  1399. 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))
  1400. end
  1401.  
  1402. function QuaternionSlerp(a, b, t)
  1403. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1404. local startInterp, finishInterp;
  1405. if cosTheta >= 0.0001 then
  1406. if (1 - cosTheta) > 0.0001 then
  1407. local theta = math.acos(cosTheta)
  1408. local invSinTheta = 1/math.sin(theta)
  1409. startInterp = math.sin((1-t)*theta)*invSinTheta
  1410. finishInterp = math.sin(t*theta)*invSinTheta
  1411. else
  1412. startInterp = 1-t
  1413. finishInterp = t
  1414. end
  1415. else
  1416. if (1+cosTheta) > 0.0001 then
  1417. local theta = math.acos(-cosTheta)
  1418. local invSinTheta = 1/math.sin(theta)
  1419. startInterp = math.sin((t-1)*theta)*invSinTheta
  1420. finishInterp = math.sin(t*theta)*invSinTheta
  1421. else
  1422. startInterp = t-1
  1423. finishInterp = t
  1424. end
  1425. end
  1426. 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
  1427. end
  1428.  
  1429. local function CFrameFromTopBack(at, top, back)
  1430. local right = top:Cross(back)
  1431. return CFrame.new(at.x, at.y, at.z,
  1432. right.x, top.x, back.x,
  1433. right.y, top.y, back.y,
  1434. right.z, top.z, back.z)
  1435. end
  1436.  
  1437. function Triangle(a, b, c)
  1438. local edg1 = (c-a):Dot((b-a).unit)
  1439. local edg2 = (a-b):Dot((c-b).unit)
  1440. local edg3 = (b-c):Dot((a-c).unit)
  1441. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1442. a, b, c = a, b, c
  1443. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1444. a, b, c = b, c, a
  1445. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1446. a, b, c = c, a, b
  1447. else
  1448. assert(false, "unreachable")
  1449. end
  1450.  
  1451. local len1 = (c-a):Dot((b-a).unit)
  1452. local len2 = (b-a).magnitude - len1
  1453. local width = (a + (b-a).unit*len1 - c).magnitude
  1454.  
  1455. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1456.  
  1457. local list = {}
  1458.  
  1459. if len1 > 0.01 then
  1460. local w1 = Instance.new('WedgePart', m)
  1461. game:GetService("Debris"):AddItem(w1,5)
  1462. w1.Material = "SmoothPlastic"
  1463. w1.FormFactor = 'Custom'
  1464. w1.BrickColor = BrickColor.new("Really red")
  1465. w1.Transparency = 0
  1466. w1.Reflectance = 0
  1467. w1.Material = "SmoothPlastic"
  1468. w1.CanCollide = false
  1469. local l1 = Instance.new("PointLight",w1)
  1470. l1.Color = Color3.new(170,0,0)
  1471. NoOutline(w1)
  1472. local sz = Vector3.new(0.2, width, len1)
  1473. w1.Size = sz
  1474. local sp = Instance.new("SpecialMesh",w1)
  1475. sp.MeshType = "Wedge"
  1476. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1477. w1:BreakJoints()
  1478. w1.Anchored = true
  1479. w1.Parent = workspace
  1480. w1.Transparency = 0.7
  1481. table.insert(Effects,{w1,"Disappear",.01})
  1482. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1483. table.insert(list,w1)
  1484. end
  1485.  
  1486. if len2 > 0.01 then
  1487. local w2 = Instance.new('WedgePart', m)
  1488. game:GetService("Debris"):AddItem(w2,5)
  1489. w2.Material = "SmoothPlastic"
  1490. w2.FormFactor = 'Custom'
  1491. w2.BrickColor = BrickColor.new("Really red")
  1492. w2.Transparency = 0
  1493. w2.Reflectance = 0
  1494. w2.Material = "SmoothPlastic"
  1495. w2.CanCollide = false
  1496. local l2 = Instance.new("PointLight",w2)
  1497. l2.Color = Color3.new(170,0,0)
  1498. NoOutline(w2)
  1499. local sz = Vector3.new(0.2, width, len2)
  1500. w2.Size = sz
  1501. local sp = Instance.new("SpecialMesh",w2)
  1502. sp.MeshType = "Wedge"
  1503. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1504. w2:BreakJoints()
  1505. w2.Anchored = true
  1506. w2.Parent = workspace
  1507. w2.Transparency = 0.7
  1508. table.insert(Effects,{w2,"Disappear",.01})
  1509. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1510. table.insert(list,w2)
  1511. end
  1512. return unpack(list)
  1513. end
  1514.  
  1515.  
  1516. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1517. if hit.Parent == nil then
  1518. return
  1519. end
  1520. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1521. for _, v in pairs(hit.Parent:children()) do
  1522. if v:IsA("Humanoid") then
  1523. h = v
  1524. end
  1525. end
  1526. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1527. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1528. return
  1529. end
  1530. local c = Create("ObjectValue")({
  1531. Name = "creator",
  1532. Value = game:service("Players").LocalPlayer,
  1533. Parent = h
  1534. })
  1535. game:GetService("Debris"):AddItem(c, 0.5)
  1536. if HitSound ~= nil and HitPitch ~= nil then
  1537. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1538. end
  1539. local Damage = math.random(minim, maxim)
  1540. local blocked = false
  1541. local block = hit.Parent:findFirstChild("Block")
  1542. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1543. blocked = true
  1544. block.Value = block.Value - 1
  1545. print(block.Value)
  1546. end
  1547. if blocked == false then
  1548. HitHealth = h.Health
  1549. h.Health = h.Health - Damage
  1550. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1551. print("gained kill")
  1552. end
  1553. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1554. else
  1555. h.Health = h.Health - Damage / 2
  1556. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1557. end
  1558. if Type == "Knockdown" then
  1559. local hum = hit.Parent.Humanoid
  1560. hum.PlatformStand = true
  1561. coroutine.resume(coroutine.create(function(HHumanoid)
  1562. swait(1)
  1563. HHumanoid.PlatformStand = false
  1564. end), hum)
  1565. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1566. local bodvol = Create("BodyVelocity")({
  1567. velocity = angle * knockback,
  1568. P = 5000,
  1569. maxForce = Vector3.new(8000, 8000, 8000),
  1570. Parent = hit
  1571. })
  1572. local rl = Create("BodyAngularVelocity")({
  1573. P = 3000,
  1574. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1575. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1576. Parent = hit
  1577. })
  1578. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1579. game:GetService("Debris"):AddItem(rl, 0.5)
  1580. elseif Type == "Normal" then
  1581. local vp = Create("BodyVelocity")({
  1582. P = 500,
  1583. maxForce = Vector3.new(math.huge, 0, math.huge),
  1584. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1585. })
  1586. if knockback > 0 then
  1587. vp.Parent = hit.Parent.Head
  1588. end
  1589. game:GetService("Debris"):AddItem(vp, 0.5)
  1590. elseif Type == "Up" then
  1591. local bodyVelocity = Create("BodyVelocity")({
  1592. velocity = Vector3.new(0, 20, 0),
  1593. P = 5000,
  1594. maxForce = Vector3.new(8000, 8000, 8000),
  1595. Parent = hit
  1596. })
  1597. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1598. local bodyVelocity = Create("BodyVelocity")({
  1599. velocity = Vector3.new(0, 20, 0),
  1600. P = 5000,
  1601. maxForce = Vector3.new(8000, 8000, 8000),
  1602. Parent = hit
  1603. })
  1604. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1605. elseif Type == "Leech" then
  1606. local hum = hit.Parent.Humanoid
  1607. if hum ~= nil then
  1608. for i = 0, 2 do
  1609. 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)
  1610. end
  1611. Humanoid.Health = Humanoid.Health + 10
  1612. end
  1613. elseif Type == "UpKnock" then
  1614. local hum = hit.Parent.Humanoid
  1615. hum.PlatformStand = true
  1616. if hum ~= nil then
  1617. hitr = true
  1618. end
  1619. coroutine.resume(coroutine.create(function(HHumanoid)
  1620. swait(5)
  1621. HHumanoid.PlatformStand = false
  1622. hitr = false
  1623. end), hum)
  1624. local bodyVelocity = Create("BodyVelocity")({
  1625. velocity = Vector3.new(0, 20, 0),
  1626. P = 5000,
  1627. maxForce = Vector3.new(8000, 8000, 8000),
  1628. Parent = hit
  1629. })
  1630. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1631. local bodyVelocity = Create("BodyVelocity")({
  1632. velocity = Vector3.new(0, 20, 0),
  1633. P = 5000,
  1634. maxForce = Vector3.new(8000, 8000, 8000),
  1635. Parent = hit
  1636. })
  1637. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1638. elseif Type == "Snare" then
  1639. local bp = Create("BodyPosition")({
  1640. P = 2000,
  1641. D = 100,
  1642. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1643. position = hit.Parent.Torso.Position,
  1644. Parent = hit.Parent.Torso
  1645. })
  1646. game:GetService("Debris"):AddItem(bp, 1)
  1647. elseif Type == "Slashnare" then
  1648. 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)
  1649. for i = 1, math.random(4, 5) do
  1650. 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)
  1651. end
  1652. local bp = Create("BodyPosition")({
  1653. P = 2000,
  1654. D = 100,
  1655. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1656. position = hit.Parent.Torso.Position,
  1657. Parent = hit.Parent.Torso
  1658. })
  1659. game:GetService("Debris"):AddItem(bp, 1)
  1660. elseif Type == "Spike" then
  1661. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1662. local bp = Create("BodyPosition")({
  1663. P = 2000,
  1664. D = 100,
  1665. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1666. position = hit.Parent.Torso.Position,
  1667. Parent = hit.Parent.Torso
  1668. })
  1669. game:GetService("Debris"):AddItem(bp, 1)
  1670. elseif Type == "Freeze" then
  1671. local BodPos = Create("BodyPosition")({
  1672. P = 50000,
  1673. D = 1000,
  1674. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1675. position = hit.Parent.Torso.Position,
  1676. Parent = hit.Parent.Torso
  1677. })
  1678. local BodGy = Create("BodyGyro")({
  1679. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1680. P = 20000,
  1681. Parent = hit.Parent.Torso,
  1682. cframe = hit.Parent.Torso.CFrame
  1683. })
  1684. hit.Parent.Torso.Anchored = true
  1685. coroutine.resume(coroutine.create(function(Part)
  1686. swait(1.5)
  1687. Part.Anchored = false
  1688. end), hit.Parent.Torso)
  1689. game:GetService("Debris"):AddItem(BodPos, 3)
  1690. game:GetService("Debris"):AddItem(BodGy, 3)
  1691. end
  1692. local debounce = Create("BoolValue")({
  1693. Name = "DebounceHit",
  1694. Parent = hit.Parent,
  1695. Value = true
  1696. })
  1697. game:GetService("Debris"):AddItem(debounce, Delay)
  1698. c = Instance.new("ObjectValue")
  1699. c.Name = "creator"
  1700. c.Value = Player
  1701. c.Parent = h
  1702. game:GetService("Debris"):AddItem(c, 0.5)
  1703. end
  1704. end
  1705. function ShowDamage(Pos, Text, Time, Color)
  1706. local Rate = 0.03333333333333333
  1707. local Pos = Pos or Vector3.new(0, 0, 0)
  1708. local Text = Text or ""
  1709. local Time = Time or 2
  1710. local Color = Color or Color3.new(1, 0, 1)
  1711. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1712. EffectPart.Anchored = true
  1713. local BillboardGui = Create("BillboardGui")({
  1714. Size = UDim2.new(3, 0, 3, 0),
  1715. Adornee = EffectPart,
  1716. Parent = EffectPart
  1717. })
  1718. local TextLabel = Create("TextLabel")({
  1719. BackgroundTransparency = 1,
  1720. Size = UDim2.new(1, 0, 1, 0),
  1721. Text = Text,
  1722. TextColor3 = Color,
  1723. TextScaled = true,
  1724. Font = Enum.Font.ArialBold,
  1725. Parent = BillboardGui
  1726. })
  1727. game.Debris:AddItem(EffectPart, Time + 0.1)
  1728. EffectPart.Parent = game:GetService("Workspace")
  1729. delay(0, function()
  1730. local Frames = Time / Rate
  1731. for Frame = 1, Frames do
  1732. wait(Rate)
  1733. local Percent = Frame / Frames
  1734. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1735. TextLabel.TextTransparency = Percent
  1736. end
  1737. if EffectPart and EffectPart.Parent then
  1738. EffectPart:Destroy()
  1739. end
  1740. end)
  1741. end
  1742. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1743. for _, c in pairs(workspace:children()) do
  1744. local hum = c:findFirstChildOfClass("Humanoid")
  1745. if hum ~= nil then
  1746. local head = c:findFirstChild("Head")
  1747. if head ~= nil then
  1748. local targ = head.Position - Part.Position
  1749. local mag = targ.magnitude
  1750. if magni >= mag and c.Name ~= Player.Name then
  1751. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1752. end
  1753. end
  1754. end
  1755. end
  1756. end
  1757.  
  1758. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1759. for _, c in pairs(workspace:children()) do
  1760. local hum = c:findFirstChild("Humanoid")
  1761. if hum ~= nil then
  1762. local head = c:findFirstChild("Torso")
  1763. if head ~= nil then
  1764. local targ = head.Position - Part.Position
  1765. local mag = targ.magnitude
  1766. if magni >= mag and c.Name ~= Player.Name then
  1767. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1768. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1769. end
  1770. end
  1771. end
  1772. end
  1773. end
  1774.  
  1775. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1776. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1777. end
  1778.  
  1779. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  1780. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1781. prt.Anchored=true
  1782. prt.CFrame=cframe
  1783. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  1784. --http://www.roblox.com/asset/?id=4770560
  1785. game:GetService("Debris"):AddItem(prt,2)
  1786. CF=prt.CFrame
  1787. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  1788. for i=0,1,0.2 do
  1789. wait()
  1790. Part.CFrame=CF*cf(0,0,-0.4)
  1791. end
  1792. for i=0,1,delay do
  1793. wait()
  1794. --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)
  1795. Mesh.Scale=Mesh.Scale
  1796. end
  1797. for i=0,1,0.1 do
  1798. wait()
  1799. Part.Transparency=i
  1800. end
  1801. Part.Parent=nil
  1802. end),prt,msh,CF)
  1803. end
  1804.  
  1805. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1806. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1807. prt.Anchored=true
  1808. prt.Material = "Neon"
  1809. prt.CFrame=cframe
  1810. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1811. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1812. game:GetService("Debris"):AddItem(prt,5)
  1813. coroutine.resume(coroutine.create(function(Part,Mesh)
  1814. for i=0,1,delay do
  1815. swait()
  1816. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1817. Part.Transparency=i
  1818. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1819. end
  1820. Part.Parent=nil
  1821. end),prt,msh)
  1822. end
  1823.  
  1824. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1825. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1826. prt.Anchored=true
  1827. prt.Material = "Neon"
  1828. prt.CFrame=cframe
  1829. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1830. game:GetService("Debris"):AddItem(prt,5)
  1831. coroutine.resume(coroutine.create(function(Part,Mesh)
  1832. local rtype = rottype
  1833. for i=0,1,delay do
  1834. swait()
  1835. if rtype == 1 then
  1836. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1837. elseif rtype == 2 then
  1838. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1839. end
  1840. Part.Transparency=i
  1841. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1842. end
  1843. Part.Parent=nil
  1844. end),prt,msh)
  1845. end
  1846.  
  1847. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1848. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1849. prt.Anchored=true
  1850. prt.CFrame=cframe
  1851. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1852. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1853. game:GetService("Debris"):AddItem(prt,5)
  1854. coroutine.resume(coroutine.create(function(Part,Mesh)
  1855. for i=0,1,delay do
  1856. wait()
  1857. Part.Transparency=i
  1858. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1859. end
  1860. Part.Parent=nil
  1861. end),prt,msh)
  1862. end
  1863.  
  1864. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1865. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1866. prt.Anchored=true
  1867. prt.Material = "Neon"
  1868. prt.CFrame=cframe
  1869. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1870. game:GetService("Debris"):AddItem(prt,5)
  1871. coroutine.resume(coroutine.create(function(Part,Mesh)
  1872. local rtype = rottype
  1873. for i=0,1,delay do
  1874. swait()
  1875. if rtype == 1 then
  1876. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1877. elseif rtype == 2 then
  1878. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1879. end
  1880. Part.Transparency=i
  1881. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1882. end
  1883. Part.Parent=nil
  1884. end),prt,msh)
  1885. end
  1886.  
  1887. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1888. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1889. prt.Anchored=true
  1890. prt.Material = "Neon"
  1891. prt.CFrame=cframe
  1892. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1893. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  1894. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1895. game:GetService("Debris"):AddItem(prt,5)
  1896. coroutine.resume(coroutine.create(function(Part,Mesh)
  1897. local rtype = rottype
  1898. for i=0,1,delay do
  1899. swait()
  1900. if rtype == 1 then
  1901. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1902. elseif rtype == 2 then
  1903. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1904. end
  1905. dec.Transparency=i
  1906. dec2.Transparency=i
  1907. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1908. end
  1909. Part.Parent=nil
  1910. end),prt,msh)
  1911. end
  1912.  
  1913. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1914. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1915. prt.Anchored=true
  1916. prt.Material = "Neon"
  1917. prt.CFrame=cframe
  1918. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1919. game:GetService("Debris"):AddItem(prt,5)
  1920. coroutine.resume(coroutine.create(function(Part,Mesh)
  1921. local rtype = rottype
  1922. for i=0,1,delay do
  1923. swait()
  1924. if rtype == 1 then
  1925. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1926. elseif rtype == 2 then
  1927. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1928. end
  1929. prt.Transparency=i
  1930. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1931. end
  1932. Part.Parent=nil
  1933. end),prt,msh)
  1934. end
  1935.  
  1936. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1937. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1938. prt.Anchored=true
  1939. prt.Material = "Neon"
  1940. prt.CFrame=cframe
  1941. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1942. game:GetService("Debris"):AddItem(prt,5)
  1943. coroutine.resume(coroutine.create(function(Part,Mesh)
  1944. local rtype = rottype
  1945. for i=0,1,delay do
  1946. swait()
  1947. if rtype == 1 then
  1948. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1949. elseif rtype == 2 then
  1950. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1951. end
  1952. prt.Transparency=i
  1953. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1954. end
  1955. Part.Parent=nil
  1956. end),prt,msh)
  1957. end
  1958.  
  1959. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1960. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1961. prt.Anchored=true
  1962. prt.Material = "Neon"
  1963. prt.CFrame=cframe
  1964. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1965. game:GetService("Debris"):AddItem(prt,5)
  1966. coroutine.resume(coroutine.create(function(Part,Mesh)
  1967. local rtype = rottype
  1968. for i=0,1,delay do
  1969. swait()
  1970. if rtype == 1 then
  1971. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1972. elseif rtype == 2 then
  1973. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1974. end
  1975. prt.Transparency=i
  1976. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1977. end
  1978. Part.Parent=nil
  1979. end),prt,msh)
  1980. end
  1981.  
  1982. function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  1983. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1984. prt.Anchored=true
  1985. prt.Material = "Neon"
  1986. prt.CFrame=cframe
  1987. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1988. game:GetService("Debris"):AddItem(prt,5)
  1989. coroutine.resume(coroutine.create(function(Part,Mesh)
  1990. local rtype = rottype
  1991. for i=0,1,delay do
  1992. swait()
  1993. if rtype == 1 then
  1994. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1995. elseif rtype == 2 then
  1996. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1997. end
  1998. prt.Transparency=i
  1999. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2000. end
  2001. Part.Parent=nil
  2002. end),prt,msh)
  2003. end
  2004.  
  2005. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2006. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2007. prt.Anchored=false
  2008. prt.CFrame=cframe
  2009. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2010. local wld=weld(prt,prt,Parent,cframe)
  2011. game:GetService("Debris"):AddItem(prt,5)
  2012. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2013. for i=0,1,delay do
  2014. wait()
  2015. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  2016. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2017. Part.Transparency=i
  2018. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2019. end
  2020. Part.Parent=nil
  2021. end),prt,msh,wld)
  2022. end
  2023.  
  2024. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  2025. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2026. prt.Anchored=false
  2027. prt.CFrame=cframe
  2028. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2029. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  2030. game:GetService("Debris"):AddItem(prt,5)
  2031. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  2032. for i=0,1,delay do
  2033. wait()
  2034. Weld.C0=euler(i*20,0,0)
  2035. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2036. Part.Transparency=i
  2037. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2038. end
  2039. Part.Parent=nil
  2040. end),prt,msh,wld)
  2041. end
  2042.  
  2043. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2044. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2045. prt.Anchored=true
  2046. prt.CFrame=cframe
  2047. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  2048. game:GetService("Debris"):AddItem(prt,2)
  2049. coroutine.resume(coroutine.create(function(Part,Mesh)
  2050. for i=0,1,delay do
  2051. wait()
  2052. Part.CFrame=Part.CFrame
  2053. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2054. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2055. prt2.Anchored=true
  2056. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2057. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  2058. game:GetService("Debris"):AddItem(prt2,2)
  2059. coroutine.resume(coroutine.create(function(Part,Mesh)
  2060. for i=0,1,0.1 do
  2061. wait()
  2062. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  2063. end
  2064. Part.Parent=nil
  2065. end),prt2,msh2)
  2066. end
  2067. for i=0,1,delay*2 do
  2068. wait()
  2069. Part.CFrame=Part.CFrame
  2070. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  2071. end
  2072. Part.Parent=nil
  2073. end),prt,msh)
  2074. end
  2075.  
  2076. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2077. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2078. prt.Anchored=true
  2079. prt.CFrame=cframe
  2080. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2081. game:GetService("Debris"):AddItem(prt,2)
  2082. coroutine.resume(coroutine.create(function(Part,Mesh)
  2083. for i=0,1,delay do
  2084. wait()
  2085. Part.CFrame=Part.CFrame
  2086. Part.Transparency=i
  2087. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2088. end
  2089. Part.Parent=nil
  2090. end),prt,msh)
  2091. end
  2092.  
  2093. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  2094. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2095. prt.Anchored=true
  2096. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  2097. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  2098. game:GetService("Debris"):AddItem(prt,2)
  2099. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  2100. CF=Part.CFrame
  2101. Numbb=0
  2102. randnumb=math.random()/10
  2103. rand1=math.random()/10
  2104. for i=0,1,rand1 do
  2105. wait()
  2106. CF=CF*cf(0,math.random()/2,0)
  2107. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  2108. Part.CFrame=CF*euler(Numbb,0,0)
  2109. Part.Transparency=i
  2110. Numbb=Numbb+randnumb
  2111. end
  2112. Part.Parent=nil
  2113. end),prt,CF,Numbb,randnumb)
  2114. end
  2115.  
  2116. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2117. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2118. prt.Anchored=true
  2119. prt.CFrame=cframe
  2120. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  2121. game:GetService("Debris"):AddItem(prt,5)
  2122. coroutine.resume(coroutine.create(function(Part,Mesh)
  2123. for i=0,1,delay do
  2124. wait()
  2125. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  2126. Part.Transparency=i
  2127. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2128. end
  2129. Part.Parent=nil
  2130. end),prt,msh)
  2131. end
  2132.  
  2133. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  2134. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2135. prt.Anchored=true
  2136. prt.CFrame=cframe
  2137. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  2138. game:GetService("Debris"):AddItem(prt,2)
  2139. coroutine.resume(coroutine.create(function(Part,Mesh)
  2140. for i=0,1,delay do
  2141. wait()
  2142. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  2143. Part.Transparency=i
  2144. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2145. end
  2146. Part.Parent=nil
  2147. end),prt,msh)
  2148. end
  2149.  
  2150. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  2151. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  2152. prt.Anchored=true
  2153. prt.CFrame=cframe*cf(x,y,z)
  2154. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  2155. game:GetService("Debris"):AddItem(prt,5)
  2156. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  2157. local num=math.random()
  2158. local num2=math.random(-3,2)+math.random()
  2159. local numm=0
  2160. for i=0,1,delay*2 do
  2161. swait()
  2162. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  2163. Part.Transparency=i
  2164. numm=numm+0.01
  2165. end
  2166. Part.Parent=nil
  2167. Mesh.Parent=nil
  2168. end),prt,msh,x,y,z)
  2169. end
  2170.  
  2171. function dmgstart(dmg,what)
  2172. hitcon = what.Touched:connect(function(hit)
  2173. local hum = hit.Parent:FindFirstChild("Humanoid")
  2174. if hum and not hum:IsDescendantOf(Character) then
  2175. hum:TakeDamage(dmg)
  2176. end
  2177. end)
  2178. end
  2179.  
  2180. function dmgstop()
  2181. hitcon:disconnect()
  2182. end
  2183.  
  2184. function Cloak()
  2185. Face.Parent=nil
  2186. cloaked=true
  2187. for _,v in pairs(Torso.Parent:children()) do
  2188. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2189. coroutine.resume(coroutine.create(function()
  2190. for i=0,1,0.2 do
  2191. wait()
  2192. v.Transparency=i
  2193. end
  2194. v.Transparency=1
  2195. end))
  2196. end
  2197. if v.className=="Hat" then
  2198. hatp=v.Handle
  2199. coroutine.resume(coroutine.create(function(derp)
  2200. for i=0,1,0.2 do
  2201. wait()
  2202. derp.Transparency=i
  2203. end
  2204. derp.Transparency=1
  2205. end),hatp)
  2206. end
  2207. end
  2208. for _,v in pairs(m:children()) do
  2209. if v.className=="Part" then
  2210. coroutine.resume(coroutine.create(function()
  2211. for i=0,1,0.2 do
  2212. wait()
  2213. v.Transparency=i
  2214. end
  2215. v.Transparency=1
  2216. end))
  2217. end
  2218. end
  2219. end
  2220.  
  2221. function UnCloak()
  2222. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  2223. Face.Parent=Head
  2224. cloaked=false
  2225. for _,v in pairs(Torso.Parent:children()) do
  2226. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  2227. coroutine.resume(coroutine.create(function()
  2228. for i=0,1,0.1 do
  2229. wait()
  2230. v.Transparency=v.Transparency-0.1
  2231. end
  2232. v.Transparency=0
  2233. end))
  2234. end
  2235. if v.className=="Hat" then
  2236. hatp=v.Handle
  2237. coroutine.resume(coroutine.create(function(derp)
  2238. for i=0,1,0.1 do
  2239. wait()
  2240. derp.Transparency=derp.Transparency-0.1
  2241. end
  2242. derp.Transparency=0
  2243. end),hatp)
  2244. end
  2245. end
  2246. for _,v in pairs(m:children()) do
  2247. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  2248. coroutine.resume(coroutine.create(function()
  2249. for i=0,1,0.1 do
  2250. wait()
  2251. v.Transparency=v.Transparency-0.1
  2252. end
  2253. v.Transparency=0
  2254. end))
  2255. v.Transparency=0
  2256. end
  2257. end
  2258. end
  2259.  
  2260. local origcolor = BrickColor.new("Pastel light blue")
  2261. ---- This section of explosions.
  2262. function Explode(rad,par,pitch,vol,mindam,maxdam)
  2263. local expart = Instance.new("Part",char)
  2264. local expart2 = Instance.new("Part",char)
  2265. local rin = Instance.new("Part",char)
  2266. local rin2 = Instance.new("Part",char)
  2267. local partMesh = Instance.new("SpecialMesh",expart)
  2268. partMesh.MeshType = "Sphere"
  2269. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2270. partMesh2.MeshType = "Sphere"
  2271. local partMesh3 = Instance.new("SpecialMesh",rin)
  2272. partMesh3.MeshType = "Brick"
  2273. local partMesh4 = Instance.new("SpecialMesh",rin2)
  2274. partMesh4.MeshType = "Brick"
  2275. CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
  2276. partMesh.Scale = vt(rad,rad,rad)
  2277. expart.Size = vt(1,1,1)
  2278. expart.Transparency = 0
  2279. expart.Anchored = true
  2280. expart.Material = "Neon"
  2281. expart.BrickColor = bc("White")
  2282. expart.CFrame = par.CFrame
  2283. partMesh2.Scale = vt(rad,rad,rad)
  2284. expart2.Size = vt(1.15,1.15,1.15)
  2285. expart2.Transparency = 0.5
  2286. expart2.Anchored = true
  2287. expart2.Material = "Neon"
  2288. expart2.BrickColor = par.BrickColor
  2289. expart2.CFrame = par.CFrame
  2290. rin.Size = vt(1.15,1.15,1.15)
  2291. rin.Transparency = 1
  2292. rin.Anchored = true
  2293. rin.Material = "Neon"
  2294. rin.BrickColor = par.BrickColor
  2295. rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2296. rin2.Size = vt(1.15,1.15,1.15)
  2297. rin2.Transparency = 1
  2298. rin2.Anchored = true
  2299. rin2.Material = "Neon"
  2300. rin2.BrickColor = par.BrickColor
  2301. rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  2302. partMesh3.Scale = vt(0,1,0)
  2303. partMesh4.Scale = vt(0,1,0)
  2304. local dec2 = Instance.new("Decal", rin)
  2305. dec2.Face = "Top"
  2306. dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
  2307. dec2.Parent = rin
  2308. local dec2b = dec2:Clone()
  2309. dec2b.Face = "Bottom"
  2310. dec2b.Parent = rin
  2311.  
  2312. local dec2a = Instance.new("Decal", rin2)
  2313. dec2a.Face = "Top"
  2314. dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
  2315. dec2a.Parent = rin2
  2316. local dec2ab = dec2a:Clone()
  2317. dec2ab.Face = "Bottom"
  2318. dec2ab.Parent = rin2
  2319. expart.CanCollide = false
  2320. expart2.CanCollide = false
  2321. rin.CanCollide = false
  2322. rin2.CanCollide = false
  2323. MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
  2324. local value = 1*rad/6.5
  2325. for i = 0, 199 do
  2326. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2327. expart.CFrame = expart.CFrame
  2328. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2329. expart2.CFrame = expart.CFrame
  2330. value = value - 0.035*rad/30
  2331. if value < 7.5 then
  2332. partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
  2333. rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
  2334. partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
  2335. rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
  2336. end
  2337. if value < 0 then
  2338. dec2.Transparency = dec2.Transparency + 0.025
  2339. dec2a.Transparency = dec2a.Transparency + 0.025
  2340. dec2b.Transparency = dec2b.Transparency + 0.025
  2341. dec2ab.Transparency = dec2ab.Transparency + 0.025
  2342. expart.Transparency = expart.Transparency + 0.025
  2343. expart2.Transparency = expart2.Transparency + 0.025
  2344. rin.Transparency = rin.Transparency + 0.025
  2345. rin2.Transparency = rin2.Transparency + 0.025
  2346. end
  2347. swait()
  2348. end
  2349. game:GetService("Debris"):AddItem(expart, 1)
  2350. game:GetService("Debris"):AddItem(expart2, 1)
  2351. game:GetService("Debris"):AddItem(rin, 1)
  2352. game:GetService("Debris"):AddItem(rin2, 1)
  2353. end
  2354.  
  2355. function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
  2356. local expart = Instance.new("Part",char)
  2357. local expart2 = Instance.new("Part",char)
  2358. local partMesh = Instance.new("SpecialMesh",expart)
  2359. partMesh.MeshType = "Sphere"
  2360. local partMesh2 = Instance.new("SpecialMesh",expart2)
  2361. partMesh2.MeshType = "Sphere"
  2362. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
  2363. partMesh.Scale = vt(rad,rad,rad)
  2364. expart.Size = vt(1,1,1)
  2365. expart.Transparency = 0
  2366. expart.Anchored = true
  2367. expart.Material = "Neon"
  2368. expart.BrickColor = bc("White")
  2369. expart.CFrame = par.CFrame
  2370. partMesh2.Scale = vt(rad,rad,rad)
  2371. expart2.Size = vt(1.15,1.15,1.15)
  2372. expart2.Transparency = 0.5
  2373. expart2.Anchored = true
  2374. expart2.Material = "Neon"
  2375. expart2.BrickColor = par.BrickColor
  2376. expart2.CFrame = par.CFrame
  2377. expart.CanCollide = false
  2378. expart2.CanCollide = false
  2379. MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
  2380. local value = 1*rad/6.5
  2381. for i = 0, 75 do
  2382. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2383. expart.CFrame = expart.CFrame
  2384. partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
  2385. expart2.CFrame = expart.CFrame
  2386. value = value - 0.035*rad/5
  2387. if value < 0 then
  2388. value = 0
  2389. expart.Transparency = expart.Transparency + 0.05
  2390. expart2.Transparency = expart2.Transparency + 0.05
  2391. end
  2392. swait()
  2393. end
  2394. game:GetService("Debris"):AddItem(expart, 1)
  2395. game:GetService("Debris"):AddItem(expart2, 1)
  2396. end
  2397.  
  2398. function AreaDanger(rad,par,mindam,maxdam)
  2399. local expart = Instance.new("Part",char)
  2400. local partMesh = Instance.new("SpecialMesh",expart)
  2401. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2402. partMesh.MeshType = "Sphere"
  2403. partMesh.Scale = vt(rad,rad,rad)
  2404. expart.Size = vt(1,1,1)
  2405. expart.Transparency = 0.5
  2406. expart.Anchored = true
  2407. expart.Material = "Neon"
  2408. expart.CanCollide = false
  2409. expart.BrickColor = par.BrickColor
  2410. expart.CFrame = par.CFrame
  2411. local value = 1*rad/5
  2412. MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
  2413. for i = 0, 14 do
  2414. wait()
  2415. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2416. expart.CFrame = expart.CFrame
  2417. value = value - 0.035*rad
  2418. if value < 0 then
  2419. value = 0
  2420. end
  2421. end
  2422. wait(0.25)
  2423. CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
  2424. wait(0.5)
  2425. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
  2426. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
  2427. MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
  2428. MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
  2429. for i = 0, 14 do
  2430. wait()
  2431. partMesh.Scale = partMesh.Scale + vt(value,value,value)
  2432. expart.CFrame = expart.CFrame
  2433. value = value - 0.035*rad/2
  2434. end
  2435. expart.Transparency = 1
  2436. game:GetService("Debris"):AddItem(expart, 5)
  2437. end
  2438.  
  2439. function Swarmsplosions(negrad,rad,par,mindam,maxdam)
  2440. CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
  2441. CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
  2442. CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
  2443. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2444. MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
  2445. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
  2446. for i = 0, 24 do
  2447. 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))
  2448. end
  2449. for i = 0, 24 do
  2450. local expart = Instance.new("Part",char)
  2451. expart.Transparency = 1
  2452. expart.Anchored = true
  2453. expart.CanCollide = false
  2454. expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
  2455. CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
  2456. CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
  2457. MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
  2458. MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
  2459. for i = 0, 9 do
  2460. 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))
  2461. end
  2462. game:GetService("Debris"):AddItem(expart, 2)
  2463. wait(0.1)
  2464. end
  2465. end
  2466.  
  2467. function EXterPlosion(par)
  2468. CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
  2469. CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
  2470. CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
  2471. CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
  2472. MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
  2473. MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
  2474. MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
  2475. for i = 0, 24 do
  2476. 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))
  2477. end
  2478. for i = 0, 24 do
  2479. 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))
  2480. end
  2481. end
  2482. ----
  2483.  
  2484.  
  2485. function ring(type,pos,scale,value)
  2486. local type = type
  2487. local rng = Instance.new("Part", char)
  2488. rng.Anchored = true
  2489. rng.BrickColor = origcolor
  2490. rng.CanCollide = false
  2491. rng.FormFactor = 3
  2492. rng.Name = "Ring"
  2493. rng.Size = Vector3.new(1, 1, 1)
  2494. rng.Transparency = 0
  2495. rng.TopSurface = 0
  2496. rng.BottomSurface = 0
  2497. rng.CFrame = pos
  2498. local rngm = Instance.new("SpecialMesh", rng)
  2499. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  2500. rngm.Scale = scale
  2501. local scaler2 = 1
  2502. if type == "Add" then
  2503. scaler2 = 1*value
  2504. elseif type == "Divide" then
  2505. scaler2 = 1/value
  2506. end
  2507. coroutine.resume(coroutine.create(function()
  2508. for i = 0,10,0.1 do
  2509. swait()
  2510. if type == "Add" then
  2511. scaler2 = scaler2 - 0.01*value
  2512. elseif type == "Divide" then
  2513. scaler2 = scaler2 - 0.01/value
  2514. end
  2515. rng.Transparency = rng.Transparency + 0.01
  2516. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  2517. end
  2518. rng:Destroy()
  2519. end))
  2520. end
  2521.  
  2522.  
  2523. function wave(type,pos,scale,value)
  2524. local type = type
  2525. local rng = Instance.new("Part", char)
  2526. rng.Anchored = true
  2527. rng.BrickColor = origcolor
  2528. rng.CanCollide = false
  2529. rng.FormFactor = 3
  2530. rng.Name = "Ring"
  2531. rng.Size = Vector3.new(1, 1, 1)
  2532. rng.Transparency = 0
  2533. rng.TopSurface = 0
  2534. rng.BottomSurface = 0
  2535. rng.CFrame = pos
  2536. local rngm = Instance.new("SpecialMesh", rng)
  2537. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  2538. rngm.Scale = scale
  2539. local scaler2 = 1
  2540. if type == "Add" then
  2541. scaler2 = 1*value
  2542. elseif type == "Divide" then
  2543. scaler2 = 1/value
  2544. end
  2545. coroutine.resume(coroutine.create(function()
  2546. for i = 0,10,0.1 do
  2547. swait()
  2548. if type == "Add" then
  2549. scaler2 = scaler2 - 0.01*value
  2550. elseif type == "Divide" then
  2551. scaler2 = scaler2 - 0.01/value
  2552. end
  2553. rng.Transparency = rng.Transparency + 0.01
  2554. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2555. end
  2556. rng:Destroy()
  2557. end))
  2558. end
  2559.  
  2560. function wind(type,pos,scale,value,speed)
  2561. local type = type
  2562. local rng = Instance.new("Part", char)
  2563. rng.Anchored = true
  2564. rng.BrickColor = origcolor
  2565. rng.CanCollide = false
  2566. rng.FormFactor = 3
  2567. rng.Name = "Ring"
  2568. rng.Size = Vector3.new(1, 1, 1)
  2569. rng.Transparency = 0
  2570. rng.TopSurface = 0
  2571. rng.BottomSurface = 0
  2572. rng.CFrame = pos
  2573. local rngm = Instance.new("SpecialMesh", rng)
  2574. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2575. rngm.Scale = scale
  2576. local scaler2 = 1
  2577. if type == "Add" then
  2578. scaler2 = 1*value
  2579. elseif type == "Divide" then
  2580. scaler2 = 1/value
  2581. end
  2582. coroutine.resume(coroutine.create(function()
  2583. for i = 0,10,0.1 do
  2584. swait()
  2585. if type == "Add" then
  2586. scaler2 = scaler2 - 0.01*value
  2587. elseif type == "Divide" then
  2588. scaler2 = scaler2 - 0.01/value
  2589. end
  2590. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2591. rng.Transparency = rng.Transparency + 0.01
  2592. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  2593. end
  2594. rng:Destroy()
  2595. end))
  2596. end
  2597.  
  2598. function groundwind(type,pos,scale,value,speed)
  2599. local type = type
  2600. local rng = Instance.new("Part", char)
  2601. rng.Anchored = true
  2602. rng.BrickColor = origcolor
  2603. rng.CanCollide = false
  2604. rng.FormFactor = 3
  2605. rng.Name = "Ring"
  2606. rng.Size = Vector3.new(1, 1, 1)
  2607. rng.Transparency = 0
  2608. rng.TopSurface = 0
  2609. rng.BottomSurface = 0
  2610. rng.CFrame = pos
  2611. local rngm = Instance.new("SpecialMesh", rng)
  2612. rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
  2613. rngm.Scale = scale
  2614. local scaler2 = 1
  2615. if type == "Add" then
  2616. scaler2 = 1*value
  2617. elseif type == "Divide" then
  2618. scaler2 = 1/value
  2619. end
  2620. coroutine.resume(coroutine.create(function()
  2621. for i = 0,10,0.1 do
  2622. swait()
  2623. if type == "Add" then
  2624. scaler2 = scaler2 - 0.01*value
  2625. elseif type == "Divide" then
  2626. scaler2 = scaler2 - 0.01/value
  2627. end
  2628. rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
  2629. rng.Transparency = rng.Transparency + 0.01
  2630. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
  2631. end
  2632. rng:Destroy()
  2633. end))
  2634. end
  2635.  
  2636. function CameraManager()
  2637. if TwoD and not CamInterrupt then
  2638. if Humanoid.Health > 0 then
  2639. Camera.CameraSubject = Humanoid
  2640. Camera.CameraType = "Scriptable"
  2641. Humanoid.AutoRotate = false
  2642. if Booleans.GyroUse then
  2643. Directer.MaxTorque = Vec3(0, huge, 0)
  2644. else
  2645. Directer.MaxTorque = Vec3(0, 0, 0)
  2646. end
  2647. if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then
  2648. if Booleans.CamFollow then
  2649. CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z))
  2650. Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position)
  2651. else
  2652. CPart.Position = RootPart.Position
  2653. end
  2654. else
  2655. local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p
  2656. CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z))
  2657. end
  2658. Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2)
  2659. else
  2660. Camera.CameraSubject = Humanoid
  2661. Camera.CameraType = "Custom"
  2662. Controller.Disabled = false
  2663. end
  2664. end
  2665. end
  2666.  
  2667. function sphere(bonuspeed,type,pos,scale,value,color)
  2668. local type = type
  2669. local rng = Instance.new("Part", char)
  2670. rng.Anchored = true
  2671. rng.BrickColor = color
  2672. rng.CanCollide = false
  2673. rng.FormFactor = 3
  2674. rng.Name = "Ring"
  2675. rng.Material = "Neon"
  2676. rng.Size = Vector3.new(1, 1, 1)
  2677. rng.Transparency = 0
  2678. rng.TopSurface = 0
  2679. rng.BottomSurface = 0
  2680. rng.CFrame = pos
  2681. local rngm = Instance.new("SpecialMesh", rng)
  2682. rngm.MeshType = "Sphere"
  2683. rngm.Scale = scale
  2684. if rainbowmode == true then
  2685. rng.Color = Color3.new(r/255,g/255,b/255)
  2686. end
  2687. local scaler2 = 1
  2688. if type == "Add" then
  2689. scaler2 = 1*value
  2690. elseif type == "Divide" then
  2691. scaler2 = 1/value
  2692. end
  2693. coroutine.resume(coroutine.create(function()
  2694. for i = 0,10/bonuspeed,0.1 do
  2695. swait()
  2696. if rainbowmode == true then
  2697. rng.Color = Color3.new(r/255,g/255,b/255)
  2698. end
  2699. if type == "Add" then
  2700. scaler2 = scaler2 - 0.01*value/bonuspeed
  2701. elseif type == "Divide" then
  2702. scaler2 = scaler2 - 0.01/value*bonuspeed
  2703. end
  2704. if chaosmode == true then
  2705. rng.BrickColor = BrickColor.random()
  2706. end
  2707. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2708. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2709. end
  2710. rng:Destroy()
  2711. end))
  2712. end
  2713.  
  2714. function spherew(bonuspeed,type,pos,scale,value,color)
  2715. local type = type
  2716. local rng = Instance.new("Part", workspace)
  2717. rng.Anchored = true
  2718. rng.BrickColor = color
  2719. rng.CanCollide = false
  2720. rng.FormFactor = 3
  2721. rng.Name = "Ring"
  2722. rng.Material = "Neon"
  2723. rng.Size = Vector3.new(1, 1, 1)
  2724. rng.Transparency = 0
  2725. rng.TopSurface = 0
  2726. rng.BottomSurface = 0
  2727. rng.CFrame = pos
  2728. local rngm = Instance.new("SpecialMesh", rng)
  2729. rngm.MeshType = "Sphere"
  2730. rngm.Scale = scale
  2731. if rainbowmode == true then
  2732. rng.Color = Color3.new(r/255,g/255,b/255)
  2733. end
  2734. local scaler2 = 1
  2735. if type == "Add" then
  2736. scaler2 = 1*value
  2737. elseif type == "Divide" then
  2738. scaler2 = 1/value
  2739. end
  2740. coroutine.resume(coroutine.create(function()
  2741. for i = 0,10/bonuspeed,0.1 do
  2742. swait()
  2743. if rainbowmode == true then
  2744. rng.Color = Color3.new(r/255,g/255,b/255)
  2745. end
  2746. if type == "Add" then
  2747. scaler2 = scaler2 - 0.01*value/bonuspeed
  2748. elseif type == "Divide" then
  2749. scaler2 = scaler2 - 0.01/value*bonuspeed
  2750. end
  2751. if chaosmode == true then
  2752. rng.BrickColor = BrickColor.random()
  2753. end
  2754. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2755. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2756. end
  2757. rng:Destroy()
  2758. end))
  2759. end
  2760.  
  2761. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2762. local type = type
  2763. local rng = Instance.new("Part", char)
  2764. rng.Anchored = true
  2765. rng.BrickColor = color
  2766. rng.CanCollide = false
  2767. rng.FormFactor = 3
  2768. rng.Name = "Ring"
  2769. rng.Material = "Neon"
  2770. rng.Size = Vector3.new(1, 1, 1)
  2771. rng.Transparency = 0
  2772. rng.TopSurface = 0
  2773. rng.BottomSurface = 0
  2774. rng.CFrame = pos
  2775. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2776. local rngm = Instance.new("SpecialMesh", rng)
  2777. rngm.MeshType = "Brick"
  2778. rngm.Scale = vt(x1,y1,z1)
  2779. if rainbowmode == true then
  2780. rng.Color = Color3.new(r/255,g/255,b/255)
  2781. end
  2782. local scaler2 = 1
  2783. local speeder = FastSpeed/10
  2784. if type == "Add" then
  2785. scaler2 = 1*value
  2786. elseif type == "Divide" then
  2787. scaler2 = 1/value
  2788. end
  2789. coroutine.resume(coroutine.create(function()
  2790. for i = 0,10/bonuspeed,0.1 do
  2791. swait()
  2792. if rainbowmode == true then
  2793. rng.Color = Color3.new(r/255,g/255,b/255)
  2794. end
  2795. if type == "Add" then
  2796. scaler2 = scaler2 - 0.01*value/bonuspeed
  2797. elseif type == "Divide" then
  2798. scaler2 = scaler2 - 0.01/value*bonuspeed
  2799. end
  2800. if chaosmode == true then
  2801. rng.BrickColor = BrickColor.random()
  2802. end
  2803. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2804. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2805. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2806. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2807. end
  2808. rng:Destroy()
  2809. end))
  2810. end
  2811.  
  2812. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2813. local type = type
  2814. local rng = Instance.new("Part", char)
  2815. rng.Anchored = true
  2816. rng.BrickColor = color
  2817. rng.CanCollide = false
  2818. rng.FormFactor = 3
  2819. rng.Name = "Ring"
  2820. rng.Material = "Neon"
  2821. rng.Size = Vector3.new(1, 1, 1)
  2822. rng.Transparency = 0
  2823. rng.TopSurface = 0
  2824. rng.BottomSurface = 0
  2825. rng.CFrame = pos
  2826. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2827. local rngm = Instance.new("SpecialMesh", rng)
  2828. rngm.MeshType = "Brick"
  2829. rngm.Scale = vt(x1,y1,z1)
  2830. if rainbowmode == true then
  2831. rng.Color = Color3.new(r/255,g/255,b/255)
  2832. end
  2833. local scaler2 = 0
  2834. local speeder = FastSpeed/10
  2835. if type == "Add" then
  2836. scaler2 = 1*value
  2837. elseif type == "Divide" then
  2838. scaler2 = 1/value
  2839. end
  2840. coroutine.resume(coroutine.create(function()
  2841. for i = 0,10/bonuspeed,0.1 do
  2842. swait()
  2843. if rainbowmode == true then
  2844. rng.Color = Color3.new(r/255,g/255,b/255)
  2845. end
  2846. if type == "Add" then
  2847. scaler2 = scaler2 - 0.01*value/bonuspeed
  2848. elseif type == "Divide" then
  2849. scaler2 = scaler2 - 0.01/value*bonuspeed
  2850. end
  2851. if chaosmode == true then
  2852. rng.BrickColor = BrickColor.random()
  2853. end
  2854. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2855. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2856. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2857. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2858. end
  2859. rng:Destroy()
  2860. end))
  2861. end
  2862.  
  2863. function sphereMKw(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2864. local type = type
  2865. local rng = Instance.new("Part", workspace)
  2866. rng.Anchored = true
  2867. rng.BrickColor = color
  2868. rng.CanCollide = false
  2869. rng.FormFactor = 3
  2870. rng.Name = "Ring"
  2871. rng.Material = "Neon"
  2872. rng.Size = Vector3.new(1, 1, 1)
  2873. rng.Transparency = 0
  2874. rng.TopSurface = 0
  2875. rng.BottomSurface = 0
  2876. rng.CFrame = pos
  2877. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2878. local rngm = Instance.new("SpecialMesh", rng)
  2879. rngm.MeshType = "Sphere"
  2880. rngm.Scale = vt(x1,y1,z1)
  2881. if rainbowmode == true then
  2882. rng.Color = Color3.new(r/255,g/255,b/255)
  2883. end
  2884. local scaler2 = 1
  2885. local speeder = FastSpeed
  2886. if type == "Add" then
  2887. scaler2 = 1*value
  2888. elseif type == "Divide" then
  2889. scaler2 = 1/value
  2890. end
  2891. coroutine.resume(coroutine.create(function()
  2892. for i = 0,10/bonuspeed,0.1 do
  2893. swait()
  2894. if rainbowmode == true then
  2895. rng.Color = Color3.new(r/255,g/255,b/255)
  2896. end
  2897. if type == "Add" then
  2898. scaler2 = scaler2 - 0.01*value/bonuspeed
  2899. elseif type == "Divide" then
  2900. scaler2 = scaler2 - 0.01/value*bonuspeed
  2901. end
  2902. if chaosmode == true then
  2903. rng.BrickColor = BrickColor.random()
  2904. end
  2905. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2906. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2907. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2908. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2909. end
  2910. rng:Destroy()
  2911. end))
  2912. end
  2913. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2914. local type = type
  2915. local rng = Instance.new("Part", char)
  2916. rng.Anchored = true
  2917. rng.BrickColor = color
  2918. rng.CanCollide = false
  2919. rng.FormFactor = 3
  2920. rng.Name = "Ring"
  2921. rng.Material = "Neon"
  2922. rng.Size = Vector3.new(1, 1, 1)
  2923. rng.Transparency = 0
  2924. rng.TopSurface = 0
  2925. rng.BottomSurface = 0
  2926. rng.CFrame = pos
  2927. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2928. local rngm = Instance.new("SpecialMesh", rng)
  2929. rngm.MeshType = "Sphere"
  2930. rngm.Scale = vt(x1,y1,z1)
  2931. if rainbowmode == true then
  2932. rng.Color = Color3.new(r/255,g/255,b/255)
  2933. end
  2934. local scaler2 = 1
  2935. local speeder = FastSpeed
  2936. if type == "Add" then
  2937. scaler2 = 1*value
  2938. elseif type == "Divide" then
  2939. scaler2 = 1/value
  2940. end
  2941. coroutine.resume(coroutine.create(function()
  2942. for i = 0,10/bonuspeed,0.1 do
  2943. swait()
  2944. if rainbowmode == true then
  2945. rng.Color = Color3.new(r/255,g/255,b/255)
  2946. end
  2947. if type == "Add" then
  2948. scaler2 = scaler2 - 0.01*value/bonuspeed
  2949. elseif type == "Divide" then
  2950. scaler2 = scaler2 - 0.01/value*bonuspeed
  2951. end
  2952. if chaosmode == true then
  2953. rng.BrickColor = BrickColor.random()
  2954. end
  2955. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2956. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2957. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2958. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2959. end
  2960. rng:Destroy()
  2961. end))
  2962. end
  2963.  
  2964.  
  2965. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2966. local type = type
  2967. local rng = Instance.new("Part", char)
  2968. rng.Anchored = true
  2969. rng.BrickColor = color
  2970. rng.CanCollide = false
  2971. rng.FormFactor = 3
  2972. rng.Name = "Ring"
  2973. rng.Material = "Neon"
  2974. rng.Size = Vector3.new(1, 1, 1)
  2975. rng.Transparency = 1
  2976. rng.TopSurface = 0
  2977. rng.BottomSurface = 0
  2978. rng.CFrame = pos
  2979. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2980. local rngm = Instance.new("SpecialMesh", rng)
  2981. rngm.MeshType = "Sphere"
  2982. rngm.Scale = vt(x1,y1,z1)
  2983. if rainbowmode == true then
  2984. rng.Color = Color3.new(r/255,g/255,b/255)
  2985. end
  2986. local scaler2 = 1
  2987. local speeder = FastSpeed
  2988. if type == "Add" then
  2989. scaler2 = 1*value
  2990. elseif type == "Divide" then
  2991. scaler2 = 1/value
  2992. end
  2993. coroutine.resume(coroutine.create(function()
  2994. for i = 0,10/bonuspeed,0.1 do
  2995. swait()
  2996. if rainbowmode == true then
  2997. rng.Color = Color3.new(r/255,g/255,b/255)
  2998. end
  2999. if type == "Add" then
  3000. scaler2 = scaler2 - 0.01*value/bonuspeed
  3001. elseif type == "Divide" then
  3002. scaler2 = scaler2 - 0.01/value*bonuspeed
  3003. end
  3004. if chaosmode == true then
  3005. rng.BrickColor = BrickColor.random()
  3006. end
  3007. speeder = speeder - 0.01*FastSpeed*bonuspeed
  3008. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  3009. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  3010. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  3011. end
  3012. rng:Destroy()
  3013. end))
  3014. end
  3015.  
  3016. function dmg(dude)
  3017. if dude.Name ~= Character then
  3018. local bgf = Instance.new("BodyGyro",dude.Head)
  3019. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  3020. local val = Instance.new("BoolValue",dude)
  3021. val.Name = "IsHit"
  3022. local ds = coroutine.wrap(function()
  3023. dude:WaitForChild("Head"):BreakJoints()
  3024. wait(0.5)
  3025. targetted = nil
  3026. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
  3027. coroutine.resume(coroutine.create(function()
  3028. for i, v in pairs(dude:GetChildren()) do
  3029. if v:IsA("Accessory") then
  3030. v:Destroy()
  3031. end
  3032. if v:IsA("Humanoid") then
  3033. v:Destroy()
  3034. end
  3035. if v:IsA("CharacterMesh") then
  3036. v:Destroy()
  3037. end
  3038. if v:IsA("Model") then
  3039. v:Destroy()
  3040. end
  3041. if v:IsA("Part") or v:IsA("MeshPart") then
  3042. for x, o in pairs(v:GetChildren()) do
  3043. if o:IsA("Decal") then
  3044. o:Destroy()
  3045. end
  3046. end
  3047. coroutine.resume(coroutine.create(function()
  3048. v.Material = "Neon"
  3049. v.CanCollide = false
  3050. local bld = Instance.new("ParticleEmitter",v)
  3051. bld.LightEmission = 1
  3052. bld.Texture = "rbxassetid://284205403"
  3053. bld.Color = ColorSequence.new(Color3.new(1,1,1))
  3054. bld.Rate = 50
  3055. bld.Lifetime = NumberRange.new(1)
  3056. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
  3057. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
  3058. bld.Speed = NumberRange.new(0,0)
  3059. bld.VelocitySpread = 50000
  3060. bld.Rotation = NumberRange.new(-500,500)
  3061. bld.RotSpeed = NumberRange.new(-500,500)
  3062. local sbs = Instance.new("BodyPosition", v)
  3063. sbs.P = 3000
  3064. sbs.D = 1000
  3065. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3066. sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  3067. v.Color = Color3.new(1,1,1)
  3068. coroutine.resume(coroutine.create(function()
  3069. for i = 0, 49 do
  3070. swait(1)
  3071. v.Transparency = v.Transparency + 0.02
  3072. end
  3073. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1)
  3074. bld.Speed = NumberRange.new(1,5)
  3075. bld.Acceleration = vt(0,10,0)
  3076. wait(0.5)
  3077. bld.Enabled = false
  3078. wait(3)
  3079. v:Destroy()
  3080. dude:Destroy()
  3081. end))
  3082. end))
  3083. end
  3084. end
  3085. end))
  3086. end)
  3087. ds()
  3088. end
  3089. end
  3090.  
  3091.  
  3092. function FindNearestHead(Position, Distance, SinglePlayer)
  3093. if SinglePlayer then
  3094. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  3095. end
  3096. local List = {}
  3097. for i, v in pairs(workspace:GetChildren()) do
  3098. if v:IsA("Model") then
  3099. if v:findFirstChild("Head") then
  3100. if v ~= Character then
  3101. if (v.Head.Position - Position).magnitude <= Distance then
  3102. table.insert(List, v)
  3103. end
  3104. end
  3105. end
  3106. end
  3107. end
  3108. return List
  3109. end
  3110.  
  3111. function FaceMouse()
  3112. Cam = workspace.CurrentCamera
  3113. return {
  3114. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3115. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3116. }
  3117. end
  3118.  
  3119. function FaceMouse2()
  3120. Cam = workspace.CurrentCamera
  3121. return {
  3122. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  3123. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3124. }
  3125. end
  3126.  
  3127. local ModeOfGlitch = 1
  3128. -- Functions are ready.
  3129. local storehumanoidWS = 16
  3130.  
  3131. function Blink()
  3132. for i = 0, 14 do
  3133. 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)
  3134. end
  3135. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3136. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3137. CameraEnshaking(2,10)
  3138. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do
  3139. if v:FindFirstChild('Head') then
  3140. end
  3141. end
  3142. for i = 0, 14 do
  3143. 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)
  3144. end
  3145. sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3146. end
  3147.  
  3148. function ExtinctiveHeartbreak()
  3149. local targetted = nil
  3150. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3151. targetted = mouse.Target.Parent
  3152. end
  3153. if targetted ~= nil then
  3154. attack = true
  3155. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3156. for i = 0, 9 do
  3157. 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)
  3158. end
  3159. for i = 0, 24 do
  3160. 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)
  3161. end
  3162. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3163. local originalpos = root.CFrame
  3164. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2)
  3165. for i = 0, 9 do
  3166. 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)
  3167. end
  3168. for i = 0, 24 do
  3169. 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)
  3170. end
  3171. hum.WalkSpeed = 0
  3172. targetted.Head.Anchored = true
  3173. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3174. for i = 0,2,0.1 do
  3175. swait()
  3176. 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)
  3177. 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)
  3178. 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)
  3179. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8)
  3180. 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)
  3181. 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)
  3182. end
  3183. coroutine.resume(coroutine.create(function()
  3184. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
  3185. bld.LightEmission = 0.1
  3186. bld.Texture = "rbxassetid://284205403"
  3187. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3188. bld.Rate = 500
  3189. bld.Lifetime = NumberRange.new(1)
  3190. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3191. bld.Acceleration = vt(0,-25,0)
  3192. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3193. bld.Speed = NumberRange.new(10,50)
  3194. bld.EmissionDirection = "Front"
  3195. bld.VelocitySpread = 25
  3196. bld.Rotation = NumberRange.new(-500,500)
  3197. bld.RotSpeed = NumberRange.new(-500,500)
  3198. end))
  3199. coroutine.resume(coroutine.create(function()
  3200. bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso"))
  3201. bld.LightEmission = 0.1
  3202. bld.Texture = "rbxassetid://284205403"
  3203. bld.Color = ColorSequence.new(Color3.new(0.5,0,0))
  3204. bld.Rate = 500
  3205. bld.Lifetime = NumberRange.new(1)
  3206. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
  3207. bld.Acceleration = vt(0,-25,0)
  3208. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
  3209. bld.Speed = NumberRange.new(10,50)
  3210. bld.EmissionDirection = "Front"
  3211. bld.VelocitySpread = 25
  3212. bld.Rotation = NumberRange.new(-500,500)
  3213. bld.RotSpeed = NumberRange.new(-500,500)
  3214. end))
  3215. CameraEnshaking(5,5)
  3216. game:GetService("Debris"):AddItem(bld,3)
  3217. dmg(targetted)
  3218. CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Head, 1,1)
  3219. for i = 0,1,0.1 do
  3220. swait()
  3221. 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)
  3222. 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)
  3223. 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)
  3224. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8)
  3225. 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)
  3226. 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)
  3227. end
  3228. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3229. for i = 0, 9 do
  3230. 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)
  3231. end
  3232. for i = 0, 24 do
  3233. 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)
  3234. end
  3235. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3236. root.CFrame = originalpos
  3237. for i = 0, 9 do
  3238. 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)
  3239. end
  3240. for i = 0, 24 do
  3241. 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)
  3242. end
  3243. sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
  3244. bld.Enabled = false
  3245. attack = false
  3246. hum.WalkSpeed = storehumanoidWS
  3247. end
  3248. end
  3249. function MeteorStrike()
  3250. attack = true
  3251. for i = 0, 2, 0.1 do
  3252. swait()
  3253. 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)
  3254. 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)
  3255. 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)
  3256. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3257. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3258. 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)
  3259. end
  3260. CFuncs["Sound"].Create("rbxassetid://136007472", root, 1,2)
  3261. for i=1,20 do
  3262. 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)
  3263. swait()
  3264. end
  3265. swait(30)
  3266. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3267. for i =1,20 do
  3268. 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)
  3269. 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)
  3270. end
  3271. for i = 0,2,0.1 do
  3272. swait()
  3273. 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)
  3274. 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)
  3275. 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)
  3276. 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)
  3277. 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)
  3278. 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)
  3279. end
  3280. for i =1,20 do
  3281. 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)
  3282. end
  3283. text.TextTransparency = 1
  3284. text.TextStrokeTransparency = 1
  3285. tr2.Enabled = false
  3286. tr1.Enabled = false
  3287. tr3.Enabled = false
  3288. tl1.Enabled = false
  3289. tl2.Enabled = false
  3290. tl3.Enabled = false
  3291. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3292. eff = false
  3293. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3294. local invtab = {}
  3295. local function search(targ)
  3296. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3297. table.insert(invtab,targ)
  3298. end
  3299. for i,v in pairs(targ:GetChildren()) do
  3300. search(v)
  3301. end
  3302. end
  3303. search(plr.Character)
  3304. local frm = 0
  3305. local frmcon
  3306. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3307. if frm < 10 then
  3308. for i,v in pairs(invtab) do
  3309. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3310. v.Transparency = v.Transparency + 0.1
  3311. end
  3312. end
  3313. frm = frm + 1
  3314. else
  3315. frmcon:disconnect()
  3316. end
  3317. end)
  3318. swait(200)
  3319. text.TextTransparency = 0
  3320. text.TextStrokeTransparency = 0
  3321. tr2.Enabled = false
  3322. tr1.Enabled = false
  3323. tr3.Enabled = false
  3324. tl1.Enabled = false
  3325. tl2.Enabled = false
  3326. tl3.Enabled = false
  3327. eff = true
  3328. for i =1,20 do
  3329. 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)
  3330. end
  3331. spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3332. CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
  3333. local invtab = {}
  3334. local function search(targ)
  3335. if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
  3336. table.insert(invtab,targ)
  3337. end
  3338. for i,v in pairs(targ:GetChildren()) do
  3339. search(v)
  3340. end
  3341. end
  3342. search(plr.Character)
  3343. local frm = 0
  3344. local frmcon
  3345. frmcon = game:GetService("RunService").Heartbeat:connect(function()
  3346. if frm < 10 then
  3347. for i,v in pairs(invtab) do
  3348. if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  3349. v.Transparency = v.Transparency - 0.1
  3350. end
  3351. end
  3352. frm = frm + 1
  3353. else
  3354. frmcon:disconnect()
  3355. end
  3356. end)
  3357. swait(5)
  3358. for i = 0, 2, 0.1 do
  3359. swait()
  3360. 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)
  3361. 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)
  3362. 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)
  3363. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4)
  3364. RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1)
  3365. 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)
  3366. end
  3367. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3368. CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
  3369. MagniDamage(root, 30, 65,90, 0, "Normal")
  3370. for i =1,20 do
  3371. 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)
  3372. end
  3373. sphere(1,"Add",Torso.CFrame,vt(1,1,1),1,MAINRUINCOLOR)
  3374. for i =1,20 do
  3375. 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)
  3376. end
  3377. swait(20)
  3378. attack = false
  3379. tr2.Enabled = true
  3380. tr1.Enabled = true
  3381. tr3.Enabled = true
  3382. tl1.Enabled = true
  3383. tl2.Enabled = true
  3384. tl3.Enabled = true
  3385. end
  3386. function FinalCalam()
  3387. attack = true
  3388. hum.WalkSpeed = 0
  3389. local orb = Instance.new("Part", char)
  3390. orb.Anchored = true
  3391. orb.BrickColor = MAINRUINCOLOR
  3392. orb.CanCollide = false
  3393. orb.FormFactor = 3
  3394. orb.Name = "Ring"
  3395. orb.Material = "Neon"
  3396. orb.Size = Vector3.new(1, 1, 1)
  3397. orb.Transparency = 0
  3398. orb.TopSurface = 0
  3399. orb.BottomSurface = 0
  3400. local orbm = Instance.new("SpecialMesh", orb)
  3401. orbm.MeshType = "Sphere"
  3402. orbm.Name = "SizeMesh"
  3403. orbm.Scale = vt(0,0,0)
  3404. local scaled = 0.1
  3405. local posid = 0
  3406. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3407. for i = 0, 5, 0.1 do
  3408. swait()
  3409. scaled = scaled - 0.001
  3410. posid = posid - scaled
  3411. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3412. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3413. 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)
  3414. 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)
  3415. 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)
  3416. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3417. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3418. 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)
  3419. end
  3420. swait(60)
  3421. for i =1,3 do
  3422. swait(30)
  3423. CFuncs["Sound"].Create("rbxassetid://847061203", orb, 1,0.9)
  3424. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR)
  3425. end
  3426. swait(30)
  3427. for i = 0, 2, 0.1 do
  3428. swait()
  3429. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3430. 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)
  3431. 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)
  3432. 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)
  3433. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3434. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3435. 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)
  3436. end
  3437. swait(60)
  3438. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3439. CFuncs["Sound"].Create("rbxassetid://151304356", workspace, 5,1)
  3440. sphere(0.2,"Add",orb.CFrame,vt(10,10,10),5,MAINRUINCOLOR)
  3441. sphere(0.5,"Add",orb.CFrame,vt(1,1,1),5,MAINRUINCOLOR)
  3442. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  3443. if v:FindFirstChild('Head') then
  3444. dmg(v)
  3445. end
  3446. end
  3447. for i = 1,20 do
  3448. 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)
  3449. for i = 0, 10 do
  3450. 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)
  3451. end
  3452. end
  3453. orb:Remove()
  3454. attack = false
  3455. hum.WalkSpeed = storehumanoidWS
  3456. end
  3457. function PureBomb()
  3458. attack = true
  3459.  
  3460. local orb = Instance.new("Part", char)
  3461. orb.Anchored = true
  3462. orb.BrickColor = BrickColor.new("Toothpaste")
  3463. orb.CanCollide = false
  3464. orb.FormFactor = 3
  3465. orb.Name = "Ring"
  3466. orb.Material = "Neon"
  3467. orb.Size = Vector3.new(1, 1, 1)
  3468. orb.Transparency = 0
  3469. orb.TopSurface = 0
  3470. orb.BottomSurface = 0
  3471. local orbm = Instance.new("SpecialMesh", orb)
  3472. orbm.MeshType = "Sphere"
  3473. orbm.Name = "SizeMesh"
  3474. orbm.Scale = vt(0,0,0)
  3475. local scaled = 0.1
  3476. local posid = 0
  3477. CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
  3478. for i = 0, 5, 0.1 do
  3479. swait()
  3480. scaled = scaled - 0.001
  3481. posid = posid - scaled
  3482. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3483. orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled)
  3484. 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)
  3485. 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)
  3486. 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)
  3487. 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)
  3488. 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)
  3489. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  3490. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1)
  3491. 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)
  3492. end
  3493. for i = 0, 2, 0.1 do
  3494. swait()
  3495. orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0)
  3496. 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)
  3497. 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)
  3498. 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)
  3499. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4)
  3500. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4)
  3501. 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)
  3502. end
  3503. coroutine.resume(coroutine.create(function()
  3504. orb.Anchored = false
  3505. CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
  3506. local a = Instance.new("Part",workspace)
  3507. a.Name = "Direction"
  3508. a.Anchored = true
  3509. a.BrickColor = bc("Bright red")
  3510. a.Material = "Neon"
  3511. a.Transparency = 1
  3512. a.CanCollide = false
  3513. local ray = Ray.new(
  3514. orb.CFrame.p, -- origin
  3515. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3516. )
  3517. local ignore = orb
  3518. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3519. a.BottomSurface = 10
  3520. a.TopSurface = 10
  3521. local distance = (orb.CFrame.p - position).magnitude
  3522. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3523. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3524. orb.CFrame = a.CFrame
  3525. a:Destroy()
  3526. local bv = Instance.new("BodyVelocity")
  3527. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3528. bv.velocity = orb.CFrame.lookVector*125
  3529. bv.Parent = orb
  3530. local hitted = false
  3531. game:GetService("Debris"):AddItem(orb, 15)
  3532. wait()
  3533. local hit =orb.Touched:connect(function(hit)
  3534. if hitted == false then
  3535. hitted = true
  3536. CameraEnshaking(10,2.5)
  3537. MagniDamage(orb, 65, 65,90, 0, "Normal")
  3538. sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
  3539. sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
  3540. for i = 0, 49 do
  3541. 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)
  3542. end
  3543. for i = 0, 9 do
  3544. 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)
  3545. 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)
  3546. end
  3547. orb.Anchored = true
  3548. orb.Transparency = 1
  3549. wait(8)
  3550. orb:Destroy()
  3551. end
  3552. end)
  3553. end))
  3554. for i = 0, 1, 0.1 do
  3555. swait()
  3556. 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)
  3557. 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)
  3558. 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)
  3559. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4)
  3560. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4)
  3561. 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)
  3562. end
  3563. attack = false
  3564. end
  3565.  
  3566. function ChaosGroundStrike()
  3567. attack = true
  3568. for i = 0, 2, 0.1 do
  3569. swait()
  3570. 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)
  3571. 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)
  3572. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3573. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  3574. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  3575. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  3576. end
  3577. CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
  3578. CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
  3579. CameraEnshaking(4,12)
  3580. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
  3581. if v:FindFirstChild('Head') then
  3582. dmg(v)
  3583. end
  3584. end
  3585. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random())
  3586. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random())
  3587. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random())
  3588. for i = 0, 2, 0.1 do
  3589. swait()
  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. 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)
  3592. 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)
  3593. 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)
  3594. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3595. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  3596. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  3597. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  3598. end
  3599. attack = false
  3600. end
  3601.  
  3602. function Starfall()
  3603. attack = true
  3604. hum.WalkSpeed = 0
  3605. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3606. for i = 0, 5, 0.1 do
  3607. swait()
  3608. 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)
  3609. 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)
  3610. 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)
  3611. 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)
  3612. 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)
  3613. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3614. 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)
  3615. 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)
  3616. end
  3617. local Overed = false
  3618. CameraEnshaking(2,20)
  3619. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3620. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3621. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3622. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3623. local orb = Instance.new("Part", char)
  3624. orb.Anchored = true
  3625. orb.BrickColor = BrickColor.new("Toothpaste")
  3626. orb.CanCollide = false
  3627. orb.FormFactor = 3
  3628. orb.Name = "Remenant"
  3629. orb.Material = "Neon"
  3630. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3631. orb.Size = Vector3.new(1, 1, 1)
  3632. orb.Transparency = 1
  3633. orb.TopSurface = 0
  3634. orb.BottomSurface = 0
  3635. hum.WalkSpeed = storehumanoidWS
  3636. coroutine.resume(coroutine.create(function()
  3637. for i = 0, 9 do
  3638. swait(10)
  3639. local lb = Instance.new("Part")
  3640. lb.Color = MAINRUINCOLOR.Color
  3641. lb.CanCollide = false
  3642. lb.Material = "Neon"
  3643. lb.Anchored = true
  3644. lb.TopSurface = 0
  3645. lb.BottomSurface = 0
  3646. lb.Transparency = 0
  3647. lb.Size = vt(1,1,1)
  3648. 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)))
  3649. lb.Anchored = false
  3650. lb.Parent = char
  3651. local thingery = Instance.new("SpecialMesh",lb)
  3652. thingery.MeshType = "Sphere"
  3653. thingery.Scale = vt(20,20,20)
  3654. game:GetService("Debris"):AddItem(lb, 10)
  3655. local bv = Instance.new("BodyVelocity")
  3656. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3657. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3658. bv.Parent = lb
  3659. sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR)
  3660. sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR)
  3661. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3662. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3663. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3664. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3665. local hitted = false
  3666. coroutine.resume(coroutine.create(function()
  3667. while true do
  3668. swait(1)
  3669. if lb.Parent ~= nil and hitted == false then
  3670. 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)
  3671. elseif lb.Parent == nil then
  3672. break
  3673. end
  3674. end
  3675. end))
  3676.  
  3677. game:GetService("Debris"):AddItem(a, 0.1)
  3678.  
  3679. coroutine.resume(coroutine.create(function()
  3680. swait(1)
  3681. lb.Touched:connect(function(hit)
  3682. if hitted == false then
  3683. hitted = true
  3684. lb.Transparency = 1
  3685. lb.Anchored = true
  3686. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3687. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3688. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3689. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3690. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3691. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3692. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3693. CameraEnshaking(1,5)
  3694. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3695. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3696. for i = 0, 9 do
  3697. 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)
  3698. end
  3699. for i = 0, 49 do
  3700. swait()
  3701. MagniDamage(lb, 30, 2,4, 0, "Normal")
  3702. 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)
  3703. end
  3704. end
  3705. end)
  3706. end))
  3707. end
  3708. Overed = true
  3709. orb:Destroy()
  3710. end))
  3711.  
  3712. attack = false
  3713. end
  3714.  
  3715. function StarfallEX()
  3716. attack = true
  3717. hum.WalkSpeed = 0
  3718. CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
  3719. for i = 0, 5, 0.1 do
  3720. swait()
  3721. 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)
  3722. 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)
  3723. 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)
  3724. 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)
  3725. 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)
  3726. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
  3727. 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)
  3728. 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)
  3729. end
  3730. local Overed = false
  3731. CameraEnshaking(2,20)
  3732. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3733. sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3734. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3735. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3736. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  3737. sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR)
  3738. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
  3739. local orb = Instance.new("Part", char)
  3740. orb.Anchored = true
  3741. orb.BrickColor = BrickColor.new("Toothpaste")
  3742. orb.CanCollide = false
  3743. orb.FormFactor = 3
  3744. orb.Name = "Remenant"
  3745. orb.Material = "Neon"
  3746. orb.CFrame = root.CFrame*CFrame.new(0,150,0)
  3747. orb.Size = Vector3.new(1, 1, 1)
  3748. orb.Transparency = 1
  3749. orb.TopSurface = 0
  3750. orb.BottomSurface = 0
  3751. hum.WalkSpeed = storehumanoidWS
  3752. coroutine.resume(coroutine.create(function()
  3753. for i = 0, 9 do
  3754. swait(10)
  3755. local lb = Instance.new("Part")
  3756. lb.Color = MAINRUINCOLOR.Color
  3757. lb.CanCollide = false
  3758. lb.Material = "Neon"
  3759. lb.Anchored = true
  3760. lb.TopSurface = 0
  3761. lb.BottomSurface = 0
  3762. lb.Transparency = 0
  3763. lb.Size = vt(1,1,1)
  3764. 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)))
  3765. lb.Anchored = false
  3766. lb.Parent = char
  3767. local thingery = Instance.new("SpecialMesh",lb)
  3768. thingery.MeshType = "Sphere"
  3769. thingery.Scale = vt(20,20,20)
  3770. game:GetService("Debris"):AddItem(lb, 10)
  3771. local bv = Instance.new("BodyVelocity")
  3772. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3773. bv.velocity = lb.CFrame.lookVector*math.random(75,250)
  3774. bv.Parent = lb
  3775. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3776. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3777. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3778. sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR)
  3779. sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR)
  3780. CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
  3781. CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
  3782. CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
  3783. CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
  3784. local hitted = false
  3785. coroutine.resume(coroutine.create(function()
  3786. while true do
  3787. swait(1)
  3788. if lb.Parent ~= nil and hitted == false then
  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. 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)
  3791. elseif lb.Parent == nil then
  3792. break
  3793. end
  3794. end
  3795. end))
  3796.  
  3797. game:GetService("Debris"):AddItem(a, 0.1)
  3798.  
  3799. coroutine.resume(coroutine.create(function()
  3800. swait(1)
  3801. lb.Touched:connect(function(hit)
  3802. if hitted == false then
  3803. hitted = true
  3804. lb.Transparency = 1
  3805. lb.Anchored = true
  3806. CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
  3807. CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
  3808. CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
  3809. CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
  3810. CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
  3811. CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
  3812. MagniDamage(lb, 45, 45,85, 0, "Normal")
  3813. CameraEnshaking(10,5)
  3814. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3815. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3816. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3817. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3818. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3819. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3820. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3821. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3822. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3823. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3824. sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR)
  3825. sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR)
  3826. for i = 0, 9 do
  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. 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)
  3833. end
  3834. for i = 0, 49 do
  3835. swait()
  3836. MagniDamage(lb, 30, 30, 60, 0, "Normal")
  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. 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)
  3840. end
  3841. end
  3842. end)
  3843. end))
  3844. end
  3845. Overed = true
  3846. orb:Destroy()
  3847. end))
  3848.  
  3849. attack = false
  3850. end
  3851.  
  3852. function StarDivision()
  3853. attack = true
  3854. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
  3855. for i = 0, 2, 0.1 do
  3856. swait()
  3857. 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)
  3858. 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)
  3859. 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)
  3860. 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)
  3861. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6)
  3862. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6)
  3863. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6)
  3864. end
  3865. local orb = Instance.new("Part", char)
  3866. orb.BrickColor = MAINRUINCOLOR
  3867. orb.CanCollide = false
  3868. orb.FormFactor = 3
  3869. orb.Name = "Ring"
  3870. orb.Material = "Neon"
  3871. orb.Size = Vector3.new(1, 1, 1)
  3872. orb.Transparency = 0
  3873. orb.TopSurface = 0
  3874. orb.BottomSurface = 0
  3875. local orbm = Instance.new("SpecialMesh", orb)
  3876. orbm.MeshType = "Sphere"
  3877. orbm.Name = "SizeMesh"
  3878. orbm.Scale = vt(2,2,2)
  3879. local a = Instance.new("Part",workspace)
  3880. a.Name = "Direction"
  3881. a.Anchored = true
  3882. a.BrickColor = bc("Bright red")
  3883. a.Material = "Neon"
  3884. a.Transparency = 1
  3885. a.CanCollide = false
  3886. local ray = Ray.new(
  3887. sorb.CFrame.p, -- origin
  3888. (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
  3889. )
  3890. local ignore = sorb
  3891. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3892. a.BottomSurface = 10
  3893. a.TopSurface = 10
  3894. local distance = (sorb.CFrame.p - position).magnitude
  3895. a.Size = Vector3.new(0.1, 0.1, 0.1)
  3896. a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3897. orb.CFrame = a.CFrame
  3898. a:Destroy()
  3899. local bv = Instance.new("BodyVelocity")
  3900. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  3901. bv.velocity = orb.CFrame.lookVector*100
  3902. bv.Parent = orb
  3903. local hitted = false
  3904. game:GetService("Debris"):AddItem(orb, 10)
  3905. CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
  3906. CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
  3907. CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
  3908. CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
  3909. CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
  3910. coroutine.resume(coroutine.create(function()
  3911. while true do
  3912. swait(1)
  3913. if orb.Parent ~= nil and hitted == false then
  3914. 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)
  3915. elseif orb.Parent == nil then
  3916. break
  3917. end
  3918. end
  3919. end))
  3920. coroutine.resume(coroutine.create(function()
  3921. swait(1)
  3922. orb.Touched:connect(function(hit)
  3923. if hitted == false then
  3924. hitted = true
  3925. game:GetService("Debris"):AddItem(orb, 5)
  3926. orb.Transparency = 1
  3927. orb.Anchored = true
  3928. local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3929. elocacenter.Anchored = true
  3930. elocacenter.CFrame = orb.CFrame
  3931. elocacenter.Orientation = vt(0,0,0)
  3932. local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3933. eloca1.Anchored = true
  3934. eloca1.CFrame = elocacenter.CFrame
  3935. local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3936. eloca2.Anchored = true
  3937. eloca2.CFrame = elocacenter.CFrame
  3938. local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3939. eloca3.Anchored = true
  3940. eloca3.CFrame = elocacenter.CFrame
  3941. local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  3942. eloca4.Anchored = true
  3943. eloca4.CFrame = elocacenter.CFrame
  3944. local lookavec = 0
  3945. local speeds = 0
  3946. CameraEnshaking(1,1)
  3947. CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
  3948. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3949. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3950. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3951. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3952. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  3953. for i = 0, 99 do
  3954. swait()
  3955. lookavec = lookavec + 1
  3956. speeds = speeds + 0.1
  3957. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3958. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3959. 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)
  3960.  
  3961. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3962. 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)
  3963.  
  3964. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3965. 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)
  3966.  
  3967. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3968. 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)
  3969. end
  3970.  
  3971. for i = 0, 149 do
  3972. swait()
  3973. speeds = speeds + 0.1
  3974. elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0)
  3975. eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0)
  3976. 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)
  3977.  
  3978. eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0)
  3979. 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)
  3980.  
  3981. eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec)
  3982. 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)
  3983.  
  3984. eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec)
  3985. 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)
  3986. end
  3987. for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do
  3988. if v:FindFirstChild('Head') then
  3989. dmg(v)
  3990. end
  3991. end
  3992. CameraEnshaking(7,30)
  3993. MagniDamage(elocacenter, 225, 50,75, 0, "Normal")
  3994. CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
  3995. CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
  3996. CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
  3997. CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
  3998. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR)
  3999. sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR)
  4000. sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4001. sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4002. sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4003. sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4004. sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  4005. for i = 0, 24 do
  4006. 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)
  4007. 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)
  4008. 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)
  4009. 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)
  4010. end
  4011. coroutine.resume(coroutine.create(function()
  4012. for i = 0, 499 do
  4013. swait(1)
  4014. MagniDamage(elocacenter, 90, 1,5, 0, "Normal")
  4015. 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)
  4016. end
  4017. elocacenter:Destroy()
  4018. eloca1:Destroy()
  4019. eloca2:Destroy()
  4020. eloca3:Destroy()
  4021. eloca4:Destroy()
  4022. end))
  4023. end
  4024. end)
  4025. end))
  4026. attack = false
  4027. end
  4028.  
  4029.  
  4030. function UniversalCollapse()
  4031. attack = true
  4032. local speedearn = 0
  4033. hum.WalkSpeed = 0
  4034. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
  4035. for i = 0, 10, 0.1 do
  4036. swait()
  4037. speedearn = speedearn + 0.1
  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. 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)
  4043. 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)
  4044. 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)
  4045. 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)
  4046. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  4047. 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)
  4048. 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)
  4049. end
  4050. CameraEnshaking(5,45)
  4051. sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR)
  4052. CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
  4053. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4054. if v:FindFirstChild('Head') then
  4055. dmg(v)
  4056. end
  4057. end
  4058. hum.WalkSpeed = storehumanoidWS
  4059. attack = false
  4060. end
  4061. function ChaosBegone()
  4062. attack = true
  4063. local speedearn = 0
  4064. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75)
  4065. for i = 0, 10, 0.1 do
  4066. swait()
  4067. speedearn = speedearn + 0.1
  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. 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)
  4073. 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)
  4074. 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)
  4075. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4076. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4077. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2)
  4078. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2)
  4079. end
  4080. CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
  4081. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1)
  4082. CameraEnshaking(5,25)
  4083. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do
  4084. if v:FindFirstChild('Head') then
  4085. dmg(v)
  4086. end
  4087. end
  4088. sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random())
  4089. sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random())
  4090. sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random())
  4091. for i = 0, 3, 0.1 do
  4092. swait()
  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. 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)
  4097. 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)
  4098. 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)
  4099. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4100. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4)
  4101. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4)
  4102. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4)
  4103. end
  4104. attack = false
  4105. end
  4106.  
  4107. function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon)
  4108. local orb = Instance.new("Part", char)
  4109. orb.Anchored = true
  4110. orb.BrickColor = color
  4111. orb.CanCollide = false
  4112. orb.FormFactor = 3
  4113. orb.Name = "Ring"
  4114. orb.Material = "Neon"
  4115. orb.Size = Vector3.new(1, 1, 1)
  4116. orb.Transparency = 0
  4117. orb.TopSurface = 0
  4118. orb.BottomSurface = 0
  4119. local orbm = Instance.new("SpecialMesh", orb)
  4120. orbm.MeshType = "Sphere"
  4121. orb.CFrame = positted
  4122. orbm.Name = "SizeMesh"
  4123. orbm.Scale = vt(1,1,1)
  4124. CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
  4125. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor)
  4126. --[[for i = 0, 2 do
  4127. 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)
  4128. end]]--
  4129. coroutine.resume(coroutine.create(function()
  4130. wait(timer)
  4131. CameraEnshaking(3,ShakePower)
  4132. orb.Transparency = 1
  4133. MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal")
  4134. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor)
  4135. --[[for i = 0, 4 do
  4136. 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)
  4137. end]]--
  4138. CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
  4139. wait(3)
  4140. orb:Destroy()
  4141. end))
  4142. end
  4143.  
  4144. function orb_spawn(positted,timer)
  4145. local randomcol = math.random(1,2)
  4146. local orb = Instance.new("Part", char)
  4147. orb.Anchored = true
  4148. if randomcol == 1 then
  4149. orb.BrickColor = BrickColor.new("White")
  4150. elseif randomcol == 2 then
  4151. orb.BrickColor = BrickColor.new("Really black")
  4152. end
  4153. orb.CanCollide = false
  4154. orb.FormFactor = 3
  4155. orb.Name = "Ring"
  4156. orb.Material = "Neon"
  4157. orb.Size = Vector3.new(1, 1, 1)
  4158. orb.Transparency = 0
  4159. orb.TopSurface = 0
  4160. orb.BottomSurface = 0
  4161. local orbm = Instance.new("SpecialMesh", orb)
  4162. orbm.MeshType = "Sphere"
  4163. orb.CFrame = positted
  4164. orbm.Name = "SizeMesh"
  4165. orbm.Scale = vt(1,1,1)
  4166. CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
  4167. sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor)
  4168. for i = 0, 2 do
  4169. 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)
  4170. end
  4171. coroutine.resume(coroutine.create(function()
  4172. wait(timer)
  4173. CameraEnshaking(3,2)
  4174. orb.Transparency = 1
  4175. MagniDamage(orb, 17.5, 10,50, 0, "Normal")
  4176. sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor)
  4177. for i = 0, 4 do
  4178. 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)
  4179. end
  4180. CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
  4181. wait(3)
  4182. orb:Destroy()
  4183. end))
  4184. end
  4185.  
  4186. function scattercorrupt()
  4187. attack = true
  4188. local rot = 0
  4189. local randomrotations = math.random(1,2)
  4190. local lookv = 2.5
  4191. local power = 5
  4192. sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
  4193. sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
  4194. for i = 0, 9 do
  4195. 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)
  4196. end
  4197. CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
  4198. CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
  4199. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
  4200. CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
  4201. CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
  4202. local hite = Instance.new("Part", char)
  4203. hite.Anchored = true
  4204. hite.CanCollide = false
  4205. hite.FormFactor = 3
  4206. hite.Name = "Ring"
  4207. hite.Material = "Neon"
  4208. hite.Size = Vector3.new(1, 1, 1)
  4209. hite.Transparency = 1
  4210. hite.TopSurface = 0
  4211. hite.BottomSurface = 0
  4212. hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0)
  4213. local rem = Instance.new("Part", char)
  4214. rem.Anchored = true
  4215. rem.CanCollide = false
  4216. rem.FormFactor = 3
  4217. rem.Name = "Ring"
  4218. rem.Material = "Neon"
  4219. rem.Size = Vector3.new(1, 1, 1)
  4220. rem.Transparency = 1
  4221. rem.TopSurface = 0
  4222. rem.BottomSurface = 0
  4223. rem.CFrame = hite.CFrame
  4224. local rem2 = rem:Clone()
  4225. rem2.Parent = char
  4226. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4227. local rem3 = rem:Clone()
  4228. rem3.Parent = char
  4229. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4230. local rem4 = rem:Clone()
  4231. rem4.Parent = char
  4232. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4233. hite:Destroy()
  4234. coroutine.resume(coroutine.create(function()
  4235. for i = 0, 24 do
  4236. swait(1)
  4237. if randomrotations == 1 then
  4238. rot = rot + 1
  4239. elseif randomrotations == 2 then
  4240. rot = rot - 1
  4241. end
  4242. power = power + 0.5
  4243. lookv = lookv + 7.5
  4244. rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0)
  4245. rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0)
  4246. rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0)
  4247. rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0)
  4248. orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4249. orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4250. orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4251. orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
  4252. end
  4253. end))
  4254. attack = false
  4255. end
  4256. function yinyangi()
  4257. attack = true
  4258. for i = 0, 2, 0.1 do
  4259. swait()
  4260. 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)
  4261. 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)
  4262. 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)
  4263. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  4264. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2)
  4265. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  4266. end
  4267. local bv = Instance.new("BodyVelocity")
  4268. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  4269. bv.velocity = root.CFrame.lookVector*175
  4270. bv.Parent = root
  4271. for Rotations = 0, 9 do
  4272. for i = 0, 1, 0.5 do
  4273. swait()
  4274. bv.velocity = root.CFrame.lookVector*175
  4275. 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)
  4276. 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)
  4277. 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)
  4278. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4279. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4280. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4281. end
  4282. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4283. for i = 0, 1, 0.5 do
  4284. swait()
  4285. bv.velocity = root.CFrame.lookVector*175
  4286. 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)
  4287. 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)
  4288. 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)
  4289. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4290. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4291. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4292. end
  4293. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4294. for i = 0, 1, 0.5 do
  4295. swait()
  4296. bv.velocity = root.CFrame.lookVector*175
  4297. 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)
  4298. 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)
  4299. 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)
  4300. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4301. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4302. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4303. end
  4304. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4305. for i = 0, 1, 0.5 do
  4306. swait()
  4307. bv.velocity = root.CFrame.lookVector*175
  4308. 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)
  4309. 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)
  4310. 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)
  4311. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5)
  4312. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5)
  4313. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5)
  4314. end
  4315. orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5)
  4316. end
  4317. bv:Destroy()
  4318. attack = false
  4319. end
  4320.  
  4321. function Wip()
  4322. attack = true
  4323.  
  4324. local rngb = Instance.new("Part", char)
  4325. rngb.Anchored = true
  4326. rngb.BrickColor = origcolor
  4327. rngb.CanCollide = false
  4328. rngb.FormFactor = 3
  4329. rngb.Name = "Ring"
  4330. rngb.Material = "Neon"
  4331. rngb.Size = Vector3.new(1, 0.05, 1)
  4332. rngb.Transparency = 1
  4333. rngb.TopSurface = 0
  4334. rngb.BottomSurface = 0
  4335. local rngmb = Instance.new("SpecialMesh", rngb)
  4336. rngmb.MeshType = "Brick"
  4337. rngmb.Name = "SizeMesh"
  4338. rngmb.Scale = vt(0,1,0)
  4339.  
  4340. local orb = rngb:Clone()
  4341. orb.Parent = char
  4342. orb.Transparency = 0
  4343. orb.BrickColor = BrickColor.new("White")
  4344. orb.Size = vt(1,1,1)
  4345. local orbmish = orb.SizeMesh
  4346. orbmish.Scale = vt(0,0,0)
  4347. orbmish.MeshType = "Sphere"
  4348.  
  4349. local orbe = rngb:Clone()
  4350. orbe.Parent = char
  4351. orbe.Transparency = 0.5
  4352. orbe.BrickColor = BrickColor.new("New Yeller")
  4353. orbe.Size = vt(1,1,1)
  4354. local orbmish2 = orbe.SizeMesh
  4355. orbmish2.Scale = vt(0,0,0)
  4356. orbmish2.MeshType = "Sphere"
  4357. orbe.Color = Color3.new(r/255,g/255,b/255)
  4358.  
  4359. rngb:Destroy()
  4360. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4361. local scaled = 1
  4362. for i = 0,5,0.1 do
  4363. swait()
  4364. scaled = scaled - 0.02
  4365. if rainbowmode == true then
  4366. orbe.Color = Color3.new(r/255,g/255,b/255)
  4367. end
  4368. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4369. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4370. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4371. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4372. 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)
  4373. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4374. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4375. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4376. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4377. 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)
  4378. 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)
  4379. RootPart.CFrame = FaceMouse()[1]
  4380. end]]--
  4381. for i = 0,5,0.1 do
  4382. swait()
  4383. if rainbowmode == true then
  4384. orbe.Color = Color3.new(r/255,g/255,b/255)
  4385. end
  4386. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4387. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4388. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4389. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4390. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4391. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4392. 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)
  4393. 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)
  4394. RootPart.CFrame = FaceMouse()[1]
  4395. end
  4396. orbe.Transparency = 1
  4397. orb.Transparency = 1
  4398. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4399. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4400. local a = Instance.new("Part",Character)
  4401. a.Name = "Direction"
  4402. a.Anchored = true
  4403. a.BrickColor = bc("White")
  4404. a.Material = "Neon"
  4405. a.Transparency = 0
  4406. a.Shape = "Cylinder"
  4407. a.CanCollide = false
  4408. local a2 = Instance.new("Part",Character)
  4409. a2.Name = "Direction"
  4410. a2.Anchored = true
  4411. a2.BrickColor = bc("New Yeller")
  4412. a2.Color = Color3.new(r/255,g/255,b/255)
  4413. a2.Material = "Neon"
  4414. a2.Transparency = 0.5
  4415. a2.Shape = "Cylinder"
  4416. a2.CanCollide = false
  4417. local ba = Instance.new("Part",Character)
  4418. ba.Name = "HitDirect"
  4419. ba.Anchored = true
  4420. ba.BrickColor = bc("Cool yellow")
  4421. ba.Material = "Neon"
  4422. ba.Transparency = 1
  4423. ba.CanCollide = false
  4424. local ray = Ray.new(
  4425. orb.CFrame.p, -- origin
  4426. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4427. )
  4428. local ignore = Character
  4429. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4430. a.BottomSurface = 10
  4431. a.TopSurface = 10
  4432. a2.BottomSurface = 10
  4433. a2.TopSurface = 10
  4434. local distance = (orb.CFrame.p - position).magnitude
  4435. a.Size = Vector3.new(distance, 1, 1)
  4436. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4437. a2.Size = Vector3.new(distance, 1, 1)
  4438. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4439. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4440. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4441. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4442. game:GetService("Debris"):AddItem(a, 20)
  4443. game:GetService("Debris"):AddItem(a2, 20)
  4444. game:GetService("Debris"):AddItem(ba, 20)
  4445. local msh = Instance.new("SpecialMesh",a)
  4446. msh.MeshType = "Cylinder"
  4447. msh.Scale = vt(1,5*5,5*5)
  4448. local msh2 = Instance.new("SpecialMesh",a2)
  4449. msh2.MeshType = "Cylinder"
  4450. msh2.Scale = vt(1,6*5,6*5)
  4451.  
  4452. for i = 0,10,0.1 do
  4453. swait()
  4454. CameraEnshaking(1,5)
  4455. a2.Color = Color3.new(r/255,g/255,b/255)
  4456. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4457. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4458. ray = Ray.new(
  4459. orb.CFrame.p, -- origin
  4460. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4461. )
  4462. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4463. distance = (orb.CFrame.p - position).magnitude
  4464. if typrot == 1 then
  4465. rotation = rotation + 2.5
  4466. elseif typrot == 2 then
  4467. rotation = rotation - 2.5
  4468. end
  4469. RootPart.CFrame = FaceMouse()[1]
  4470. a.Size = Vector3.new(distance, 1, 1)
  4471. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4472. a2.Size = Vector3.new(distance, 1, 1)
  4473. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4474. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4475. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4476. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4477. msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5)
  4478. msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5)
  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. 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)
  4481. MagniDamage(ba, 30, 500,60000, 0, "Normal")
  4482. end
  4483. a:Destroy()
  4484. a2:Destroy()
  4485. ba:Destroy()
  4486. orb:Destroy()
  4487. orbe:Destroy()
  4488. attack = false
  4489. end
  4490. function HolyBarrier()
  4491. attack = true
  4492. shielding = true
  4493. for i = 0, 2, 0.1 do
  4494. swait()
  4495. 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)
  4496. 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)
  4497. 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)
  4498. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
  4499. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1)
  4500. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1)
  4501. end
  4502. CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1)
  4503. stash = Instance.new("Model",workspace)
  4504. local barrier = Instance.new("Part",stash)
  4505. barrier.Anchored = true
  4506. barrier.CanCollide = false
  4507. barrier.Size = Vector3.new(20,20,20)
  4508. barrier.CFrame = root.CFrame
  4509. barrier.Transparency = 0.6
  4510. barrier.BrickColor = MAINRUINCOLOR
  4511. barrier.Material = Enum.Material.Neon
  4512. barrier.Shape = Enum.PartType.Ball
  4513. barrier.CFrame = root.CFrame
  4514. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  4515. Torso.Anchored = true
  4516. for i=1,50 do
  4517. local p = Instance.new("Part",stash)
  4518. p.Anchored = true
  4519. p.Transparency = 1
  4520. p.Size = Vector3.new(11,11,11)
  4521. p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360))
  4522. end
  4523. repeat
  4524. swait(5)
  4525. 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)
  4526. until shielding == false
  4527. stash:Remove()
  4528. Torso.Anchored = false
  4529. shielding = false
  4530. sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR)
  4531. attack = false
  4532. end
  4533. function Judgement()
  4534. attack = true
  4535. judgement = true
  4536. hum.WalkSpeed = 0
  4537. local p = Instance.new("Part",root)
  4538. p.Anchored = true
  4539. p.CanCollide = false
  4540. p.BrickColor = MAINRUINCOLOR
  4541. p.Material = Enum.Material.Neon
  4542. p.Size = Vector3.new(1,1,1)
  4543. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4544. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4545. local m = Instance.new("SpecialMesh",p)
  4546. m.MeshType = "Cylinder"
  4547. m.Scale = Vector3.new(2000,2,2)
  4548. local targ = Instance.new("Part",root)
  4549. targ.Anchored = true
  4550. targ.Transparency = 1
  4551. targ.CanCollide = false
  4552. targ.Size = Vector3.new(1,1,1)
  4553. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4554. local s = Instance.new("Sound",targ)
  4555. s.SoundId = "https://roblox.com/asset/?id=115327352"
  4556. s.Looped = true
  4557. s.Pitch = 1.2
  4558. s.Volume = 3
  4559. spawn(function()
  4560. swait(15)
  4561. s:Play()
  4562. end)
  4563. CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
  4564. for i = 1,15 do
  4565. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4566. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  4567. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  4568. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  4569. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  4570. 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)
  4571. 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)
  4572. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR)
  4573. 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)
  4574. m.Scale = m.Scale+Vector3.new(0,1,1)
  4575. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4576. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4577. swait()
  4578. end
  4579. 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)
  4580. repeat
  4581. targ.CFrame = p.CFrame-Vector3.new(0,1000,0)
  4582. 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)
  4583. sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR)
  4584. p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0)
  4585. p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354)
  4586. MagniDamage(targ, 25, 5, 8, 0, "Normal")
  4587. swait()
  4588. until judgement == false
  4589. for i =1,15 do
  4590. m.Scale = m.Scale-Vector3.new(1,1,1)
  4591. p.Transparency = i / 15
  4592. s.Pitch = s.Pitch - 0.4
  4593. swait()
  4594. end
  4595. p:Destroy()
  4596. hum.WalkSpeed = storehumanoidWS
  4597. attack = false
  4598. end
  4599.  
  4600. function UniversalSpark()
  4601. attack = true
  4602.  
  4603. local rngb = Instance.new("Part", char)
  4604. rngb.Anchored = true
  4605. rngb.BrickColor = origcolor
  4606. rngb.CanCollide = false
  4607. rngb.FormFactor = 3
  4608. rngb.Name = "Ring"
  4609. rngb.Material = "Neon"
  4610. rngb.Size = Vector3.new(1, 0.05, 1)
  4611. rngb.Transparency = 1
  4612. rngb.TopSurface = 0
  4613. rngb.BottomSurface = 0
  4614. local rngmb = Instance.new("SpecialMesh", rngb)
  4615. rngmb.MeshType = "Brick"
  4616. rngmb.Name = "SizeMesh"
  4617. rngmb.Scale = vt(0,1,0)
  4618.  
  4619. local orb = rngb:Clone()
  4620. orb.Parent = char
  4621. orb.Transparency = 0
  4622. orb.BrickColor = BrickColor.new("White")
  4623. orb.Size = vt(1,1,1)
  4624. local orbmish = orb.SizeMesh
  4625. orbmish.Scale = vt(0,0,0)
  4626. orbmish.MeshType = "Sphere"
  4627.  
  4628. local orbe = rngb:Clone()
  4629. orbe.Parent = char
  4630. orbe.Transparency = 0.5
  4631. orbe.BrickColor = BrickColor.new("New Yeller")
  4632. orbe.Size = vt(1,1,1)
  4633. local orbmish2 = orbe.SizeMesh
  4634. orbmish2.Scale = vt(0,0,0)
  4635. orbmish2.MeshType = "Sphere"
  4636. orbe.Color = Color3.new(r/255,g/255,b/255)
  4637.  
  4638. rngb:Destroy()
  4639. --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
  4640. local scaled = 1
  4641. for i = 0,5,0.1 do
  4642. swait()
  4643. scaled = scaled - 0.02
  4644. if rainbowmode == true then
  4645. orbe.Color = Color3.new(r/255,g/255,b/255)
  4646. end
  4647. orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
  4648. orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
  4649. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4650. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4651. 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)
  4652. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4653. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4654. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4655. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4656. 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)
  4657. 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)
  4658. RootPart.CFrame = FaceMouse()[1]
  4659. end]]--
  4660. for i = 0,5,0.1 do
  4661. swait()
  4662. if rainbowmode == true then
  4663. orbe.Color = Color3.new(r/255,g/255,b/255)
  4664. end
  4665. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4666. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5
  4667. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3)
  4668. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3)
  4669. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  4670. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  4671. 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)
  4672. 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)
  4673. RootPart.CFrame = FaceMouse()[1]
  4674. end
  4675. orbe.Transparency = 1
  4676. orb.Transparency = 1
  4677. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5
  4678. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  4679. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  4680. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4681.  
  4682. CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
  4683. CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1)
  4684. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  4685. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1)
  4686. CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1)
  4687. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  4688. CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1)
  4689. local xd= Instance.new("Sound",char)
  4690. xd.SoundId = "rbxassetid://445796828"
  4691. xd.Pitch = 0.75
  4692. xd.Looped = true
  4693. xd.Volume = 1.25
  4694. xd:Play()
  4695. local a = Instance.new("Part",Character)
  4696. a.Name = "Direction"
  4697. a.Anchored = true
  4698. a.BrickColor = bc("Alder")
  4699. a.Color = MAINRUINCOLOR.Color
  4700. a.Material = "Neon"
  4701. a.Transparency = 0.5
  4702. a.Shape = "Cylinder"
  4703. a.CanCollide = false
  4704. local a2 = Instance.new("Part",Character)
  4705. a2.Name = "Direction"
  4706. a2.Anchored = true
  4707. a2.BrickColor = bc("New Yeller")
  4708. a2.Color = MAINRUINCOLOR.Color
  4709. a2.Material = "Neon"
  4710. a2.Transparency = 0.5
  4711. a2.Shape = "Cylinder"
  4712. a2.CanCollide = false
  4713. local ba = Instance.new("Part",Character)
  4714. ba.Name = "HitDirect"
  4715. ba.Anchored = true
  4716. ba.BrickColor = bc("Cool yellow")
  4717. ba.Material = "Neon"
  4718. ba.Transparency = 1
  4719. ba.CanCollide = false
  4720. local ray = Ray.new(
  4721. orb.CFrame.p, -- origin
  4722. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4723. )
  4724. local ignore = Character
  4725. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4726. a.BottomSurface = 10
  4727. a.TopSurface = 10
  4728. a2.BottomSurface = 10
  4729. a2.TopSurface = 10
  4730. local distance = (orb.CFrame.p - position).magnitude
  4731. a.Size = Vector3.new(distance, 1, 1)
  4732. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4733. a2.Size = Vector3.new(distance, 1, 1)
  4734. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4735. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4736. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4737. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
  4738. game:GetService("Debris"):AddItem(a, 60)
  4739. game:GetService("Debris"):AddItem(a2, 60)
  4740. game:GetService("Debris"):AddItem(ba, 60)
  4741. local outerscale = 0
  4742. local msh = Instance.new("SpecialMesh",a)
  4743. msh.MeshType = "Cylinder"
  4744. msh.Scale = vt(1,0,0)
  4745. local msh2 = Instance.new("SpecialMesh",a2)
  4746. msh2.MeshType = "Cylinder"
  4747. msh2.Scale = vt(1,0,0)
  4748. for i = 0,2,0.1 do
  4749. swait()
  4750. CameraEnshaking(1,1)
  4751. msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20)
  4752. msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15)
  4753. outerscale = outerscale - 0.015
  4754. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4755. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4756. ray = Ray.new(
  4757. orb.CFrame.p, -- origin
  4758. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4759. )
  4760. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4761. distance = (orb.CFrame.p - position).magnitude
  4762. if typrot == 1 then
  4763. rotation = rotation + 2.5
  4764. elseif typrot == 2 then
  4765. rotation = rotation - 2.5
  4766. end
  4767. RootPart.CFrame = FaceMouse()[1]
  4768. a.Size = Vector3.new(distance, 1, 1)
  4769. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4770. a2.Size = Vector3.new(distance, 1, 1)
  4771. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4772. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4773. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4774. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),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. 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)
  4777. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4778. end
  4779. for z = 0, 2 do
  4780. for i = 0,4,0.1 do
  4781. swait()
  4782. CameraEnshaking(1,1)
  4783. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4784. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4785. outerscale = outerscale + 0.015
  4786. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4787. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4788. ray = Ray.new(
  4789. orb.CFrame.p, -- origin
  4790. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4791. )
  4792. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4793. distance = (orb.CFrame.p - position).magnitude
  4794. if typrot == 1 then
  4795. rotation = rotation + 2.5
  4796. elseif typrot == 2 then
  4797. rotation = rotation - 2.5
  4798. end
  4799. RootPart.CFrame = FaceMouse()[1]
  4800. a.Size = Vector3.new(distance, 1, 1)
  4801. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4802. a2.Size = Vector3.new(distance, 1, 1)
  4803. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4804. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4805. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4806. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),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. 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)
  4809. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4810. end
  4811. for i = 0,4,0.1 do
  4812. swait()
  4813. CameraEnshaking(1,1)
  4814. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4815. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4816. outerscale = outerscale - 0.015
  4817. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4818. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4819. ray = Ray.new(
  4820. orb.CFrame.p, -- origin
  4821. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4822. )
  4823. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4824. distance = (orb.CFrame.p - position).magnitude
  4825. if typrot == 1 then
  4826. rotation = rotation + 2.5
  4827. elseif typrot == 2 then
  4828. rotation = rotation - 2.5
  4829. end
  4830. RootPart.CFrame = FaceMouse()[1]
  4831. a.Size = Vector3.new(distance, 1, 1)
  4832. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4833. a2.Size = Vector3.new(distance, 1, 1)
  4834. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4835. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4836. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4837. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),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. 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)
  4840. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4841. end
  4842. end
  4843. for i = 0,4,0.1 do
  4844. swait()
  4845. CameraEnshaking(1,1)
  4846. msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale)
  4847. msh.Scale = msh.Scale - vt(0,outerscale,outerscale)
  4848. xd.Volume = xd.Volume - 0.025
  4849. a.Transparency = a.Transparency + 0.025
  4850. a2.Transparency = a2.Transparency + 0.025
  4851. outerscale = outerscale - 0.015
  4852. orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4853. orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4
  4854. ray = Ray.new(
  4855. orb.CFrame.p, -- origin
  4856. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  4857. )
  4858. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  4859. distance = (orb.CFrame.p - position).magnitude
  4860. if typrot == 1 then
  4861. rotation = rotation + 2.5
  4862. elseif typrot == 2 then
  4863. rotation = rotation - 2.5
  4864. end
  4865. RootPart.CFrame = FaceMouse()[1]
  4866. a.Size = Vector3.new(distance, 1, 1)
  4867. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4868. a2.Size = Vector3.new(distance, 1, 1)
  4869. a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  4870. ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  4871. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  4872. a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),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. 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)
  4875. MagniDamage(ba, 100, 500,60000, 0, "Normal")
  4876. end
  4877. xd:Destroy()
  4878. a:Destroy()
  4879. a2:Destroy()
  4880. ba:Destroy()
  4881. orb:Destroy()
  4882. orbe:Destroy()
  4883. attack = false
  4884. end
  4885.  
  4886.  
  4887. function resetmode()
  4888. rainbowmode = false
  4889. chaosmode = false
  4890. tl1.Enabled = false
  4891. tl2.Enabled = false
  4892. tl3.Enabled = false
  4893. ModeOfGlitch = 1
  4894. storehumanoidWS = 16
  4895. coroutine.resume(coroutine.create(function()
  4896. attack = true
  4897. hum.WalkSpeed = 0
  4898. CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25)
  4899. for i = 0,4,0.1 do
  4900. swait()
  4901. 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)
  4902. 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)
  4903. 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)
  4904. 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)
  4905. 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)
  4906. RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.5)
  4907. LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.5)
  4908. end
  4909. CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1)
  4910. CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1)
  4911. CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1)
  4912. CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75)
  4913. RecolorTextAndRename("Mayhem",Color3.new(0,0,0),Color3.new(1,0,0))
  4914. CameraEnshaking(5,2.5)
  4915. MAINRUINCOLOR = BrickColor.new("Really red")
  4916. sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  4917. for i = 0, 49 do
  4918. 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)
  4919. end
  4920. for i = 0,3,0.1 do
  4921. 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)
  4922. end
  4923. for i, v in pairs(mw2:GetChildren()) do
  4924. if v:IsA("Part") then
  4925. v.BrickColor = BrickColor.new("Really red")
  4926. v.Material = "Neon"
  4927. end
  4928. end
  4929. for i, v in pairs(mw1:GetChildren()) do
  4930. if v:IsA("Part") then
  4931. v.Transparency = 1
  4932. v.BrickColor = BrickColor.new("Really red")
  4933. v.Material = "Neon"
  4934. end
  4935. end
  4936. for i, v in pairs(m:GetChildren()) do
  4937. if v:IsA("Part") then
  4938. v.BrickColor = BrickColor.new("Really black")
  4939. v.Material = "Glass"
  4940. end
  4941. end
  4942. for i, v in pairs(m2:GetChildren()) do
  4943. if v:IsA("Part") then
  4944. v.BrickColor = BrickColor.new("Crimson")
  4945. v.Material = "Granite"
  4946. end
  4947. end
  4948. for i, v in pairs(m3:GetChildren()) do
  4949. if v:IsA("Part") then
  4950. v.BrickColor = BrickColor.new("Really red")
  4951. v.Material = "Neon"
  4952. end
  4953. end
  4954. for i, v in pairs(extrawingmod1:GetChildren()) do
  4955. if v:IsA("Part") then
  4956. v.Transparency = 1
  4957. v.BrickColor = BrickColor.new("White")
  4958. v.Material = "Neon"
  4959. end
  4960. end
  4961. for i, v in pairs(extrawingmod2:GetChildren()) do
  4962. if v:IsA("Part") then
  4963. v.Transparency = 1
  4964. v.BrickColor = BrickColor.new("White")
  4965. v.Material = "Neon"
  4966. end
  4967. end
  4968. for i = 0,2,0.1 do
  4969. swait()
  4970. 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)
  4971. 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)
  4972. 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)
  4973. 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)
  4974. 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)
  4975. 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)
  4976. end
  4977. hum.WalkSpeed = storehumanoidWS
  4978. attack = false
  4979. end))
  4980. newTheme("rbxassetid://614032233",48.6,1,0.3)
  4981. end
  4982.  
  4983. function attackone()
  4984. attack = true
  4985. for i = 0,1,0.1 do
  4986. swait()
  4987. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2)
  4988. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2)
  4989. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  4990. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2)
  4991. 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)
  4992. 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)
  4993. end
  4994. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1)
  4995.  
  4996. local hitb = Instance.new("Part", char)
  4997. hitb.Anchored = true
  4998. hitb.CanCollide = false
  4999. hitb.FormFactor = 3
  5000. hitb.Name = "Ring"
  5001. hitb.Material = "Neon"
  5002. hitb.Size = Vector3.new(1, 1, 1)
  5003. hitb.Transparency = 1
  5004. hitb.TopSurface = 0
  5005. hitb.BottomSurface = 0
  5006. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  5007. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  5008. hitb:Destroy()
  5009. for i = 0,1,0.1 do
  5010. swait()
  5011. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4)
  5012. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4)
  5013. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4)
  5014. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4)
  5015. 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)
  5016. 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)
  5017. end
  5018.  
  5019. attack = false
  5020. end
  5021.  
  5022. function attacktwo()
  5023. attack = true
  5024. for i = 0,1,0.1 do
  5025. swait()
  5026. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2)
  5027. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2)
  5028. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  5029. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2)
  5030. 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)
  5031. 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)
  5032. end
  5033. CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1)
  5034. local hitb = Instance.new("Part", char)
  5035. hitb.Anchored = true
  5036. hitb.CanCollide = false
  5037. hitb.FormFactor = 3
  5038. hitb.Name = "Ring"
  5039. hitb.Material = "Neon"
  5040. hitb.Size = Vector3.new(1, 1, 1)
  5041. hitb.Transparency = 1
  5042. hitb.TopSurface = 0
  5043. hitb.BottomSurface = 0
  5044. hitb.CFrame = root.CFrame + root.CFrame.lookVector*2
  5045. MagniDamage(hitb, 3, 10,30, 0, "Normal")
  5046. hitb:Destroy()
  5047. for i = 0,1,0.1 do
  5048. swait()
  5049. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4)
  5050. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4)
  5051. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4)
  5052. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4)
  5053. 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)
  5054. 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)
  5055. end
  5056. attack = false
  5057. end
  5058.  
  5059. function attackthree()
  5060. attack = true
  5061. for i = 0,1,0.1 do
  5062. swait()
  5063. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3)
  5064. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3)
  5065. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3)
  5066. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  5067. 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)
  5068. 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)
  5069. end
  5070. local distlook = 5
  5071. for i = 0, 4 do
  5072. swait(2)
  5073. CameraEnshaking(2,3)
  5074. local hite = Instance.new("Part", char)
  5075. hite.Anchored = true
  5076. hite.CanCollide = false
  5077. hite.FormFactor = 3
  5078. hite.Name = "Ring"
  5079. hite.Material = "Neon"
  5080. hite.Size = Vector3.new(1, 1, 1)
  5081. hite.Transparency = 1
  5082. hite.TopSurface = 0
  5083. hite.BottomSurface = 0
  5084. hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook
  5085. sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR)
  5086. sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR)
  5087. MagniDamage(hite, 10, 15,35, 0, "Normal")
  5088. for i = 0, 2 do
  5089. 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)
  5090. 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)
  5091. 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)
  5092. end
  5093. CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1)
  5094. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6)
  5095. game:GetService("Debris"):AddItem(hite, 5)
  5096. distlook = distlook + 10
  5097. end
  5098. attack = false
  5099. end
  5100.  
  5101. local ActiveGia = false
  5102. function THEHELLITSTHATBIG()
  5103. ActiveGia = true
  5104. attack = true
  5105. hum.WalkSpeed = 0
  5106. for i = 0,2,0.1 do
  5107. swait()
  5108. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5109. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5110. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5111. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5112. 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)
  5113. 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)
  5114. end
  5115. for i = 0,1,0.1 do
  5116. torsweld.C1=clerp(torsweld.C1,cf(0,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5117. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  5118. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  5119. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5120. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  5121. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  5122. end
  5123. CFuncs["Sound"].Create("rbxassetid://528589382", sectors, 5, 1)
  5124. secrleg.Transparency = 0.5
  5125. seclleg.Transparency = 0.5
  5126. secrarm.Transparency = 0.5
  5127. seclarm.Transparency = 0.5
  5128. seched.Transparency = 0.5
  5129. sectors.Transparency = 0.5
  5130. for i = 0,25,0.1 do
  5131. swait()
  5132. 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)
  5133. 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)
  5134. 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)
  5135. 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)
  5136. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5137. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5138. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5139. end
  5140. --[[secrleg.Transparency = 1
  5141. seclleg.Transparency = 1
  5142. secrarm.Transparency = 1
  5143. seclarm.Transparency = 1
  5144. seched.Transparency = 1
  5145. sectors.Transparency = 1]]--
  5146. torsweld.Part0 = root
  5147. hum.WalkSpeed = storehumanoidWS
  5148. attack = false
  5149. end
  5150.  
  5151. function removelol()
  5152. ActiveGia = false
  5153. attack = true
  5154. hum.WalkSpeed = 0
  5155. for i = 0,2,0.1 do
  5156. swait()
  5157. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2)
  5158. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2)
  5159. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2)
  5160. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2)
  5161. 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)
  5162. 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)
  5163. end
  5164. CFuncs["Sound"].Create("rbxassetid://528589274", sectors, 5, 1)
  5165. for i = 0,25,0.1 do
  5166. swait()
  5167. secrleg.Transparency = secrleg.Transparency + 0.00225
  5168. seclleg.Transparency = secrleg.Transparency
  5169. secrarm.Transparency = secrleg.Transparency
  5170. seclarm.Transparency = secrleg.Transparency
  5171. seched.Transparency = secrleg.Transparency
  5172. sectors.Transparency = secrleg.Transparency
  5173. 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)
  5174. 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)
  5175. 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)
  5176. 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)
  5177. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5178. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  5179. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025)
  5180. end
  5181. CFuncs["Sound"].Create("rbxassetid://468991944", sectors, 10, 1)
  5182. sphere(1,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5183. sphere(2,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5184. sphere(3,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR)
  5185. secrleg.Transparency = 1
  5186. seclleg.Transparency = 1
  5187. secrarm.Transparency = 1
  5188. seclarm.Transparency = 1
  5189. seched.Transparency = 1
  5190. sectors.Transparency = 1
  5191. torsweld.Part0 = root
  5192. hum.WalkSpeed = storehumanoidWS
  5193. attack = false
  5194. end
  5195.  
  5196. function FinalCalamity()
  5197. end
  5198.  
  5199. local attacktype = 1
  5200. mouse.Button1Down:connect(function()
  5201. if attack == false and attacktype == 1 then
  5202. attacktype = 2
  5203. attackone()
  5204. elseif attack == false and attacktype == 2 then
  5205. attacktype = 3
  5206. attacktwo()
  5207. elseif attack == false and attacktype == 3 then
  5208. attacktype = 1
  5209. attackthree()
  5210. elseif attack == false and attacktype == 4 then
  5211. attacktype = 1
  5212. --attackfour()
  5213. end
  5214. end)
  5215. mouse.KeyDown:connect(function(k)
  5216. if k == "q" and attack == false and ModeOfGlitch ~= 2 then
  5217. ModeOfGlitch = 2
  5218. storehumanoidWS = 16
  5219. hum.WalkSpeed = 16
  5220. rainbowmode = false
  5221. chaosmode = false
  5222. tl1.Enabled = false
  5223. tl2.Enabled = false
  5224. tl3.Enabled = false
  5225. RecolorTextAndRename("Purity",Color3.new(1,1,1),Color3.new(0,1,1))
  5226. newTheme("rbxassetid://1539245059",0,1,0.3)
  5227. MAINRUINCOLOR = BrickColor.new("Toothpaste")
  5228. for i, v in pairs(mw2:GetChildren()) do
  5229. if v:IsA("Part") then
  5230. v.BrickColor = MAINRUINCOLOR
  5231. v.Material = "Neon"
  5232. end
  5233. end
  5234. for i, v in pairs(mw1:GetChildren()) do
  5235. if v:IsA("Part") then
  5236. v.Transparency = 1
  5237. v.BrickColor = MAINRUINCOLOR
  5238. v.Material = "Neon"
  5239. end
  5240. end
  5241. for i, v in pairs(m:GetChildren()) do
  5242. if v:IsA("Part") then
  5243. v.BrickColor = BrickColor.new("White")
  5244. v.Material = "Ice"
  5245. end
  5246. end
  5247. for i, v in pairs(m2:GetChildren()) do
  5248. if v:IsA("Part") then
  5249. v.BrickColor = BrickColor.new("Pastel light blue")
  5250. v.Material = "Glass"
  5251. end
  5252. end
  5253. for i, v in pairs(m3:GetChildren()) do
  5254. if v:IsA("Part") then
  5255. v.BrickColor = BrickColor.new("Toothpaste")
  5256. v.Material = "Neon"
  5257. end
  5258. end
  5259. for i, v in pairs(extrawingmod1:GetChildren()) do
  5260. if v:IsA("Part") then
  5261. v.Transparency = 1
  5262. v.BrickColor = BrickColor.new("White")
  5263. v.Material = "Neon"
  5264. end
  5265. end
  5266. for i, v in pairs(extrawingmod2:GetChildren()) do
  5267. if v:IsA("Part") then
  5268. v.Transparency = 1
  5269. v.BrickColor = BrickColor.new("White")
  5270. v.Material = "Neon"
  5271. end
  5272. end
  5273. elseif k == "q" and attack == false and ModeOfGlitch == 2 then
  5274. resetmode()
  5275. end
  5276. if k == "e" and attack == false and ModeOfGlitch ~= 3 then
  5277. ModeOfGlitch = 3
  5278. storehumanoidWS = 16
  5279. hum.WalkSpeed = 16
  5280. rainbowmode = false
  5281. chaosmode = false
  5282. tl1.Enabled = false
  5283. tl2.Enabled = false
  5284. tl3.Enabled = false
  5285. RecolorTextAndRename("Corruption",Color3.new(0,0,0),Color3.new(0.35,0,1))
  5286. newTheme("rbxassetid://1283869370",58.15,0.98,1.25)
  5287. MAINRUINCOLOR = BrickColor.new("Royal purple")
  5288. for i, v in pairs(mw2:GetChildren()) do
  5289. if v:IsA("Part") then
  5290. v.BrickColor = MAINRUINCOLOR
  5291. v.Material = "Neon"
  5292. end
  5293. end
  5294. for i, v in pairs(mw1:GetChildren()) do
  5295. if v:IsA("Part") then
  5296. v.Transparency = 1
  5297. v.BrickColor = MAINRUINCOLOR
  5298. v.Material = "Neon"
  5299. end
  5300. end
  5301. for i, v in pairs(m:GetChildren()) do
  5302. if v:IsA("Part") then
  5303. v.BrickColor = BrickColor.new("Black")
  5304. v.Material = "Ice"
  5305. end
  5306. end
  5307. for i, v in pairs(m2:GetChildren()) do
  5308. if v:IsA("Part") then
  5309. v.BrickColor = BrickColor.new("Dark indigo")
  5310. v.Material = "Glass"
  5311. end
  5312. end
  5313. for i, v in pairs(m3:GetChildren()) do
  5314. if v:IsA("Part") then
  5315. v.BrickColor = BrickColor.new("Royal purple")
  5316. v.Material = "Neon"
  5317. end
  5318. end
  5319. for i, v in pairs(extrawingmod1:GetChildren()) do
  5320. if v:IsA("Part") then
  5321. v.Transparency = 1
  5322. v.BrickColor = BrickColor.new("White")
  5323. v.Material = "Neon"
  5324. end
  5325. end
  5326. for i, v in pairs(extrawingmod2:GetChildren()) do
  5327. if v:IsA("Part") then
  5328. v.Transparency = 1
  5329. v.BrickColor = BrickColor.new("White")
  5330. v.Material = "Neon"
  5331. end
  5332. end
  5333. elseif k == "e" and attack == false and ModeOfGlitch == 3 then
  5334. resetmode()
  5335. end
  5336. if k == "r" and attack == false and ModeOfGlitch ~= 4 then
  5337. ModeOfGlitch = 4
  5338. storehumanoidWS = 16
  5339. hum.WalkSpeed = 16
  5340. rainbowmode = false
  5341. chaosmode = true
  5342. tl1.Enabled = true
  5343. tl2.Enabled = true
  5344. tl3.Enabled = true
  5345. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
  5346. newTheme("rbxassetid://1369263130",0,1,1)
  5347. MAINRUINCOLOR = BrickColor.new("Black")
  5348. for i, v in pairs(mw2:GetChildren()) do
  5349. if v:IsA("Part") then
  5350. v.BrickColor = MAINRUINCOLOR
  5351. v.Material = "Neon"
  5352. end
  5353. end
  5354. for i, v in pairs(mw1:GetChildren()) do
  5355. if v:IsA("Part") then
  5356. v.Transparency = 0.75
  5357. v.BrickColor = BrickColor.random()
  5358. v.Material = "Neon"
  5359. end
  5360. end
  5361. for i, v in pairs(m:GetChildren()) do
  5362. if v:IsA("Part") then
  5363. v.BrickColor = BrickColor.new("Black")
  5364. v.Material = "Neon"
  5365. end
  5366. end
  5367. for i, v in pairs(m2:GetChildren()) do
  5368. if v:IsA("Part") then
  5369. v.BrickColor = BrickColor.random()
  5370. v.Material = "Neon"
  5371. end
  5372. end
  5373. for i, v in pairs(m3:GetChildren()) do
  5374. if v:IsA("Part") then
  5375. v.BrickColor = BrickColor.new("Black")
  5376. v.Material = "Neon"
  5377. end
  5378. end
  5379. for i, v in pairs(extrawingmod1:GetChildren()) do
  5380. if v:IsA("Part") then
  5381. v.Transparency = 1
  5382. v.BrickColor = BrickColor.new("White")
  5383. v.Material = "Neon"
  5384. end
  5385. end
  5386. for i, v in pairs(extrawingmod2:GetChildren()) do
  5387. if v:IsA("Part") then
  5388. v.Transparency = 1
  5389. v.BrickColor = BrickColor.new("White")
  5390. v.Material = "Neon"
  5391. end
  5392. end
  5393. elseif k == "r" and attack == false and ModeOfGlitch == 4 then
  5394. resetmode()
  5395. end
  5396. if k == "t" and attack == false and ModeOfGlitch ~= 5 then
  5397. ModeOfGlitch = 5
  5398. storehumanoidWS = 16
  5399. hum.WalkSpeed = 16
  5400. rainbowmode = false
  5401. chaosmode = false
  5402. tl1.Enabled = true
  5403. tl2.Enabled = true
  5404. tl3.Enabled = true
  5405. RecolorTextAndRename("Divinity",Color3.new(1,1,1),Color3.new(1,1,0.5))
  5406. newTheme("rbxassetid://661079869",0,1.02,1)
  5407. MAINRUINCOLOR = BrickColor.new("Bright yellow")
  5408. for i, v in pairs(mw2:GetChildren()) do
  5409. if v:IsA("Part") then
  5410. v.BrickColor = MAINRUINCOLOR
  5411. v.Material = "Neon"
  5412. end
  5413. end
  5414. for i, v in pairs(mw1:GetChildren()) do
  5415. if v:IsA("Part") then
  5416. v.Transparency = 0
  5417. v.BrickColor = MAINRUINCOLOR
  5418. v.Material = "Neon"
  5419. end
  5420. end
  5421. for i, v in pairs(m:GetChildren()) do
  5422. if v:IsA("Part") then
  5423. v.BrickColor = BrickColor.new("Cool yellow")
  5424. v.Material = "Ice"
  5425. end
  5426. end
  5427. for i, v in pairs(m2:GetChildren()) do
  5428. if v:IsA("Part") then
  5429. v.BrickColor = BrickColor.new("Bright yellow")
  5430. v.Material = "Ice"
  5431. end
  5432. end
  5433. for i, v in pairs(m3:GetChildren()) do
  5434. if v:IsA("Part") then
  5435. v.BrickColor = BrickColor.new("Bright yellow")
  5436. v.Material = "Neon"
  5437. end
  5438. end
  5439. for i, v in pairs(extrawingmod1:GetChildren()) do
  5440. if v:IsA("Part") then
  5441. v.Transparency = 1
  5442. v.BrickColor = BrickColor.new("White")
  5443. v.Material = "Neon"
  5444. end
  5445. end
  5446. for i, v in pairs(extrawingmod2:GetChildren()) do
  5447. if v:IsA("Part") then
  5448. v.Transparency = 1
  5449. v.BrickColor = BrickColor.new("White")
  5450. v.Material = "Neon"
  5451. end
  5452. end
  5453. elseif k == "t" and attack == false and ModeOfGlitch == 5 then
  5454. resetmode()
  5455. end
  5456. if k == "y" and attack == false and ModeOfGlitch ~= 6 then
  5457. ModeOfGlitch = 6
  5458. storehumanoidWS = 75
  5459. hum.WalkSpeed = 75
  5460. rainbowmode = false
  5461. chaosmode = false
  5462. tl1.Enabled = true
  5463. tl2.Enabled = true
  5464. tl3.Enabled = true
  5465. RecolorTextAndRename("Equinox",Color3.new(0,0,0),Color3.new(1,1,1))
  5466. newTheme("rbxassetid://395351949",0,1,1)
  5467. MAINRUINCOLOR = BrickColor.new("White")
  5468. for i, v in pairs(mw2:GetChildren()) do
  5469. if v:IsA("Part") then
  5470. v.BrickColor = MAINRUINCOLOR
  5471. v.Material = "Neon"
  5472. end
  5473. end
  5474. for i, v in pairs(mw1:GetChildren()) do
  5475. if v:IsA("Part") then
  5476. v.Transparency = 0
  5477. v.BrickColor = MAINRUINCOLOR
  5478. v.Material = "Neon"
  5479. end
  5480. end
  5481. for i, v in pairs(m:GetChildren()) do
  5482. if v:IsA("Part") then
  5483. v.BrickColor = BrickColor.new("White")
  5484. v.Material = "Ice"
  5485. end
  5486. end
  5487. for i, v in pairs(m2:GetChildren()) do
  5488. if v:IsA("Part") then
  5489. v.BrickColor = BrickColor.new("Really black")
  5490. v.Material = "Ice"
  5491. end
  5492. end
  5493. for i, v in pairs(m3:GetChildren()) do
  5494. if v:IsA("Part") then
  5495. v.BrickColor = BrickColor.new("White")
  5496. v.Material = "Neon"
  5497. end
  5498. end
  5499. for i, v in pairs(extrawingmod1:GetChildren()) do
  5500. if v:IsA("Part") then
  5501. v.Transparency = 1
  5502. v.BrickColor = BrickColor.new("White")
  5503. v.Material = "Neon"
  5504. end
  5505. end
  5506. for i, v in pairs(extrawingmod2:GetChildren()) do
  5507. if v:IsA("Part") then
  5508. v.Transparency = 1
  5509. v.BrickColor = BrickColor.new("White")
  5510. v.Material = "Neon"
  5511. end
  5512. end
  5513. elseif k == "y" and attack == false and ModeOfGlitch == 6 then
  5514. resetmode()
  5515. end
  5516. if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then
  5517. ModeOfGlitch = 6127843
  5518. storehumanoidWS = 50
  5519. hum.WalkSpeed = 50
  5520. rainbowmode = true
  5521. chaosmode = false
  5522. tl1.Enabled = true
  5523. tl2.Enabled = true
  5524. tl3.Enabled = true
  5525. RecolorTextAndRename("RAINBOW",Color3.new(1,1,1),Color3.new(1,1,1))
  5526. newTheme("rbxassetid://147930134",0,1,1)
  5527. MAINRUINCOLOR = BrickColor.new("White")
  5528. for i, v in pairs(mw2:GetChildren()) do
  5529. if v:IsA("Part") then
  5530. v.BrickColor = MAINRUINCOLOR
  5531. v.Material = "Neon"
  5532. end
  5533. end
  5534. for i, v in pairs(mw1:GetChildren()) do
  5535. if v:IsA("Part") then
  5536. v.Transparency = 0
  5537. v.BrickColor = MAINRUINCOLOR
  5538. v.Material = "Neon"
  5539. end
  5540. end
  5541. for i, v in pairs(m:GetChildren()) do
  5542. if v:IsA("Part") then
  5543. v.BrickColor = BrickColor.new("White")
  5544. v.Material = "Neon"
  5545. end
  5546. end
  5547. for i, v in pairs(m2:GetChildren()) do
  5548. if v:IsA("Part") then
  5549. v.BrickColor = BrickColor.new("White")
  5550. v.Material = "Neon"
  5551. end
  5552. end
  5553. for i, v in pairs(m3:GetChildren()) do
  5554. if v:IsA("Part") then
  5555. v.BrickColor = BrickColor.new("White")
  5556. v.Material = "Neon"
  5557. end
  5558. end
  5559. for i, v in pairs(extrawingmod1:GetChildren()) do
  5560. if v:IsA("Part") then
  5561. v.Transparency = 1
  5562. v.BrickColor = BrickColor.new("White")
  5563. v.Material = "Neon"
  5564. end
  5565. end
  5566. for i, v in pairs(extrawingmod2:GetChildren()) do
  5567. if v:IsA("Part") then
  5568. v.Transparency = 1
  5569. v.BrickColor = BrickColor.new("White")
  5570. v.Material = "Neon"
  5571. end
  5572. end
  5573. elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then
  5574. resetmode()
  5575. end
  5576. if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then
  5577. ModeOfGlitch = 1000000
  5578. storehumanoidWS = 100
  5579. hum.WalkSpeed = 100
  5580. rainbowmode = false
  5581. chaosmode = false
  5582. tl1.Enabled = true
  5583. tl2.Enabled = true
  5584. tl3.Enabled = true
  5585. RecolorTextAndRename("CALAMITY",Color3.new(0.25,0,1),Color3.new(0.5,0,1))
  5586. newTheme("rbxassetid://1359036559",0,1,1)
  5587. MAINRUINCOLOR = BrickColor.new("Bright violet")
  5588. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5589. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5590. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5591. for i, v in pairs(mw2:GetChildren()) do
  5592. if v:IsA("Part") then
  5593. v.BrickColor = MAINRUINCOLOR
  5594. v.Material = "Neon"
  5595. end
  5596. end
  5597. for i, v in pairs(mw1:GetChildren()) do
  5598. if v:IsA("Part") then
  5599. v.Transparency = 0
  5600. v.BrickColor = MAINRUINCOLOR
  5601. v.Material = "Neon"
  5602. end
  5603. end
  5604. for i, v in pairs(m:GetChildren()) do
  5605. if v:IsA("Part") then
  5606. v.Color = Color3.new(0.5,0,1)
  5607. v.Material = "Neon"
  5608. end
  5609. end
  5610. for i, v in pairs(m2:GetChildren()) do
  5611. if v:IsA("Part") then
  5612. v.Color = Color3.new(0.25,0,1)
  5613. v.Material = "Neon"
  5614. end
  5615. end
  5616. for i, v in pairs(m3:GetChildren()) do
  5617. if v:IsA("Part") then
  5618. v.Color = Color3.new(0.45,0,1)
  5619. v.Material = "Neon"
  5620. end
  5621. end
  5622. for i, v in pairs(extrawingmod1:GetChildren()) do
  5623. if v:IsA("Part") then
  5624. v.Transparency = 0.75
  5625. v.Color = Color3.new(0.25,0,1)
  5626. v.Material = "Neon"
  5627. end
  5628. end
  5629. for i, v in pairs(extrawingmod2:GetChildren()) do
  5630. if v:IsA("Part") then
  5631. v.Transparency = 0.75
  5632. v.Color = Color3.new(0.5,0,1)
  5633. v.Material = "Neon"
  5634. end
  5635. end
  5636. elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then
  5637. resetmode()
  5638. end
  5639. if k == "m" and attack == false and ModeOfGlitch == 1000000 and ModeOfGlitch ~= 12345678987654321 then
  5640. newThemeCust("rbxassetid://1504604335",0,1,1)
  5641. attack = true
  5642. hum.WalkSpeed = 0
  5643. MAINRUINCOLOR = BrickColor.new("Royal purple")
  5644. for i = 0, 24, 0.1 do
  5645. swait()
  5646. 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)
  5647. 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)
  5648. 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)
  5649. 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)
  5650. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5651. 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)
  5652. 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)
  5653. end
  5654. CameraEnshaking(1,1)
  5655. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5656. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5657. wait(0.55)
  5658. CameraEnshaking(1,2)
  5659. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5660. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5661. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5662. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5663. wait(0.55)
  5664. CameraEnshaking(1,3)
  5665. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5666. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5667. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5668. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5669. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5670. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5671. wait(0.55)
  5672. CameraEnshaking(10,5)
  5673. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5674. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5675. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5676. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5677. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5678. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5679. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5680. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5681. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5682. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5683. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5684. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5685. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5686. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5687. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5688. for i = 0, 49 do
  5689. 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)
  5690. 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)
  5691. 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)
  5692. 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)
  5693. end
  5694. ModeOfGlitch = 12345678987654321
  5695. storehumanoidWS = 200
  5696. hum.WalkSpeed = 200
  5697. rainbowmode = false
  5698. chaosmode = false
  5699. tl1.Enabled = true
  5700. tl2.Enabled = true
  5701. tl3.Enabled = true
  5702. RecolorTextAndRename("CATASTROPHE",Color3.new(0.5,0,1),Color3.new(0.75,0,1))
  5703. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5704. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5705. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5706. for i, v in pairs(mw2:GetChildren()) do
  5707. if v:IsA("Part") then
  5708. v.BrickColor = MAINRUINCOLOR
  5709. v.Material = "Neon"
  5710. end
  5711. end
  5712. for i, v in pairs(mw1:GetChildren()) do
  5713. if v:IsA("Part") then
  5714. v.Transparency = 0
  5715. v.BrickColor = MAINRUINCOLOR
  5716. v.Material = "Neon"
  5717. end
  5718. end
  5719. for i, v in pairs(m:GetChildren()) do
  5720. if v:IsA("Part") then
  5721. v.Color = Color3.new(0.5,0,1)
  5722. v.Material = "Neon"
  5723. end
  5724. end
  5725. for i, v in pairs(m2:GetChildren()) do
  5726. if v:IsA("Part") then
  5727. v.Color = Color3.new(0.5,0,1)
  5728. v.Material = "Neon"
  5729. end
  5730. end
  5731. for i, v in pairs(m3:GetChildren()) do
  5732. if v:IsA("Part") then
  5733. v.Color = Color3.new(0.5,0,1)
  5734. v.Material = "Neon"
  5735. end
  5736. end
  5737. for i, v in pairs(extrawingmod1:GetChildren()) do
  5738. if v:IsA("Part") then
  5739. v.Transparency = 0
  5740. v.Color = Color3.new(0.5,0,1)
  5741. v.Material = "Neon"
  5742. end
  5743. end
  5744. for i, v in pairs(extrawingmod2:GetChildren()) do
  5745. if v:IsA("Part") then
  5746. v.Transparency = 0
  5747. v.Color = Color3.new(0.5,0,1)
  5748. v.Material = "Neon"
  5749. end
  5750. attack = false
  5751. end
  5752. elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654321 then
  5753. resetmode()
  5754. end
  5755. if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 666 then
  5756. newThemeCust("rbxassetid://723652641",0,1,1)
  5757. attack = true
  5758. hum.WalkSpeed = 0
  5759. MAINRUINCOLOR = BrickColor.new("Crimson")
  5760. for i = 0, 24, 0.1 do
  5761. swait()
  5762. 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)
  5763. 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)
  5764. 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)
  5765. 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)
  5766. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  5767. 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)
  5768. 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)
  5769. end
  5770. CameraEnshaking(1,1)
  5771. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5772. CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
  5773. wait(0.55)
  5774. CameraEnshaking(1,2)
  5775. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5776. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5777. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5778. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  5779. wait(0.55)
  5780. CameraEnshaking(1,3)
  5781. sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR)
  5782. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5783. sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR)
  5784. sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR)
  5785. sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR)
  5786. CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
  5787. wait(0.55)
  5788. CameraEnshaking(10,5)
  5789. CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
  5790. CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
  5791. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
  5792. CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
  5793. CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
  5794. sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR)
  5795. sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR)
  5796. sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR)
  5797. sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR)
  5798. sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR)
  5799. sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR)
  5800. sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR)
  5801. sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR)
  5802. sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR)
  5803. sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR)
  5804. for i = 0, 49 do
  5805. 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)
  5806. 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)
  5807. 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)
  5808. 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)
  5809. end
  5810. ModeOfGlitch = 666
  5811. storehumanoidWS = 16
  5812. hum.WalkSpeed = 16
  5813. rainbowmode = false
  5814. chaosmode = false
  5815. tl1.Enabled = true
  5816. tl2.Enabled = true
  5817. tl3.Enabled = true
  5818. RecolorTextAndRename("DeStRuCtIoN",Color3.new(1,0,0),Color3.new(0.75,0,0))
  5819. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5820. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5821. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  5822. for i, v in pairs(mw2:GetChildren()) do
  5823. if v:IsA("Part") then
  5824. v.BrickColor = MAINRUINCOLOR
  5825. v.Material = "Neon"
  5826. end
  5827. end
  5828. for i, v in pairs(mw1:GetChildren()) do
  5829. if v:IsA("Part") then
  5830. v.Transparency = 0
  5831. v.BrickColor = MAINRUINCOLOR
  5832. v.Material = "Neon"
  5833. end
  5834. end
  5835. for i, v in pairs(m:GetChildren()) do
  5836. if v:IsA("Part") then
  5837. v.Color = Color3.new(1,0,0)
  5838. v.Material = "Neon"
  5839. end
  5840. end
  5841. for i, v in pairs(m2:GetChildren()) do
  5842. if v:IsA("Part") then
  5843. v.Color = Color3.new(1,0,0)
  5844. v.Material = "Neon"
  5845. end
  5846. end
  5847. for i, v in pairs(m3:GetChildren()) do
  5848. if v:IsA("Part") then
  5849. v.Color = Color3.new(1,0,0)
  5850. v.Material = "Neon"
  5851. end
  5852. end
  5853. for i, v in pairs(extrawingmod1:GetChildren()) do
  5854. if v:IsA("Part") then
  5855. v.Transparency = 0
  5856. v.Color = Color3.new(1,0,0)
  5857. v.Material = "Neon"
  5858. end
  5859. end
  5860. for i, v in pairs(extrawingmod2:GetChildren()) do
  5861. if v:IsA("Part") then
  5862. v.Transparency = 0
  5863. v.Color = Color3.new(1,0,0)
  5864. v.Material = "Neon"
  5865. end
  5866. attack = false
  5867. end
  5868. elseif k == "b" and attack == false and ModeOfGlitch == 666 then
  5869. resetmode()
  5870. end
  5871. if k == "l" and toggleTag == false then
  5872. toggleTag = true
  5873. text.TextTransparency = 0
  5874. text.TextStrokeTransparency = 0
  5875. elseif k == "l" and toggleTag == true then
  5876. toggleTag = false
  5877. text.TextTransparency = 1
  5878. text.TextStrokeTransparency = 1
  5879. end
  5880. if k == "z" and attack == false and ModeOfGlitch == 1 then
  5881. ExtinctiveHeartbreak()
  5882. elseif k == "z" and attack == false and ModeOfGlitch == 2 then
  5883. PureBomb()
  5884. elseif k == "z" and attack == false and ModeOfGlitch == 3 then
  5885. scattercorrupt()
  5886. elseif k == "z" and attack == false and ModeOfGlitch == 4 then
  5887. ChaosGroundStrike()
  5888. elseif k == "z" and attack == false and ModeOfGlitch == 5 then
  5889. Judgement()
  5890. elseif k == "f" and attack == false and ModeOfGlitch == 5 then
  5891. HolyBarrier()
  5892. elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then
  5893. Starfall()
  5894. elseif k == "z" and attack == false and ModeOfGlitch == 6 then
  5895. yinyangi()
  5896. elseif k == "x" and attack == false and ModeOfGlitch == 6 then
  5897. MeteorStrike()
  5898. elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then
  5899. Wip()
  5900. elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654321 then
  5901. StarfallEX()
  5902. elseif k == "c" and attack == false and ModeOfGlitch == 12345678987654321 then
  5903. FinalCalam()
  5904. end
  5905. if k == "n" and attack == false then
  5906. Blink()
  5907. elseif k == "x" and attack == false and ModeOfGlitch == 1000000 then
  5908. StarDivision()
  5909. end
  5910. if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then
  5911. UniversalCollapse()
  5912. end
  5913. if k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed < 200 then
  5914. hum.WalkSpeed = 16 + 184
  5915. elseif k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed == 200 then
  5916. hum.WalkSpeed = 200 - 184
  5917. end
  5918. if k == "x" and attack == false and ModeOfGlitch == 12345678987654321 then
  5919. UniversalSpark()
  5920. end
  5921. if k == "z" and attack == false and ModeOfGlitch == 666 then
  5922. StarDivision()
  5923. end
  5924. if k == "x" and attack == false and ModeOfGlitch == 666 then
  5925. Starfall()
  5926. end
  5927. if k == "m" and attack == false and ModeOfGlitch == 4 then
  5928. ChaosBegone()
  5929. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == false then
  5930. THEHELLITSTHATBIG()
  5931. elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == true then
  5932. removelol()
  5933. end
  5934. end)
  5935. mouse.KeyUp:connect(function(k)
  5936. if k == "f" and ModeOfGlitch == 5 then
  5937. shielding = false
  5938. end
  5939. if k == "z" and ModeOfGlitch == 5 then
  5940. judgement = false
  5941. end
  5942. end)
  5943. coroutine.resume(coroutine.create(function()
  5944. while true do
  5945. swait(2)
  5946. if rainbowmode == true or ModeOfGlitch == 6 then
  5947. if eff == true then
  5948. 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)
  5949. end
  5950. end
  5951. end
  5952. end))
  5953. coroutine.resume(coroutine.create(function()
  5954. while true do
  5955. swait(2)
  5956. if shielding == true then
  5957. end
  5958. end
  5959. end))
  5960.  
  5961.  
  5962. coroutine.resume(coroutine.create(function()
  5963. while true do
  5964. if ModeOfGlitch == 1000000 then
  5965. swait(0.5)
  5966. end
  5967. swait()
  5968. if ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  5969. 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)
  5970. end
  5971. if ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  5972. 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)
  5973. end
  5974. end
  5975. end))
  5976.  
  5977.  
  5978. coroutine.resume(coroutine.create(function()
  5979. while true do
  5980. swait(2)
  5981. if chaosmode == true then
  5982. tl1.Color = ColorSequence.new(BrickColor.random().Color)
  5983. tl2.Color = ColorSequence.new(BrickColor.random().Color)
  5984. tl3.Color = ColorSequence.new(BrickColor.random().Color)
  5985. RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
  5986. for i, v in pairs(mw1:GetChildren()) do
  5987. if v:IsA("Part") then
  5988. v.Transparency = 0.75
  5989. v.BrickColor = BrickColor.random()
  5990. v.Material = "Neon"
  5991. end
  5992. end
  5993. for i, v in pairs(m2:GetChildren()) do
  5994. if v:IsA("Part") then
  5995. v.BrickColor = BrickColor.random()
  5996. v.Material = "Neon"
  5997. end
  5998. end
  5999. for i, v in pairs(secondchar:GetChildren()) do
  6000. if v:IsA("Part") then
  6001. v.BrickColor = BrickColor.random()
  6002. v.Material = "Neon"
  6003. end
  6004. end
  6005. end
  6006. end
  6007. end))
  6008. Humanoid.Name = "STARGLITCHER"
  6009. Humanoid.MaxHealth = math.huge
  6010. Humanoid.Health = math.huge
  6011. Instance.new("ForceField",char).Visible = false
  6012. Humanoid.Animator.Parent = nil
  6013. idleanim=.4
  6014. while true do
  6015. if rainbowmode == false then
  6016. tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6017. tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6018. tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6019. for i, v in pairs(secondchar:GetChildren()) do
  6020. if v:IsA("Part") then
  6021. v.BrickColor = MAINRUINCOLOR
  6022. v.Material = "Neon"
  6023. end
  6024. end
  6025. if chaosmode == false then
  6026. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6027. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6028. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  6029. for i, v in pairs(secondchar:GetChildren()) do
  6030. if v:IsA("Part") then
  6031. v.BrickColor = MAINRUINCOLOR
  6032. v.Material = "Neon"
  6033. end
  6034. end
  6035. end
  6036. end
  6037. if rainbowmode == true then
  6038. RecolorTextAndRename("RAINBOW",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500))
  6039. MAINRUINCOLOR = BrickColor.new("White")
  6040. tr1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6041. tr2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6042. tr3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6043. tl1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6044. tl2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6045. tl3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255))
  6046. for i, v in pairs(m:GetChildren()) do
  6047. if v:IsA("Part") then
  6048. v.Color = Color3.new(r/255,g/255,b/255)
  6049. end
  6050. end
  6051. for i, v in pairs(m2:GetChildren()) do
  6052. if v:IsA("Part") then
  6053. v.Color = Color3.new(r/255,g/255,b/255)
  6054. end
  6055. end
  6056. for i, v in pairs(secondchar:GetChildren()) do
  6057. if v:IsA("Part") then
  6058. v.Color = Color3.new(r/255,g/255,b/255)
  6059. v.Material = "Neon"
  6060. end
  6061. end
  6062. for i, v in pairs(m3:GetChildren()) do
  6063. if v:IsA("Part") then
  6064. v.Color = Color3.new(r/255,g/255,b/255)
  6065. end
  6066. end
  6067. for i, v in pairs(mw1:GetChildren()) do
  6068. if v:IsA("Part") then
  6069. v.Color = Color3.new(r/255,g/255,b/255)
  6070. v.Material = "Neon"
  6071. end
  6072. end
  6073. for i, v in pairs(mw2:GetChildren()) do
  6074. if v:IsA("Part") then
  6075. v.Color = Color3.new(r/255,g/255,b/255)
  6076. v.Material = "Neon"
  6077. end
  6078. end
  6079. end
  6080. CameraManager()
  6081. swait()
  6082. 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)
  6083. 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)
  6084. 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)
  6085. 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)
  6086. 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)
  6087. 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)
  6088.  
  6089. if attack == false and ActiveGia == false then
  6090. torsweld.C1=clerp(torsweld.C1,cf(2,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6091. larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1)
  6092. rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1)
  6093. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6094. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1)
  6095. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1)
  6096. elseif attack == false and ActiveGia == true then
  6097. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  6098. 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)
  6099. 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)
  6100. 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)
  6101. llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6102. rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025)
  6103. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025)
  6104. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6105. 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)
  6106. 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)
  6107. 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)
  6108. 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)
  6109. 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)
  6110. hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(5),math.rad(0),math.rad(0)),0.025)
  6111. end
  6112. end
  6113.  
  6114. 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)
  6115. 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)
  6116. 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)
  6117. 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)
  6118. 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)
  6119. 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)
  6120. sine = sine + change
  6121. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  6122. local velderp=RootPart.Velocity.y
  6123. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  6124. if equipped==true or equipped==false then
  6125. if attack==false then
  6126. idle=idle+1
  6127. else
  6128. idle=0
  6129. end
  6130. if idle>=500 then
  6131. if attack==false then
  6132. --Sheath()
  6133. end
  6134. end
  6135. if RootPart.Velocity.y > 1 and hitfloor==nil then
  6136. Anim="Jump"
  6137. if attack==false then
  6138. 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)
  6139. 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)
  6140. 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)
  6141. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  6142. 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)
  6143. 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)
  6144. end
  6145. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  6146. Anim="Fall"
  6147. if attack==false then
  6148. 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)
  6149. 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)
  6150. 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)
  6151. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  6152. 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)
  6153. 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)
  6154. end
  6155. elseif torvel<1 and hitfloor~=nil then
  6156. Anim="Idle"
  6157. if attack==false then
  6158. if ModeOfGlitch == 1 then
  6159. 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)
  6160. 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)
  6161. 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)
  6162. 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)
  6163. 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)
  6164. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6165.  
  6166. elseif ModeOfGlitch == 666 then
  6167. 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)
  6168. 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)
  6169. 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)
  6170. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1)
  6171. 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)
  6172. 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)
  6173.  
  6174. elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then
  6175. 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)
  6176. 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)
  6177. 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)
  6178. 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)
  6179. 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)
  6180. 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)
  6181.  
  6182. elseif ModeOfGlitch == 3 then
  6183. 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)
  6184. 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)
  6185. 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)
  6186. 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)
  6187. 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)
  6188. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1)
  6189.  
  6190. elseif ModeOfGlitch == 4 then
  6191. 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)
  6192. 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)
  6193. 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)
  6194. 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)
  6195. 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)
  6196. 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)
  6197.  
  6198. elseif ModeOfGlitch == 5 then
  6199. 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)
  6200. 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)
  6201. 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)
  6202. 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)
  6203. 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)
  6204. 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)
  6205.  
  6206. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then
  6207. 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)
  6208. 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)
  6209. 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)
  6210. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1)
  6211. 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)
  6212. 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)
  6213.  
  6214. elseif ModeOfGlitch == 12345678987654321 then
  6215. 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)
  6216. 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)
  6217. 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)
  6218. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1)
  6219. 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)
  6220. 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)
  6221. end
  6222. end
  6223. elseif torvel>2 and torvel<50 and hitfloor~=nil then
  6224. Anim="Walk"
  6225. if attack==false then
  6226. if ModeOfGlitch == 1 then
  6227. 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)
  6228. 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)
  6229. 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)
  6230. 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)
  6231. 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)
  6232. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1)
  6233.  
  6234. elseif ModeOfGlitch == 4 or ModeOfGlitch == 666 then
  6235. 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)
  6236. 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)
  6237. 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)
  6238. 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)
  6239. 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)
  6240. 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)
  6241.  
  6242. elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 or ModeOfGlitch ~= 666 then
  6243. 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)
  6244. 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)
  6245. 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)
  6246. 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)
  6247. 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)
  6248. 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)
  6249. end
  6250. end
  6251. elseif torvel>=22 and hitfloor~=nil then
  6252. Anim="Run"
  6253. if attack==false then
  6254. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then
  6255. 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)
  6256. 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)
  6257. 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)
  6258. 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)
  6259. 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)
  6260. 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)
  6261. elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then
  6262. 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)
  6263. 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)
  6264. 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)
  6265. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  6266. 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)
  6267. 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)
  6268. end
  6269. end
  6270. end
  6271. end
  6272. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement