Advertisement
Goo345

Untitled

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