Advertisement
Goo345

Untitled

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