The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Celebrity Simulator script pastebin roblox
By LINK GAME on 2024-09-20 08:00 am | Syntax: LUA | Views: 9



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/Maxgat5/UiLib/main/lua')))()
  2. local w = library:CreateWindow("Celebrity Simulator")
  3. local b = w:CreateFolder("AutoFarm")
  4. local f = w:CreateFolder("AutoBuy")
  5. local e = w:CreateFolder("Mix")
  6. local u = w:CreateFolder("Credits")
  7.  
  8. SelectedEgg = "Wildlife"
  9. Egg = {}
  10. for i,v in pairs(game:GetService("Workspace").Eggs:GetChildren()) do
  11.     if not table.find(Egg,v.Name) then
  12.         table.insert(Egg,v.Name)
  13.     end
  14. end
  15.  
  16. b:Toggle("AutoPlay",function(bool)
  17.     shared.toggle = bool
  18.     AutoPlay = bool
  19. end)
  20.  
  21. b:Toggle("AutoSell",function(bool)
  22.     shared.toggle = bool
  23.     autosell = bool
  24. end)
  25.  
  26. b:Toggle("AutoCollectDrops",function(bool)
  27.     shared.toggle = bool
  28.     autodrops = bool
  29. end)
  30.  
  31. f:Toggle("Instruments",function(bool)
  32.     shared.toggle = bool
  33.     instrument = bool
  34. end)
  35.  
  36. f:Toggle("Upgrades",function(bool)
  37.     shared.toggle = bool
  38.     AutoUpgrades = bool
  39. end)
  40.  
  41. f:Dropdown("Select Egg",Egg,true,function(blubb)
  42.     SelectedEgg = blubb
  43. end)
  44.  
  45. f:Button("TP to Egg",function()
  46.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game:GetService("Workspace").Eggs[SelectedEgg].CFrame.Position + Vector3.new(0,3,0))
  47. end)
  48.  
  49. f:Toggle("AutoHatch",function(bool)
  50.     shared.toggle = bool
  51.     autoegg = bool
  52. end)
  53.  
  54. f:Toggle("EquipBest",function(bool)
  55.     shared.toggle = bool
  56.     equipbest = bool
  57. end)
  58.  
  59. e:Toggle("AntiAfk",function(bool)
  60.     shared.toggle = bool
  61.     AntiAfk = bool
  62. end)
  63.  
  64. --Credits
  65. u:Button("Moepi#1149",function()
  66.     setclipboard("Moepi#1149")
  67. end)
  68.  
  69. u:Button("maxgat5#8395",function()
  70.     setclipboard("maxgat5#8395")
  71. end)
  72.  
  73. u:Button("Discord Server",function()
  74.     setclipboard("https://discord.gg/K4txdRSVfq")
  75. end)
  76.  
  77. while wait() do
  78.     spawn(function()
  79.         pcall(function()
  80.             if AutoPlay == true then
  81.                 for i,v in pairs(game:GetService("Workspace").ClientBeats[game.Players.LocalPlayer.Name].Beats:GetChildren()) do
  82.                     if v.Name == "Section1" then
  83.                         local magnitude = (v.Position - game:GetService("Workspace").ClientBeats[game.Players.LocalPlayer.Name].Section1.Position).Magnitude
  84.                         if magnitude <= 1 then
  85.                             game:GetService("ReplicatedStorage").Events.Beats.BeatPlayed:FireServer("Section1",false,0)
  86.                         end
  87.                     end
  88.                    
  89.                     if v.Name == "Section2" then
  90.                         local magnitude = (v.Position - game:GetService("Workspace").ClientBeats[game.Players.LocalPlayer.Name].Section2.Position).Magnitude
  91.                         if magnitude <= 1 then
  92.                             game:GetService("ReplicatedStorage").Events.Beats.BeatPlayed:FireServer("Section2",false,0)
  93.                         end
  94.                     end
  95.                    
  96.                     if v.Name == "Section3" then
  97.                         local magnitude = (v.Position - game:GetService("Workspace").ClientBeats[game.Players.LocalPlayer.Name].Section3.Position).Magnitude
  98.                         if magnitude <= 1 then
  99.                             game:GetService("ReplicatedStorage").Events.Beats.BeatPlayed:FireServer("Section3",false,0)
  100.                         end
  101.                     end
  102.                    
  103.                     if v.Name == "Section4" then
  104.                         local magnitude = (v.Position - game:GetService("Workspace").ClientBeats[game.Players.LocalPlayer.Name].Section4.Position).Magnitude
  105.                         if magnitude <= 1 then
  106.                             game:GetService("ReplicatedStorage").Events.Beats.BeatPlayed:FireServer("Section4",false,0)
  107.                         end
  108.                     end
  109.                 end
  110.             end
  111.         end)
  112.     end)
  113.  
  114.     spawn(function()
  115.         if autosell == true then
  116.             pcall(function()
  117.                 firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, game:GetService("Workspace").SellPoints.NewYork, 0)
  118.                 wait()
  119.                 firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, game:GetService("Workspace").SellPoints.NewYork, 1)
  120.             end)
  121.         end
  122.     end)
  123.  
  124.     spawn(function()
  125.         if autodrops == true then
  126.             pcall(function()
  127.                 for i,v in pairs(game:GetService("Workspace").SpawnedCurrency.System1.Spawned:GetDescendants()) do
  128.                     if v.ClassName == "TouchTransmitter" then
  129.                         firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v.Parent, 0)
  130.                         wait()
  131.                         firetouchinterest(game.Players.LocalPlayer.Character.HumanoidRootPart, v.Parent, 1)
  132.                     end
  133.                 end
  134.             end)
  135.         end
  136.     end)
  137.  
  138.     spawn(function()
  139.         if instrument == true then
  140.             game:GetService("ReplicatedStorage").Events.Instruments.PurchaseInstrument:FireServer()
  141.         end
  142.     end)
  143.  
  144.     spawn(function()
  145.         if autoegg == true then
  146.             game:GetService("ReplicatedStorage").Events.Eggs.PurchaseEgg:FireServer(SelectedEgg,"ONE")
  147.         end
  148.     end)
  149.  
  150.     spawn(function()
  151.         if equipbest == true then
  152.             game:GetService("ReplicatedStorage").Events.Pets.EquipBest:FireServer()
  153.         end
  154.     end)
  155.    
  156.     spawn(function()
  157.         if AutoUpgrades == true then
  158.             for i,v in pairs(game:GetService("Players").LocalPlayer.PlayerGui.MainGui.UpgradesFrame.ScrollingFrame:GetChildren()) do
  159.                 if v.ClassName == "ImageLabel" then
  160.                     game:GetService("ReplicatedStorage").Events.Upgrades.PurchaseUpgrade:FireServer(v.Name)
  161.                 end
  162.             end
  163.         end
  164.     end)
  165.    
  166.     spawn(function()
  167.         if AntiAfk == true then
  168.             local bb=game:service'VirtualUser'
  169.             bb:CaptureController()
  170.             bb:ClickButton2(Vector2.new())
  171.         end
  172.     end)
  173. end