oskdfoskofksdofk

Untitled

Mar 30th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 224.63 KB | None | 0 0
  1. wait(2)
  2. local Player = game:GetService("Players").Emper0rAwes0me
  3. local Mouse,mouse,UserInputService,ContextActionService
  4. do
  5. script.Parent = Player.Character
  6. local CAS = {Actions={}}
  7. local Event = Instance.new("RemoteEvent")
  8. Event.Name = "UserInput_Event"
  9. Event.Parent = Player.Character
  10. local fakeEvent = function()
  11. local t = {_fakeEvent=true}
  12. t.Connect = function(self,f)self.Function=f end
  13. t.connect = t.Connect
  14. return t
  15. end
  16. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  17. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  18. function CAS:BindAction(name,fun,touch,...)
  19. CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
  20. end
  21. function CAS:UnbindAction(name)
  22. CAS.Actions[name] = nil
  23. end
  24. local function te(self,ev,...)
  25. local t = m[ev]
  26. if t and t._fakeEvent and t.Function then
  27. t.Function(...)
  28. end
  29. end
  30. m.TrigEvent = te
  31. UIS.TrigEvent = te
  32. Event.OnServerEvent:Connect(function(plr,io)
  33. if plr~=Player then return end
  34. if io.isMouse then
  35. m.Target = io.Target
  36. m.Hit = io.Hit
  37. elseif io.UserInputType == Enum.UserInputType.MouseButton1 then
  38. if io.UserInputState == Enum.UserInputState.Begin then
  39. m:TrigEvent("Button1Down")
  40. else
  41. m:TrigEvent("Button1Up")
  42. end
  43. else
  44. for n,t in pairs(CAS.Actions) do
  45. for _,k in pairs(t.Keys) do
  46. if k==io.KeyCode then
  47. t.Function(t.Name,io.UserInputState,io)
  48. end
  49. end
  50. end
  51. if io.UserInputState == Enum.UserInputState.Begin then
  52. m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
  53. UIS:TrigEvent("InputBegan",io,false)
  54. else
  55. m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
  56. UIS:TrigEvent("InputEnded",io,false)
  57. end
  58. end
  59. end)
  60. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  61. end
  62. print("Complete! Running...")
  63.  
  64.  
  65. --//Paste script below this line.
  66.  
  67. warn([[Galaxy Glitcher Loaded.
  68. The third glitcher, once as the core is now new.
  69.  
  70. Created by Tc
  71. ]])
  72.  
  73. ---------Wielder list as of OCs:---------
  74. -- ??? (Nothing such as this yet, but wields all the Glitchers. What you're asking it's the creator.)
  75. -- Void Emily (OC of mine, can lead to any modes and mainly leading to LOVE and HARMONY, she's obviously shy sometimes.)
  76. -- Lunaria Floodio (Second OC, can lead to any modes.)
  77. -- Gacharix (Third OC, can lead to any modes and mainly leading to AZURE X, very corrupted person.)
  78. -----------------------------------------
  79.  
  80. print([[Icons:
  81. ! = New
  82. ? = Spoilers
  83. * = Exclusivity
  84. C = Changes
  85.  
  86. ]])
  87. warn([[V 3.2 Update Log:
  88. C - Huge revamp of wings.
  89. C - Walk and running are now tiltable on where you go on a side.
  90. C - Huge slight changes on all of the mode's idles.
  91. C - Even more effect changes.
  92. !C* - Love mode has been added.
  93. !C* - Love mode's transformation added..
  94. !* - Love mode's taunt added... (why.. ;~;)
  95. C - Death effect has been improved.
  96. C - Binary's Z is imporvably changed
  97. ? - Nothing seems to be new yet..
  98. ? - Some modes will have moves sooner.
  99.  
  100. Commands for visualiser mode: play/, vol/, pitch/, skipto/, telltime/]])
  101. ---- IMPORTANT READING:
  102. ---- Sources and functions might be taken from others
  103. plr = game.Players.Emper0rAwes0me
  104.  
  105. script.Parent = workspace.CurrentCamera
  106. plr.CharacterAdded:connect(function()
  107. script.Disabled = true
  108. script:destroy()
  109. end)
  110.  
  111. char = plr.Character
  112. hum = char.Humanoid
  113. local cam = game.Workspace.CurrentCamera
  114. Camera = cam
  115. local CamInterrupt = false
  116. local TwoD = false
  117. local TargetInfo = {nil, nil}
  118. cam.CameraType = "Custom"
  119. t = char.Torso
  120. h = char.Head
  121. ra = char["Right Arm"]
  122. la = char["Left Arm"]
  123. rl = char["Right Leg"]
  124. ll = char["Left Leg"]
  125. tors = char.Torso
  126. lleg = char["Left Leg"]
  127. root = char.HumanoidRootPart
  128. hed = char.Head
  129. rleg = char["Right Leg"]
  130. rarm = char["Right Arm"]
  131. larm = char["Left Arm"]
  132. radian = math.rad
  133. random = math.random
  134. Vec3 = Vector3.new
  135. Inst = Instance.new
  136. cFrame = CFrame.new
  137. Euler = CFrame.fromEulerAnglesXYZ
  138. vt = Vector3.new
  139. bc = BrickColor.new
  140. br = BrickColor.random
  141. it = Instance.new
  142. cf = CFrame.new
  143.  
  144.  
  145. local Booleans = {
  146. CamFollow = true,
  147. GyroUse = true
  148. }
  149.  
  150. function lerp(object, newCFrame, alpha)
  151. return object:lerp(newCFrame, alpha)
  152. end
  153.  
  154. local Directer = Inst("BodyGyro", root)
  155. Directer.MaxTorque = Vec3(0, 0, 0)
  156. Directer.P = 600000
  157. local CPart = Inst("Part")
  158. CPart.Anchored = true
  159. CPart.CanCollide = false
  160. CPart.Locked = true
  161. CPart.Transparency = 1
  162.  
  163. local rainbowmode = false
  164. local chaosmode = false
  165. local duringend = false
  166. local ModeOfGlitch = 1
  167.  
  168. local kan = Instance.new("Sound",char)
  169. kan.Volume = 1.25
  170. kan.TimePosition = 0
  171. kan.PlaybackSpeed = 1
  172. kan.Pitch = 1.01
  173. kan.SoundId = "rbxassetid://435773595"
  174. kan.Name = "wreckeda"
  175. kan.Looped = true
  176. kan:Play()
  177.  
  178. local currentThemePlaying = kan.SoundId
  179. local currentPitch = kan.Pitch
  180. local currentVol = kan.Volume
  181. function newTheme(ID,timepos,pitch,vol)
  182. local kanz = kan
  183. --kanz:Stop()
  184. kanz.Volume = vol
  185. --kanz.TimePosition = timepos
  186. kanz.PlaybackSpeed = pitch
  187. kanz.Pitch = pitch
  188. kanz.SoundId = ID
  189. kanz.Name = "wrecked"
  190. kanz.Looped = true
  191. currentThemePlaying = kanz.SoundId
  192. currentVol = kanz.Volume
  193. currentPitch = kanz.Pitch
  194. --kanz:Play()
  195. --coroutine.resume(coroutine.create(function()
  196. --wait(0.05)
  197. --end))
  198. end
  199.  
  200.  
  201. function newThemeCust(ID,timepos,pitch,vol)
  202. local kanz = kan
  203. kanz:Stop()
  204. kanz.Volume = vol
  205. kanz.TimePosition = timepos
  206. kanz.PlaybackSpeed = pitch
  207. kanz.Pitch = pitch
  208. kanz.SoundId = ID
  209. kanz.Name = "wrecked"
  210. kanz.Looped = true
  211. currentThemePlaying = kanz.SoundId
  212. currentVol = kanz.Volume
  213. currentPitch = kanz.Pitch
  214. kanz:Play()
  215. coroutine.resume(coroutine.create(function()
  216. wait(0.05)
  217. end))
  218. end
  219.  
  220. local mutedtog = false
  221.  
  222. function CameraEnshaking(Length,Intensity)
  223. coroutine.resume(coroutine.create(function()
  224. local intensity = 1*Intensity
  225. local rotM = 0.01*Intensity
  226. for i = 0, Length, 0.1 do
  227. swait()
  228. intensity = intensity - 0.05*Intensity/Length
  229. rotM = rotM - 0.0005*Intensity/Length
  230. hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
  231. 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)
  232. end
  233. Humanoid.CameraOffset = Vec3(0, 0, 0)
  234. end))
  235. end
  236. CamShake=function(Part,Distan,Power,Times)
  237. local de=Part.Position
  238. for i,v in pairs(workspace:children()) do
  239. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  240. for _,c in pairs(v:children()) do
  241. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  242. local Noob=v.Humanoid
  243. if Noob~=nil then
  244. coroutine.resume(coroutine.create(function()
  245. FV = Instance.new("BoolValue", Noob)
  246. FV.Name = "CameraShake"
  247. for ShakeNum=1,Times do
  248. swait()
  249. local ef=Power
  250. if ef>=1 then
  251. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  252. else
  253. ef=Power*10
  254. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  255. end
  256. end
  257. Humanoid.CameraOffset = Vector3.new(0,0,0)
  258. FV:Destroy()
  259. end))
  260. CameraShake(Times, Power, Noob)
  261. end
  262. end
  263. end
  264. end
  265. end
  266. end
  267.  
  268. local toggleTag = true
  269. local bilguit = Instance.new("BillboardGui", hed)
  270. bilguit.Adornee = nil
  271. bilguit.Name = "ModeName"
  272. bilguit.Size = UDim2.new(4, 0, 1.2, 0)
  273. bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  274. local modet = Instance.new("TextLabel", bilguit)
  275. modet.Size = UDim2.new(10/2, 0, 7/2, 0)
  276. modet.FontSize = "Size8"
  277. modet.TextScaled = true
  278. modet.TextTransparency = 0
  279. modet.BackgroundTransparency = 1
  280. modet.TextTransparency = 0
  281. modet.TextStrokeTransparency = 0
  282. modet.Font = "Code"
  283. modet.TextStrokeColor3 = Color3.new(0,0,0)
  284. modet.TextColor3 = Color3.new(1,1,1)
  285. modet.Text = "Enlightened"
  286.  
  287.  
  288. function chatfunc(text,color,typet,font,timeex)
  289. local chat = coroutine.wrap(function()
  290. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  291. Character:FindFirstChild("TalkingBillBoard"):destroy()
  292. end
  293. local naeeym2 = Instance.new("BillboardGui",Character)
  294. naeeym2.Size = UDim2.new(0,100,0,40)
  295. naeeym2.StudsOffset = Vector3.new(0,3,0)
  296. naeeym2.Adornee = Character.Head
  297. naeeym2.Name = "TalkingBillBoard"
  298. local tecks2 = Instance.new("TextLabel",naeeym2)
  299. tecks2.BackgroundTransparency = 1
  300. tecks2.BorderSizePixel = 0
  301. tecks2.Text = ""
  302. tecks2.Font = font
  303. tecks2.TextSize = 30
  304. tecks2.TextStrokeTransparency = 0
  305. tecks2.TextColor3 = color
  306. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  307. tecks2.Size = UDim2.new(1,0,0.5,0)
  308. local tecks3 = Instance.new("TextLabel",naeeym2)
  309. tecks3.BackgroundTransparency = 1
  310. tecks3.BorderSizePixel = 0
  311. tecks3.Text = ""
  312. tecks3.Font = font
  313. tecks3.TextSize = 30
  314. tecks3.TextStrokeTransparency = 0
  315. if typet == "Inverted" then
  316. tecks3.TextColor3 = Color3.new(0,0,0)
  317. tecks3.TextStrokeColor3 = color
  318. elseif typet == "Normal" then
  319. tecks3.TextColor3 = color
  320. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  321. end
  322. tecks3.Size = UDim2.new(1,0,0.5,0)
  323. coroutine.resume(coroutine.create(function()
  324. while true do
  325. swait(1)
  326. if chaosmode == true then
  327. tecks2.TextColor3 = BrickColor.random().Color
  328. tecks3.TextStrokeColor3 = BrickColor.random().Color
  329. end
  330. end
  331. end))
  332. modet.TextTransparency = modet.TextTransparency + 1
  333. modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1
  334. for i = 0, 74*timeex do
  335. swait()
  336. modet.TextTransparency = 1
  337. modet.TextStrokeTransparency = 1
  338. tecks2.Text = text
  339. tecks3.Text = text
  340. end
  341. local randomrot = math.random(1,2)
  342. if randomrot == 1 then
  343. for i = 1, 50 do
  344. swait()
  345. tecks2.Text = text
  346. tecks3.Text = text
  347. modet.TextTransparency = modet.TextTransparency - .02
  348. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  349. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  350. tecks2.TextTransparency = tecks2.TextTransparency + .04
  351. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  352. tecks3.TextTransparency = tecks2.TextTransparency + .04
  353. end
  354. elseif randomrot == 2 then
  355. for i = 1, 50 do
  356. swait()
  357. tecks2.Text = text
  358. tecks3.Text = text
  359. modet.TextTransparency = modet.TextTransparency - .02
  360. modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02
  361. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  362. tecks2.TextTransparency = tecks2.TextTransparency + .04
  363. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  364. tecks3.TextTransparency = tecks2.TextTransparency + .04
  365. end
  366. end
  367. modet.TextTransparency = 0
  368. modet.TextStrokeTransparency = 0
  369. if toggleTag == false then
  370. modet.TextTransparency = 1
  371. modet.TextStrokeTransparency = 1
  372. end
  373. naeeym2:Destroy()
  374. end)
  375. chat()
  376. end
  377.  
  378.  
  379. local Create = LoadLibrary("RbxUtility").Create
  380.  
  381. CFuncs = {
  382. ["Part"] = {
  383. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  384. local Part = Create("Part"){
  385. Parent = Parent,
  386. Reflectance = Reflectance,
  387. Transparency = Transparency,
  388. CanCollide = false,
  389. Locked = true,
  390. BrickColor = BrickColor.new(tostring(BColor)),
  391. Name = Name,
  392. Size = Size,
  393. Material = Material,
  394. }
  395. RemoveOutlines(Part)
  396. return Part
  397. end;
  398. };
  399.  
  400. ["Mesh"] = {
  401. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  402. local Msh = Create(Mesh){
  403. Parent = Part,
  404. Offset = OffSet,
  405. Scale = Scale,
  406. }
  407. if Mesh == "SpecialMesh" then
  408. Msh.MeshType = MeshType
  409. Msh.MeshId = MeshId
  410. end
  411. return Msh
  412. end;
  413. };
  414.  
  415. ["Mesh"] = {
  416. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  417. local Msh = Create(Mesh){
  418. Parent = Part,
  419. Offset = OffSet,
  420. Scale = Scale,
  421. }
  422. if Mesh == "SpecialMesh" then
  423. Msh.MeshType = MeshType
  424. Msh.MeshId = MeshId
  425. end
  426. return Msh
  427. end;
  428. };
  429.  
  430. ["Weld"] = {
  431. Create = function(Parent, Part0, Part1, C0, C1)
  432. local Weld = Create("Weld"){
  433. Parent = Parent,
  434. Part0 = Part0,
  435. Part1 = Part1,
  436. C0 = C0,
  437. C1 = C1,
  438. }
  439. return Weld
  440. end;
  441. };
  442.  
  443. ["Sound"] = {
  444. Create = function(id, par, vol, pit)
  445. coroutine.resume(coroutine.create(function()
  446. local S = Create("Sound"){
  447. Volume = vol,
  448. Name = "EffectSoundo",
  449. Pitch = pit or 1,
  450. SoundId = id,
  451. Parent = par or workspace,
  452. }
  453. wait()
  454. S:play()
  455. game:GetService("Debris"):AddItem(S, 10)
  456. end))
  457. end;
  458. };
  459.  
  460. ["LongSound"] = {
  461. Create = function(id, par, vol, pit)
  462. coroutine.resume(coroutine.create(function()
  463. local S = Create("Sound"){
  464. Volume = vol,
  465. Pitch = pit or 1,
  466. SoundId = id,
  467. Parent = par or workspace,
  468. }
  469. wait()
  470. S:play()
  471. game:GetService("Debris"):AddItem(S, 60)
  472. end))
  473. end;
  474. };
  475.  
  476. ["ParticleEmitter"] = {
  477. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  478. local fp = Create("ParticleEmitter"){
  479. Parent = Parent,
  480. Color = ColorSequence.new(Color1, Color2),
  481. LightEmission = LightEmission,
  482. Size = Size,
  483. Texture = Texture,
  484. Transparency = Transparency,
  485. ZOffset = ZOffset,
  486. Acceleration = Accel,
  487. Drag = Drag,
  488. LockedToPart = LockedToPart,
  489. VelocityInheritance = VelocityInheritance,
  490. EmissionDirection = EmissionDirection,
  491. Enabled = Enabled,
  492. Lifetime = LifeTime,
  493. Rate = Rate,
  494. Rotation = Rotation,
  495. RotSpeed = RotSpeed,
  496. Speed = Speed,
  497. VelocitySpread = VelocitySpread,
  498. }
  499. return fp
  500. end;
  501. };
  502.  
  503. CreateTemplate = {
  504.  
  505. };
  506. }
  507.  
  508.  
  509.  
  510. New = function(Object, Parent, Name, Data)
  511. local Object = Instance.new(Object)
  512. for Index, Value in pairs(Data or {}) do
  513. Object[Index] = Value
  514. end
  515. Object.Parent = Parent
  516. Object.Name = Name
  517. return Object
  518. end
  519. local halocolor = BrickColor.new("Pastel light blue")
  520. local halocolor2 = BrickColor.new("Cool yellow")
  521. local starcolor = BrickColor.new("Bright yellow")
  522. local lunacolor = BrickColor.new("Navy blue")
  523. local lunacolor2 = BrickColor.new("Bright blue")
  524. local wepcolor = BrickColor.new("Really black")
  525. local maincolor = BrickColor.new("Really black")
  526. local m = Instance.new("Model",char)
  527. local m2 = Instance.new("Model",char)
  528. local m3 = Instance.new("Model",char)
  529. local mw1 = Instance.new("Model",char)
  530. local mw2 = Instance.new("Model",char)
  531.  
  532.  
  533. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  534. local gui = it(GuiType)
  535. gui.Parent = parent
  536. gui.Text = text
  537. gui.BackgroundTransparency = backtrans
  538. gui.BackgroundColor3 = backcol
  539. gui.SizeConstraint = "RelativeXY"
  540. gui.TextXAlignment = "Center"
  541. gui.TextYAlignment = "Center"
  542. gui.Position = pos
  543. gui.Size = size
  544. gui.Font = "SourceSans"
  545. gui.FontSize = "Size14"
  546. gui.TextWrapped = false
  547. gui.TextStrokeTransparency = 0
  548. gui.TextColor = BrickColor.new("White")
  549. return gui
  550. end
  551. ---- GUI set
  552. local basgui = it("GuiMain")
  553. basgui.Parent = plr.PlayerGui
  554. basgui.Name = "Killcounter GUI"
  555. local basframe = it("Frame")
  556. basframe.Parent = basgui
  557. basframe.BackgroundColor3 = Color3.new(255, 255, 255)
  558. basframe.BackgroundTransparency = 1
  559. basframe.BorderColor3 = Color3.new(17, 17, 17)
  560. basframe.Size = UDim2.new(0.2, 0, 0.2, 0)
  561. basframe.Position = UDim2.new(0.8, 0, 0.8, 0)
  562. local uhh = gui("TextLabel", basframe, "Basic", 0.5, BrickColor.new("Really black").Color, UDim2.new(-0.5, 0, 0.45, 0), UDim2.new(1.5, 0, 0.55, 0))
  563. uhh.ZIndex = 2
  564. uhh.Font = "Bodoni"
  565. uhh.TextStrokeColor3 = Color3.new(0.05,0.05,0.05)
  566. uhh.TextColor3 = Color3.new(1,1,1)
  567. uhh.BackgroundTransparency = 0.25
  568. uhh.BorderSizePixel = 2
  569. uhh.BorderColor3 = Color3.new(0,0,0)
  570. uhh.TextScaled = true
  571. uhh.TextXAlignment = "Left"
  572. uhh.Text = "SWITCH MODE: 1-9"
  573. uhh.TextSize = 64
  574. local modeteller = gui("TextLabel", basframe, "Basic", 0.5, BrickColor.new("Really black").Color, UDim2.new(-0, 0, -0.01, 0), UDim2.new(1, 0, 0.45, 0))
  575. modeteller.ZIndex = 2
  576. modeteller.Font = "Bodoni"
  577. modeteller.TextStrokeColor3 = Color3.new(0.05,0.05,0.05)
  578. modeteller.TextColor3 = Color3.new(1,1,1)
  579. modeteller.BackgroundTransparency = 0.25
  580. modeteller.BorderSizePixel = 2
  581. modeteller.BorderColor3 = Color3.new(0,0,0)
  582. modeteller.TextScaled = true
  583. modeteller.TextXAlignment = "Right"
  584. modeteller.Text = "MAYHEM"
  585. modeteller.TextSize = 64
  586.  
  587. local extrawingmod1 = Instance.new("Model",char)
  588. local extrawingmod2 = Instance.new("Model",char)
  589.  
  590. function CreateParta(parent,transparency,reflectance,material,brickcolor)
  591. local p = Instance.new("Part")
  592. p.TopSurface = 0
  593. p.BottomSurface = 0
  594. p.Parent = parent
  595. p.Size = Vector3.new(0.1,0.1,0.1)
  596. p.Transparency = transparency
  597. p.Reflectance = reflectance
  598. p.CanCollide = false
  599. p.Locked = true
  600. p.BrickColor = brickcolor
  601. p.Material = material
  602. return p
  603. end
  604.  
  605. function CreateMesh(parent,meshtype,x1,y1,z1)
  606. local mesh = Instance.new("SpecialMesh",parent)
  607. mesh.MeshType = meshtype
  608. mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
  609. return mesh
  610. end
  611.  
  612. function CreateSpecialMesh(parent,meshid,x1,y1,z1)
  613. local mesh = Instance.new("SpecialMesh",parent)
  614. mesh.MeshType = "FileMesh"
  615. mesh.MeshId = meshid
  616. mesh.Scale = Vector3.new(x1,y1,z1)
  617. return mesh
  618. end
  619.  
  620.  
  621. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  622. local mesh = Instance.new("SpecialMesh",parent)
  623. mesh.MeshType = "FileMesh"
  624. mesh.MeshId = meshid
  625. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  626. mesh.Scale = Vector3.new(x1,y1,z1)
  627. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  628. return mesh
  629. end
  630.  
  631. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  632. local weld = Instance.new("Weld")
  633. weld.Parent = parent
  634. weld.Part0 = part0
  635. weld.Part1 = part1
  636. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  637. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  638. return weld
  639. end
  640.  
  641.  
  642. --------------
  643. local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  644. 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))
  645. local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
  646. 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))
  647.  
  648. local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
  649. CreateMesh(handle,"Brick",0,0,0)
  650. 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))
  651. local valuaring = 10
  652.  
  653. local refec = Instance.new("ParticleEmitter",handlex)
  654. refec.Texture = "rbxassetid://284205403"
  655. refec.LightEmission = 0.95
  656. refec.Color = ColorSequence.new(BrickColor.new("White").Color)
  657. refec.Rate = 50
  658. refec.Lifetime = NumberRange.new(0.5)
  659. refec.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.5,0.75,0),NumberSequenceKeypoint.new(1,0.1,0)})
  660. refec.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.25,0),NumberSequenceKeypoint.new(1,1,0)})
  661. refec.Speed = NumberRange.new(0,2)
  662. refec.Drag = 5
  663. refec.LockedToPart = true
  664. refec.Rotation = NumberRange.new(-500,500)
  665. refec.VelocitySpread = 9000
  666. refec.RotSpeed = NumberRange.new(-500,500)
  667. local refec2 = refec:Clone()
  668. refec2.LightEmission = 0.75
  669. refec2.Texture = "rbxassetid://254287058"
  670. refec2.Parent = handlex
  671. refec2.Rate = 25
  672. refec2.Lifetime = NumberRange.new(0.75)
  673. refec2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.5,0),NumberSequenceKeypoint.new(0.15,1,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,0.1,0)})
  674. refec2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.65,0),NumberSequenceKeypoint.new(1,1,0)})
  675. refec2.Speed = NumberRange.new(0)
  676. local refec3 = refec:Clone()
  677. refec3.LightEmission = 0.75
  678. refec3.Texture = "rbxassetid://363275192"
  679. refec3.Parent = handlex
  680. refec3.Rate = 25
  681. refec3.Lifetime = NumberRange.new(1)
  682. refec3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0.1,0)})
  683. refec3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.65,0),NumberSequenceKeypoint.new(1,1,0)})
  684. refec3.Speed = NumberRange.new(0)
  685. refec3.RotSpeed = NumberRange.new(-50,50)
  686.  
  687. for i = 0, 35 do
  688. valuaring = valuaring + 10
  689. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  690. CreateMesh(rn,"Wedge",0.1,0.5,0.1)
  691. CreateWeld(rn,handlex,rn,0,0.75,0,math.rad(0),math.rad(-90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  692. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  693. CreateMesh(rn,"Wedge",0.1,0.5,0.1)
  694. CreateWeld(rn,handlex,rn,0,0.75,0,math.rad(0),math.rad(90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  695. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  696. CreateMesh(rn,"Wedge",0.1,0.2,0.05)
  697. CreateWeld(rn,handlex,rn,0,-1.1,0.025,math.rad(0),math.rad(-90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  698. rn = CreateParta(mw2,0,0,"Neon",halocolor)
  699. CreateMesh(rn,"Wedge",0.1,0.2,0.05)
  700. CreateWeld(rn,handlex,rn,0,-1.1,0.025,math.rad(0),math.rad(90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  701. end
  702.  
  703.  
  704. local handle = CreateParta(m,1,1,"Neon",maincolor)
  705. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  706. 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))
  707.  
  708. --- Left wing.
  709.  
  710. local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
  711. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  712. 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))
  713.  
  714. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  715. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  716. 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))
  717. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  718. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  719. 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))
  720. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  721. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  722. CreateWeld(wed,lwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  723. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  724. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  725. CreateWeld(wed,lwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  726. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  727. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  728. CreateWeld(wed,lwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  729. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  730. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  731. CreateWeld(wed,lwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  732. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  733. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  734. 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))
  735. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  736. CreateMesh(wed,"Wedge",0.05,1.5,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. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  739. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  740. CreateWeld(wed,lwing1,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  741. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  742. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  743. CreateWeld(wed,lwing1,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  744.  
  745.  
  746. local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
  747. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  748. 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))
  749.  
  750. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  751. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  752. 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))
  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.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  759. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  760. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  761. CreateWeld(wed,lwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  762. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  763. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  764. CreateWeld(wed,lwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  765. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  766. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  767. CreateWeld(wed,lwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  768. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  769. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  770. 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))
  771. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  772. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  773. 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))
  774. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  775. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  776. CreateWeld(wed,lwing2,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  777. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  778. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  779. CreateWeld(wed,lwing2,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  780.  
  781. local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
  782. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  783. 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))
  784.  
  785. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  786. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  787. 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))
  788. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  789. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  790. 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))
  791. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  792. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  793. CreateWeld(wed,lwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  794. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  795. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  796. CreateWeld(wed,lwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  797. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  798. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  799. CreateWeld(wed,lwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  800. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  801. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  802. CreateWeld(wed,lwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  803. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  804. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  805. 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))
  806. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  807. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  808. 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))
  809. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  810. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  811. CreateWeld(wed,lwing3,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  812. wed = CreateParta(mw1,0,0,"Neon",halocolor)
  813. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  814. CreateWeld(wed,lwing3,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  815.  
  816. local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
  817. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  818. 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))
  819.  
  820. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  821. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  822. 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))
  823. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  824. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  825. 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))
  826. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  827. CreateMesh(wed,"Wedge",0.05,0.5,3)
  828. 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))
  829. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  830. CreateMesh(wed,"Wedge",0.05,3,0.5)
  831. 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))
  832.  
  833. local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
  834. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  835. 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))
  836.  
  837. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  838. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  839. 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))
  840. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  841. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  842. 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))
  843. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  844. CreateMesh(wed,"Wedge",0.05,0.5,3)
  845. 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))
  846. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  847. CreateMesh(wed,"Wedge",0.05,3,0.5)
  848. 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))
  849.  
  850. local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
  851. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  852. 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))
  853.  
  854. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  855. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  856. 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))
  857. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  858. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  859. 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))
  860. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  861. CreateMesh(wed,"Wedge",0.05,0.5,3)
  862. 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))
  863. wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
  864. CreateMesh(wed,"Wedge",0.05,3,0.5)
  865. 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))
  866.  
  867. -- Right wing.
  868.  
  869. local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
  870. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  871. 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))
  872.  
  873. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  874. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  875. 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))
  876. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  877. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  878. 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))
  879. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  880. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  881. CreateWeld(wed,rwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  882. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  883. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  884. CreateWeld(wed,rwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  885. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  886. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  887. CreateWeld(wed,rwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  888. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  889. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  890. CreateWeld(wed,rwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  891. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  892. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  893. 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))
  894. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  895. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  896. 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))
  897. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  898. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  899. CreateWeld(wed,rwing1,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),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,1.75,0.25)
  902. CreateWeld(wed,rwing1,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  903.  
  904. local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
  905. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  906. 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))
  907.  
  908. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  909. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  910. 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))
  911. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  912. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  913. 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))
  914. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  915. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  916. CreateWeld(wed,rwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  917. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  918. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  919. CreateWeld(wed,rwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  920. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  921. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  922. CreateWeld(wed,rwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  923. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  924. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  925. CreateWeld(wed,rwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  926. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  927. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  928. 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))
  929. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  930. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  931. 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))
  932. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  933. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  934. CreateWeld(wed,rwing2,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  935. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  936. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  937. CreateWeld(wed,rwing2,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  938.  
  939. local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
  940. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  941. 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))
  942.  
  943.  
  944. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  945. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  946. 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))
  947. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  948. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  949. 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))
  950. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  951. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  952. CreateWeld(wed,rwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  953. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  954. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  955. CreateWeld(wed,rwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  956. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  957. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  958. CreateWeld(wed,rwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  959. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  960. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  961. CreateWeld(wed,rwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  962. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  963. CreateMesh(wed,"Wedge",0.05,0.5,1.5)
  964. 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))
  965. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  966. CreateMesh(wed,"Wedge",0.05,1.5,0.5)
  967. 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))
  968. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  969. CreateMesh(wed,"Wedge",0.05,0.25,1.75)
  970. CreateWeld(wed,rwing3,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  971. wed = CreateParta(mw2,0,0,"Neon",halocolor)
  972. CreateMesh(wed,"Wedge",0.05,1.75,0.25)
  973. CreateWeld(wed,rwing3,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  974.  
  975.  
  976. local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
  977. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  978. 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))
  979.  
  980. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  981. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  982. 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))
  983. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  984. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  985. 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))
  986. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  987. CreateMesh(wed,"Wedge",0.05,0.5,3)
  988. 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))
  989. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  990. CreateMesh(wed,"Wedge",0.05,3,0.5)
  991. 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))
  992.  
  993. local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
  994. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  995. 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))
  996.  
  997. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  998. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  999. 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))
  1000. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1001. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1002. 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))
  1003. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1004. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1005. 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))
  1006. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1007. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1008. 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))
  1009.  
  1010. local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
  1011. CreateMesh(handle,"Brick",0.5,0.5,0.5)
  1012. 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))
  1013.  
  1014. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1015. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1016. 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))
  1017. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1018. CreateMesh(wed,"Wedge",0.05,0.5,0.5)
  1019. 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))
  1020. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1021. CreateMesh(wed,"Wedge",0.05,0.5,3)
  1022. 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))
  1023. wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
  1024. CreateMesh(wed,"Wedge",0.05,3,0.5)
  1025. 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))
  1026.  
  1027.  
  1028. ---- HERES THE RING
  1029.  
  1030.  
  1031. --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1032. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1033. 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))
  1034. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1035. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1036. 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))
  1037. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1038. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1039. 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))
  1040.  
  1041.  
  1042. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1043. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1044. 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))
  1045.  
  1046. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1047. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1048. 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))
  1049.  
  1050.  
  1051.  
  1052. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1053. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1054. 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))
  1055.  
  1056. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1057. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1058. 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))
  1059.  
  1060. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1061. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1062. 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))
  1063.  
  1064. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1065. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1066. 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))
  1067. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1068. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1069. 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))
  1070.  
  1071. --- second ring
  1072.  
  1073. ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
  1074. CreateMesh(ran,"Wedge",1.02,1.02,1.02)
  1075. 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))
  1076. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1077. CreateMesh(ran,"Wedge",0.9,0.9,1.025)
  1078. 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))
  1079. ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1080. CreateMesh(ran,"Wedge",1.025,0.9,0.9)
  1081. 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))
  1082.  
  1083. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1084. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1085. 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))
  1086.  
  1087. gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1088. CreateMesh(gan,"Brick",1.075,0.1,1.075)
  1089. 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))
  1090.  
  1091.  
  1092.  
  1093. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1094. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1095. 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))
  1096.  
  1097. gan = CreateParta(m2,0,0,"Neon",halocolor2)
  1098. CreateMesh(gan,"Brick",1.095,0.035,1.095)
  1099. 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))
  1100.  
  1101. gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
  1102. CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
  1103. 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))
  1104.  
  1105. star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
  1106. CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
  1107. 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))
  1108. starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
  1109. CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
  1110. 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))]]--
  1111.  
  1112. ------------- Trails
  1113. local A0 = Instance.new("Attachment",lwing1)
  1114. A0.Position = Vector3.new(0,-0.7,0)
  1115. local A1 = Instance.new("Attachment",lwing1)
  1116. A1.Position = Vector3.new(0,-3.5,0)
  1117. tl1 = Instance.new('Trail',lwing1)
  1118. tl1.Attachment0 = A0
  1119. tl1.Attachment1 = A1
  1120. tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1121. tl1.LightEmission = 1
  1122. tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1123. tl1.Color = ColorSequence.new(BrickColor.new('White').Color)
  1124. tl1.Lifetime = 0.6
  1125.  
  1126. local A0 = Instance.new("Attachment",lwing2)
  1127. A0.Position = Vector3.new(0,-0.7,0)
  1128. local A1 = Instance.new("Attachment",lwing2)
  1129. A1.Position = Vector3.new(0,-3.5,0)
  1130. tl2 = Instance.new('Trail',lwing2)
  1131. tl2.Attachment0 = A0
  1132. tl2.Attachment1 = A1
  1133. tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1134. tl2.LightEmission = 1
  1135. tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1136. tl2.Color = ColorSequence.new(BrickColor.new('White').Color)
  1137. tl2.Lifetime = 0.6
  1138.  
  1139. local A0 = Instance.new("Attachment",lwing3)
  1140. A0.Position = Vector3.new(0,-0.7,0)
  1141. local A1 = Instance.new("Attachment",lwing3)
  1142. A1.Position = Vector3.new(0,-3.5,0)
  1143. tl3 = Instance.new('Trail',lwing3)
  1144. tl3.Attachment0 = A0
  1145. tl3.Attachment1 = A1
  1146. tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1147. tl3.LightEmission = 1
  1148. tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1149. tl3.Color = ColorSequence.new(BrickColor.new('White').Color)
  1150. tl3.Lifetime = 0.6
  1151.  
  1152. local A0 = Instance.new("Attachment",rwing1)
  1153. A0.Position = Vector3.new(0,-0.7,0)
  1154. local A1 = Instance.new("Attachment",rwing1)
  1155. A1.Position = Vector3.new(0,-3.5,0)
  1156. tr1 = Instance.new('Trail',rwing1)
  1157. tr1.Attachment0 = A0
  1158. tr1.Attachment1 = A1
  1159. tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1160. tr1.LightEmission = 1
  1161. tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1162. tr1.Color = ColorSequence.new(BrickColor.new('White').Color)
  1163. tr1.Lifetime = 0.6
  1164.  
  1165. local A0 = Instance.new("Attachment",rwing2)
  1166. A0.Position = Vector3.new(0,-0.7,0)
  1167. local A1 = Instance.new("Attachment",rwing2)
  1168. A1.Position = Vector3.new(0,-3.5,0)
  1169. tr2 = Instance.new('Trail',rwing2)
  1170. tr2.Attachment0 = A0
  1171. tr2.Attachment1 = A1
  1172. tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1173. tr2.LightEmission = 1
  1174. tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1175. tr2.Color = ColorSequence.new(BrickColor.new('White').Color)
  1176. tr2.Lifetime = 0.6
  1177.  
  1178. local A0 = Instance.new("Attachment",rwing3)
  1179. A0.Position = Vector3.new(0,-0.7,0)
  1180. local A1 = Instance.new("Attachment",rwing3)
  1181. A1.Position = Vector3.new(0,-3.5,0)
  1182. tr3 = Instance.new('Trail',rwing3)
  1183. tr3.Attachment0 = A0
  1184. tr3.Attachment1 = A1
  1185. tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
  1186. tr3.LightEmission = 1
  1187. tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  1188. tr3.Color = ColorSequence.new(BrickColor.new('White').Color)
  1189. tr3.Lifetime = 0.6
  1190. --------------
  1191.  
  1192. for i, v in pairs(mw2:GetChildren()) do
  1193. if v:IsA("Part") then
  1194. v.BrickColor = BrickColor.new("White")
  1195. v.Material = "Neon"
  1196. end
  1197. end
  1198. for i, v in pairs(mw1:GetChildren()) do
  1199. if v:IsA("Part") then
  1200. v.Transparency = 0
  1201. v.BrickColor = BrickColor.new("White")
  1202. v.Material = "Neon"
  1203. end
  1204. end
  1205. for i, v in pairs(extrawingmod1:GetChildren()) do
  1206. if v:IsA("Part") then
  1207. v.Transparency = 1
  1208. v.BrickColor = BrickColor.new("White")
  1209. v.Material = "Neon"
  1210. end
  1211. end
  1212. for i, v in pairs(extrawingmod2:GetChildren()) do
  1213. if v:IsA("Part") then
  1214. v.Transparency = 1
  1215. v.BrickColor = BrickColor.new("White")
  1216. v.Material = "Neon"
  1217. end
  1218. end
  1219. local MAINRUINCOLOR = BrickColor.new("White")
  1220. ------
  1221.  
  1222.  
  1223. function RemoveOutlines(part)
  1224. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1225. end
  1226. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1227. local Part = Create("Part")({
  1228. Parent = Parent,
  1229. Reflectance = Reflectance,
  1230. Transparency = Transparency,
  1231. CanCollide = false,
  1232. Locked = true,
  1233. BrickColor = BrickColor.new(tostring(BColor)),
  1234. Name = Name,
  1235. Size = Size,
  1236. Material = Material
  1237. })
  1238. Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  1239. RemoveOutlines(Part)
  1240. return Part
  1241. end
  1242. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1243. local Msh = Create(Mesh)({
  1244. Parent = Part,
  1245. Offset = OffSet,
  1246. Scale = Scale
  1247. })
  1248. if Mesh == "SpecialMesh" then
  1249. Msh.MeshType = MeshType
  1250. Msh.MeshId = MeshId
  1251. end
  1252. return Msh
  1253. end
  1254. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1255. local Weld = Create("Weld")({
  1256. Parent = Parent,
  1257. Part0 = Part0,
  1258. Part1 = Part1,
  1259. C0 = C0,
  1260. C1 = C1
  1261. })
  1262. return Weld
  1263. end
  1264.  
  1265. Player=game:GetService("Players").Emper0rAwes0me
  1266. Character=Player.Character
  1267. PlayerGui=Player.PlayerGui
  1268. Backpack=Player.Backpack
  1269. Torso=Character.Torso
  1270. Head=Character.Head
  1271. Humanoid=Character.Humanoid
  1272. m=Instance.new('Model',Character)
  1273. LeftArm=Character["Left Arm"]
  1274. LeftLeg=Character["Left Leg"]
  1275. RightArm=Character["Right Arm"]
  1276. RightLeg=Character["Right Leg"]
  1277. LS=Torso["Left Shoulder"]
  1278. LH=Torso["Left Hip"]
  1279. RS=Torso["Right Shoulder"]
  1280. RH=Torso["Right Hip"]
  1281. Face = Head.face
  1282. Neck=Torso.Neck
  1283. it=Instance.new
  1284. attacktype=1
  1285. vt=Vector3.new
  1286. cf=CFrame.new
  1287. euler=CFrame.fromEulerAnglesXYZ
  1288. angles=CFrame.Angles
  1289. cloaked=false
  1290. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1291. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1292. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  1293. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  1294. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  1295. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  1296. RootPart=Character.HumanoidRootPart
  1297. RootJoint=RootPart.RootJoint
  1298. RootCF=euler(-1.57,0,3.14)
  1299. attack = false
  1300. attackdebounce = false
  1301. deb=false
  1302. equipped=true
  1303. hand=false
  1304. MMouse=nil
  1305. combo=0
  1306. mana=0
  1307. trispeed=.2
  1308. attackmode='none'
  1309. local idle=0
  1310. local Anim="Idle"
  1311. local Effects={}
  1312. local gun=false
  1313. local shoot=false
  1314. local sine = 0
  1315. local change = 1
  1316. player=nil
  1317.  
  1318. function RecolorTextAndRename(name,col1,col2,font)
  1319. modet.TextStrokeColor3 = col2
  1320. modet.TextColor3 = col1
  1321. modet.Font = font
  1322. modet.Text = name
  1323. end
  1324. --save shoulders
  1325. RSH, LSH=nil, nil
  1326. --welds
  1327. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  1328. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  1329. LH=Torso["Left Hip"]
  1330. RH=Torso["Right Hip"]
  1331. TorsoColor=Torso.BrickColor
  1332. function NoOutline(Part)
  1333. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  1334. end
  1335. player=Player
  1336. ch=Character
  1337. RSH=ch.Torso["Right Shoulder"]
  1338. LSH=ch.Torso["Left Shoulder"]
  1339. --
  1340. RSH.Parent=nil
  1341. LSH.Parent=nil
  1342. --
  1343. RW.Name="Right Shoulder"
  1344. RW.Part0=ch.Torso
  1345. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1346. RW.C1=cf(0, 0.5, 0)
  1347. RW.Part1=ch["Right Arm"]
  1348. RW.Parent=ch.Torso
  1349. --
  1350. LW.Name="Left Shoulder"
  1351. LW.Part0=ch.Torso
  1352. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1353. LW.C1=cf(0, 0.5, 0)
  1354. LW.Part1=ch["Left Arm"]
  1355. LW.Parent=ch.Torso
  1356.  
  1357. local Stats=Instance.new("BoolValue")
  1358. Stats.Name="Stats"
  1359. Stats.Parent=Character
  1360. local Atk=Instance.new("NumberValue")
  1361. Atk.Name="Damage"
  1362. Atk.Parent=Stats
  1363. Atk.Value=1
  1364. local Def=Instance.new("NumberValue")
  1365. Def.Name="Defense"
  1366. Def.Parent=Stats
  1367. Def.Value=1
  1368. local Speed=Instance.new("NumberValue")
  1369. Speed.Name="Speed"
  1370. Speed.Parent=Stats
  1371. Speed.Value=1
  1372. local Mvmt=Instance.new("NumberValue")
  1373. Mvmt.Name="Movement"
  1374. Mvmt.Parent=Stats
  1375. Mvmt.Value=1
  1376.  
  1377. local donum=0
  1378.  
  1379.  
  1380. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  1381. local fp=it("Part")
  1382. fp.formFactor=formfactor
  1383. fp.Parent=parent
  1384. fp.Reflectance=reflectance
  1385. fp.Transparency=transparency
  1386. fp.CanCollide=false
  1387. fp.Locked=true
  1388. fp.BrickColor=brickcolor
  1389. fp.Name=name
  1390. fp.Size=size
  1391. fp.Position=Torso.Position
  1392. NoOutline(fp)
  1393. fp.Material="SmoothPlastic"
  1394. fp:BreakJoints()
  1395. return fp
  1396. end
  1397.  
  1398. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1399. local mesh=it(Mesh)
  1400. mesh.Parent=part
  1401. if Mesh=="SpecialMesh" then
  1402. mesh.MeshType=meshtype
  1403. if meshid~="nil" then
  1404. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  1405. end
  1406. end
  1407. mesh.Offset=offset
  1408. mesh.Scale=scale
  1409. return mesh
  1410. end
  1411.  
  1412. function weld(parent,part0,part1,c0)
  1413. local weld=it("Weld")
  1414. weld.Parent=parent
  1415. weld.Part0=part0
  1416. weld.Part1=part1
  1417. weld.C0=c0
  1418. return weld
  1419. end
  1420.  
  1421. local Color1=Torso.BrickColor
  1422.  
  1423. local bodvel=Instance.new("BodyVelocity")
  1424. local bg=Instance.new("BodyGyro")
  1425.  
  1426. function swait(num)
  1427. if num==0 or num==nil then
  1428. game:service'RunService'.Stepped:wait(0)
  1429. else
  1430. for i=0,num do
  1431. game:service'RunService'.Stepped:wait(0)
  1432. end
  1433. end
  1434. end
  1435.  
  1436. -------- RAINBOW LEAVE IT TO ME
  1437. local r = 255
  1438. local g = 0
  1439. local b = 0
  1440. coroutine.resume(coroutine.create(function()
  1441. while wait() do
  1442. for i = 0, 254/5 do
  1443. swait()
  1444. g = g + 5
  1445. end
  1446. for i = 0, 254/5 do
  1447. swait()
  1448. r = r - 5
  1449. end
  1450. for i = 0, 254/5 do
  1451. swait()
  1452. b = b + 5
  1453. end
  1454. for i = 0, 254/5 do
  1455. swait()
  1456. g = g - 5
  1457. end
  1458. for i = 0, 254/5 do
  1459. swait()
  1460. r = r + 5
  1461. end
  1462. for i = 0, 254/5 do
  1463. swait()
  1464. b = b - 5
  1465. end
  1466. end
  1467. end))
  1468.  
  1469.  
  1470. so = function(id,par,vol,pit)
  1471. coroutine.resume(coroutine.create(function()
  1472. local sou = Instance.new("Sound",par or workspace)
  1473. sou.Volume=vol
  1474. sou.Pitch=pit or 1
  1475. sou.SoundId=id
  1476. swait()
  1477. sou:play()
  1478. game:GetService("Debris"):AddItem(sou,6)
  1479. end))
  1480. end
  1481.  
  1482. function clerp(a,b,t)
  1483. local qa = {QuaternionFromCFrame(a)}
  1484. local qb = {QuaternionFromCFrame(b)}
  1485. local ax, ay, az = a.x, a.y, a.z
  1486. local bx, by, bz = b.x, b.y, b.z
  1487. local _t = 1-t
  1488. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1489. end
  1490.  
  1491. function QuaternionFromCFrame(cf)
  1492. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1493. local trace = m00 + m11 + m22
  1494. if trace > 0 then
  1495. local s = math.sqrt(1 + trace)
  1496. local recip = 0.5/s
  1497. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1498. else
  1499. local i = 0
  1500. if m11 > m00 then
  1501. i = 1
  1502. end
  1503. if m22 > (i == 0 and m00 or m11) then
  1504. i = 2
  1505. end
  1506. if i == 0 then
  1507. local s = math.sqrt(m00-m11-m22+1)
  1508. local recip = 0.5/s
  1509. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1510. elseif i == 1 then
  1511. local s = math.sqrt(m11-m22-m00+1)
  1512. local recip = 0.5/s
  1513. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1514. elseif i == 2 then
  1515. local s = math.sqrt(m22-m00-m11+1)
  1516. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1517. end
  1518. end
  1519. end
  1520.  
  1521. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1522. local xs, ys, zs = x + x, y + y, z + z
  1523. local wx, wy, wz = w*xs, w*ys, w*zs
  1524. local xx = x*xs
  1525. local xy = x*ys
  1526. local xz = x*zs
  1527. local yy = y*ys
  1528. local yz = y*zs
  1529. local zz = z*zs
  1530. 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))
  1531. end
  1532.  
  1533. function QuaternionSlerp(a, b, t)
  1534. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1535. local startInterp, finishInterp;
  1536. if cosTheta >= 0.0001 then
  1537. if (1 - cosTheta) > 0.0001 then
  1538. local theta = math.acos(cosTheta)
  1539. local invSinTheta = 1/math.sin(theta)
  1540. startInterp = math.sin((1-t)*theta)*invSinTheta
  1541. finishInterp = math.sin(t*theta)*invSinTheta
  1542. else
  1543. startInterp = 1-t
  1544. finishInterp = t
  1545. end
  1546. else
  1547. if (1+cosTheta) > 0.0001 then
  1548. local theta = math.acos(-cosTheta)
  1549. local invSinTheta = 1/math.sin(theta)
  1550. startInterp = math.sin((t-1)*theta)*invSinTheta
  1551. finishInterp = math.sin(t*theta)*invSinTheta
  1552. else
  1553. startInterp = t-1
  1554. finishInterp = t
  1555. end
  1556. end
  1557. 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
  1558. end
  1559.  
  1560. local function CFrameFromTopBack(at, top, back)
  1561. local right = top:Cross(back)
  1562. return CFrame.new(at.x, at.y, at.z,
  1563. right.x, top.x, back.x,
  1564. right.y, top.y, back.y,
  1565. right.z, top.z, back.z)
  1566. end
  1567.  
  1568. function Triangle(a, b, c)
  1569. local edg1 = (c-a):Dot((b-a).unit)
  1570. local edg2 = (a-b):Dot((c-b).unit)
  1571. local edg3 = (b-c):Dot((a-c).unit)
  1572. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1573. a, b, c = a, b, c
  1574. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1575. a, b, c = b, c, a
  1576. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1577. a, b, c = c, a, b
  1578. else
  1579. assert(false, "unreachable")
  1580. end
  1581.  
  1582. local len1 = (c-a):Dot((b-a).unit)
  1583. local len2 = (b-a).magnitude - len1
  1584. local width = (a + (b-a).unit*len1 - c).magnitude
  1585.  
  1586. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1587.  
  1588. local list = {}
  1589.  
  1590. if len1 > 0.01 then
  1591. local w1 = Instance.new('WedgePart', m)
  1592. game:GetService("Debris"):AddItem(w1,5)
  1593. w1.Material = "SmoothPlastic"
  1594. w1.FormFactor = 'Custom'
  1595. w1.BrickColor = BrickColor.new("Really red")
  1596. w1.Transparency = 0
  1597. w1.Reflectance = 0
  1598. w1.Material = "SmoothPlastic"
  1599. w1.CanCollide = false
  1600. local l1 = Instance.new("PointLight",w1)
  1601. l1.Color = Color3.new(170,0,0)
  1602. NoOutline(w1)
  1603. local sz = Vector3.new(0.2, width, len1)
  1604. w1.Size = sz
  1605. local sp = Instance.new("SpecialMesh",w1)
  1606. sp.MeshType = "Wedge"
  1607. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1608. w1:BreakJoints()
  1609. w1.Anchored = true
  1610. w1.Parent = workspace
  1611. w1.Transparency = 0.7
  1612. table.insert(Effects,{w1,"Disappear",.01})
  1613. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1614. table.insert(list,w1)
  1615. end
  1616.  
  1617. if len2 > 0.01 then
  1618. local w2 = Instance.new('WedgePart', m)
  1619. game:GetService("Debris"):AddItem(w2,5)
  1620. w2.Material = "SmoothPlastic"
  1621. w2.FormFactor = 'Custom'
  1622. w2.BrickColor = BrickColor.new("Really red")
  1623. w2.Transparency = 0
  1624. w2.Reflectance = 0
  1625. w2.Material = "SmoothPlastic"
  1626. w2.CanCollide = false
  1627. local l2 = Instance.new("PointLight",w2)
  1628. l2.Color = Color3.new(170,0,0)
  1629. NoOutline(w2)
  1630. local sz = Vector3.new(0.2, width, len2)
  1631. w2.Size = sz
  1632. local sp = Instance.new("SpecialMesh",w2)
  1633. sp.MeshType = "Wedge"
  1634. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1635. w2:BreakJoints()
  1636. w2.Anchored = true
  1637. w2.Parent = workspace
  1638. w2.Transparency = 0.7
  1639. table.insert(Effects,{w2,"Disappear",.01})
  1640. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1641. table.insert(list,w2)
  1642. end
  1643. return unpack(list)
  1644. end
  1645.  
  1646.  
  1647. function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  1648. if hit.Parent == nil then
  1649. return
  1650. end
  1651. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  1652. for _, v in pairs(hit.Parent:children()) do
  1653. if v:IsA("Humanoid") then
  1654. h = v
  1655. end
  1656. end
  1657. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
  1658. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1659. return
  1660. end
  1661. local c = Create("ObjectValue")({
  1662. Name = "creator",
  1663. Value = game:service("Players").Emper0rAwes0me,
  1664. Parent = h
  1665. })
  1666. game:GetService("Debris"):AddItem(c, 0.5)
  1667. if HitSound ~= nil and HitPitch ~= nil then
  1668. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  1669. end
  1670. local Damage = math.random(minim, maxim)
  1671. local blocked = false
  1672. local block = hit.Parent:findFirstChild("Block")
  1673. if block ~= nil and block.className == "IntValue" and block.Value > 0 then
  1674. blocked = true
  1675. block.Value = block.Value - 1
  1676. print(block.Value)
  1677. end
  1678. if blocked == false then
  1679. HitHealth = h.Health
  1680. h.Health = h.Health - Damage
  1681. if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
  1682. print("gained kill")
  1683. end
  1684. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1685. else
  1686. h.Health = h.Health - Damage / 2
  1687. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
  1688. end
  1689. if Type == "Knockdown" then
  1690. local hum = hit.Parent.Humanoid
  1691. hum.PlatformStand = true
  1692. coroutine.resume(coroutine.create(function(HHumanoid)
  1693. swait(1)
  1694. HHumanoid.PlatformStand = false
  1695. end), hum)
  1696. local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
  1697. local bodvol = Create("BodyVelocity")({
  1698. velocity = angle * knockback,
  1699. P = 5000,
  1700. maxForce = Vector3.new(8000, 8000, 8000),
  1701. Parent = hit
  1702. })
  1703. local rl = Create("BodyAngularVelocity")({
  1704. P = 3000,
  1705. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  1706. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  1707. Parent = hit
  1708. })
  1709. game:GetService("Debris"):AddItem(bodvol, 0.5)
  1710. game:GetService("Debris"):AddItem(rl, 0.5)
  1711. elseif Type == "Normal" then
  1712. local vp = Create("BodyVelocity")({
  1713. P = 500,
  1714. maxForce = Vector3.new(math.huge, 0, math.huge),
  1715. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
  1716. })
  1717. if knockback > 0 then
  1718. vp.Parent = hit.Parent.Head
  1719. end
  1720. game:GetService("Debris"):AddItem(vp, 0.5)
  1721. elseif Type == "Up" then
  1722. local bodyVelocity = Create("BodyVelocity")({
  1723. velocity = Vector3.new(0, 20, 0),
  1724. P = 5000,
  1725. maxForce = Vector3.new(8000, 8000, 8000),
  1726. Parent = hit
  1727. })
  1728. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1729. local bodyVelocity = Create("BodyVelocity")({
  1730. velocity = Vector3.new(0, 20, 0),
  1731. P = 5000,
  1732. maxForce = Vector3.new(8000, 8000, 8000),
  1733. Parent = hit
  1734. })
  1735. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1736. elseif Type == "Leech" then
  1737. local hum = hit.Parent.Humanoid
  1738. if hum ~= nil then
  1739. for i = 0, 2 do
  1740. 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)
  1741. end
  1742. Humanoid.Health = Humanoid.Health + 10
  1743. end
  1744. elseif Type == "UpKnock" then
  1745. local hum = hit.Parent.Humanoid
  1746. hum.PlatformStand = true
  1747. if hum ~= nil then
  1748. hitr = true
  1749. end
  1750. coroutine.resume(coroutine.create(function(HHumanoid)
  1751. swait(5)
  1752. HHumanoid.PlatformStand = false
  1753. hitr = false
  1754. end), hum)
  1755. local bodyVelocity = Create("BodyVelocity")({
  1756. velocity = Vector3.new(0, 20, 0),
  1757. P = 5000,
  1758. maxForce = Vector3.new(8000, 8000, 8000),
  1759. Parent = hit
  1760. })
  1761. game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
  1762. local bodyVelocity = Create("BodyVelocity")({
  1763. velocity = Vector3.new(0, 20, 0),
  1764. P = 5000,
  1765. maxForce = Vector3.new(8000, 8000, 8000),
  1766. Parent = hit
  1767. })
  1768. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  1769. elseif Type == "Snare" then
  1770. local bp = Create("BodyPosition")({
  1771. P = 2000,
  1772. D = 100,
  1773. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1774. position = hit.Parent.Torso.Position,
  1775. Parent = hit.Parent.Torso
  1776. })
  1777. game:GetService("Debris"):AddItem(bp, 1)
  1778. elseif Type == "Slashnare" then
  1779. 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)
  1780. for i = 1, math.random(4, 5) do
  1781. 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)
  1782. end
  1783. local bp = Create("BodyPosition")({
  1784. P = 2000,
  1785. D = 100,
  1786. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1787. position = hit.Parent.Torso.Position,
  1788. Parent = hit.Parent.Torso
  1789. })
  1790. game:GetService("Debris"):AddItem(bp, 1)
  1791. elseif Type == "Spike" then
  1792. CreateBigIceSword(hit.Parent.Torso.CFrame)
  1793. local bp = Create("BodyPosition")({
  1794. P = 2000,
  1795. D = 100,
  1796. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1797. position = hit.Parent.Torso.Position,
  1798. Parent = hit.Parent.Torso
  1799. })
  1800. game:GetService("Debris"):AddItem(bp, 1)
  1801. elseif Type == "Freeze" then
  1802. local BodPos = Create("BodyPosition")({
  1803. P = 50000,
  1804. D = 1000,
  1805. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  1806. position = hit.Parent.Torso.Position,
  1807. Parent = hit.Parent.Torso
  1808. })
  1809. local BodGy = Create("BodyGyro")({
  1810. maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
  1811. P = 20000,
  1812. Parent = hit.Parent.Torso,
  1813. cframe = hit.Parent.Torso.CFrame
  1814. })
  1815. hit.Parent.Torso.Anchored = true
  1816. coroutine.resume(coroutine.create(function(Part)
  1817. swait(1.5)
  1818. Part.Anchored = false
  1819. end), hit.Parent.Torso)
  1820. game:GetService("Debris"):AddItem(BodPos, 3)
  1821. game:GetService("Debris"):AddItem(BodGy, 3)
  1822. end
  1823. local debounce = Create("BoolValue")({
  1824. Name = "DebounceHit",
  1825. Parent = hit.Parent,
  1826. Value = true
  1827. })
  1828. game:GetService("Debris"):AddItem(debounce, Delay)
  1829. c = Instance.new("ObjectValue")
  1830. c.Name = "creator"
  1831. c.Value = Player
  1832. c.Parent = h
  1833. game:GetService("Debris"):AddItem(c, 0.5)
  1834. end
  1835. end
  1836. function ShowDamage(Pos, Text, Time, Color)
  1837. local Rate = 0.03333333333333333
  1838. local Pos = Pos or Vector3.new(0, 0, 0)
  1839. local Text = Text or ""
  1840. local Time = Time or 2
  1841. local Color = Color or Color3.new(1, 0, 1)
  1842. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1843. EffectPart.Anchored = true
  1844. local BillboardGui = Create("BillboardGui")({
  1845. Size = UDim2.new(3, 0, 3, 0),
  1846. Adornee = EffectPart,
  1847. Parent = EffectPart
  1848. })
  1849. local TextLabel = Create("TextLabel")({
  1850. BackgroundTransparency = 1,
  1851. Size = UDim2.new(1, 0, 1, 0),
  1852. Text = Text,
  1853. TextColor3 = Color,
  1854. TextScaled = true,
  1855. Font = Enum.Font.ArialBold,
  1856. Parent = BillboardGui
  1857. })
  1858. game.Debris:AddItem(EffectPart, Time + 0.1)
  1859. EffectPart.Parent = game:GetService("Workspace")
  1860. delay(0, function()
  1861. local Frames = Time / Rate
  1862. for Frame = 1, Frames do
  1863. wait(Rate)
  1864. local Percent = Frame / Frames
  1865. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1866. TextLabel.TextTransparency = Percent
  1867. end
  1868. if EffectPart and EffectPart.Parent then
  1869. EffectPart:Destroy()
  1870. end
  1871. end)
  1872. end
  1873. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  1874. for _, c in pairs(workspace:children()) do
  1875. local hum = c:findFirstChildOfClass("Humanoid")
  1876. if hum ~= nil then
  1877. local head = c:findFirstChild("Head")
  1878. if head ~= nil then
  1879. local targ = head.Position - Part.Position
  1880. local mag = targ.magnitude
  1881. if magni >= mag and c.Name ~= Player.Name then
  1882. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1883. end
  1884. end
  1885. end
  1886. end
  1887. end
  1888.  
  1889. function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
  1890. for _, c in pairs(workspace:children()) do
  1891. local hum = c:findFirstChild("Humanoid")
  1892. if hum ~= nil then
  1893. local head = c:findFirstChild("Torso")
  1894. if head ~= nil then
  1895. local targ = head.Position - Part.Position
  1896. local mag = targ.magnitude
  1897. if magni >= mag and c.Name ~= Player.Name then
  1898. MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
  1899. Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
  1900. end
  1901. end
  1902. end
  1903. end
  1904. end
  1905.  
  1906. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  1907. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1908. end
  1909.  
  1910. local origcolor = BrickColor.new("Pastel light blue")
  1911. ---- This section of explosions.
  1912.  
  1913. ----
  1914.  
  1915.  
  1916. function ring(type,pos,scale,value)
  1917. local type = type
  1918. local rng = Instance.new("Part", char)
  1919. rng.Anchored = true
  1920. rng.BrickColor = origcolor
  1921. rng.CanCollide = false
  1922. rng.FormFactor = 3
  1923. rng.Name = "Ring"
  1924. rng.Size = Vector3.new(1, 1, 1)
  1925. rng.Transparency = 0
  1926. rng.TopSurface = 0
  1927. rng.BottomSurface = 0
  1928. rng.CFrame = pos
  1929. local rngm = Instance.new("SpecialMesh", rng)
  1930. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1931. rngm.Scale = scale
  1932. local scaler2 = 1
  1933. if type == "Add" then
  1934. scaler2 = 1*value
  1935. elseif type == "Divide" then
  1936. scaler2 = 1/value
  1937. end
  1938. coroutine.resume(coroutine.create(function()
  1939. for i = 0,10,0.1 do
  1940. swait()
  1941. if type == "Add" then
  1942. scaler2 = scaler2 - 0.01*value
  1943. elseif type == "Divide" then
  1944. scaler2 = scaler2 - 0.01/value
  1945. end
  1946. rng.Transparency = rng.Transparency + 0.01
  1947. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1948. end
  1949. rng:Destroy()
  1950. end))
  1951. end
  1952.  
  1953.  
  1954. function wave(type,pos,scale,value)
  1955. local type = type
  1956. local rng = Instance.new("Part", char)
  1957. rng.Anchored = true
  1958. rng.BrickColor = origcolor
  1959. rng.CanCollide = false
  1960. rng.FormFactor = 3
  1961. rng.Name = "Ring"
  1962. rng.Size = Vector3.new(1, 1, 1)
  1963. rng.Transparency = 0
  1964. rng.TopSurface = 0
  1965. rng.BottomSurface = 0
  1966. rng.CFrame = pos
  1967. local rngm = Instance.new("SpecialMesh", rng)
  1968. rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
  1969. rngm.Scale = scale
  1970. local scaler2 = 1
  1971. if type == "Add" then
  1972. scaler2 = 1*value
  1973. elseif type == "Divide" then
  1974. scaler2 = 1/value
  1975. end
  1976. coroutine.resume(coroutine.create(function()
  1977. for i = 0,10,0.1 do
  1978. swait()
  1979. if type == "Add" then
  1980. scaler2 = scaler2 - 0.01*value
  1981. elseif type == "Divide" then
  1982. scaler2 = scaler2 - 0.01/value
  1983. end
  1984. rng.Transparency = rng.Transparency + 0.01
  1985. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
  1986. end
  1987. rng:Destroy()
  1988. end))
  1989. end
  1990.  
  1991. function sphere(bonuspeed,type,pos,scale,value,color)
  1992. local type = type
  1993. local rng = Instance.new("Part", char)
  1994. rng.Anchored = true
  1995. if ModeOfGlitch ~= 9 then
  1996. rng.BrickColor = color
  1997. elseif ModeOfGlitch == 9 then
  1998. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  1999. end
  2000. rng.CanCollide = false
  2001. rng.FormFactor = 3
  2002. rng.Name = "Ring"
  2003. rng.Material = "Neon"
  2004. rng.Size = Vector3.new(1, 1, 1)
  2005. rng.Transparency = 0
  2006. rng.TopSurface = 0
  2007. rng.BottomSurface = 0
  2008. rng.CFrame = pos
  2009. local rngm = Instance.new("SpecialMesh", rng)
  2010. rngm.MeshType = "Sphere"
  2011. rngm.Scale = scale
  2012. if rainbowmode == true then
  2013. rng.Color = Color3.new(r/255,g/255,b/255)
  2014. end
  2015. if ModeOfGlitch == 9 then
  2016. coroutine.resume(coroutine.create(function()
  2017. while true do
  2018. swait()
  2019. if rng.Parent ~= nil then
  2020. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2021. else
  2022. break
  2023. end
  2024. end
  2025. end))
  2026. end
  2027. local scaler2 = 1
  2028. if type == "Add" then
  2029. scaler2 = 1*value
  2030. elseif type == "Divide" then
  2031. scaler2 = 1/value
  2032. end
  2033. coroutine.resume(coroutine.create(function()
  2034. for i = 0,10/bonuspeed,0.1 do
  2035. swait()
  2036. if rainbowmode == true then
  2037. rng.Color = Color3.new(r/255,g/255,b/255)
  2038. end
  2039. if type == "Add" then
  2040. scaler2 = scaler2 - 0.01*value/bonuspeed
  2041. elseif type == "Divide" then
  2042. scaler2 = scaler2 - 0.01/value*bonuspeed
  2043. end
  2044. if chaosmode == true then
  2045. rng.BrickColor = BrickColor.random()
  2046. end
  2047. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2048. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2049. end
  2050. rng:Destroy()
  2051. end))
  2052. end
  2053.  
  2054. function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color)
  2055. local type = type
  2056. local rng = Instance.new("Part", char)
  2057. rng.Anchored = true
  2058. if ModeOfGlitch ~= 9 then
  2059. rng.BrickColor = color
  2060. elseif ModeOfGlitch == 9 then
  2061. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2062. end
  2063. rng.CanCollide = false
  2064. rng.FormFactor = 3
  2065. rng.Name = "Ring"
  2066. rng.Material = "Neon"
  2067. rng.Size = Vector3.new(1, 1, 1)
  2068. rng.Transparency = 0
  2069. rng.TopSurface = 0
  2070. rng.BottomSurface = 0
  2071. rng.CFrame = pos
  2072. local rngm = Instance.new("SpecialMesh", rng)
  2073. rngm.MeshType = "Sphere"
  2074. rngm.Scale = scale
  2075. local scaler2 = 1
  2076. local scaler2b = 1
  2077. local scaler2c = 1
  2078. if type == "Add" then
  2079. scaler2 = 1*value
  2080. scaler2b = 1*value2
  2081. scaler2c = 1*value3
  2082. elseif type == "Divide" then
  2083. scaler2 = 1/value
  2084. scaler2b = 1/value2
  2085. scaler2c = 1/value3
  2086. end
  2087. if ModeOfGlitch == 9 then
  2088. coroutine.resume(coroutine.create(function()
  2089. while true do
  2090. swait()
  2091. if rng.Parent ~= nil then
  2092. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2093. else
  2094. break
  2095. end
  2096. end
  2097. end))
  2098. end
  2099. coroutine.resume(coroutine.create(function()
  2100. for i = 0,10/bonuspeed,0.1 do
  2101. swait()
  2102. if type == "Add" then
  2103. scaler2 = scaler2 - 0.01*value/bonuspeed
  2104. scaler2b = scaler2b - 0.01*value/bonuspeed
  2105. scaler2c = scaler2c - 0.01*value/bonuspeed
  2106. elseif type == "Divide" then
  2107. scaler2 = scaler2 - 0.01/value*bonuspeed
  2108. scaler2b = scaler2b - 0.01/value*bonuspeed
  2109. scaler2c = scaler2c - 0.01/value*bonuspeed
  2110. end
  2111. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2112. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed)
  2113. end
  2114. rng:Destroy()
  2115. end))
  2116. end
  2117.  
  2118. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2119. local type = type
  2120. local rng = Instance.new("Part", char)
  2121. rng.Anchored = true
  2122. rng.BrickColor = color
  2123. rng.CanCollide = false
  2124. rng.FormFactor = 3
  2125. rng.Name = "Ring"
  2126. rng.Material = "Neon"
  2127. rng.Size = Vector3.new(1, 1, 1)
  2128. rng.Transparency = 0
  2129. rng.TopSurface = 0
  2130. rng.BottomSurface = 0
  2131. rng.CFrame = pos
  2132. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2133. local rngm = Instance.new("SpecialMesh", rng)
  2134. rngm.MeshType = "Brick"
  2135. rngm.Scale = vt(x1,y1,z1)
  2136. if rainbowmode == true then
  2137. rng.Color = Color3.new(r/255,g/255,b/255)
  2138. end
  2139. local scaler2 = 1
  2140. local speeder = FastSpeed/10
  2141. if type == "Add" then
  2142. scaler2 = 1*value
  2143. elseif type == "Divide" then
  2144. scaler2 = 1/value
  2145. end
  2146. coroutine.resume(coroutine.create(function()
  2147. for i = 0,10/bonuspeed,0.1 do
  2148. swait()
  2149. if rainbowmode == true then
  2150. rng.Color = Color3.new(r/255,g/255,b/255)
  2151. end
  2152. if type == "Add" then
  2153. scaler2 = scaler2 - 0.01*value/bonuspeed
  2154. elseif type == "Divide" then
  2155. scaler2 = scaler2 - 0.01/value*bonuspeed
  2156. end
  2157. if chaosmode == true then
  2158. rng.BrickColor = BrickColor.random()
  2159. end
  2160. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2161. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2162. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2163. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2164. end
  2165. rng:Destroy()
  2166. end))
  2167. end
  2168.  
  2169. function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2170. local type = type
  2171. local rng = Instance.new("Part", char)
  2172. rng.Anchored = true
  2173. rng.BrickColor = color
  2174. rng.CanCollide = false
  2175. rng.FormFactor = 3
  2176. rng.Name = "Ring"
  2177. rng.Material = "Neon"
  2178. rng.Size = Vector3.new(1, 1, 1)
  2179. rng.Transparency = 0
  2180. rng.TopSurface = 0
  2181. rng.BottomSurface = 0
  2182. rng.CFrame = pos
  2183. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2184. local rngm = Instance.new("SpecialMesh", rng)
  2185. rngm.MeshType = "Brick"
  2186. rngm.Scale = vt(x1,y1,z1)
  2187. if rainbowmode == true then
  2188. rng.Color = Color3.new(r/255,g/255,b/255)
  2189. end
  2190. local scaler2 = 1
  2191. local speeder = FastSpeed/10
  2192. if type == "Add" then
  2193. scaler2 = 1*value
  2194. elseif type == "Divide" then
  2195. scaler2 = 1/value
  2196. end
  2197. coroutine.resume(coroutine.create(function()
  2198. for i = 0,10/bonuspeed,0.1 do
  2199. swait()
  2200. if rainbowmode == true then
  2201. rng.Color = Color3.new(r/255,g/255,b/255)
  2202. end
  2203. if type == "Add" then
  2204. scaler2 = scaler2 - 0.01*value/bonuspeed
  2205. elseif type == "Divide" then
  2206. scaler2 = scaler2 - 0.01/value*bonuspeed
  2207. end
  2208. if chaosmode == true then
  2209. rng.BrickColor = BrickColor.random()
  2210. end
  2211. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  2212. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2213. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2214. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2215. end
  2216. rng:Destroy()
  2217. end))
  2218. end
  2219.  
  2220. function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2221. local type = type
  2222. local rng = Instance.new("Part", char)
  2223. rng.Anchored = true
  2224. rng.BrickColor = color
  2225. rng.CanCollide = false
  2226. rng.FormFactor = 3
  2227. rng.Name = "Ring"
  2228. rng.Material = "Neon"
  2229. rng.Size = Vector3.new(1, 1, 1)
  2230. rng.Transparency = 0
  2231. rng.TopSurface = 0
  2232. rng.BottomSurface = 0
  2233. rng.CFrame = pos
  2234. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2235. local rngm = Instance.new("SpecialMesh", rng)
  2236. rngm.MeshType = "Brick"
  2237. rngm.Scale = vt(x1,y1,z1)
  2238. if rainbowmode == true then
  2239. rng.Color = Color3.new(r/255,g/255,b/255)
  2240. end
  2241. local scaler2 = 0
  2242. local speeder = FastSpeed/10
  2243. if type == "Add" then
  2244. scaler2 = 1*value
  2245. elseif type == "Divide" then
  2246. scaler2 = 1/value
  2247. end
  2248. coroutine.resume(coroutine.create(function()
  2249. for i = 0,10/bonuspeed,0.1 do
  2250. swait()
  2251. if rainbowmode == true then
  2252. rng.Color = Color3.new(r/255,g/255,b/255)
  2253. end
  2254. if type == "Add" then
  2255. scaler2 = scaler2 - 0.01*value/bonuspeed
  2256. elseif type == "Divide" then
  2257. scaler2 = scaler2 - 0.01/value*bonuspeed
  2258. end
  2259. if chaosmode == true then
  2260. rng.BrickColor = BrickColor.random()
  2261. end
  2262. speeder = speeder + 0.01*FastSpeed*bonuspeed/10
  2263. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2264. --rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2265. rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
  2266. end
  2267. rng:Destroy()
  2268. end))
  2269. end
  2270.  
  2271. function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2272. local type = type
  2273. local rng = Instance.new("Part", char)
  2274. rng.Anchored = true
  2275. if ModeOfGlitch ~= 9 then
  2276. rng.BrickColor = color
  2277. elseif ModeOfGlitch == 9 then
  2278. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2279. end
  2280. rng.CanCollide = false
  2281. rng.FormFactor = 3
  2282. rng.Name = "Ring"
  2283. rng.Material = "Neon"
  2284. rng.Size = Vector3.new(1, 1, 1)
  2285. rng.Transparency = 0
  2286. rng.TopSurface = 0
  2287. rng.BottomSurface = 0
  2288. rng.CFrame = pos
  2289. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2290. local rngm = Instance.new("SpecialMesh", rng)
  2291. rngm.MeshType = "Sphere"
  2292. rngm.Scale = vt(x1,y1,z1)
  2293. if rainbowmode == true then
  2294. rng.Color = Color3.new(r/255,g/255,b/255)
  2295. end
  2296. if ModeOfGlitch == 9 then
  2297. coroutine.resume(coroutine.create(function()
  2298. while true do
  2299. swait()
  2300. if rng.Parent ~= nil then
  2301. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2302. else
  2303. break
  2304. end
  2305. end
  2306. end))
  2307. end
  2308. local scaler2 = 1
  2309. local speeder = FastSpeed
  2310. if type == "Add" then
  2311. scaler2 = 1*value
  2312. elseif type == "Divide" then
  2313. scaler2 = 1/value
  2314. end
  2315. coroutine.resume(coroutine.create(function()
  2316. for i = 0,10/bonuspeed,0.1 do
  2317. swait()
  2318. if rainbowmode == true then
  2319. rng.Color = Color3.new(r/255,g/255,b/255)
  2320. end
  2321. if type == "Add" then
  2322. scaler2 = scaler2 - 0.01*value/bonuspeed
  2323. elseif type == "Divide" then
  2324. scaler2 = scaler2 - 0.01/value*bonuspeed
  2325. end
  2326. if chaosmode == true then
  2327. rng.BrickColor = BrickColor.random()
  2328. end
  2329. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2330. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2331. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  2332. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2333. end
  2334. rng:Destroy()
  2335. end))
  2336. end
  2337.  
  2338.  
  2339. function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
  2340. local type = type
  2341. local rng = Instance.new("Part", char)
  2342. rng.Anchored = true
  2343. if ModeOfGlitch ~= 9 then
  2344. rng.BrickColor = color
  2345. elseif ModeOfGlitch == 9 then
  2346. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2347. end
  2348. rng.CanCollide = false
  2349. rng.FormFactor = 3
  2350. rng.Name = "Ring"
  2351. rng.Material = "Neon"
  2352. rng.Size = Vector3.new(1, 1, 1)
  2353. rng.Transparency = 1
  2354. rng.TopSurface = 0
  2355. rng.BottomSurface = 0
  2356. rng.CFrame = pos
  2357. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  2358. local rngm = Instance.new("SpecialMesh", rng)
  2359. rngm.MeshType = "Sphere"
  2360. rngm.Scale = vt(x1,y1,z1)
  2361. if rainbowmode == true then
  2362. rng.Color = Color3.new(r/255,g/255,b/255)
  2363. end
  2364. if ModeOfGlitch == 9 then
  2365. coroutine.resume(coroutine.create(function()
  2366. while true do
  2367. swait()
  2368. if rng.Parent ~= nil then
  2369. rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  2370. else
  2371. break
  2372. end
  2373. end
  2374. end))
  2375. end
  2376. local scaler2 = 1
  2377. local speeder = FastSpeed
  2378. if type == "Add" then
  2379. scaler2 = 1*value
  2380. elseif type == "Divide" then
  2381. scaler2 = 1/value
  2382. end
  2383. coroutine.resume(coroutine.create(function()
  2384. for i = 0,10/bonuspeed,0.1 do
  2385. swait()
  2386. if rainbowmode == true then
  2387. rng.Color = Color3.new(r/255,g/255,b/255)
  2388. end
  2389. if type == "Add" then
  2390. scaler2 = scaler2 - 0.01*value/bonuspeed
  2391. elseif type == "Divide" then
  2392. scaler2 = scaler2 - 0.01/value*bonuspeed
  2393. end
  2394. if chaosmode == true then
  2395. rng.BrickColor = BrickColor.random()
  2396. end
  2397. speeder = speeder - 0.01*FastSpeed*bonuspeed
  2398. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  2399. rng.Transparency = rng.Transparency - 0.01*bonuspeed
  2400. rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
  2401. end
  2402. rng:Destroy()
  2403. end))
  2404. end
  2405.  
  2406. function dmg(dude)
  2407. if dude.Name ~= Character then
  2408. local keptcolor = MAINRUINCOLOR
  2409. local bgf = Instance.new("BodyGyro",dude.Head)
  2410. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0)
  2411. --[[local val = Instance.new("BoolValue",dude)
  2412. val.Name = "IsHit"]]--
  2413. local ds = coroutine.wrap(function()
  2414. dude:WaitForChild("Head"):BreakJoints()
  2415. for i, v in pairs(dude:GetChildren()) do
  2416. if v:IsA("Part") or v:IsA("MeshPart") then
  2417. v.Name = "DEMINISHED"
  2418. end
  2419. end
  2420. wait(0.5)
  2421. targetted = nil
  2422. CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
  2423. coroutine.resume(coroutine.create(function()
  2424. for i, v in pairs(dude:GetChildren()) do
  2425. if v:IsA("Accessory") then
  2426. v:Destroy()
  2427. end
  2428. if v:IsA("Humanoid") then
  2429. v:Destroy()
  2430. end
  2431. if v:IsA("CharacterMesh") then
  2432. v:Destroy()
  2433. end
  2434. if v:IsA("Model") then
  2435. v:Destroy()
  2436. end
  2437. if v:IsA("Part") or v:IsA("MeshPart") then
  2438. for x, o in pairs(v:GetChildren()) do
  2439. if o:IsA("Decal") then
  2440. o:Destroy()
  2441. end
  2442. end
  2443. coroutine.resume(coroutine.create(function()
  2444. v.Material = "Neon"
  2445. v.CanCollide = false
  2446. v.Anchored = false
  2447. local bld = Instance.new("ParticleEmitter",v)
  2448. bld.LightEmission = 0.75
  2449. bld.Texture = "rbxassetid://363275192" ---284205403
  2450. bld.Color = ColorSequence.new(keptcolor.Color)
  2451. bld.Rate = 500
  2452. bld.Lifetime = NumberRange.new(1)
  2453. bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
  2454. bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  2455. bld.Speed = NumberRange.new(2,5)
  2456. bld.VelocitySpread = 50000
  2457. bld.Rotation = NumberRange.new(-500,500)
  2458. bld.RotSpeed = NumberRange.new(-500,500)
  2459. local sbs = Instance.new("BodyPosition", v)
  2460. sbs.P = 3000
  2461. sbs.D = 1000
  2462. sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2463. sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2))
  2464. v.Color = keptcolor.Color
  2465. coroutine.resume(coroutine.create(function()
  2466. for i = 0, 49 do
  2467. swait(1)
  2468. v:BreakJoints()
  2469. v.Transparency = v.Transparency + 0.02
  2470. end
  2471. v:BreakJoints()
  2472. sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor)
  2473. CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
  2474. bld.Speed = NumberRange.new(10,25)
  2475. bld.Drag = 5
  2476. bld.Acceleration = vt(0,2,0)
  2477. wait(0.5)
  2478. bld.Enabled = false
  2479. wait(8)
  2480. v:Destroy()
  2481. dude:Destroy()
  2482. end))
  2483. end))
  2484. end
  2485. end
  2486. end))
  2487. end)
  2488. ds()
  2489. end
  2490. end
  2491.  
  2492.  
  2493. function FindNearestHead(Position, Distance, SinglePlayer)
  2494. if SinglePlayer then
  2495. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  2496. end
  2497. local List = {}
  2498. for i, v in pairs(workspace:GetChildren()) do
  2499. if v:IsA("Model") then
  2500. if v:findFirstChild("Head") then
  2501. if v ~= Character then
  2502. if (v.Head.Position - Position).magnitude <= Distance then
  2503. table.insert(List, v)
  2504. end
  2505. end
  2506. end
  2507. end
  2508. end
  2509. return List
  2510. end
  2511.  
  2512. function FaceMouse()
  2513. Cam = workspace.CurrentCamera
  2514. return {
  2515. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2516. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2517. }
  2518. end
  2519.  
  2520. function FaceMouse2()
  2521. Cam = workspace.CurrentCamera
  2522. return {
  2523. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
  2524. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2525. }
  2526. end
  2527.  
  2528. -- Functions are ready.
  2529. local storehumanoidWS = 16
  2530.  
  2531. function resetmode()
  2532. ModeOfGlitch = 1
  2533. storehumanoidWS = 16
  2534. hum.WalkSpeed = 16
  2535. rainbowmode = false
  2536. chaosmode = false
  2537. RecolorTextAndRename("Mayhem",Color3.new(255,1,1),Color3.new(196,0,0),"Code")
  2538. newTheme("rbxassetid://614032233",0,1.01,1.25)
  2539. MAINRUINCOLOR = BrickColor.new("Really red")
  2540. for i, v in pairs(mw2:GetChildren()) do
  2541. if v:IsA("Part") then
  2542. v.BrickColor = MAINRUINCOLOR
  2543. v.Material = "Neon"
  2544. end
  2545. end
  2546. refec.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2547. refec2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2548. refec3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2549. tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2550. tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2551. tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2552. tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2553. tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2554. tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2555. for i, v in pairs(mw1:GetChildren()) do
  2556. if v:IsA("Part") then
  2557. v.Transparency = 0
  2558. v.BrickColor = MAINRUINCOLOR
  2559. v.Material = "Neon"
  2560. end
  2561. end
  2562. for i, v in pairs(m:GetChildren()) do
  2563. if v:IsA("Part") then
  2564. v.BrickColor = BrickColor.new("White")
  2565. v.Material = "Ice"
  2566. end
  2567. end
  2568. for i, v in pairs(m2:GetChildren()) do
  2569. if v:IsA("Part") then
  2570. v.BrickColor = BrickColor.new("White")
  2571. v.Material = "Ice"
  2572. end
  2573. end
  2574. for i, v in pairs(m3:GetChildren()) do
  2575. if v:IsA("Part") then
  2576. v.BrickColor = BrickColor.new("White")
  2577. v.Material = "Neon"
  2578. end
  2579. end
  2580. for i, v in pairs(extrawingmod1:GetChildren()) do
  2581. if v:IsA("Part") then
  2582. v.Transparency = 1
  2583. v.BrickColor = BrickColor.new("White")
  2584. v.Material = "Neon"
  2585. end
  2586. end
  2587. for i, v in pairs(extrawingmod2:GetChildren()) do
  2588. if v:IsA("Part") then
  2589. v.Transparency = 1
  2590. v.BrickColor = BrickColor.new("White")
  2591. v.Material = "Neon"
  2592. end
  2593. end
  2594. end
  2595.  
  2596. function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo)
  2597. for i, v in pairs(mw2:GetChildren()) do
  2598. if v:IsA("Part") then
  2599. v.BrickColor = one
  2600. v.Material = "Neon"
  2601. end
  2602. end
  2603. refec.Color = ColorSequence.new(one.Color)
  2604. refec2.Color = ColorSequence.new(one.Color)
  2605. refec3.Color = ColorSequence.new(one.Color)
  2606. tr1.Color = ColorSequence.new(one.Color)
  2607. tr2.Color = ColorSequence.new(one.Color)
  2608. tr3.Color = ColorSequence.new(one.Color)
  2609. for i, v in pairs(mw1:GetChildren()) do
  2610. if v:IsA("Part") then
  2611. v.Transparency = 0
  2612. v.BrickColor = two
  2613. v.Material = "Neon"
  2614. end
  2615. end
  2616. tl1.Color = ColorSequence.new(two.Color)
  2617. tl2.Color = ColorSequence.new(two.Color)
  2618. tl3.Color = ColorSequence.new(two.Color)
  2619. for i, v in pairs(m:GetChildren()) do
  2620. if v:IsA("Part") then
  2621. v.BrickColor = three
  2622. v.Material = "Ice"
  2623. end
  2624. end
  2625. for i, v in pairs(m2:GetChildren()) do
  2626. if v:IsA("Part") then
  2627. v.BrickColor = four
  2628. v.Material = "Ice"
  2629. end
  2630. end
  2631. for i, v in pairs(m3:GetChildren()) do
  2632. if v:IsA("Part") then
  2633. v.BrickColor = five
  2634. v.Material = "Neon"
  2635. end
  2636. end
  2637. for i, v in pairs(extrawingmod1:GetChildren()) do
  2638. if v:IsA("Part") then
  2639. v.Transparency = exonetran
  2640. v.BrickColor = exone
  2641. v.Material = "Neon"
  2642. end
  2643. end
  2644. for i, v in pairs(extrawingmod2:GetChildren()) do
  2645. if v:IsA("Part") then
  2646. v.Transparency = extwotran
  2647. v.BrickColor = extwo
  2648. v.Material = "Neon"
  2649. end
  2650. end
  2651. end
  2652.  
  2653. function attackone()
  2654. attack = true
  2655. local keptcolor = MAINRUINCOLOR
  2656. for i = 0,1,0.1 do
  2657. swait()
  2658. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3)
  2659. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3)
  2660. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3)
  2661. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
  2662. 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(-15),math.rad(0),math.rad(0)),.3)
  2663. 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(0),math.rad(0)),.3)
  2664. end
  2665. local distlook = 5
  2666. coroutine.resume(coroutine.create(function()
  2667. for i = 0, 4 do
  2668. swait(2)
  2669. CameraEnshaking(2,3)
  2670. local hite = Instance.new("Part", char)
  2671. hite.Anchored = true
  2672. hite.CanCollide = false
  2673. hite.FormFactor = 3
  2674. hite.Name = "Ring"
  2675. hite.Material = "Neon"
  2676. hite.Size = Vector3.new(1, 1, 1)
  2677. hite.Transparency = 1
  2678. hite.TopSurface = 0
  2679. hite.BottomSurface = 0
  2680. hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook)
  2681. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0,1,0),0.2,0.001,0.2,keptcolor)
  2682. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(8,1,8),-0.045,0.15,-0.045,keptcolor)
  2683. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(4,1,4),-0.025,0.25,-0.025,keptcolor)
  2684. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(2,1,2),-0.015,0.35,-0.015,keptcolor)
  2685. MagniDamage(hite, 9, 10,25, 0, "Normal")
  2686. for i = 0, 14 do
  2687. local rsiz = math.random(5,20)
  2688. sphereMK(math.random(1,3),0.25,"Add",hite.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  2689. end
  2690. CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
  2691. CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
  2692. game:GetService("Debris"):AddItem(hite, 5)
  2693. distlook = distlook + 10
  2694. end
  2695. end))
  2696. for i = 0,1,0.1 do
  2697. swait()
  2698. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5)
  2699. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5)
  2700. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5)
  2701. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5)
  2702. 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(-10)),.5)
  2703. 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(0),math.rad(-10)),.5)
  2704. end
  2705. attack = false
  2706. end
  2707.  
  2708. function attacktwo()
  2709. attack = true
  2710. for i = 0,1,0.1 do
  2711. swait()
  2712. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3)
  2713. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  2714. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3)
  2715. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3)
  2716. 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(-1.5),math.rad(0),math.rad(10)),.3)
  2717. 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(0),math.rad(-10)),.3)
  2718. end
  2719. CameraEnshaking(3,4)
  2720. MagniDamage(root, 12, 15,30, 0, "Normal")
  2721. sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
  2722. sphere2(7.5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
  2723. sphere2(10,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR)
  2724. coroutine.resume(coroutine.create(function()
  2725. local eff = Instance.new("ParticleEmitter",root)
  2726. eff.Texture = "rbxassetid://363275192"
  2727. eff.LightEmission = 0.95
  2728. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  2729. eff.Rate = 10000
  2730. eff.Lifetime = NumberRange.new(1)
  2731. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  2732. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  2733. eff.Speed = NumberRange.new(10,125)
  2734. eff.Drag = 5
  2735. eff.Rotation = NumberRange.new(-500,500)
  2736. eff.VelocitySpread = 9000
  2737. eff.RotSpeed = NumberRange.new(-50,50)
  2738. local eff2 = eff:Clone()
  2739. eff2.Parent = root
  2740. eff2.Texture = "rbxassetid://284205403"
  2741. eff2.Rate = 10000
  2742. eff2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  2743. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  2744. eff2.Drag = 5
  2745. eff2.Speed = NumberRange.new(10,50)
  2746. eff2.Rotation = NumberRange.new(-500,500)
  2747. eff2.VelocitySpread = 9000
  2748. wait(0.25)
  2749. eff2.Enabled = false
  2750. eff.Enabled = false
  2751. wait(3)
  2752. eff2:Destroy()
  2753. eff:Destroy()
  2754. end))
  2755. for i = 0, 9 do
  2756. sphere2(7.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.0025,1,-0.0025,MAINRUINCOLOR)
  2757. end
  2758. for i = 0, 24 do
  2759. local rsiz = math.random(5,20)
  2760. sphereMK(math.random(1,5),0.75,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/8,rsiz/8,rsiz/8,0,MAINRUINCOLOR,0)
  2761. end
  2762. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
  2763. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
  2764. CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
  2765. for i = 0,2,0.1 do
  2766. swait()
  2767. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  2768. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  2769. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3)
  2770. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3)
  2771. 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(-1.5),math.rad(0),math.rad(-10)),.3)
  2772. 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(0),math.rad(10)),.3)
  2773. end
  2774. attack = false
  2775. end
  2776.  
  2777. function attackthree()
  2778. attack = true
  2779. local keptcolor = MAINRUINCOLOR
  2780. CFuncs["Sound"].Create("rbxassetid://1042700914", root, 2, 1.75)
  2781. for i = 0,1,0.1 do
  2782. swait()
  2783. sphere2(6,"Add",root.CFrame + root.CFrame.lookVector*2.5,vt(3,3,3),0.01,0.01,0.01,MAINRUINCOLOR)
  2784. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.5)
  2785. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.5)
  2786. RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(-40)), 0.5)
  2787. LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(40)), 0.5)
  2788. 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(-1.5),math.rad(0),math.rad(0)),.5)
  2789. 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(0),math.rad(0)),.5)
  2790. end
  2791. CFuncs["Sound"].Create("rbxassetid://1042705869", root, 1.5, 0.9)
  2792. CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 0.9)
  2793. local angle = -25
  2794. coroutine.resume(coroutine.create(function()
  2795. for i = 0, 2 do
  2796. local orb = Instance.new("Part", char)
  2797. orb.BrickColor = MAINRUINCOLOR
  2798. orb.CanCollide = false
  2799. orb.FormFactor = 3
  2800. orb.Name = "Ring"
  2801. orb.Material = "Neon"
  2802. orb.Size = Vector3.new(1, 1, 1)
  2803. orb.Transparency = 0.5
  2804. orb.TopSurface = 0
  2805. orb.BottomSurface = 0
  2806. local orbm = Instance.new("SpecialMesh", orb)
  2807. orbm.MeshType = "Sphere"
  2808. orbm.Name = "SizeMesh"
  2809. orbm.Scale = vt(3,3,3)
  2810. orb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(angle),0) + root.CFrame.lookVector*2.5
  2811. local bv = Instance.new("BodyVelocity")
  2812. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2813. bv.velocity = orb.CFrame.lookVector*100
  2814. bv.Parent = orb
  2815. game:GetService("Debris"):AddItem(orb, 10)
  2816. sphere2(6,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor)
  2817. sphere2(9,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor)
  2818. coroutine.resume(coroutine.create(function()
  2819. MagniDamage(orb, 6, 8,15, 0, "Normal")
  2820. for i = 0, 7 do
  2821. swait(2.5)
  2822. CameraEnshaking(1,2)
  2823. MagniDamage(orb, 6, 8,15, 0, "Normal")
  2824. CFuncs["Sound"].Create("rbxassetid://1042693018", orb, 1.5, 1.5)
  2825. for i = 0, 4 do
  2826. local rsiz = math.random(5,10)
  2827. sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,1,0.5),-0.0025,0.25,-0.0025,keptcolor)
  2828. sphereMK(math.random(2,6),0.15,"Add",orb.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  2829. end
  2830. sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor)
  2831. sphere2(8,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor)
  2832. end
  2833. orb.Transparency = 1
  2834. orb.Anchored = false
  2835. wait(10)
  2836. orb:Destroy()
  2837. end))
  2838. angle = angle + 25
  2839. end
  2840. end))
  2841. for i = 0,1,0.1 do
  2842. swait()
  2843. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3)
  2844. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  2845. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.3)
  2846. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-60)), 0.3)
  2847. 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(-1.5),math.rad(0),math.rad(-10)),.3)
  2848. 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(0),math.rad(10)),.3)
  2849. end
  2850. attack = false
  2851. end
  2852.  
  2853. ------------------------------------- Abilities ---------------------------------------------------------
  2854. function Fireball()
  2855. attack = true
  2856. hum.WalkSpeed = 0
  2857. local keptcolor = MAINRUINCOLOR
  2858. for i = 0,2,0.1 do
  2859. swait()
  2860. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.3)
  2861. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-40)),.3)
  2862. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(6), math.rad(-20), math.rad(12)), 0.3)
  2863. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(40), math.rad(-40)), 0.3)
  2864. 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(-1.5),math.rad(0),math.rad(0)),.3)
  2865. 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(-1),math.rad(0),math.rad(0)),.3)
  2866. end
  2867. local orb = Instance.new("Part", char)
  2868. orb.BrickColor = keptcolor
  2869. orb.CanCollide = false
  2870. orb.FormFactor = 3
  2871. orb.Name = "Ring"
  2872. orb.Material = "Neon"
  2873. orb.Size = Vector3.new(1, 1, 1)
  2874. orb.Transparency = 0
  2875. orb.TopSurface = 0
  2876. orb.BottomSurface = 0
  2877. local orbm = Instance.new("SpecialMesh", orb)
  2878. orbm.MeshType = "Sphere"
  2879. orbm.Name = "SizeMesh"
  2880. orbm.Scale = vt(4,4,4)
  2881. orb.CFrame = root.CFrame + root.CFrame.lookVector*3
  2882. local eff = Instance.new("ParticleEmitter",orb)
  2883. eff.Texture = "rbxassetid://296874871"
  2884. eff.LightEmission = 0.95
  2885. eff.Color = ColorSequence.new(orb.BrickColor.Color)
  2886. eff.Rate = 10000
  2887. eff.Lifetime = NumberRange.new(1.5)
  2888. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,7,0),NumberSequenceKeypoint.new(0.1,5,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  2889. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  2890. eff.Speed = NumberRange.new(25)
  2891. eff.Drag = 5
  2892. eff.Rotation = NumberRange.new(-500,500)
  2893. eff.VelocitySpread = 9000
  2894. eff.RotSpeed = NumberRange.new(-500,500)
  2895. local a = Instance.new("Part",workspace)
  2896. a.Name = "Direction"
  2897. a.Anchored = true
  2898. a.BrickColor = bc("Bright red")
  2899. a.Material = "Neon"
  2900. a.Transparency = 1
  2901. a.CanCollide = false
  2902. local ray = Ray.new(
  2903. orb.CFrame.p, -- origin
  2904. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  2905. )
  2906. local ignore = orb
  2907. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  2908. a.BottomSurface = 10
  2909. a.TopSurface = 10
  2910. local distance = (orb.CFrame.p - position).magnitude
  2911. a.Size = Vector3.new(0.1, 0.1, 0.1)
  2912. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  2913. orb.CFrame = a.CFrame
  2914. a:Destroy()
  2915. CFuncs["Sound"].Create("rbxassetid://304448425", orb, 1.5, 0.9)
  2916. local bv = Instance.new("BodyVelocity")
  2917. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  2918. bv.velocity = orb.CFrame.lookVector*75
  2919. bv.Parent = orb
  2920. game:GetService("Debris"):AddItem(orb, 10)
  2921. local hitted = false
  2922. coroutine.resume(coroutine.create(function()
  2923. while true do
  2924. swait()
  2925. if orb.Parent ~= nil and hitted == false then
  2926. sphere2(4,"Add",orb.CFrame*CFrame.new(math.random(-1,1),math.random(-1,1),0) - orb.CFrame.lookVector*1.5,vt(3,3,3),-0.03,-0.03,-0.03,keptcolor)
  2927. elseif orb.Parent == nil and hitted == true then
  2928. break
  2929. end
  2930. end
  2931. end))
  2932. local hit =orb.Touched:connect(function(hit)
  2933. if hitted == false and hit.Parent ~= char then
  2934. hitted = true
  2935. eff.Enabled = false
  2936. CameraEnshaking(4,4)
  2937. CFuncs["Sound"].Create("rbxassetid://1226980789", orb, 4.5, 0.7)
  2938. CFuncs["Sound"].Create("rbxassetid://178452221", orb, 2.5, 0.4)
  2939. MagniDamage(orb, 25, 20,30, 0, "Normal")
  2940. sphere2(4,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor)
  2941. sphere2(3,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor)
  2942. sphere2(2,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor)
  2943. for i = 0, 9 do
  2944. sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1.5,1,1.5),-0.005,4,-0.005,keptcolor)
  2945. end
  2946. for i = 0, 49 do
  2947. local rsiz = math.random(10,30)
  2948. sphereMK(math.random(1,3),1,"Add",orb.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  2949. end
  2950. local eff = Instance.new("ParticleEmitter",orb)
  2951. eff.Texture = "rbxassetid://296874871"
  2952. eff.LightEmission = 0.95
  2953. eff.Color = ColorSequence.new(orb.BrickColor.Color)
  2954. eff.Rate = 10000
  2955. eff.Lifetime = NumberRange.new(1.5)
  2956. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  2957. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  2958. eff.Speed = NumberRange.new(150)
  2959. eff.Drag = 5
  2960. eff.Rotation = NumberRange.new(-500,500)
  2961. eff.VelocitySpread = 9000
  2962. eff.RotSpeed = NumberRange.new(-500,500)
  2963. coroutine.resume(coroutine.create(function()
  2964. wait(0.25)
  2965. eff.Enabled = false
  2966. end))
  2967. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  2968. orb.Anchored = true
  2969. orb.Transparency = 1
  2970. coroutine.resume(coroutine.create(function()
  2971. if hfr ~= nil then
  2972. orb.Size = vt(50,1,50)
  2973. orb.Orientation = vt(0,0,0)
  2974. orb.CFrame = orb.CFrame*CFrame.new(0,-5,0)
  2975. orbm:Destroy()
  2976. local firef = eff:Clone()
  2977. firef.Parent = orb
  2978. firef.VelocitySpread = 50
  2979. firef.Rate = 500
  2980. firef.Drag = 3
  2981. firef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.2,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  2982. firef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,3,0),NumberSequenceKeypoint.new(0.1,5,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
  2983. firef.Speed = NumberRange.new(10,30)
  2984. for i = 0, 24 do
  2985. wait(0.25)
  2986. MagniDamage(orb, 25, 3,6, 0, "Normal")
  2987. end
  2988. firef.Enabled = false
  2989. end
  2990. end))
  2991. wait(10)
  2992. orb:Destroy()
  2993. end
  2994. end)
  2995. for i = 0,1,0.1 do
  2996. swait()
  2997. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.5)
  2998. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  2999. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(6), math.rad(-20), math.rad(12)), 0.5)
  3000. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.5)
  3001. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.5)
  3002. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.5)
  3003. end
  3004. hum.WalkSpeed = storehumanoidWS
  3005. attack = false
  3006. end
  3007.  
  3008. function BeamOfDeath()
  3009. attack = true
  3010. hum.WalkSpeed = 0
  3011. local keptcolor = MAINRUINCOLOR
  3012. local orb = Instance.new("Part", char)
  3013. orb.BrickColor = keptcolor
  3014. orb.CanCollide = false
  3015. orb.FormFactor = 3
  3016. orb.Name = "Ring"
  3017. orb.Material = "Neon"
  3018. orb.Size = Vector3.new(1, 1, 1)
  3019. orb.Transparency = 1
  3020. orb.TopSurface = 0
  3021. orb.BottomSurface = 0
  3022. local orbm = Instance.new("SpecialMesh", orb)
  3023. orbm.MeshType = "Sphere"
  3024. orbm.Name = "SizeMesh"
  3025. orbm.Scale = vt(22.5,10000,22.5)
  3026. orb.CFrame = mouse.Hit
  3027. orb.Anchored = true
  3028. orb.Orientation = vt(0,0,0)
  3029. orb.CFrame = orb.CFrame*CFrame.new(0,1,0)
  3030. CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 1.5, 1)
  3031. coroutine.resume(coroutine.create(function()
  3032. coroutine.resume(coroutine.create(function()
  3033. for i = 0, 399 do
  3034. swait()
  3035. orbm.Scale = orbm.Scale - vt(0.05,0,0.05)
  3036. orb.Transparency = orb.Transparency - 0.0025
  3037. end
  3038. end))
  3039. wait(9)
  3040. coroutine.resume(coroutine.create(function()
  3041. local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char)
  3042. if hfr ~= nil then
  3043. for i = 0, 49 do
  3044. local deb = Instance.new("Part", char)
  3045. deb.Anchored = true
  3046. deb.CanCollide = false
  3047. deb.FormFactor = 3
  3048. deb.Name = "Ring"
  3049. deb.Material = hitfloor.Material
  3050. deb.Color = hitfloor.Color
  3051. deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55))
  3052. deb.Transparency = 0
  3053. deb.TopSurface = 0
  3054. deb.BottomSurface = 0
  3055. deb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),-5,math.random(-150,150))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3056. local deb2 = Instance.new("Part", char)
  3057. deb2.CanCollide = false
  3058. deb2.FormFactor = 3
  3059. deb2.Name = "Ring"
  3060. deb2.Material = hitfloor.Material
  3061. deb2.Color = hitfloor.Color
  3062. deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38))
  3063. deb2.Transparency = 0
  3064. deb2.TopSurface = 0
  3065. deb2.BottomSurface = 0
  3066. deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150))
  3067. deb2.CFrame = orb.CFrame*CFrame.new(math.random(-60,60),-5,math.random(-60,60))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  3068. local eff = Instance.new("ParticleEmitter",deb)
  3069. eff.Texture = "rbxassetid://363275192"
  3070. eff.LightEmission = 0.95
  3071. eff.Color = ColorSequence.new(keptcolor.Color)
  3072. eff.Rate = 100
  3073. eff.Lifetime = NumberRange.new(1)
  3074. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
  3075. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3076. eff.Speed = NumberRange.new(0,5)
  3077. eff.Rotation = NumberRange.new(-500,500)
  3078. eff.VelocitySpread = 9000
  3079. eff.RotSpeed = NumberRange.new(-10,10)
  3080. local at1 = Instance.new('Attachment',deb2)
  3081. at1.Position = vt(0,15,0)
  3082. local at2 = Instance.new('Attachment',deb2)
  3083. at2.Position = vt(0,-15,0)
  3084. local tl = Instance.new('Trail',deb2)
  3085. tl.Attachment0 = at1
  3086. tl.Attachment1 = at2
  3087. tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
  3088. tl.Color = ColorSequence.new(BrickColor.new('White').Color)
  3089. tl.Lifetime = 1
  3090. game:GetService("Debris"):AddItem(deb,30)
  3091. game:GetService("Debris"):AddItem(deb2,30)
  3092. coroutine.resume(coroutine.create(function()
  3093. wait(15)
  3094. eff.Enabled = false
  3095. for i = 0, 49 do
  3096. swait()
  3097. deb.Transparency = deb.Transparency + 0.02
  3098. end
  3099. wait(1)
  3100. deb:Destroy()
  3101. end))
  3102. end
  3103. end
  3104. end))
  3105. for i = 0, 199 do
  3106. swait(1.5)
  3107. for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do
  3108. if v:FindFirstChild('Head') then
  3109. dmg(v)
  3110. end
  3111. end
  3112. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),5,5,5,keptcolor)
  3113. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),1,35,1,keptcolor)
  3114. sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),0,50,0,keptcolor)
  3115. sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor)
  3116. end
  3117. orb:Destroy()
  3118. end))
  3119. hum.WalkSpeed = storehumanoidWS
  3120. attack = false
  3121. end
  3122.  
  3123.  
  3124. function Beams()
  3125. attack = true
  3126. hum.WalkSpeed = 0
  3127. local keptcolor = MAINRUINCOLOR
  3128. coroutine.resume(coroutine.create(function()
  3129. for i = 0, 24 do
  3130. swait(5)
  3131. local orb = Instance.new("Part", char)
  3132. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  3133. orb.BrickColor = keptcolor
  3134. orb.CanCollide = false
  3135. orb.FormFactor = 3
  3136. orb.Name = "Ring"
  3137. orb.Material = "Neon"
  3138. orb.Size = Vector3.new(1, 1, 1)
  3139. orb.Transparency = 0
  3140. orb.TopSurface = 0
  3141. orb.BottomSurface = 0
  3142. orb.Anchored = true
  3143. local orbm = Instance.new("SpecialMesh", orb)
  3144. orbm.MeshType = "Sphere"
  3145. orbm.Name = "SizeMesh"
  3146. orbm.Scale = vt(1.25,1.25,1.25)
  3147. orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6))
  3148. sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  3149. coroutine.resume(coroutine.create(function()
  3150. wait(0.5)
  3151. CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1)
  3152. sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  3153. sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor)
  3154. orb.Transparency = 1
  3155. local a = Instance.new("Part",char)
  3156. a.Name = "Direction"
  3157. a.Anchored = true
  3158. a.BrickColor = keptcolor
  3159. a.Material = "Neon"
  3160. a.Transparency = 0.25
  3161. a.Shape = "Cylinder"
  3162. local ht = Instance.new("Part",char)
  3163. ht.Name = "DirectionHit"
  3164. ht.Anchored = true
  3165. ht.BrickColor = keptcolor
  3166. ht.CanCollide = false
  3167. ht.Transparency = 1
  3168. ht.Size = vt(0.1,0.1,0.1)
  3169. CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.2)
  3170. a.CanCollide = false
  3171. local ray = Ray.new(
  3172. orb.CFrame.p, -- origin
  3173. (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction
  3174. )
  3175. local ignore = char
  3176. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3177. a.BottomSurface = 10
  3178. a.TopSurface = 10
  3179. local distance = (orb.CFrame.p - position).magnitude
  3180. a.Size = Vector3.new(distance,1,1)
  3181. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3182. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3183. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  3184. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor)
  3185. MagniDamage(ht, 9, 10,15, 0, "Normal")
  3186. coroutine.resume(coroutine.create(function()
  3187. local eff = Instance.new("ParticleEmitter",ht)
  3188. eff.Texture = "rbxassetid://284205403"
  3189. eff.LightEmission = 0.95
  3190. eff.Color = ColorSequence.new(keptcolor.Color)
  3191. eff.Rate = 500
  3192. eff.Lifetime = NumberRange.new(0.5)
  3193. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
  3194. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3195. eff.Speed = NumberRange.new(10,50)
  3196. eff.Drag = 5
  3197. eff.Rotation = NumberRange.new(-500,500)
  3198. eff.VelocitySpread = 9000
  3199. eff.RotSpeed = NumberRange.new(-500,500)
  3200. wait(0.25)
  3201. eff.Enabled = false
  3202. end))
  3203. for i = 0, 4 do
  3204. sphere2(8,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.005,0.125,-0.005,keptcolor)
  3205. sphere2(4,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.01,0.5,-0.01,keptcolor)
  3206. local rsiz = math.random(10,30)
  3207. sphereMK(math.random(2,4),0.25,"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  3208. end
  3209. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  3210. local msh = Instance.new("SpecialMesh",a)
  3211. msh.MeshType = "Cylinder"
  3212. msh.Scale = vt(1,1,1)
  3213. for i = 0, 49 do
  3214. swait()
  3215. msh.Scale = msh.Scale + vt(0,0.01,0.01)
  3216. a.Transparency = a.Transparency + 0.02
  3217. end
  3218. orb:Destroy()
  3219. a:Destroy()
  3220. ht:Destroy()
  3221. end))
  3222. game:GetService("Debris"):AddItem(orb, 10)
  3223. end
  3224. end))
  3225. for i = 0,12,0.1 do
  3226. swait()
  3227. sphere2(7,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,keptcolor)
  3228. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.3)
  3229. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3)
  3230. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3)
  3231. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3)
  3232. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(0)),.3)
  3233. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.3)
  3234. end
  3235. hum.WalkSpeed = storehumanoidWS
  3236. attack = false
  3237. end
  3238.  
  3239. function smiter()
  3240. local targetted = nil
  3241. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3242. targetted = mouse.Target.Parent
  3243. end
  3244. if targetted ~= nil then
  3245. RootPart.CFrame = FaceMouse()[1]
  3246. attack = true
  3247. hum.WalkSpeed = 0
  3248. coroutine.resume(coroutine.create(function()
  3249. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  3250. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  3251. local vel = Instance.new("BodyPosition", targetted.Head)
  3252. vel.P = 12500
  3253. vel.D = 1000
  3254. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  3255. vel.position = targetted.Head.CFrame.p
  3256. end))
  3257. CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2)
  3258. for i = 0,4,0.1 do
  3259. swait()
  3260. sphere2(4,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.125,-0.01,MAINRUINCOLOR)
  3261. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3262. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3263. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3264. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3265. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.2)
  3266. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(20),math.rad(5)),.2)
  3267. end
  3268. coroutine.resume(coroutine.create(function()
  3269. CameraEnshaking(6,5)
  3270. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  3271. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8)
  3272. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8)
  3273. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8)
  3274. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  3275. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  3276. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  3277. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  3278. coroutine.resume(coroutine.create(function()
  3279. local eff = Instance.new("ParticleEmitter",targetted.Head)
  3280. eff.Texture = "rbxassetid://363275192"
  3281. eff.LightEmission = 0.95
  3282. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3283. eff.Rate = 10000
  3284. eff.Lifetime = NumberRange.new(1.5)
  3285. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  3286. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3287. eff.Speed = NumberRange.new(25,150)
  3288. eff.Drag = 5
  3289. eff.Rotation = NumberRange.new(-500,500)
  3290. eff.VelocitySpread = 9000
  3291. eff.RotSpeed = NumberRange.new(-50,50)
  3292. local eff2 = eff:Clone()
  3293. eff2.Parent = targetted.Head
  3294. eff2.Texture = "rbxassetid://284205403"
  3295. eff2.Rate = 10000
  3296. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3297. eff2.Drag = 5
  3298. eff2.Rotation = NumberRange.new(-500,500)
  3299. eff2.VelocitySpread = 9000
  3300. wait(0.5)
  3301. eff2.Enabled = false
  3302. eff.Enabled = false
  3303. end))
  3304. for i = 0, 9 do
  3305. sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,3,-0.02,MAINRUINCOLOR)
  3306. end
  3307. for i = 0, 49 do
  3308. local rsiz = math.random(10,50)
  3309. sphereMK(math.random(1,4),1,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  3310. end
  3311. game:GetService("Debris"):AddItem(vel,1)
  3312. dmg(targetted)
  3313. end))
  3314. for i = 0,1,0.1 do
  3315. swait()
  3316. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5)
  3317. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5)
  3318. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.5)
  3319. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(-50)), 0.5)
  3320. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.5)
  3321. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(20),math.rad(5)),.5)
  3322. end
  3323. attack = false
  3324. hum.WalkSpeed = storehumanoidWS
  3325. end
  3326. end
  3327.  
  3328. function supsmiter()
  3329. local targetted = nil
  3330. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3331. targetted = mouse.Target.Parent
  3332. end
  3333. if targetted ~= nil then
  3334. RootPart.CFrame = FaceMouse()[1]
  3335. attack = true
  3336. hum.WalkSpeed = 0
  3337. coroutine.resume(coroutine.create(function()
  3338. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1)
  3339. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR)
  3340. sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.2,0.2,0.2,MAINRUINCOLOR)
  3341. local vel = Instance.new("BodyPosition", targetted.Head)
  3342. vel.P = 12500
  3343. vel.D = 1000
  3344. vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
  3345. vel.position = targetted.Head.CFrame.p
  3346. end))
  3347. CFuncs["Sound"].Create("rbxassetid://1042700914", sorb2, 2.5, 0.25)
  3348. for i = 0,14,0.1 do
  3349. swait()
  3350. rsiz = math.random(5,15)
  3351. sphereMK(math.random(3,9),0.25,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,-15)
  3352. sphere2(4,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1.5,1.5,1.5),-0.01,0.15,-0.01,MAINRUINCOLOR)
  3353. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3354. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3355. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3356. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3357. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3358. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3359. end
  3360. coroutine.resume(coroutine.create(function()
  3361. CameraEnshaking(6,5)
  3362. MagniDamage(targetted.Head, 18, 18,30, 0, "Normal")
  3363. MagniDamage(targetted.Head, 9, 18000,30000, 0, "Normal")
  3364. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 5.5, 0.8)
  3365. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 5.25, 0.8)
  3366. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 4, 0.8)
  3367. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  3368. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR)
  3369. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  3370. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR)
  3371. coroutine.resume(coroutine.create(function()
  3372. local eff = Instance.new("ParticleEmitter",targetted.Head)
  3373. eff.Texture = "rbxassetid://363275192"
  3374. eff.LightEmission = 0.95
  3375. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3376. eff.Rate = 10000
  3377. eff.Lifetime = NumberRange.new(1.5)
  3378. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
  3379. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3380. eff.Speed = NumberRange.new(25,150)
  3381. eff.Drag = 5
  3382. eff.Rotation = NumberRange.new(-500,500)
  3383. eff.VelocitySpread = 9000
  3384. eff.RotSpeed = NumberRange.new(-50,50)
  3385. local eff2 = eff:Clone()
  3386. eff2.Parent = targetted.Head
  3387. eff2.Texture = "rbxassetid://284205403"
  3388. eff2.Rate = 10000
  3389. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3390. eff2.Drag = 5
  3391. eff2.Rotation = NumberRange.new(-500,500)
  3392. eff2.VelocitySpread = 9000
  3393. wait(0.5)
  3394. eff2.Enabled = false
  3395. eff.Enabled = false
  3396. end))
  3397. for i = 0, 9 do
  3398. sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,3,-0.02,MAINRUINCOLOR)
  3399. end
  3400. for i = 0, 49 do
  3401. local rsiz = math.random(10,50)
  3402. sphereMK(math.random(1,4),1,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  3403. end
  3404. wait(0.75)
  3405. CameraEnshaking(6,6)
  3406. MagniDamage(targetted.Head, 20, 25,40, 0, "Normal")
  3407. MagniDamage(targetted.Head, 12, 18000,30000, 0, "Normal")
  3408. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.7)
  3409. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.7)
  3410. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.7)
  3411. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.5,0,0.5,MAINRUINCOLOR)
  3412. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.5,0,0.5,MAINRUINCOLOR)
  3413. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.75,0.75,0.75,MAINRUINCOLOR)
  3414. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.75,0.75,0.75,MAINRUINCOLOR)
  3415. coroutine.resume(coroutine.create(function()
  3416. local eff = Instance.new("ParticleEmitter",targetted.Head)
  3417. eff.Texture = "rbxassetid://363275192"
  3418. eff.LightEmission = 0.95
  3419. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3420. eff.Rate = 10000
  3421. eff.Lifetime = NumberRange.new(1.5)
  3422. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,35,0),NumberSequenceKeypoint.new(1,0,0)})
  3423. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3424. eff.Speed = NumberRange.new(25,250)
  3425. eff.Drag = 5
  3426. eff.Rotation = NumberRange.new(-500,500)
  3427. eff.VelocitySpread = 9000
  3428. eff.RotSpeed = NumberRange.new(-50,50)
  3429. local eff2 = eff:Clone()
  3430. eff2.Parent = targetted.Head
  3431. eff2.Texture = "rbxassetid://284205403"
  3432. eff2.Rate = 10000
  3433. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3434. eff2.Drag = 5
  3435. eff2.Rotation = NumberRange.new(-500,500)
  3436. eff2.VelocitySpread = 9000
  3437. wait(0.5)
  3438. eff2.Enabled = false
  3439. eff.Enabled = false
  3440. end))
  3441. for i = 0, 9 do
  3442. sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,4.5,-0.02,MAINRUINCOLOR)
  3443. end
  3444. for i = 0, 49 do
  3445. local rsiz = math.random(15,55)
  3446. sphereMK(math.random(1,4),1.5,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  3447. end
  3448. wait(0.75)
  3449. CameraEnshaking(6,7)
  3450. MagniDamage(targetted.Head, 23, 40,80, 0, "Normal")
  3451. MagniDamage(targetted.Head, 15, 18000,30000, 0, "Normal")
  3452. CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 7.5, 0.6)
  3453. CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 7.25, 0.6)
  3454. CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 6, 0.6)
  3455. sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.75,0,0.75,MAINRUINCOLOR)
  3456. sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.75,0,0.75,MAINRUINCOLOR)
  3457. sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),1,1,1,MAINRUINCOLOR)
  3458. sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),1,1,1,MAINRUINCOLOR)
  3459. coroutine.resume(coroutine.create(function()
  3460. local eff = Instance.new("ParticleEmitter",targetted.Head)
  3461. eff.Texture = "rbxassetid://363275192"
  3462. eff.LightEmission = 0.95
  3463. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3464. eff.Rate = 10000
  3465. eff.Lifetime = NumberRange.new(1.5)
  3466. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  3467. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3468. eff.Speed = NumberRange.new(50,450)
  3469. eff.Drag = 5
  3470. eff.Rotation = NumberRange.new(-500,500)
  3471. eff.VelocitySpread = 9000
  3472. eff.RotSpeed = NumberRange.new(-50,50)
  3473. local eff2 = eff:Clone()
  3474. eff2.Parent = targetted.Head
  3475. eff2.Texture = "rbxassetid://284205403"
  3476. eff2.Rate = 10000
  3477. eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3478. eff2.Drag = 5
  3479. eff2.Rotation = NumberRange.new(-500,500)
  3480. eff2.VelocitySpread = 9000
  3481. wait(0.5)
  3482. eff2.Enabled = false
  3483. eff.Enabled = false
  3484. end))
  3485. for i = 0, 9 do
  3486. sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,6,-0.02,MAINRUINCOLOR)
  3487. end
  3488. for i = 0, 49 do
  3489. local rsiz = math.random(20,60)
  3490. sphereMK(math.random(1,4),2,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  3491. end
  3492. dmg(targetted)
  3493. game:GetService("Debris"):AddItem(vel,1)
  3494. end))
  3495. for i = 0,7,0.1 do
  3496. swait()
  3497. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  3498. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.5)
  3499. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.5)
  3500. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(-60)), 0.5)
  3501. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.5)
  3502. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.5)
  3503. end
  3504. attack = false
  3505. hum.WalkSpeed = storehumanoidWS
  3506. end
  3507. end
  3508.  
  3509. function BinaryBLINK()
  3510. for i = 0, 9 do
  3511. sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR)
  3512. end
  3513. sphere(20,"Add",root.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3514. coroutine.resume(coroutine.create(function()
  3515. local eff = Instance.new("ParticleEmitter",root)
  3516. eff.Texture = "rbxassetid://1175838406"
  3517. eff.LightEmission = 0.95
  3518. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3519. eff.Rate = 10000
  3520. eff.Lifetime = NumberRange.new(1)
  3521. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,4,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
  3522. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3523. eff.Speed = NumberRange.new(30,160)
  3524. eff.Drag = 5
  3525. eff.Rotation = NumberRange.new(-500,500)
  3526. eff.VelocitySpread = 100000
  3527. wait(0.25)
  3528. eff.Enabled = false
  3529. wait(4)
  3530. eff:Destroy()
  3531. end))
  3532. CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
  3533. RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0)
  3534. CameraEnshaking(2,10)
  3535. for i, v in pairs(FindNearestHead(Torso.CFrame.p, 10)) do
  3536. if v:FindFirstChild('Head') then
  3537. dmg(v)
  3538. end
  3539. end
  3540. for i = 0, 9 do
  3541. sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR)
  3542. end
  3543. sphere(20,"Add",root.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR)
  3544. end
  3545.  
  3546. function BinaryE()
  3547. local posit = -2
  3548. attack = true
  3549. hum.WalkSpeed = 5
  3550. CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1)
  3551. for i = 0,2,0.1 do
  3552. swait()
  3553. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  3554. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5)
  3555. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5)
  3556. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  3557. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5)
  3558. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(0)),.5)
  3559. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.5)
  3560. end
  3561. for i = 0, 2 do
  3562. CameraEnshaking(1,2)
  3563. local hite = Instance.new("Part", char)
  3564. hite.Anchored = true
  3565. hite.CanCollide = false
  3566. hite.FormFactor = 3
  3567. hite.Name = "Ring"
  3568. hite.Material = "Neon"
  3569. hite.Size = Vector3.new(1, 1, 1)
  3570. hite.Transparency = 1
  3571. hite.TopSurface = 0
  3572. hite.BottomSurface = 0
  3573. hite.CFrame = root.CFrame*CFrame.new(0,posit,-5)
  3574. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9)
  3575. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8)
  3576. coroutine.resume(coroutine.create(function()
  3577. local eff = Instance.new("ParticleEmitter",hite)
  3578. eff.Texture = "rbxassetid://1175838406"
  3579. eff.LightEmission = 0.95
  3580. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3581. eff.Rate = 1000
  3582. eff.Lifetime = NumberRange.new(1)
  3583. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,1,0),NumberSequenceKeypoint.new(1,0,0)})
  3584. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3585. eff.Speed = NumberRange.new(10,50)
  3586. eff.Drag = 5
  3587. eff.Rotation = NumberRange.new(-500,500)
  3588. eff.VelocitySpread = 100000
  3589. wait(0.25)
  3590. eff.Enabled = false
  3591. end))
  3592. coroutine.resume(coroutine.create(function()
  3593. for i = 0, 1 do
  3594. swait()
  3595. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3596. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3597. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3598. end
  3599. end))
  3600. sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(2,2,2),0.5,-0.01,-0.01,MAINRUINCOLOR)
  3601. MagniDamage(hite, 3, 30,40, 0, "Normal")
  3602. game:GetService("Debris"):AddItem(hite, 5)
  3603. posit = posit + 2
  3604. end
  3605. for i = 0,1,0.1 do
  3606. swait()
  3607. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  3608. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5)
  3609. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5)
  3610. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5)
  3611. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5)
  3612. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(0)),.5)
  3613. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.5)
  3614. end
  3615. for i = 0,1,0.1 do
  3616. swait()
  3617. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  3618. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,0)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5)
  3619. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5)
  3620. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5)
  3621. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5)
  3622. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(30)),.5)
  3623. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(40)),.5)
  3624. end
  3625. posit = -6
  3626. for i = 0, 6 do
  3627. CameraEnshaking(1,3)
  3628. local hite = Instance.new("Part", char)
  3629. hite.Anchored = true
  3630. hite.CanCollide = false
  3631. hite.FormFactor = 3
  3632. hite.Name = "Ring"
  3633. hite.Material = "Neon"
  3634. hite.Size = Vector3.new(1, 1, 1)
  3635. hite.Transparency = 1
  3636. hite.TopSurface = 0
  3637. hite.BottomSurface = 0
  3638. hite.CFrame = root.CFrame*CFrame.new(posit,0,-5)
  3639. CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2)
  3640. CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1)
  3641. sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),-0.01,1,-0.01,MAINRUINCOLOR)
  3642. coroutine.resume(coroutine.create(function()
  3643. local eff = Instance.new("ParticleEmitter",hite)
  3644. eff.Texture = "rbxassetid://1175838406"
  3645. eff.LightEmission = 0.95
  3646. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3647. eff.Rate = 1000
  3648. eff.Lifetime = NumberRange.new(1)
  3649. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,1,0),NumberSequenceKeypoint.new(1,0,0)})
  3650. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3651. eff.Speed = NumberRange.new(20,70)
  3652. eff.Drag = 5
  3653. eff.Rotation = NumberRange.new(-500,500)
  3654. eff.VelocitySpread = 100000
  3655. wait(0.25)
  3656. eff.Enabled = false
  3657. end))
  3658. coroutine.resume(coroutine.create(function()
  3659. for i = 0, 2 do
  3660. swait()
  3661. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3662. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3663. sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR)
  3664. end
  3665. end))
  3666. MagniDamage(hite, 5, 40,70, 0, "Normal")
  3667. game:GetService("Debris"):AddItem(hite, 5)
  3668. posit = posit + 2
  3669. end
  3670. for i = 0,1,0.1 do
  3671. swait()
  3672. sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR)
  3673. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5)
  3674. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5)
  3675. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5)
  3676. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5)
  3677. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(10),math.rad(-10)),.5)
  3678. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(60)),.5)
  3679. end
  3680. hum.WalkSpeed = storehumanoidWS
  3681. attack = false
  3682. end
  3683.  
  3684. function AZUREFINALE()
  3685. attack = true
  3686. duringend = true
  3687. hum.WalkSpeed = 0
  3688. CFuncs["Sound"].Create("rbxassetid://1117054464", char, 7.5, 0.75)
  3689. CFuncs["LongSound"].Create("rbxassetid://1042700914", char, 3.5, 0.05)
  3690. local hite = Instance.new("Part", char)
  3691. hite.Anchored = true
  3692. hite.CanCollide = false
  3693. hite.FormFactor = 3
  3694. hite.Name = "Ring"
  3695. hite.Material = "Neon"
  3696. hite.Size = Vector3.new(1, 1, 1)
  3697. hite.Transparency = 0
  3698. hite.TopSurface = 0
  3699. hite.BottomSurface = 0
  3700. hite.BrickColor = MAINRUINCOLOR
  3701. local orbm = Instance.new("SpecialMesh", hite)
  3702. orbm.MeshType = "Sphere"
  3703. orbm.Name = "SizeMesh"
  3704. orbm.Scale = vt(0,0,0)
  3705. hite.CFrame = root.CFrame*CFrame.new(0,200,0)
  3706. for i = 0,70,0.1 do
  3707. swait()
  3708. orbm.Scale = orbm.Scale + vt(0.5,0.5,0.5)
  3709. rsiz = math.random(10,45)
  3710. kan.Volume = kan.Volume + 0.01
  3711. kan.Pitch = kan.Pitch - 0.00135
  3712. sphereMK(math.random(1,4),2.5,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/2,rsiz/2,rsiz/2,0,MAINRUINCOLOR,-300)
  3713. sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,1.5,10),-0.01,10,-0.01,MAINRUINCOLOR)
  3714. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3715. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3716. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3717. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3718. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3719. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3720. end
  3721. kan.Pitch = 0.1
  3722. hite.Transparency = 1
  3723. for i = 0,2 do
  3724. CFuncs["LongSound"].Create("rbxassetid://324849898", char, 10,0.9)
  3725. end
  3726. CFuncs["LongSound"].Create("rbxassetid://1117054464", char, 5, 0.75)
  3727. sphere2(1,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),-5,-5,-5,MAINRUINCOLOR)
  3728. sphere2(1,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),2,2,2,MAINRUINCOLOR)
  3729. sphere2(2,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(orbm.Scale.X,orbm.Scale.Y,orbm.Scale.Z),3,3,3,MAINRUINCOLOR)
  3730. coroutine.resume(coroutine.create(function()
  3731. local eff = Instance.new("ParticleEmitter",hite)
  3732. eff.Texture = "rbxassetid://284205403"
  3733. eff.LightEmission = 0.95
  3734. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  3735. eff.Rate = 10000
  3736. eff.Lifetime = NumberRange.new(5)
  3737. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,100,0),NumberSequenceKeypoint.new(1,0,0)})
  3738. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3739. eff.Speed = NumberRange.new(600,1250)
  3740. eff.Drag = 5
  3741. eff.Rotation = NumberRange.new(-500,500)
  3742. eff.VelocitySpread = 9000
  3743. eff.RotSpeed = NumberRange.new(-500,500)
  3744. wait(1)
  3745. eff.Enabled = false
  3746. end))
  3747. for i = 0,5,0.1 do
  3748. swait()
  3749. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3750. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3751. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3752. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3753. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3754. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3755. end
  3756. local adsc = 0
  3757. local radiatezone = 0
  3758. for i = 0,20,0.1 do
  3759. swait()
  3760. adsc = adsc + 0.025
  3761. radiatezone = radiatezone + 1.25
  3762. sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
  3763. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  3764. if v:FindFirstChild('Head') then
  3765. dmg(v)
  3766. end
  3767. end
  3768. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3769. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3770. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3771. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3772. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3773. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3774. end
  3775. for i = 0,2 do
  3776. CFuncs["LongSound"].Create("rbxassetid://665426491", char, 10,0.9)
  3777. end
  3778. for i = 0,40,0.1 do
  3779. swait()
  3780. adsc = adsc + 0.05
  3781. radiatezone = radiatezone + 2.5
  3782. sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
  3783. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  3784. if v:FindFirstChild('Head') then
  3785. dmg(v)
  3786. end
  3787. end
  3788. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3789. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3790. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3791. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3792. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3793. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3794. end
  3795. for i = 0,4 do
  3796. CFuncs["LongSound"].Create("rbxassetid://665426491", char, 10,0.75)
  3797. CFuncs["LongSound"].Create("rbxassetid://923073285", char, 1.25,0.75)
  3798. end
  3799. for i = 0,80,0.1 do
  3800. swait()
  3801. adsc = adsc + 0.075
  3802. radiatezone = radiatezone + 3.75
  3803. sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR)
  3804. for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do
  3805. if v:FindFirstChild('Head') then
  3806. dmg(v)
  3807. end
  3808. end
  3809. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2)
  3810. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2)
  3811. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2)
  3812. LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2)
  3813. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2)
  3814. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2)
  3815. end
  3816. hite:Destroy()
  3817. duringend = false
  3818. hum.WalkSpeed = storehumanoidWS
  3819. attack = false
  3820. end
  3821.  
  3822. function GalacticalBeams()
  3823. attack = true
  3824. local keptcolor = MAINRUINCOLOR
  3825. coroutine.resume(coroutine.create(function()
  3826. for i = 0, 0 do
  3827. swait(10)
  3828. local orb = Instance.new("Part", char)
  3829. CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
  3830. orb.BrickColor = keptcolor
  3831. orb.CanCollide = false
  3832. orb.FormFactor = 3
  3833. orb.Name = "Ring"
  3834. orb.Material = "Neon"
  3835. orb.Size = Vector3.new(1, 1, 1)
  3836. orb.Transparency = 1
  3837. orb.TopSurface = 0
  3838. orb.BottomSurface = 0
  3839. orb.Anchored = true
  3840. local orbm = Instance.new("SpecialMesh", orb)
  3841. orbm.MeshType = "Sphere"
  3842. orbm.Name = "SizeMesh"
  3843. orbm.Scale = vt(1.25,1.25,1.25)
  3844. orb.CFrame = root.CFrame*CFrame.new(math.random(-25,25),math.random(75,150),math.random(-25,25))
  3845. coroutine.resume(coroutine.create(function()
  3846. orb.Transparency = 1
  3847. local a = Instance.new("Part",char)
  3848. a.Name = "Direction"
  3849. a.Anchored = true
  3850. a.BrickColor = keptcolor
  3851. a.Material = "Neon"
  3852. a.Transparency = 1
  3853. a.Shape = "Cylinder"
  3854. local x = Instance.new("Part",char)
  3855. x.Name = "Direction"
  3856. x.Anchored = true
  3857. x.BrickColor = keptcolor
  3858. x.Material = "Neon"
  3859. x.Transparency = 1
  3860. x.Shape = "Cylinder"
  3861. local ht = Instance.new("Part",char)
  3862. ht.Name = "DirectionHit"
  3863. ht.Anchored = true
  3864. ht.BrickColor = keptcolor
  3865. ht.CanCollide = false
  3866. ht.Transparency = 1
  3867. ht.Size = vt(0.1,0.1,0.1)
  3868. a.CanCollide = false
  3869. local ray = Ray.new(
  3870. orb.CFrame.p, -- origin
  3871. (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
  3872. )
  3873. local ignore = char
  3874. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  3875. a.BottomSurface = 10
  3876. a.TopSurface = 10
  3877. local distance = (orb.CFrame.p - position).magnitude
  3878. a.Size = Vector3.new(distance,1,1)
  3879. a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
  3880. ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
  3881. x.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0)
  3882. local poste = 0
  3883. local rotation = 0
  3884. CFuncs["Sound"].Create("rbxassetid://153092315", char, 1.5, 1)
  3885. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(5,5,5),2.5,2.5,0,keptcolor)
  3886. CameraEnshaking(2,2)
  3887. for i = 0, 49 do
  3888. swait()
  3889. rotation = rotation + 5
  3890. poste = poste + 1
  3891. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3892. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3893. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3894. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3895. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3896. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3897. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3898. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3899. end
  3900. local A1 = Instance.new("Attachment",x)
  3901. local A2 = Instance.new("Attachment",ht)
  3902. local Beem = Instance.new("Beam",ht)
  3903. Beem.Attachment0 = A1
  3904. Beem.Attachment1 = A2
  3905. Beem.LightEmission = 1
  3906. Beem.FaceCamera = true
  3907. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, 0),NumberSequenceKeypoint.new(0.975, 0),NumberSequenceKeypoint.new(1, 1)})
  3908. Beem.Width0 = 125
  3909. Beem.Width1 = 125
  3910. Beem.Texture = "rbxassetid://1134824633"
  3911. Beem.TextureMode = "Wrap"
  3912. Beem.TextureLength = 200
  3913. Beem.TextureSpeed = 1.5
  3914. Beem.Color = ColorSequence.new(keptcolor.Color)
  3915. CameraEnshaking(3,6)
  3916. CFuncs["Sound"].Create("rbxassetid://294188875", char, 2, 1.5)
  3917. a.Transparency = 0.25
  3918. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor)
  3919. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor)
  3920. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  3921. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  3922. sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1.5,1.5,1.5,keptcolor)
  3923. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1.5,1.5,1.5,keptcolor)
  3924. MagniDamage(ht, 70, 1000,1500, 0, "Normal")
  3925. local eff = Instance.new("ParticleEmitter",ht)
  3926. eff.Texture = "rbxassetid://284205403"
  3927. eff.LightEmission = 0.95
  3928. eff.Color = ColorSequence.new(keptcolor.Color)
  3929. eff.Rate = 500
  3930. eff.Lifetime = NumberRange.new(1)
  3931. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.2,35,0),NumberSequenceKeypoint.new(1,0.1,0)})
  3932. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  3933. eff.Speed = NumberRange.new(80,500)
  3934. eff.Drag = 5
  3935. eff.Rotation = NumberRange.new(-500,500)
  3936. eff.VelocitySpread = 9000
  3937. eff.RotSpeed = NumberRange.new(-500,500)
  3938. for i = 0, 24 do
  3939. sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor)
  3940. local rsiz = math.random(10,50)
  3941. sphereMK(math.random(3,6),1.25,"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  3942. end
  3943. a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
  3944. local msh = Instance.new("SpecialMesh",a)
  3945. msh.MeshType = "Cylinder"
  3946. msh.Scale = vt(1,15,15)
  3947. for i = 0, 49 do
  3948. swait()
  3949. CameraEnshaking(1,4)
  3950. MagniDamage(ht, 70, 1000,1500, 0, "Normal")
  3951. rotation = rotation + 5
  3952. sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor)
  3953. sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor)
  3954. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(25,25,5),1,1,0,keptcolor)
  3955. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3956. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3957. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3958. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3959. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3960. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3961. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3962. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor)
  3963. for i = 0, 2 do
  3964. local rsiz = math.random(50,250)
  3965. sphereMK(math.random(3,6),math.random(2,4),"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0)
  3966. end
  3967. msh.Scale = msh.Scale + vt(0,0.25,0.25)
  3968. end
  3969. eff.Enabled = false
  3970. local visibility = 0
  3971. for i = 0, 49 do
  3972. swait()
  3973. visibility = visibility + 0.02
  3974. Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, visibility),NumberSequenceKeypoint.new(0.975, visibility),NumberSequenceKeypoint.new(1, 1)})
  3975. rotation = rotation + 5
  3976. poste = poste - 1
  3977. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3978. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3979. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3980. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3981. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3982. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3983. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3984. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  3985. msh.Scale = msh.Scale + vt(0,-0.5,-0.5)
  3986. a.Transparency = a.Transparency + 0.02
  3987. end
  3988. wait(1)
  3989. orb:Destroy()
  3990. a:Destroy()
  3991. ht:Destroy()
  3992. end))
  3993. game:GetService("Debris"):AddItem(orb, 10)
  3994. end
  3995. end))
  3996. hum.WalkSpeed = storehumanoidWS
  3997. attack = false
  3998. end
  3999.  
  4000.  
  4001. function WarpedDash()
  4002. attack = true
  4003. hum.WalkSpeed = 0
  4004. hum.JumpPower = 0
  4005. CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1)
  4006. local poste = 3
  4007. local rotation = 0
  4008. local rate = 0
  4009. for i = 0, 124 do
  4010. swait()
  4011. rotation = rotation + rate
  4012. poste = poste + 0.1
  4013. rate = rate + 0.1
  4014. sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR)
  4015. sphere2(8,"Add",root.CFrame*CFrame.new(math.random(-20,20),-3,math.random(-20,20)),vt(1,1,1),-0.01,0.5,-0.01,MAINRUINCOLOR)
  4016. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  4017. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(90 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  4018. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  4019. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(270 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR)
  4020. RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(30)),.5)
  4021. 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)),.5)
  4022. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5)
  4023. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5)
  4024. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5)
  4025. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5)
  4026. end
  4027. CameraEnshaking(3,7)
  4028. local loc = Instance.new("Part", char)
  4029. loc.BrickColor = MAINRUINCOLOR
  4030. loc.CanCollide = false
  4031. loc.FormFactor = 3
  4032. loc.Name = "Ring"
  4033. loc.Material = "Neon"
  4034. loc.Size = Vector3.new(1, 1, 1)
  4035. loc.Transparency = 1
  4036. loc.TopSurface = 0
  4037. loc.BottomSurface = 0
  4038. loc.Anchored = true
  4039. loc.CFrame = root.CFrame + root.CFrame.lookVector*100
  4040. CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1)
  4041. CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1)
  4042. MagniDamage(loc, 95, 500,6000, 0, "Normal")
  4043. sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR)
  4044. sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  4045. sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  4046. sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR)
  4047. coroutine.resume(coroutine.create(function()
  4048. local eff = Instance.new("ParticleEmitter",loc)
  4049. eff.Texture = "rbxassetid://363275192"
  4050. eff.LightEmission = 0.95
  4051. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  4052. eff.Rate = 10000
  4053. eff.Lifetime = NumberRange.new(1)
  4054. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)})
  4055. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4056. eff.Speed = NumberRange.new(100,500)
  4057. eff.Drag = 5
  4058. eff.Rotation = NumberRange.new(-500,500)
  4059. eff.VelocitySpread = 9000
  4060. eff.RotSpeed = NumberRange.new(-50,50)
  4061. wait(0.5)
  4062. eff.Enabled = false
  4063. end))
  4064. for i = 0, 49 do
  4065. sphere2(math.random(100,300)/100,"Add",loc.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR)
  4066. end
  4067. for i = 0, 9 do
  4068. sphere2(3,"Add",loc.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),0),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR)
  4069. end
  4070. game:GetService("Debris"):AddItem(loc, 5)
  4071. root.CFrame = root.CFrame + root.CFrame.lookVector*200
  4072. hum.WalkSpeed = storehumanoidWS
  4073. hum.JumpPower = 50
  4074. attack = false
  4075. end
  4076.  
  4077. ------------------------------------
  4078. function harmonytaunty()
  4079. attack = true
  4080. hum.WalkSpeed = 0
  4081. CFuncs["Sound"].Create("rbxassetid://430312221", tors, 1.25, 1.15)
  4082. for i = 0,7,0.1 do
  4083. swait()
  4084. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-20 + 6 * math.cos(sine / 34))),.2)
  4085. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(10 - 4 * math.cos(sine / 47))),.2)
  4086. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(-2 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(-2 + 4 * math.cos(sine / 62))),.2)
  4087. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(12 - 3 * math.cos(sine / 28)),math.rad(12 - 3 * math.cos(sine / 79)),math.rad(2 - 4 * math.cos(sine / 62))),.2)
  4088. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.01 * math.cos(sine / 28),-0.1)*angles(math.rad(34 + 2 * math.cos(sine / 33)),math.rad(0),math.rad(-13 - 3 * math.cos(sine / 28))),.2)
  4089. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(80 - 3 * math.cos(sine / 37)),math.rad(0),math.rad(10 + 5 * math.cos(sine / 30))),.2)
  4090. end
  4091. hum.WalkSpeed = storehumanoidWS
  4092. attack = false
  4093. end
  4094.  
  4095. function vistaunty()
  4096. attack = true
  4097. hum.WalkSpeed = 0
  4098. local rd = math.random(1,5)
  4099. if rd == 1 then
  4100. chatfunc("You're familiar with this, arent you?",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4101. elseif rd == 2 then
  4102. chatfunc("Dance to the beat. If you want to.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4103. elseif rd == 3 then
  4104. chatfunc("I'm just bored. Don't mess with me.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4105. elseif rd == 4 then
  4106. chatfunc("Ready to dance? If not, come back if you want to.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4107. elseif rd == 5 then
  4108. chatfunc("Ehh, not really into something right now.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4109. end
  4110. for i = 0, 8, 0.1 do
  4111. swait()
  4112. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/5000,-0.1)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(0 - 2 * math.cos(sine / 56) + kan.PlaybackLoudness/450)),.4)
  4113. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - kan.PlaybackLoudness/6500,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(5),math.rad(0 + 2 * math.cos(sine / 56) + kan.PlaybackLoudness/500)),.4)
  4114. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 56) ,0 + 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/7000)*angles(math.rad(0 - 2 * math.cos(sine / 56)),math.rad(0),math.rad(60)),.4)
  4115. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2 * math.cos(sine / 28) - kan.PlaybackLoudness/60),math.rad(0 + 2 * math.cos(sine / 73)),math.rad(-60)),.4)
  4116. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(90 + 5 * math.cos(sine / 34) + kan.PlaybackLoudness/7.5),math.rad(0),math.rad(60 - 2 * math.cos(sine / 38))),.4)
  4117. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(10),math.rad(5),math.rad(7.5)),.4)
  4118. end
  4119. hum.WalkSpeed = storehumanoidWS
  4120. attack = false
  4121. end
  4122.  
  4123. function shytaunty()
  4124. attack = true
  4125. hum.WalkSpeed = 0
  4126. CFuncs["Sound"].Create("rbxassetid://543623779", tors, 0.35, 1)
  4127. local blush = Instance.new("Decal",hed)
  4128. blush.Texture = "rbxassetid://898404027"
  4129. blush.Face = "Front"
  4130. for i = 0, 13, 0.1 do
  4131. swait()
  4132. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7 - 5 * math.cos(sine / 44)),math.rad(0),math.rad(-6 - 3 * math.cos(sine / 34))),.1)
  4133. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 + 5 * math.cos(sine / 44)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 34))),.1)
  4134. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.05 * math.cos(sine / 44),0 + 0.03 * math.cos(sine / 34),-0.05 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 - 5 * math.cos(sine / 44)),math.rad(-5)),.1)
  4135. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2 - 2.5 * math.cos(sine / 28)),math.rad(20 + 5 * math.cos(sine / 62)),math.rad(35 + 5 * math.cos(sine / 59))),.1)
  4136. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 1 * math.cos(sine / 53)),math.rad(0),math.rad(-60 + 2 * math.cos(sine / 37))),.1)
  4137. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(26 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(59 - 3 * math.cos(sine / 57) )),.1)
  4138. end
  4139. coroutine.resume(coroutine.create(function()
  4140. for i = 0, 49 do
  4141. swait()
  4142. blush.Transparency = blush.Transparency + 0.02
  4143. end
  4144. blush:Destroy()
  4145. end))
  4146. hum.WalkSpeed = storehumanoidWS
  4147. attack = false
  4148. end
  4149. ------------------------------------ Mode Ascendances
  4150. function UnknownA()
  4151. hum.WalkSpeed = 0
  4152. attack = true
  4153. local keptcolor = MAINRUINCOLOR
  4154. local locat = Instance.new("Part", char)
  4155. locat.CanCollide = false
  4156. locat.FormFactor = 3
  4157. locat.Name = "Ring"
  4158. locat.Material = "Neon"
  4159. locat.Size = Vector3.new(1, 1, 1)
  4160. locat.Transparency = 1
  4161. locat.TopSurface = 0
  4162. locat.BottomSurface = 0
  4163. locat.Anchored = true
  4164. locat.CFrame = root.CFrame*CFrame.new(0,-3,0)
  4165. local poste = 0
  4166. local rotation = 0
  4167. local upperpos = 0
  4168. local rate = 0
  4169. local x = locat
  4170. CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5, 1)
  4171. CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5, 1)
  4172. sphere2(8,"Add",tors.CFrame,vt(1,1,1),5,5,5,keptcolor)
  4173. sphere2(6,"Add",tors.CFrame,vt(1,1,1),5,5,5,keptcolor)
  4174. sphere2(4,"Add",tors.CFrame,vt(1,1,1),5,5,5,keptcolor)
  4175. sphere2(2,"Add",tors.CFrame,vt(1,1,1),5,5,5,keptcolor)
  4176. CameraEnshaking(2,5)
  4177. for i = 0, 49 do
  4178. swait()
  4179. rotation = rotation + 5
  4180. poste = poste + 1
  4181. sphere2(math.random(4,6),"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,1,5),-0.05,math.random(25,100)/25,-0.05,keptcolor)
  4182. sphere2(8,"Add",tors.CFrame,vt(poste/1.5,poste/1.5,poste/1.5),0.01,0.01,0.01,keptcolor)
  4183. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4184. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(90 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4185. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(180 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4186. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(270 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4187. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4188. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(90-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4189. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(180-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4190. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(270-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4191. 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)),.5)
  4192. 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)),.5)
  4193. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.5)
  4194. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.5)
  4195. 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))),.5)
  4196. 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))),.5)
  4197. end
  4198. for i = 0, 49 do
  4199. swait()
  4200. rotation = rotation + 5
  4201. sphere2(math.random(4,6),"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,1,5),-0.05,math.random(25,100)/25,-0.05,keptcolor)
  4202. sphere2(8,"Add",tors.CFrame,vt(poste/1.5,poste/1.5,poste/1.5),0.01,0.01,0.01,keptcolor)
  4203. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4204. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(90 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4205. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(180 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4206. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(270 + rotation),0)*CFrame.new(0,upperpos,poste),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4207. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4208. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(90-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4209. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(180-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4210. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(270-rotation),0)*CFrame.new(0,upperpos,poste*2),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor)
  4211. 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)),.5)
  4212. 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)),.5)
  4213. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.5)
  4214. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.5)
  4215. 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))),.5)
  4216. 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))),.5)
  4217. end
  4218. ModeOfGlitch = 6000000000
  4219. storehumanoidWS = 300
  4220. hum.WalkSpeed = 300
  4221. rainbowmode = false
  4222. chaosmode = false
  4223. RecolorTextAndRename("Catastrophe",BrickColor.new("Mulberry").Color,BrickColor.new("Cool yellow").Color,"Highway")
  4224. newThemeCust("rbxassetid://1504604335",0,1.005,1.5)
  4225. MAINRUINCOLOR = BrickColor.new("Magenta")
  4226. keptcolor = MAINRUINCOLOR
  4227. RecolorThing(MAINRUINCOLOR,BrickColor.new("Magenta"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4228. CFuncs["Sound"].Create("rbxassetid://763717897", char, 2.5, 1)
  4229. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.75)
  4230. sphere2(1,"Add",x.CFrame*CFrame.new(0,0,0),vt(15,0,15),5,0,5,BrickColor.new("Cool yellow"))
  4231. sphere2(2,"Add",x.CFrame*CFrame.new(0,0,0),vt(15,0,15),5,0,5,keptcolor)
  4232. sphere2(1,"Add",x.CFrame*CFrame.new(0,0,0),vt(5,50000,5),1.5,1,1.5,BrickColor.new("White"))
  4233. sphere2(2,"Add",x.CFrame*CFrame.new(0,0,0),vt(5,50000,5),1.5,1,1.5,BrickColor.new("Cool yellow"))
  4234. sphere2(4,"Add",x.CFrame*CFrame.new(0,0,0),vt(5,50000,5),1.5,1,1.5,keptcolor)
  4235. attack = false
  4236. hum.WalkSpeed = storehumanoidWS
  4237. for i = 0, 49 do
  4238. local rsiz = math.random(150,450)
  4239. sphere2(math.random(1,4),"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(25,500)/25,-0.05,BrickColor.new("Cool yellow"))
  4240. sphere2(math.random(1,2),"Add",x.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))*CFrame.new(math.random(-350,350),math.random(-350,350),math.random(-350,350)),vt(1,1,1),-0.01,math.random(50,250)/10,-0.01,BrickColor.new("Cool yellow"))
  4241. sphereMK(math.random(1,2),math.random(2,4),"Add",x.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,BrickColor.new("White"),0)
  4242. end
  4243. coroutine.resume(coroutine.create(function()
  4244. local eff = Instance.new("ParticleEmitter",x)
  4245. eff.Texture = "rbxassetid://284205403"
  4246. eff.LightEmission = 0.95
  4247. eff.Color = ColorSequence.new(BrickColor.new("Cool yellow").Color)
  4248. eff.Rate = 50000
  4249. eff.Lifetime = NumberRange.new(2.5)
  4250. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.5,75,0),NumberSequenceKeypoint.new(1,0.1,0)})
  4251. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4252. eff.Speed = NumberRange.new(250,1000)
  4253. eff.Drag = 5
  4254. eff.Rotation = NumberRange.new(-500,500)
  4255. eff.VelocitySpread = 9000
  4256. eff.RotSpeed = NumberRange.new(-500,500)
  4257. wait(0.5)
  4258. eff.Enabled = false
  4259. end))
  4260. --[[for i, v in pairs(FindNearestHead(Torso.CFrame.p, 2000000000)) do
  4261. if v:FindFirstChild('Head') then
  4262. dmg(v)
  4263. end
  4264. end]]--
  4265. sphere2(3,"Add",tors.CFrame,vt(1,1,1),10,10,10,keptcolor)
  4266. sphere2(2,"Add",tors.CFrame,vt(1,1,1),10,10,10,BrickColor.new("Magenta"))
  4267. sphere2(1,"Add",tors.CFrame,vt(1,1,1),10,10,10,BrickColor.new("Mulberry"))
  4268. CameraEnshaking(8,10)
  4269. for i = 0, 99 do
  4270. swait()
  4271. rotation = rotation + 5
  4272. poste = poste + 1
  4273. upperpos = upperpos + rate
  4274. rate = rate + 0.1
  4275. sphere2(math.random(1,2),"Add",x.CFrame*CFrame.new(math.random(-350,350),0,math.random(-350,350)),vt(5,1,5),-0.05,math.random(50,250)/50,-0.05,keptcolor)
  4276. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,upperpos,poste),vt(5+upperpos/5,5+upperpos/5,5+upperpos/5),-0.05,-0.05,-0.05,BrickColor.new("Cool yellow"))
  4277. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(90+rotation),0)*CFrame.new(0,upperpos,poste),vt(5+upperpos/5,5+upperpos/5,5+upperpos/5),-0.05,-0.05,-0.05,BrickColor.new("Cool yellow"))
  4278. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(180+rotation),0)*CFrame.new(0,upperpos,poste),vt(5+upperpos/5,5+upperpos/5,5+upperpos/5),-0.05,-0.05,-0.05,BrickColor.new("Cool yellow"))
  4279. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(270+rotation),0)*CFrame.new(0,upperpos,poste),vt(5+upperpos/5,5+upperpos/5,5+upperpos/5),-0.05,-0.05,-0.05,BrickColor.new("Cool yellow"))
  4280. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(-rotation),0)*CFrame.new(0,upperpos/2,poste*2),vt(5+upperpos/10,5+upperpos/10,5+upperpos/10),-0.05,-0.05,-0.05,keptcolor)
  4281. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(90-rotation),0)*CFrame.new(0,upperpos/2,poste*2),vt(5+upperpos/10,5+upperpos/10,5+upperpos/10),-0.05,-0.05,-0.05,keptcolor)
  4282. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(180-rotation),0)*CFrame.new(0,upperpos/2,poste*2),vt(5+upperpos/10,5+upperpos/10,5+upperpos/10),-0.05,-0.05,-0.05,keptcolor)
  4283. sphere2(8,"Add",x.CFrame*CFrame.Angles(0,math.rad(270-rotation),0)*CFrame.new(0,upperpos/2,poste*2),vt(5+upperpos/10,5+upperpos/10,5+upperpos/10),-0.05,-0.05,-0.05,keptcolor)
  4284. end
  4285. x:Destroy()
  4286. end
  4287.  
  4288. function loveydovey()
  4289. CameraEnshaking(4,9)
  4290. sphere2(2,"Add",root.CFrame,vt(5,5,5),0.5,0.5,0.5,keptcolor)
  4291. sphere2(2,"Add",root.CFrame,vt(5,5,5),0.75,0.75,0.75,keptcolor)
  4292. sphere2(3,"Add",root.CFrame,vt(5,5,5),1,1,1,keptcolor)
  4293. sphere2(3,"Add",root.CFrame,vt(5,5,5),1.25,1.25,1.25,keptcolor)
  4294. sphere2(1,"Add",root.CFrame,vt(5,10000,5),0.5,0.5,0.5,keptcolor)
  4295. sphere2(2,"Add",root.CFrame,vt(5,10000,5),0.6,0.6,0.6,keptcolor)
  4296. CFuncs["Sound"].Create("rbxassetid://763717897", char, 0.75, 1.25)
  4297. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 0.75, 1)
  4298. coroutine.resume(coroutine.create(function()
  4299. local eff = Instance.new("ParticleEmitter",root)
  4300. eff.Texture = "rbxassetid://363275192"
  4301. eff.LightEmission = 0.95
  4302. eff.Color = ColorSequence.new(keptcolor.Color)
  4303. eff.Rate = 10000
  4304. eff.Lifetime = NumberRange.new(1)
  4305. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)})
  4306. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4307. eff.Speed = NumberRange.new(50,200)
  4308. eff.Drag = 5
  4309. eff.Rotation = NumberRange.new(-500,500)
  4310. eff.VelocitySpread = 9000
  4311. eff.RotSpeed = NumberRange.new(-50,50)
  4312. wait(0.5)
  4313. eff.Enabled = false
  4314. wait(5)
  4315. eff:Destroy()
  4316. end))
  4317. for i = 0, 49 do
  4318. local rsiz = math.random(70,90)
  4319. sphere2(math.random(1,4),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,1,5),-0.005,math.random(25,100)/25,-0.005,MAINRUINCOLOR)
  4320. end
  4321. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  4322. CFuncs["Sound"].Create("rbxassetid://543623779", root, 1.5,1)
  4323. newTheme("rbxassetid://736003449",0,1,2)
  4324. ModeOfGlitch = 9600000000
  4325. MAINRUINCOLOR = BrickColor.new("Hot pink")
  4326. for i = 0, 1, 0.2 do
  4327. swait()
  4328. RH.C0=clerp(RH.C0,cf(1,-1.05,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-16)),.8)
  4329. LH.C0=clerp(LH.C0,cf(-1,-1.05,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(10)),.8)
  4330. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.1,0.05)*angles(math.rad(-10),math.rad(0),math.rad(0)),.8)
  4331. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(20),math.rad(0)),.8)
  4332. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(12),math.rad(0),math.rad(57)),.8)
  4333. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(13),math.rad(0),math.rad(-58)),.8)
  4334. end
  4335. for i = 0, 9, 0.1 do
  4336. swait()
  4337. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-6)),.1)
  4338. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0)),.1)
  4339. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  4340. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(10),math.rad(0)),.1)
  4341. RW.C0=clerp(RW.C0,cf(1,0.5,-0.45)*angles(math.rad(22),math.rad(0),math.rad(-37)),.1)
  4342. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.45)*angles(math.rad(23),math.rad(0),math.rad(38)),.1)
  4343. end
  4344. CameraEnshaking(2,11)
  4345. sphere2(2,"Add",root.CFrame,vt(5,5,5),0.75,0.75,0.75,BrickColor.new("Pink"))
  4346. sphere2(2,"Add",root.CFrame,vt(5,5,5),1,1,1,BrickColor.new("Pink"))
  4347. sphere2(3,"Add",root.CFrame,vt(5,5,5),1.25,1.25,1.25,MAINRUINCOLOR)
  4348. sphere2(3,"Add",root.CFrame,vt(5,5,5),1.5,1.5,1.5,MAINRUINCOLOR)
  4349. sphere2(1,"Add",root.CFrame,vt(5,10000,5),0.5,0.5,0.5,BrickColor.new("Pink"))
  4350. sphere2(2,"Add",root.CFrame,vt(5,10000,5),1,1,1,MAINRUINCOLOR)
  4351. CFuncs["Sound"].Create("rbxassetid://763717897", char, 1, 1.125)
  4352. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 0.75)
  4353. for i = 0, 49 do
  4354. local rsiz = math.random(70,90)
  4355. sphere2(math.random(1,4),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,1,5),-0.005,math.random(50,200)/25,-0.005,MAINRUINCOLOR)
  4356. sphereMK(math.random(1,2),math.random(1,3),"Add",root.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,BrickColor.new("Pink"),0)
  4357. end
  4358. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  4359. for i = 0, 1, 0.2 do
  4360. swait()
  4361. RH.C0=clerp(RH.C0,cf(1,-1.05,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-16)),.8)
  4362. LH.C0=clerp(LH.C0,cf(-1,-1.05,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(10)),.8)
  4363. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.1,0.05)*angles(math.rad(-10),math.rad(0),math.rad(0)),.8)
  4364. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(20),math.rad(0)),.8)
  4365. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(12),math.rad(0),math.rad(57)),.8)
  4366. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(13),math.rad(0),math.rad(-58)),.8)
  4367. end
  4368. for i = 0, 1, 0.1 do
  4369. swait()
  4370. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-6)),.1)
  4371. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0)),.1)
  4372. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
  4373. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(10),math.rad(0)),.1)
  4374. RW.C0=clerp(RW.C0,cf(1,0.5,-0.45)*angles(math.rad(22),math.rad(0),math.rad(-37)),.1)
  4375. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.45)*angles(math.rad(23),math.rad(0),math.rad(38)),.1)
  4376. end
  4377. CameraEnshaking(9,14)
  4378. sphere2(4,"Add",root.CFrame,vt(5,5,5),1,1,1,BrickColor.new("Pink"))
  4379. sphere2(4,"Add",root.CFrame,vt(5,5,5),2,2,2,BrickColor.new("Pink"))
  4380. sphere2(9,"Add",root.CFrame,vt(5,5,5),3,3,3,MAINRUINCOLOR)
  4381. sphere2(9,"Add",root.CFrame,vt(5,5,5),4,4,4,MAINRUINCOLOR)
  4382. CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
  4383. CFuncs["Sound"].Create("rbxassetid://763717897", char, 2.5, 1)
  4384. CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
  4385. sphere2(1,"Add",root.CFrame,vt(5,5,5),2,2,2,BrickColor.new("Pink"))
  4386. sphere2(1,"Add",root.CFrame,vt(5,5,5),3,3,3,BrickColor.new("Pink"))
  4387. sphere2(1,"Add",root.CFrame,vt(5,5,5),4,4,4,BrickColor.new("Pink"))
  4388. sphere2(1,"Add",root.CFrame,vt(5,10000,5),2.5,2.5,2.5,BrickColor.new("Pink"))
  4389. sphere2(2,"Add",root.CFrame,vt(5,10000,5),3.5,3.5,3.5,MAINRUINCOLOR)
  4390. sphere2(1,"Add",root.CFrame,vt(5,5,5),8,8,8,BrickColor.new("Pink"))
  4391. sphere2(2,"Add",root.CFrame,vt(5,5,5),14,14,14,MAINRUINCOLOR)
  4392. sphere2(3,"Add",root.CFrame,vt(5,5,5),20,20,20,MAINRUINCOLOR)
  4393. for i = 0, 99 do
  4394. local rsiz = math.random(150,450)
  4395. sphere2(math.random(1,4),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(25,500)/25,-0.05,BrickColor.new("Pink"))
  4396. sphere2(math.random(1,2),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))*CFrame.new(math.random(-350,350),math.random(-350,350),math.random(-350,350)),vt(1,1,1),-0.01,math.random(50,250)/10,-0.01,MAINRUINCOLOR)
  4397. sphereMK(math.random(1,2),math.random(4,6),"Add",root.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,BrickColor.new("Pink"),0)
  4398. end
  4399. coroutine.resume(coroutine.create(function()
  4400. local eff = Instance.new("ParticleEmitter",root)
  4401. eff.Texture = "rbxassetid://749327003"
  4402. eff.LightEmission = 1
  4403. eff.Color = ColorSequence.new(BrickColor.new("Pink").Color)
  4404. eff.Rate = 50000
  4405. eff.Lifetime = NumberRange.new(5)
  4406. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.5,60,0),NumberSequenceKeypoint.new(1,0.1,0)})
  4407. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4408. eff.Speed = NumberRange.new(250,1000)
  4409. eff.Drag = 5
  4410. eff.Rotation = NumberRange.new(-50,50)
  4411. eff.VelocitySpread = 9000
  4412. eff.RotSpeed = NumberRange.new(-50,50)
  4413. wait(0.5)
  4414. eff.Enabled = false
  4415. wait(5)
  4416. eff:Destroy()
  4417. end))
  4418. storehumanoidWS = 20
  4419. rainbowmode = false
  4420. chaosmode = false
  4421. RecolorTextAndRename("Nah I Rather Not Name This",BrickColor.new("Pink").Color,BrickColor.new("Hot pink").Color,"Cartoon")
  4422. RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4423. for i = 0, 10, 0.1 do
  4424. swait()
  4425. sphere2(math.random(1,2),"Add",root.CFrame*CFrame.new(math.random(-350,350),0,math.random(-350,350)),vt(5,1,5),-0.05,math.random(50,250)/50,-0.05,MAINRUINCOLOR)
  4426. RH.C0=clerp(RH.C0,cf(1,-1.05,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-16)),.8)
  4427. LH.C0=clerp(LH.C0,cf(-1,-1.05,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(10)),.8)
  4428. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.1,0.05)*angles(math.rad(-10),math.rad(0),math.rad(0)),.8)
  4429. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-15),math.rad(0),math.rad(0)),.8)
  4430. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(97)),.8)
  4431. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-27),math.rad(0),math.rad(-98)),.8)
  4432. end
  4433. hum.WalkSpeed = 20
  4434. attack = false
  4435. end
  4436. -------------------------------------
  4437.  
  4438. Humanoid.Animator.Parent = nil
  4439.  
  4440. -------------------------------------
  4441.  
  4442. local attacktype = 1
  4443. mouse.Button1Down:connect(function()
  4444. if attack == false and attacktype == 1 then
  4445. attacktype = 2
  4446. attackone()
  4447. elseif attack == false and attacktype == 2 then
  4448. attacktype = 3
  4449. attacktwo()
  4450. elseif attack == false and attacktype == 3 then
  4451. attacktype = 1
  4452. attackthree()
  4453. elseif attack == false and attacktype == 4 then
  4454. attacktype = 1
  4455. --attackfour()
  4456. end
  4457. end)
  4458.  
  4459. local OVMID = 1702473314
  4460. local OVMPIT = 1
  4461. local OVMVOL = 1
  4462. mouse.KeyDown:connect(function(k)
  4463. if k == "g" and attack == false and ModeOfGlitch ~= 1 then
  4464. resetmode()
  4465. end
  4466. if k == "h" and attack == false and ModeOfGlitch ~= 2 then
  4467. ModeOfGlitch = 2
  4468. storehumanoidWS = 16
  4469. hum.WalkSpeed = 16
  4470. rainbowmode = false
  4471. chaosmode = false
  4472. RecolorTextAndRename("Solitude",Color3.new(0,0,0),BrickColor.new("Really black").Color,"Code")
  4473. newTheme("rbxassetid://1564523997",0,1.02,1.25)
  4474. MAINRUINCOLOR = BrickColor.new("Really black")
  4475. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4476. end
  4477. if k == "j" and attack == false and ModeOfGlitch ~= 3 then
  4478. ModeOfGlitch = 3
  4479. storehumanoidWS = 16
  4480. hum.WalkSpeed = 16
  4481. rainbowmode = false
  4482. chaosmode = false
  4483. RecolorTextAndRename("HaCKeR",Color3.new(0,0,0),Color3.new(0,1,0),"SciFi")
  4484. newTheme("rbxassetid://949709585",0,1.01,1.25)
  4485. MAINRUINCOLOR = BrickColor.new("Dark green")
  4486. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4487. end
  4488. if k == "k" and attack == false and ModeOfGlitch ~= 4 then
  4489. ModeOfGlitch = 4
  4490. storehumanoidWS = 16
  4491. hum.WalkSpeed = 16
  4492. rainbowmode = false
  4493. chaosmode = false
  4494. RecolorTextAndRename("Astra",Color3.new(0,0,0.25),BrickColor.new("Bright yellow").Color,"SourceSansBold")
  4495. newTheme("rbxassetid://275188871",0,1.02,1.25)
  4496. MAINRUINCOLOR = BrickColor.new("Navy blue")
  4497. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4498. end
  4499. if k == "l" and attack == false and ModeOfGlitch ~= 5 then
  4500. ModeOfGlitch = 5
  4501. storehumanoidWS = 16
  4502. hum.WalkSpeed = 16
  4503. rainbowmode = false
  4504. chaosmode = false
  4505. RecolorTextAndRename("Solar",Color3.new(1,0.5,0),Color3.new(1,1,0),"Fantasy")
  4506. newTheme("rbxassetid://2270626831",0,1.01,1.25)
  4507. MAINRUINCOLOR = BrickColor.new("Deep orange")
  4508. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4509. end
  4510. if k == "x" and attack == false and ModeOfGlitch ~= 6 then
  4511. ModeOfGlitch = 6
  4512. storehumanoidWS = 100
  4513. hum.WalkSpeed = 100
  4514. rainbowmode = false
  4515. chaosmode = false
  4516. RecolorTextAndRename("Calamity",Color3.new(0,0,0.5),Color3.new(0.75,1,1),"Fantasy")
  4517. newTheme("rbxassetid://1359036559",0,1,1.25)
  4518. MAINRUINCOLOR = BrickColor.new("Bright violet")
  4519. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4520. end
  4521. if k == "c" and attack == false and ModeOfGlitch ~= 7 then
  4522. ModeOfGlitch = 7
  4523. storehumanoidWS = 175
  4524. hum.WalkSpeed = 175
  4525. rainbowmode = false
  4526. chaosmode = false
  4527. RecolorTextAndRename("LIGHTSPEED",BrickColor.new("Cyan").Color,BrickColor.new("Toothpaste").Color,"Arcade")
  4528. newTheme("rbxassetid://983369349",0,1.01,1.25)
  4529. MAINRUINCOLOR = BrickColor.new("Navy blue")
  4530. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4531. end
  4532. if k == "v" and attack == false and ModeOfGlitch ~= 8 then
  4533. ModeOfGlitch = 8
  4534. storehumanoidWS = 100
  4535. hum.WalkSpeed = 100
  4536. rainbowmode = false
  4537. chaosmode = false
  4538. RecolorTextAndRename("DeStRuCtIoN",BrickColor.new("Really red").Color,BrickColor.new("Bright red").Color,"Antique")
  4539. newTheme("rbxassetid://723652641",0,1.01,1.65)
  4540. MAINRUINCOLOR = BrickColor.new("Really red")
  4541. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4542. end
  4543. if k == "b" and attack == false and ModeOfGlitch ~= 9 then
  4544. ModeOfGlitch = 9
  4545. storehumanoidWS = 135
  4546. hum.WalkSpeed = 135
  4547. rainbowmode = false
  4548. chaosmode = false
  4549. RecolorTextAndRename("Dance Party",BrickColor.new("Medium stone grey").Color,BrickColor.new("Black").Color,"Arcade")
  4550. newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
  4551. MAINRUINCOLOR = BrickColor.new("Institutional white")
  4552. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4553. end
  4554. if k == "n" and attack == false and ModeOfGlitch ~= 10 then
  4555. ModeOfGlitch = 10
  4556. storehumanoidWS = 12
  4557. hum.WalkSpeed = 12
  4558. rainbowmode = false
  4559. chaosmode = false
  4560. RecolorTextAndRename("Lucid Dream",BrickColor.new("Navy blue").Color,BrickColor.new("Black").Color,"Garamond")
  4561. newTheme("rbxassetid://639429915",0,1.01,1.65)
  4562. MAINRUINCOLOR = BrickColor.new("Black")
  4563. RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4564. end
  4565. if k == "m" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 2000000000 then
  4566. ModeOfGlitch = 2000000000
  4567. storehumanoidWS = 200
  4568. hum.WalkSpeed = 200
  4569. rainbowmode = false
  4570. chaosmode = false
  4571. RecolorTextAndRename("The Big Black",BrickColor.new("Black").Color,BrickColor.new("Black").Color,"Antique")
  4572. newThemeCust("rbxassetid://183142252",2.9,1.02,1.5)
  4573. MAINRUINCOLOR = BrickColor.new("Really black")
  4574. RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR)
  4575. end
  4576. if k == "u" and attack == false and ModeOfGlitch ~= 9600000000 then
  4577. loveydovey()
  4578. end
  4579. if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 6000000000 then
  4580. UnknownA()
  4581. end
  4582. if k == "t" and ModeOfGlitch == 6000000000 and attack == false then
  4583. harmonytaunty()
  4584. elseif k == "t" and ModeOfGlitch == 9 and attack == false then
  4585. vistaunty()
  4586. elseif k == "t" and ModeOfGlitch == 9600000000 and attack == false then
  4587. shytaunty()
  4588. end
  4589. if k == "z" and ModeOfGlitch == 1 and attack == false then
  4590. Beams()
  4591. elseif k == "z" and ModeOfGlitch == 2 and attack == false then
  4592. smiter()
  4593. elseif k == "z" and ModeOfGlitch == 2000000000 and attack == false then
  4594. supsmiter()
  4595. elseif k == "z" and ModeOfGlitch == 3 and attack == false then
  4596. BinaryE()
  4597. elseif k == "z" and ModeOfGlitch == 4 and attack == false then
  4598. elseif k == "z" and ModeOfGlitch == 5 and attack == false then
  4599. Fireball()
  4600. elseif k == "z" and ModeOfGlitch == 6 and attack == false then
  4601. GalacticalBeams()
  4602. elseif k == "z" and ModeOfGlitch == 7 and attack == false then
  4603. WarpedDash()
  4604. elseif k == "z" and ModeOfGlitch == 8 and attack == false then
  4605. BeamOfDeath()
  4606. elseif k == "z" and ModeOfGlitch == 9 and attack == false then
  4607. end
  4608. if k == "x" and ModeOfGlitch == 3 and attack == false then
  4609. BinaryBLINK()
  4610. end
  4611. if k == "v" and ModeOfGlitch == 2000000000 and attack == false then
  4612. AZUREFINALE()
  4613. end
  4614. if k == "l" and mutedtog == false then
  4615. mutedtog = true
  4616. kan.Volume = 0
  4617. elseif k == "l" and mutedtog == true then
  4618. mutedtog = false
  4619. kan.Volume = 1.25
  4620. end
  4621. if k == "p" and toggleTag == false then
  4622. toggleTag = true
  4623. modet.TextTransparency = 0
  4624. modet.TextStrokeTransparency = 0
  4625. elseif k == "p" and toggleTag == true then
  4626. toggleTag = false
  4627. modet.TextTransparency = 1
  4628. modet.TextStrokeTransparency = 1
  4629. end
  4630. if k == "z" and attack == false and ModeOfGlitch == 1 then
  4631. end
  4632. end)
  4633.  
  4634. plr.Chatted:connect(function(message)
  4635. if ModeOfGlitch == 9 then
  4636. if message:sub(1,5) == "play/" then
  4637. OVMID = message:sub(6)
  4638. newThemeCust("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
  4639. elseif message:sub(1,6) == "pitch/" then
  4640. OVMPIT = message:sub(7)
  4641. newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
  4642. elseif message:sub(1,4) == "vol/" then
  4643. OVMVOL = message:sub(5)
  4644. newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
  4645. elseif message:sub(1,7) == "skipto/" then
  4646. chatfunc("Skipped to "..message:sub(8).." out of "..math.floor(kan.TimeLength).." seconds.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4647. newThemeCust("rbxassetid://"..OVMID,message:sub(8),OVMPIT,OVMVOL)
  4648. elseif message:sub(1,9) == "telltime/" then
  4649. chatfunc("Current time pos: "..math.floor(kan.TimePosition).." out of "..math.floor(kan.TimeLength).." seconds.",MAINRUINCOLOR.Color,"Inverted","Arcade",1)
  4650. end
  4651. end
  4652. end)
  4653. local rotperm = 0
  4654. coroutine.resume(coroutine.create(function()
  4655. while true do
  4656. swait()
  4657. if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 2000000000 then
  4658. swait(0.5)
  4659. sphereMK(5,math.random(8,14)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-10,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.75,0.75,20,-0.0075,MAINRUINCOLOR,0)
  4660. elseif ModeOfGlitch == 5 then
  4661. swait(0.5)
  4662. local rsiz = math.random(1,3)
  4663. sphereMK(math.random(3,6),math.random(-25,25)/750,"Add",sorb2.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0)
  4664. sphereMK(math.random(6,9),math.random(-10,10)/750,"Add",sorb2.CFrame*CFrame.new(math.random(-5,5)/50,math.random(-5,5)/50,math.random(-5,5)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/3,rsiz/3,rsiz/3,0,MAINRUINCOLOR,0)
  4665. elseif ModeOfGlitch == 9600000000 then
  4666. swait(0.25)
  4667. sphereMK(5,math.random(-14,-8)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),10,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))),0.25,0.25,7.5,-0.0025,MAINRUINCOLOR,0)
  4668. elseif ModeOfGlitch == 6000000000 then
  4669. coroutine.resume(coroutine.create(function()
  4670. swait(5)
  4671. sphereMK(10,math.random(15,45)/45,"Add",root.CFrame*CFrame.new(math.random(-50,50),-40,math.random(-50,50))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,60,-0.01,MAINRUINCOLOR,0)
  4672. end))
  4673. swait(1)
  4674. rotperm = rotperm + 12
  4675. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(rotperm),0)*CFrame.new(0,0,10),vt(3,3,3),-0.03,-0.03,-0.03,MAINRUINCOLOR)
  4676. sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 + rotperm),0)*CFrame.new(0,0,10),vt(3,3,3),-0.03,-0.03,-0.03,BrickColor.new("Cool yellow"))
  4677. elseif ModeOfGlitch == 9 and kan.PlaybackLoudness >= 50 then
  4678. swait(25 - kan.PlaybackLoudness/80)
  4679. sphere2(4,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,1,1),0.25,0,0.25,MAINRUINCOLOR)
  4680. if kan.PlaybackLoudness >= 300 then
  4681. CameraEnshaking(1,3)
  4682. for i = 0, 4 do
  4683. sphereMK(5,math.random(15,35)/150,"Add",root.CFrame*CFrame.new(math.random(-15,15),-10,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,20,-0.01,MAINRUINCOLOR,0)
  4684. end
  4685. sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,1,1),0.5,0,0.5,MAINRUINCOLOR)
  4686. end
  4687. local notsp = Instance.new("Part", char)
  4688. notsp.CanCollide = false
  4689. notsp.FormFactor = 3
  4690. notsp.Name = "Ring"
  4691. notsp.Material = "Neon"
  4692. notsp.Size = Vector3.new(10, 1, 10)
  4693. if kan.PlaybackLoudness >= 300 then
  4694. notsp.Size = Vector3.new(25, 1, 25)
  4695. end
  4696. notsp.Transparency = 1
  4697. notsp.TopSurface = 0
  4698. notsp.BottomSurface = 0
  4699. notsp.Anchored = true
  4700. notsp.CFrame = root.CFrame*CFrame.new(0,-3,0)
  4701. coroutine.resume(coroutine.create(function()
  4702. local eff = Instance.new("ParticleEmitter",notsp)
  4703. eff.Texture = "rbxassetid://288898235"
  4704. eff.LightEmission = 0.5
  4705. eff.Color = ColorSequence.new(Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000))
  4706. eff.Rate = 300
  4707. eff.Lifetime = NumberRange.new(1)
  4708. eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,0,0)})
  4709. eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  4710. eff.Speed = NumberRange.new(20,40)
  4711. eff.Acceleration = vt(0,-75,0)
  4712. eff.Drag = 1
  4713. eff.Rotation = NumberRange.new(-10,10)
  4714. eff.VelocitySpread = 20
  4715. eff.RotSpeed = NumberRange.new(-1,1)
  4716. coroutine.resume(coroutine.create(function()
  4717. while true do
  4718. swait()
  4719. if eff.Parent ~= nil then
  4720. if ModeOfGlitch == 9 then
  4721. eff.Color = ColorSequence.new(Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000))
  4722. elseif ModeOfGlitch ~= 9 then
  4723. eff.Color = ColorSequence.new(MAINRUINCOLOR.Color)
  4724. end
  4725. else
  4726. break
  4727. end
  4728. end
  4729. end))
  4730. wait(0.1)
  4731. eff.Enabled = false
  4732. end))
  4733. game:GetService("Debris"):AddItem(notsp, 5)
  4734. end
  4735. end
  4736. end))
  4737.  
  4738.  
  4739. Humanoid.Name = "GGLITCHER"
  4740. Humanoid.MaxHealth = math.huge
  4741. Humanoid.Health = math.huge
  4742. Instance.new("ForceField",char).Visible = false
  4743.  
  4744. idleanim=.4
  4745. while true do
  4746. Humanoid.MaxHealth = math.huge
  4747. Humanoid.Health = math.huge
  4748. if mutedtog == false and duringend == false then
  4749. kan.Volume = currentVol
  4750. elseif mutedtog == true and duringend == false then
  4751. kan.Volume = 0
  4752. end
  4753. if duringend == false then
  4754. kan.PlaybackSpeed = currentPitch
  4755. kan.Pitch = currentPitch
  4756. end
  4757. kan.SoundId = currentThemePlaying
  4758. kan.Looped = true
  4759. kan.Parent = char
  4760. kan:Resume()
  4761.  
  4762. modeteller.Text = string.upper(modet.Text)
  4763. modeteller.TextColor3 = MAINRUINCOLOR.Color
  4764.  
  4765. swait()
  4766. handlexweld.C0=clerp(handlexweld.C0,cf(0 + 0.25 * math.cos(sine / 63),0 + 0.25 * math.cos(sine / 70),0 + 0.05 * math.cos(sine / 57))*angles(math.rad(0 + 2 * math.cos(sine / 55)),math.rad(0 + 2 * math.cos(sine / 46)),math.rad(0 + 2 * math.cos(sine / 32))),.3)
  4767.  
  4768. lwing1weld.C1=clerp(lwing1weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 36),0)*angles(math.rad(0 + 3 * math.cos(sine / 42)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(90 + 5 * math.cos(sine / 56))),.3)
  4769. lwing2weld.C1=clerp(lwing2weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 38),0)*angles(math.rad(0 + 3 * math.cos(sine / 45)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(130 + 5 * math.cos(sine / 56))),.3)
  4770. lwing3weld.C1=clerp(lwing3weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 41),0)*angles(math.rad(0 + 3 * math.cos(sine / 48)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(50 + 5 * math.cos(sine / 56))),.3)
  4771. rwing1weld.C1=clerp(rwing1weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 36),0)*angles(math.rad(0 + 3 * math.cos(sine / 46)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(-90 - 5 * math.cos(sine / 56))),.3)
  4772. rwing2weld.C1=clerp(rwing2weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 38),0)*angles(math.rad(0 + 3 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(-130 - 5 * math.cos(sine / 56))),.3)
  4773. rwing3weld.C1=clerp(rwing3weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 41),0)*angles(math.rad(0 + 3 * math.cos(sine / 40)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-50 - 5 * math.cos(sine / 56))),.3)
  4774. --------------- Visualiser Zone
  4775. if ModeOfGlitch == 9 then
  4776. modet.TextColor3 = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  4777. for i, v in pairs(mw2:GetChildren()) do
  4778. if v:IsA("Part") then
  4779. v.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  4780. v.Material = "Neon"
  4781. end
  4782. end
  4783. for i, v in pairs(mw1:GetChildren()) do
  4784. if v:IsA("Part") then
  4785. v.Transparency = 0
  4786. v.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)
  4787. v.Material = "Neon"
  4788. end
  4789. end
  4790. end
  4791. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  4792. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  4793. ---------------
  4794. sine = sine + change
  4795. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  4796. local velderp=RootPart.Velocity.y
  4797. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  4798. if equipped==true or equipped==false then
  4799. if attack==false then
  4800. idle=idle+1
  4801. else
  4802. idle=0
  4803. end
  4804. if idle>=500 then
  4805. if attack==false then
  4806. --Sheath()
  4807. end
  4808. end
  4809. if RootPart.Velocity.y > 1 and hitfloor==nil then
  4810. Anim="Jump"
  4811. if attack==false then
  4812. RH.C0=clerp(RH.C0,cf(1,-0.35 - 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)),.1)
  4813. 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)
  4814. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/6),math.rad(0),math.rad(0)),.1)
  4815. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
  4816. 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)
  4817. 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)
  4818. end
  4819. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  4820. Anim="Fall"
  4821. if attack==false then
  4822. RH.C0=clerp(RH.C0,cf(1,-0.35 - 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)),.1)
  4823. 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)
  4824. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/6),math.rad(0),math.rad(0)),.1)
  4825. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1)
  4826. RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(55)),.1)
  4827. LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(-55)),.1)
  4828. end
  4829. elseif torvel<1 and hitfloor~=nil then
  4830. Anim="Idle"
  4831. if attack==false then
  4832. if ModeOfGlitch == 1 then
  4833. 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(-10 + 2 * math.cos(sine / 43)),math.rad(0 - 2 * math.cos(sine / 34))),.1)
  4834. 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(-1.5),math.rad(0),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  4835. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(10 - 2 * math.cos(sine / 43))),.1)
  4836. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0 - 2 * math.cos(sine / 47)),math.rad(-10 + 2 * math.cos(sine / 43))),.1)
  4837. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 + 3 * math.cos(sine / 48)),math.rad(-20 - 4 * math.cos(sine / 53)),math.rad(15 - 3 * math.cos(sine / 38))),.1)
  4838. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-10 + 2 * math.cos(sine / 45)),math.rad(0),math.rad(-20 + 2 * math.cos(sine / 39))),.1)
  4839. elseif ModeOfGlitch == 2 then
  4840. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - 0.03 * math.cos(sine / 45),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5 + 3 * math.cos(sine / 45)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1)
  4841. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + 0.03 * math.cos(sine / 45),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 3 * math.cos(sine / 45)),math.rad(5),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  4842. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.03 * math.cos(sine / 45),0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0 + 3 * math.cos(sine / 45)),math.rad(0)),.1)
  4843. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 2.5 * math.cos(sine / 28)),math.rad(0 + 5 * math.cos(sine / 99)),math.rad(0 + 10 * math.cos(sine / 78))),.1)
  4844. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15 + 5 * math.cos(sine / 33)),math.rad(15 + 6 * math.cos(sine / 38)),math.rad(-10 - 3 * math.cos(sine / 42))),.1)
  4845. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.05 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 5 * math.cos(sine / 28))),.1)
  4846. elseif ModeOfGlitch == 10 then
  4847. RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, -0.1 + 0.1 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15)
  4848. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5 * math.sin(sine / 20)), math.rad(0), math.rad(0)), 0.3)
  4849. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.9 - 0.1 * math.cos(sine / 20), 0.025 * math.cos(sine / 20)) * RHCF * angles(math.rad(-4.5), math.rad(0), math.rad(0)), 0.15)
  4850. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.9 - 0.1 * math.cos(sine / 20), 0.025 * math.cos(sine / 20)) * LHCF * angles(math.rad(-6.5), math.rad(0), math.rad(0)), 0.15)
  4851. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.4 + 0.05 * math.sin(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(-0), math.rad(-30)), 0.1)
  4852. LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.4 + 0.05 * math.cos(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.1)
  4853. elseif ModeOfGlitch == 3 then
  4854. 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(-5 - 2 * math.cos(sine / 34))),.1)
  4855. 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(-1.5),math.rad(20 - 2 * math.cos(sine / 72)),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  4856. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-20 + 2 * math.cos(sine / 72))),.1)
  4857. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0 + 4 * math.cos(sine / 55)),math.rad(20 - 2 * math.cos(sine / 72))),.1)
  4858. RW.C0=clerp(RW.C0,cf(1.15,0.5 + 0.1 * math.cos(sine / 28),0.25)*angles(math.rad(-22 + 2 * math.cos(sine / 38)),math.rad(0),math.rad(-15 - 2 * math.cos(sine / 41))),.1)
  4859. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 - 6 * math.cos(sine / 28)),math.rad(0 + 5 * math.cos(sine / 46)),math.rad(-20 + 5 * math.cos(sine / 34))),.1)
  4860. elseif ModeOfGlitch == 4 then
  4861. 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(-5),math.rad(0 - 3 * math.cos(sine / 34))),.1)
  4862. 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(-1.5),math.rad(0),math.rad(10 + 3 * math.cos(sine / 34))),.1)
  4863. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.03 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(25)),.1)
  4864. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0 + 2 * math.cos(sine / 57)),math.rad(-25)),.1)
  4865. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 + 5 * math.cos(sine / 34)),math.rad(0),math.rad(21 + 6 * math.cos(sine / 28))),.1)
  4866. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-5 + 5 * math.cos(sine / 43)),math.rad(10 - 5 * math.cos(sine / 27)),math.rad(-5 - 3 * math.cos(sine / 36))),.1)
  4867. elseif ModeOfGlitch == 5 then
  4868. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1 + 4 * math.cos(sine / 50)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1)
  4869. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5 - 4 * math.cos(sine / 50)),math.rad(18),math.rad(0 + 2 * math.cos(sine / 34))),.1)
  4870. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.04 * math.cos(sine / 50),0 + 0.03 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 + 4 * math.cos(sine / 50)),math.rad(-18)),.1)
  4871. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 1 * math.cos(sine / 28)),math.rad(-5 - 2.5 * math.cos(sine / 57)),math.rad(18)),.1)
  4872. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.05 * math.cos(sine / 28),-0.65)*angles(math.rad(36 - 3 * math.cos(sine / 34)),math.rad(0 - 2 * math.cos(sine / 45)),math.rad(-80 + 5 * math.cos(sine / 28))),.1)
  4873. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(7 + 3 * math.cos(sine / 49)),math.rad(12 + 2 * math.cos(sine / 52)),math.rad(-16 - 6 * math.cos(sine / 39))),.1)
  4874. elseif ModeOfGlitch == 6 then
  4875. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-10 + 4 * math.cos(sine / 34))),.1)
  4876. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(5 + 2 * math.cos(sine / 34))),.1)
  4877. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-5 - 2 * math.cos(sine / 53))),.1)
  4878. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 1 * math.cos(sine / 28)),math.rad(2 + 3 * math.cos(sine / 41)),math.rad(5 + 2 * math.cos(sine / 53))),.1)
  4879. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-2 - 4 * math.cos(sine / 28)),math.rad(0),math.rad(14 + 8 * math.cos(sine / 28))),.1)
  4880. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(5 + 3 * math.cos(sine / 46)),math.rad(10 + 5 * math.cos(sine / 52)),math.rad(-15 - 6 * math.cos(sine / 28))),.1)
  4881. elseif ModeOfGlitch == 7 then
  4882. 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(1),math.rad(0 - 1 * math.cos(sine / 34))),.1)
  4883. 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(5),math.rad(0 + 1 * math.cos(sine / 34))),.1)
  4884. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.01 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1)
  4885. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0 + 1 * math.cos(sine / 71)),math.rad(0)),.1)
  4886. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(4 - 4 * math.cos(sine / 28)),math.rad(-8),math.rad(10 - 5 * math.cos(sine / 34))),.1)
  4887. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(5),math.rad(5),math.rad(5)),.1)
  4888. elseif ModeOfGlitch == 8 then
  4889. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  4890. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1)
  4891. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1)
  4892. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1)
  4893. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-2 - 3 * math.cos(sine / 30)),math.rad(25 - 3 * math.cos(sine / 38)),math.rad(28 - 6 * math.cos(sine / 34))),.1)
  4894. LW.C0=clerp(LW.C0,cf(-0.95,0.65 + 0.075 * math.cos(sine / 28),-0.65)*angles(math.rad(90 + 2 * math.cos(sine / 73)),math.rad(25 + 5 * math.cos(sine / 24)),math.rad(73 - 3 * math.cos(sine / 65))),.1)
  4895. elseif ModeOfGlitch == 9 then
  4896. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/5000,-0.1)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(0 - 2 * math.cos(sine / 56) + kan.PlaybackLoudness/450)),.4)
  4897. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - kan.PlaybackLoudness/6500,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(5),math.rad(0 + 2 * math.cos(sine / 56) + kan.PlaybackLoudness/500)),.4)
  4898. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 56) ,0 + 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/7000)*angles(math.rad(0 - 2 * math.cos(sine / 56)),math.rad(0),math.rad(30)),.4)
  4899. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2 * math.cos(sine / 28) - kan.PlaybackLoudness/60),math.rad(0 + 2 * math.cos(sine / 73)),math.rad(-30)),.4)
  4900. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(40 + 5 * math.cos(sine / 34) + kan.PlaybackLoudness/7.5),math.rad(0),math.rad(28 - 2 * math.cos(sine / 38))),.4)
  4901. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(10),math.rad(5),math.rad(7.5)),.4)
  4902. elseif ModeOfGlitch == 2000000000 then
  4903. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1)
  4904. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 3 * math.cos(sine / 34))),.1)
  4905. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(2 + 3 * math.cos(sine / 34)),math.rad(0),math.rad(34 - 3 * math.cos(sine / 54))),.1)
  4906. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 4 * math.cos(sine / 28)),math.rad(0 - 1 * math.cos(sine / 44)),math.rad(-34 + 3 * math.cos(sine / 54))),.1)
  4907. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(12 + 5 * math.cos(sine / 62)),math.rad(30 + 5 * math.cos(sine / 48)),math.rad(19 + 6 * math.cos(sine / 36))),.1)
  4908. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 + 3 * math.cos(sine / 65)),math.rad(6 + 3 * math.cos(sine / 57)),math.rad(-20 - 7 * math.cos(sine / 36))),.1)
  4909. elseif ModeOfGlitch == 6000000000 then
  4910. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-15 + 6 * math.cos(sine / 34))),.1)
  4911. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(7.5 - 4 * math.cos(sine / 47))),.1)
  4912. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(-1 + 4 * math.cos(sine / 62))),.1)
  4913. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 28)),math.rad(5 - 6 * math.cos(sine / 79)),math.rad(1 - 4 * math.cos(sine / 62))),.1)
  4914. RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.01 * math.cos(sine / 28),-0.65)*angles(math.rad(38 + 2 * math.cos(sine / 33)),math.rad(0),math.rad(-95 - 3 * math.cos(sine / 28))),.1)
  4915. LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.01 * math.cos(sine / 28),-0.65)*angles(math.rad(45 - 3 * math.cos(sine / 37)),math.rad(0),math.rad(80 + 5 * math.cos(sine / 30))),.1)
  4916. elseif ModeOfGlitch == 9600000000 then
  4917. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7 - 5 * math.cos(sine / 44)),math.rad(0),math.rad(-6 - 3 * math.cos(sine / 34))),.1)
  4918. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 + 5 * math.cos(sine / 44)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 34))),.1)
  4919. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.05 * math.cos(sine / 44),0 + 0.03 * math.cos(sine / 34),-0.05 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 - 5 * math.cos(sine / 44)),math.rad(-5)),.1)
  4920. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5 - 2.5 * math.cos(sine / 28)),math.rad(10 + 5 * math.cos(sine / 62)),math.rad(17 + 5 * math.cos(sine / 59))),.1)
  4921. RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 3 * math.cos(sine / 53)),math.rad(0),math.rad(-37 + 2 * math.cos(sine / 37))),.1)
  4922. LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(23 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(38 - 3 * math.cos(sine / 57) )),.1)
  4923. end
  4924. end
  4925. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  4926. Anim="Walk"
  4927. if attack==false then
  4928. if ModeOfGlitch == 10 then
  4929. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.175 + 0.025 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * angles(math.rad(4-2.5 * math.cos(sine / 3.5)), math.rad(0) - root.RotVelocity.Y / 75, math.rad(5 * math.cos(sine / 7))), 0.15)
  4930. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5 * math.sin(sine / 20)), math.rad(0), math.rad(0) - hed.RotVelocity.Y / 15), 0.3)
  4931. RH.C0 = clerp(RH.C0, cf(1, -0.925 - 0.5 * math.cos(sine / 7) / 2, 0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 5 * math.cos(sine / 7)) - rl.RotVelocity.Y / 75 + -math.sin(sine / 7) / 2.5, math.rad(90 - 0.1 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 0.1 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  4932. LH.C0 = clerp(LH.C0, cf(-1, -0.925 + 0.5 * math.cos(sine / 7) / 2, -0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 5 * math.cos(sine / 7)) + ll.RotVelocity.Y / 75 + math.sin(sine / 7) / 2.5, math.rad(-90 - 0.1 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 0.1 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3)
  4933. RW.C0 = clerp(RW.C0, cf(1.1, 0.4 + 0.05 * math.sin(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(-0), math.rad(-30)), 0.1)
  4934. LW.C0 = clerp(LW.C0, cf(-1.1, 0.4 + 0.05 * math.sin(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.1)
  4935. elseif ModeOfGlitch ~= 9600000000 then
  4936. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*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 + 35 * math.cos(sine / 8))),.1)
  4937. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*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 + 35 * math.cos(sine / 8))),.1)
  4938. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1)
  4939. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8))),.1)
  4940. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1)
  4941. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
  4942. elseif ModeOfGlitch == 9600000000 then
  4943. RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 10 * math.cos(sine / 8)),math.rad(0 + 65 * math.cos(sine / 8))),.1)
  4944. LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 10 * math.cos(sine / 8)),math.rad(0 + 65 * math.cos(sine / 8))),.1)
  4945. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.1,-0.05 + 0.05 * math.cos(sine / 4))*angles(math.rad(15 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 8))),.1)
  4946. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-15 + 3 * math.cos(sine / 4)),math.rad(0 - 10 * math.cos(sine / 8)),math.rad(0 - hed.RotVelocity.Y*2.5 + 10 * math.cos(sine / 8))),.1)
  4947. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 80 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1)
  4948. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 80 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1)
  4949. end
  4950. end
  4951. elseif torvel>=22 and hitfloor~=nil then
  4952. Anim="Run"
  4953. if attack==false then
  4954. if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 2000000000 and ModeOfGlitch ~= 6000000000 then
  4955. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 85 * math.cos(sine / 6))),.1)
  4956. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 85 * math.cos(sine / 6))),.1)
  4957. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(15 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 6))),.1)
  4958. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5 + 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 10 * math.cos(sine / 6))),.1)
  4959. RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.5 * math.cos(sine / 6))*angles(math.rad(0 - 140 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 20 * math.cos(sine / 3))),.1)
  4960. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.5 * math.cos(sine / 6))*angles(math.rad(0 + 140 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 20 * math.cos(sine / 3))),.1)
  4961. if ModeOfGlitch == 7 then
  4962. sphereMK(2,-0.5,"Add",root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),8)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,0.5,20,-0.0075,MAINRUINCOLOR,0)
  4963. sphereMK(3,0,"Add",root.CFrame*CFrame.new(0,0,8)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),0.5,5,20,-0.0075,MAINRUINCOLOR,0)
  4964. end
  4965. elseif ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 2000000000 or ModeOfGlitch == 6000000000 then
  4966. RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2)
  4967. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2)
  4968. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2)
  4969. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2)
  4970. RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2)
  4971. LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2)
  4972. end
  4973. end
  4974. end
  4975. end
  4976. end
Advertisement
Add Comment
Please, Sign In to add comment