Advertisement
Goo345

Untitled

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