Advertisement
SansTheHackerYT

FE Star Glitcher

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