Advertisement
memberhero

Glitcher

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