SimonSolv

making memes in your basement at 3 AM tycoon

Dec 3rd, 2022
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.69 KB | Gaming | 0 0
  1. local Threads = {}
  2. local AutoSellBool = false
  3. local AutoUploadBool = false
  4. local AutoCollectMemes = false
  5. local OwnedHouse = nil
  6.  
  7. function getOwnedHouse()
  8.     for i,Tycoon in pairs(game:GetService("Workspace").Tycoons:GetChildren()) do
  9.         if string.sub(Tycoon.Name,1,string.len("Tycoon")) == "Tycoon" then
  10.             print(Tycoon.TycoonOwner.Value)
  11.             if Tycoon.TycoonOwner.Value == game.Players.LocalPlayer.Name then
  12.                 OwnedHouse = Tycoon
  13.             else
  14.  
  15.             end
  16.         end
  17.     end
  18. end
  19.  
  20. function sell()
  21.     if not AutoSellBool then return end
  22.     game:GetService("ReplicatedStorage").Events.UploadCurrentMemes:FireServer()
  23. end
  24. function upload()
  25.     if not AutoUploadBool then return end
  26.     game:GetService("ReplicatedStorage").Events.MemeToStorage:FireServer()
  27. end
  28.  
  29. function collect()
  30.     if not AutoCollectMemes then return end
  31.     if OwnedHouse ~= nil then
  32.         for i,v in pairs(OwnedHouse.StaticItems:GetChildren()) do
  33.             if string.sub(v.Name,1,4) == "Belt" then
  34.                 fireproximityprompt(v.Collect.CollectPart.ProximityPrompt)
  35.             end
  36.         end
  37.     end
  38. end
  39. getOwnedHouse()
  40. print(OwnedHouse)
  41.  
  42. local function SpawnToggleLoop(Value,Callback)
  43.     local Thread = task.spawn(function()
  44.         while task.wait() do
  45.             Callback()
  46.         end
  47.     end)
  48.     table.insert(Threads,Thread)
  49. end
  50.  
  51. SpawnToggleLoop(AutoUploadBool,upload)
  52. SpawnToggleLoop(AutoSellBool,sell)
  53. SpawnToggleLoop(AutoCollectMemes,collect)
  54.  
  55. local Rayfield = loadstring(game:HttpGet('https://raw.githubusercontent.com/shlexware/Rayfield/main/source'))()
  56. local Window = Rayfield:CreateWindow({
  57.     Name = "Meme Tycoon Hub",
  58.     LoadingTitle = "Meme Tycoon Hub",
  59.     LoadingSubtitle = "by Knucklehedz.Studio",
  60.     ConfigurationSaving = {
  61.         Enabled = false,
  62.         FolderName = nil, -- Create a custom folder for your hub/game
  63.         FileName = "Big Hub"
  64.     },
  65.         Discord = {
  66.             Enabled = false,
  67.             Invite = "sirius", -- The Discord invite code, do not include discord.gg/
  68.             RememberJoins = true -- Set this to false to make them join the discord every time they load it up
  69.         },
  70.     KeySystem = false, -- Set this to true to use our key system
  71.     KeySettings = {
  72.         Title = "Sirius Hub",
  73.         Subtitle = "Key System",
  74.         Note = "Join the discord (discord.gg/sirius)",
  75.         FileName = "SiriusKey",
  76.         SaveKey = true,
  77.         GrabKeyFromSite = false, -- If this is true, set Key below to the RAW site you would like Rayfield to get the key from
  78.         Key = "Hello"
  79.     }
  80. })
  81. local Auto = Window:CreateTab("AutoFarms", 4483362458) -- Title, Image
  82. local AutoSell = Auto:CreateToggle({
  83.     Name = "Auto Sell Memes",
  84.     CurrentValue = false,
  85.     Flag = "AutoSellBool", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
  86.     Callback = function(Value)
  87.         AutoSellBool = Value
  88.     end,
  89. })
  90.  
  91. local AutoUpload = Auto:CreateToggle({
  92.     Name = "Auto Upload Memes",
  93.     CurrentValue = false,
  94.     Flag = "AutoUploadBool", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
  95.     Callback = function(Value)
  96.         AutoUploadBool = Value
  97.     end,
  98. })
  99. local AutoCollect = Auto:CreateToggle({
  100.     Name = "Auto Collect Memes",
  101.     CurrentValue = false,
  102.     Flag = "AutoCollectBool", -- A flag is the identifier for the configuration file, make sure every element has a different flag if you're using configuration saving to ensure no overlaps
  103.     Callback = function(Value)
  104.         AutoCollectMemes = Value
  105.     end,
  106. })
  107. local Settings = Window:CreateTab("Settings",4483362458)
  108.  
  109. local CloseWindow = Settings:CreateButton({
  110.     Name = "Close Window(Kills Loops)",
  111.     Callback = function()
  112.         for i,v in pairs(Threads) do
  113.             task.cancel(v)
  114.         end
  115.         Rayfield:Destroy()
  116.     end,
  117. })
Add Comment
Please, Sign In to add comment