Advertisement
nightcamel

new

Aug 16th, 2022 (edited)
811
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 20.90 KB | None | 0 0
  1. --Wait until game loads
  2. repeat
  3.     wait()
  4. until game:IsLoaded()
  5.  
  6. --Stops script if on a different game
  7. if game.PlaceId ~= 8737602449 then
  8.     return
  9. end
  10. if game.Players.LocalPlayer.Name ~= "Zvoro984" then
  11.     return
  12. end
  13.  
  14. --Anti-AFK
  15. local Players = game:GetService("Players")
  16. local connections = getconnections or get_signal_cons
  17. if connections then
  18.     for i,v in pairs(connections(Players.LocalPlayer.Idled)) do
  19.         if v["Disable"] then
  20.             v["Disable"](v)
  21.         elseif v["Disconnect"] then
  22.             v["Disconnect"](v)
  23.         end
  24.     end
  25. else
  26.     Players.LocalPlayer.Idled:Connect(function()
  27.         local VirtualUser = game:GetService("VirtualUser")
  28.         VirtualUser:CaptureController()
  29.         VirtualUser:ClickButton2(Vector2.new())
  30.     end)
  31. end
  32.  
  33. --Variables
  34. local unclaimed = {}
  35. local counter = 0
  36. local donation
  37. local boothText
  38. local errCount = 0
  39. local spamming
  40. local booths = {
  41.     ["1"] = "72, 3, 36",
  42.     ["2"] = "83, 3, 161",
  43.     ["3"] = "11, 3, 36",
  44.     ["4"] = "100, 3, 59",
  45.     ["5"] = "72, 3, 166",
  46.     ["6"] = "2, 3, 42",
  47.     ["7"] = "-9, 3, 52",
  48.     ["8"] = "10, 3, 166",
  49.     ["9"] = "-17, 3, 60",
  50.     ["10"] = "35, 3, 173",
  51.     ["11"] = "24, 3, 170",
  52.     ["12"] = "48, 3, 29",
  53.     ["13"] = "24, 3, 33",
  54.     ["14"] = "101, 3, 142",
  55.     ["15"] = "-18, 3, 142",
  56.     ["16"] = "60, 3, 33",
  57.     ["17"] = "35, 3, 29",
  58.     ["18"] = "0, 3, 160",
  59.     ["19"] = "48, 3, 173",
  60.     ["20"] = "61, 3, 170",
  61.     ["21"] = "91, 3, 151",
  62.     ["22"] = "-24, 3, 72",
  63.     ["23"] = "-28, 3, 88",
  64.     ["24"] = "92, 3, 51",
  65.     ["25"] = "-28, 3, 112",
  66.     ["26"] = "-24, 3, 129",
  67.     ["27"] = "83, 3, 42",
  68.     ["28"] = "-8, 3, 151"
  69. }
  70. local queueonteleport = (syn and syn.queue_on_teleport) or queue_on_teleport or (fluxus and fluxus.queue_on_teleport)
  71. local httprequest = (syn and syn.request) or http and http.request or http_request or (fluxus and fluxus.request) or request
  72. local httpservice = game:GetService('HttpService')
  73. queueonteleport("loadstring(game:HttpGet('https://raw.githubusercontent.com/tzechco/roblox-scripts/main/PLS%20DONATE/autofarm.lua'))()")
  74. local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/tzechco/roblox-scripts/main/UI/ui-engine-v2.lua"))()
  75. getgenv().settings = {}
  76. --Load Settings
  77. if isfile("plsdonatesettings.txt") then
  78.     getgenv().settings = httpservice:JSONDecode(readfile('plsdonatesettings.txt'))
  79. end
  80. local sNames = {"textUpdateToggle", "textUpdateDelay", "serverHopToggle", "serverHopDelay", "hexBox", "goalBox", "webhookToggle", "webhookBox", "danceToggle", "thanksMessage", "signToggle", "customBoothText", "signUpdateToggle", "signText", "signHexBox", "autoThanks", "autoBeg", "begMessage", "begDelay"}
  81. local sValues = {true, 30, true, 30, "#32CD32", 5, false, "", false, {"Thank you", "Thanks!", "ty :)", "tysm!"}, false, "GOAL: $C / $G", false, "your text here", "#ffffff", true, false, {"Please donate", "I'm so close to my goal!", "donate to me", "please"}, 300}
  82. if #getgenv().settings ~= sNames then
  83.     for i, v in ipairs(sNames) do
  84.         if getgenv().settings[v] == nil then
  85.             getgenv().settings[v] = sValues[i]
  86.         end
  87.     end
  88.     writefile('plsdonatesettings.txt', httpservice:JSONEncode(getgenv().settings))
  89. end
  90. print(#sNames)
  91. print(#sValues)
  92.  
  93. --Save Settings
  94. local settingsLock = true
  95. local function saveSettings()
  96.     if settingsLock == false then
  97.         print('Settings saved.')
  98.         writefile('plsdonatesettings.txt', httpservice:JSONEncode(getgenv().settings))
  99.     end
  100. end
  101.  
  102. --Function to fix slider
  103. local sliderInProgress = false;
  104. local function slider(value, whichSlider)
  105.     if sliderInProgress then
  106.         return
  107.     end
  108.     sliderInProgress = true
  109.     wait(5)
  110.     if whichSlider == "serverHopDelay" then
  111.         if getgenv().settings.serverHopDelay == value then
  112.             print(getgenv().settings.serverHopDelay)
  113.             print(value)
  114.             saveSettings()
  115.             sliderInProgress = false;
  116.         else
  117.             sliderInProgress = false;
  118.             return slider(getgenv().settings.serverHopDelay, "serverHopDelay")
  119.         end
  120.     elseif whichSlider == "textUpdateDelay" then
  121.         if getgenv().settings.textUpdateDelay == value then
  122.             saveSettings()
  123.             sliderInProgress = false;
  124.         else
  125.             sliderInProgress = false;
  126.             return slider(getgenv().settings.textUpdateDelay, "textUpdateDelay")
  127.         end
  128.     elseif whichSlider == "begDelay" then
  129.         if getgenv().settings.begDelay == value then
  130.             saveSettings()
  131.             sliderInProgress = false;
  132.         else
  133.             sliderInProgress = false;
  134.             return slider(getgenv().settings.begDelay, "begDelay")
  135.         end
  136.     end
  137. end
  138.  
  139. --Booth update function
  140. local function update()
  141.     local text
  142.     local current = Players.LocalPlayer.leaderstats.Raised.Value
  143.     local goal = current + tonumber(getgenv().settings.goalBox)
  144.     if goal > 999 then
  145.         if tonumber(getgenv().settings.goalBox) < 10 then
  146.             goal = string.format("%.2fk", (current + 10) / 10 ^ 3)
  147.         else
  148.             goal = string.format("%.2fk", (goal) / 10 ^ 3)
  149.         end
  150.     end
  151.     if current > 999 then
  152.         current = string.format("%.2fk", current / 10 ^ 3)
  153.     end
  154.         text = string.gsub(getgenv().settings.customBoothText, "$C", current)
  155.         text = string.gsub (text, "$G", goal)
  156.         boothText = tostring('<font color="'.. getgenv().settings.hexBox.. '">'.. text.. '</font>')
  157.     --Updates the booth text
  158.     local myBooth = Players.LocalPlayer.PlayerGui.MapUIContainer.MapUI.BoothUI:FindFirstChild(tostring("BoothUI".. unclaimed[1]))
  159.     if myBooth.Sign.TextLabel.Text ~= boothText then
  160.         if string.find(myBooth.Sign.TextLabel.Text, "# #") or string.find(myBooth.Sign.TextLabel.Text, "##") then
  161.             require(game.ReplicatedStorage.Remotes).Event("SetBoothText"):FireServer("your text here", "booth")
  162.             wait(3)
  163.         end
  164.         require(game.ReplicatedStorage.Remotes).Event("SetBoothText"):FireServer(boothText, "booth")
  165.         wait(3)
  166.     end
  167.     if getgenv().settings.signToggle then
  168.         text = string.gsub(getgenv().settings.signText, "$C", current)
  169.         text = string.gsub (text, "$G", goal)
  170.         signText = tostring('<font color="'.. getgenv().settings.signHexBox.. '">'.. text.. '</font>')
  171.         require(game.ReplicatedStorage.Remotes).Event("SetBoothText"):FireServer(signText, "sign")
  172.     end
  173. end
  174.  
  175. local function begging()
  176.     while getgenv().settings.autoBeg do
  177.         game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(getgenv().settings.begMessage[math.random(#getgenv().settings.begMessage)],"All")
  178.         wait(getgenv().settings.begDelay)
  179.     end
  180. end
  181.  
  182. local function serverHop()
  183.     while wait(5) do
  184.         local servers = {}
  185.         local req = httprequest({Url = "https://games.roblox.com/v1/games/8737602449/servers/Public?sortOrder=Desc&limit=100"})
  186.         local body = httpservice:JSONDecode(req.Body)
  187.         if body and body.data then
  188.             for i, v in next, body.data do
  189.                 if type(v) == "table" and tonumber(v.playing) and tonumber(v.maxPlayers) and v.playing < v.maxPlayers and v.playing > 19 then
  190.                     table.insert(servers, 1, v.id)
  191.                 end
  192.             end
  193.         end
  194.         if #servers > 0 then
  195.             game:GetService("TeleportService"):TeleportToPlaceInstance("8737602449", servers[math.random(1, #servers)], Players.LocalPlayer)
  196.         end
  197.     end
  198. end
  199.  
  200. local function webhook(msg)
  201.     httprequest({
  202.         Url = getgenv().settings.webhookBox,
  203.         Body = httpservice:JSONEncode({["content"] = msg}),
  204.         Method = "POST",
  205.         Headers = {["content-type"] = "application/json"}
  206.     })
  207. end
  208.    
  209. --GUI
  210. local Window = library:AddWindow("PLS DONATE",
  211. {
  212.     main_color = Color3.fromRGB(0, 128, 0),
  213.     min_size = Vector2.new(350, 400),
  214.     toggle_key = Enum.KeyCode.RightShift,
  215.     can_resize = true
  216. })
  217. local boothTab = Window:AddTab("Booth")
  218. local signTab = Window:AddTab("Sign")
  219. local chatTab = Window:AddTab("Chat")
  220. local webhookTab = Window:AddTab("Webhook")
  221. local serverHopTab = Window:AddTab("Server Hop")
  222.  
  223. --Booth Settings
  224. local textUpdateToggle = boothTab:AddSwitch("Text Update", function(bool)
  225.     if settingsLock then
  226.         return
  227.     end
  228.     getgenv().settings.textUpdateToggle = bool
  229.     saveSettings()
  230.     if bool then
  231.         wait(1)
  232.         update()
  233.     end
  234. end)
  235. textUpdateToggle:Set(getgenv().settings.textUpdateToggle)
  236. local danceToggle = boothTab:AddSwitch("Dance", function(bool)
  237.     if settingsLock then
  238.         return
  239.     end
  240.     getgenv().settings.danceToggle = bool
  241.     saveSettings()
  242.     if bool then
  243.         Players:Chat("/e dance")
  244.     else
  245.         Players:Chat("/e wave")
  246.     end
  247. end)
  248. danceToggle:Set(getgenv().settings.danceToggle)
  249. local textUpdateDelay = boothTab:AddSlider("Text Update Delay (S)", function(x)
  250.     if settingsLock then
  251.        return
  252.     end
  253.     getgenv().settings.textUpdateDelay = x
  254.     coroutine.wrap(slider)(getgenv().settings.textUpdateDelay, "textUpdateDelay")
  255. end,
  256. {
  257.     ["min"] = 0,
  258.     ["max"] = 120
  259. })
  260. textUpdateDelay:Set((getgenv().settings.textUpdateDelay / 120) * 100)
  261. boothTab:AddLabel("Text Color:")
  262. local hexBox = boothTab:AddTextBox("Hex Codes Only", function(text)
  263.     if settingsLock then
  264.         return
  265.     end
  266.     local success = pcall(function()
  267.         return Color3.fromHex(text)
  268.     end)
  269.     if success and string.find(text, "#") then
  270.         getgenv().settings.hexBox = text
  271.         saveSettings()
  272.         if getgenv().settings.textUpdateToggle and getgenv().settings.customBoothText then
  273.             wait(1)
  274.             update()
  275.         end
  276.     end
  277. end,
  278. {
  279.     ["clear"] = false
  280. })
  281. hexBox.Text = getgenv().settings.hexBox
  282. boothTab:AddLabel("Goal Increase:")
  283. local goalBox = boothTab:AddTextBox("Numbers Only", function(text)
  284.     if tonumber(text) then
  285.         getgenv().settings.goalBox = tonumber(text)
  286.         saveSettings()
  287.         if getgenv().settings.textUpdateToggle and getgenv().settings.customBoothText then
  288.             wait(1)
  289.             update()
  290.         end
  291.     end
  292. end,
  293. {
  294.     ["clear"] = false
  295. })
  296. goalBox.Text = getgenv().settings.goalBox
  297. boothTab:AddLabel("Custom Booth Text:")
  298. local customBoothText = boothTab:AddConsole({
  299.     ["y"] = 50,
  300.     ["source"] = "",
  301. })
  302. customBoothText:Set(getgenv().settings.customBoothText)
  303. boothTab:AddButton("Save", function()
  304.     if #customBoothText:Get() > 221 then
  305.         customBoothText:Set("221 Character Limit")
  306.     end
  307.     if settingsLock then
  308.         return
  309.     end
  310.     if customBoothText:Get() then
  311.         getgenv().settings.customBoothText = customBoothText:Get()
  312.         saveSettings()
  313.         update()
  314.     end
  315. end)
  316. local helpLabel = boothTab:AddLabel("$C = Current, $G = Goal, 221 Character Limit")
  317. helpLabel.TextSize = 9
  318. helpLabel.TextXAlignment = Enum.TextXAlignment.Center
  319.  
  320. --Sign Settings
  321. if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(Players.LocalPlayer.UserId, 28460459) then
  322.     local signToggle = signTab:AddSwitch("Equip Sign", function(bool)
  323.         getgenv().settings.signToggle = bool
  324.         saveSettings()
  325.         if bool then
  326.             Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid"):EquipTool(Players.LocalPlayer.Backpack:FindFirstChild("DonateSign"))
  327.         else
  328.             Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid"):UnequipTools(Players.LocalPlayer.Backpack:FindFirstChild("DonateSign"))      
  329.         end
  330.     end)
  331.     signToggle:Set(getgenv().settings.signToggle)
  332.     local signUpdateToggle = signTab:AddSwitch("Text Update", function(bool)
  333.         if settingsLock then
  334.             return
  335.         end
  336.         getgenv().settings.signUpdateToggle = bool
  337.         saveSettings()
  338.         if bool then
  339.             wait(1)
  340.             update()
  341.         end
  342.     end)
  343.     signUpdateToggle:Set(getgenv().settings.signUpdateToggle)
  344.     signTab:AddLabel("Text Color:")
  345.     local signHexBox = signTab:AddTextBox("Hex Codes Only", function(text)
  346.         if settingsLock then
  347.             return
  348.         end
  349.         local success = pcall(function()
  350.             return Color3.fromHex(text)
  351.         end)
  352.         if success and string.find(text, "#") then
  353.             getgenv().settings.signHexBox = text
  354.             saveSettings()
  355.             if getgenv().settings.signUpdateToggle and getgenv().settings.signText then
  356.                 wait(1)
  357.                 update()
  358.             end
  359.         end
  360.     end,
  361.     {
  362.         ["clear"] = false
  363.     })
  364. signHexBox.Text = getgenv().settings.signHexBox
  365.     signTab:AddLabel("Sign Text:")
  366.     local signText = signTab:AddConsole({
  367.         ["y"] = 50,
  368.         ["source"] = "",
  369.     })
  370.     signText:Set(getgenv().settings.signText)
  371.     signTab:AddButton("Save", function()
  372.         if #signText:Get() > 221 then
  373.             signText:Set("221 Character Limit")
  374.         end
  375.         if settingsLock then
  376.             return
  377.         end
  378.         if signText:Get() then
  379.             getgenv().settings.signText = signText:Get()
  380.             saveSettings()
  381.             update()
  382.         end
  383.     end)
  384.     local signHelpLabel = signTab:AddLabel("$C = Current, $G = Goal, 221 Character Limit")
  385.     signHelpLabel.TextSize = 9
  386.     signHelpLabel.TextXAlignment = Enum.TextXAlignment.Center
  387.    
  388. else
  389.     signTab:AddLabel('Requires Sign Gamepass')
  390. end
  391.  
  392. --Chat Settings
  393. chatTab:AddLabel('Chat settings')
  394. local autoThanks = chatTab:AddSwitch("Auto Thank You", function(bool)
  395.     getgenv().settings.autoThanks = bool
  396.     saveSettings()
  397. end)
  398. autoThanks:Set(getgenv().settings.autoThanks)
  399. local autoBeg = chatTab:AddSwitch("Auto Beg", function(bool)
  400.     getgenv().settings.autoBeg = bool
  401.     saveSettings()
  402.     if bool then
  403.         spamming = task.spawn(begging)
  404.     else
  405.         task.cancel(spamming)
  406.     end
  407. end)
  408. autoBeg:Set(getgenv().settings.autoBeg)
  409. local begDelay = chatTab:AddSlider("Begging Delay (S)", function(x)
  410.     if settingsLock then
  411.        return
  412.     end
  413.     getgenv().settings.begDelay = x
  414.     coroutine.wrap(slider)(getgenv().settings.begDelay, "begDelay")
  415. end,
  416. {
  417.     ["min"] = 1,
  418.     ["max"] = 300
  419. })
  420. begDelay:Set((getgenv().settings.begDelay / 300) * 100)
  421. local tym = chatTab:AddFolder("Thank You Messages:")
  422. local thanksMessage = tym:AddConsole({
  423.     ["y"] = 170,
  424.     ["source"] = "",
  425. })
  426. local full = ''
  427. for i, v in ipairs(getgenv().settings.thanksMessage) do
  428.     full = full .. v .. "\n"
  429. end
  430. print(full)
  431. thanksMessage:Set(full)
  432. tym:AddButton("Save", function()
  433.     local split = {}
  434.     for newline in string.gmatch(thanksMessage:Get(), "[^\n]+") do
  435.         table.insert(split, newline)
  436.     end
  437.     getgenv().settings.thanksMessage = split
  438.     saveSettings()
  439. end)
  440. local bm = chatTab:AddFolder("Begging Messages:")
  441. local begMessage = bm:AddConsole({
  442.     ["y"] = 170,
  443.     ["source"] = "",
  444. })
  445. local bfull = ''
  446. for i, v in ipairs(getgenv().settings.begMessage) do
  447.     bfull = bfull .. v .. "\n"
  448. end
  449. print(bfull)
  450. begMessage:Set(bfull)
  451. bm:AddButton("Save", function()
  452.     local bsplit = {}
  453.     for newline in string.gmatch(begMessage:Get(), "[^\n]+") do
  454.         table.insert(bsplit, newline)
  455.     end
  456.     getgenv().settings.begMessage = bsplit
  457.     saveSettings()
  458. end)
  459.  
  460.  
  461. --Webhook Settings
  462. local webhookToggle = webhookTab:AddSwitch("Discord Webhook Notifications", function(bool)
  463.     getgenv().settings.webhookToggle = bool
  464.     saveSettings()
  465. end)
  466. webhookToggle:Set(getgenv().settings.webhookToggle)
  467. local webhookBox = webhookTab:AddTextBox("Webhook URL", function(text)
  468.     if string.find(text, "https://discord.com/api/webhooks/") then
  469.         getgenv().settings.webhookBox = text;
  470.         saveSettings()
  471.     end
  472. end,
  473. {
  474.     ["clear"] = false
  475. })
  476. webhookBox.Text = getgenv().settings.webhookBox
  477. webhookTab:AddButton("Test Message", function()
  478.     if getgenv().settings.webhookBox then
  479.         webhook("Test")
  480.     end
  481. end)
  482.  
  483.  
  484. --Server Hop Settings
  485. local serverHopToggle = serverHopTab:AddSwitch("Auto Server Hop", function(bool)
  486.     getgenv().settings.serverHopToggle = bool
  487.     saveSettings()
  488. end)
  489. serverHopToggle:Set(getgenv().settings.serverHopToggle)
  490. local serverHopDelay = serverHopTab:AddSlider("Server Hop Delay (M)", function(x)
  491.     if settingsLock then
  492.        return
  493.     end
  494.     getgenv().settings.serverHopDelay = x
  495.     coroutine.wrap(slider)(getgenv().settings.serverHopDelay, "serverHopDelay")
  496. end,
  497. {
  498.     ["min"] = 1,
  499.     ["max"] = 120
  500. })
  501. serverHopDelay:Set((getgenv().settings.serverHopDelay / 120) * 100)
  502. serverHopTab:AddButton("Server Hop", function()
  503.     serverHop()
  504. end)
  505. boothTab:Show()
  506. library:FormatWindows()
  507. settingsLock = false
  508.  
  509. --Finds unclaimed booths
  510. local function findUnclaimed()
  511.     for i, v in pairs(Players.LocalPlayer.PlayerGui.MapUIContainer.MapUI.BoothUI:GetChildren()) do
  512.         if (v.Details.Owner.Text == "unclaimed") then
  513.             table.insert(unclaimed, tonumber(string.match(tostring(v), "%d+")))
  514.         end
  515.     end
  516. end
  517. if not pcall(findUnclaimed) then
  518.     serverHop()
  519. end
  520. local claimCount = #unclaimed
  521. --Claim booth function
  522. local function boothclaim()
  523.     require(game.ReplicatedStorage.Remotes).Event("ClaimBooth"):InvokeServer(unclaimed[1])
  524.     if not string.find(Players.LocalPlayer.PlayerGui.MapUIContainer.MapUI.BoothUI:FindFirstChild(tostring("BoothUI".. unclaimed[1])).Details.Owner.Text, Players.LocalPlayer.DisplayName) then
  525.         wait(5)
  526.         if not string.find(Players.LocalPlayer.PlayerGui.MapUIContainer.MapUI.BoothUI:FindFirstChild(tostring("BoothUI".. unclaimed[1])).Details.Owner.Text, Players.LocalPlayer.DisplayName) then
  527.             error()
  528.         end
  529.     end
  530. end
  531. --Checks if booth claim fails
  532. while not pcall(boothclaim) do
  533.     if errCount >= claimCount then
  534.         serverHop()
  535.     end
  536.     table.remove(unclaimed, 1)
  537.     errCount = errCount + 1
  538. end
  539. require(game.ReplicatedStorage.Remotes).Event("RefreshItems"):InvokeServer()
  540.  
  541. --Walks to booth
  542. local path = game:GetService("PathfindingService"):CreatePath()
  543. local atBooth = false
  544. local function followPath(destination)
  545.     local waypoints
  546.     local nextWaypointIndex
  547.     local reachedConnection
  548.     local success, errorMessage = pcall(function()
  549.         path:ComputeAsync(Players.LocalPlayer.Character.PrimaryPart.Position, destination)
  550.     end)
  551.     if success and path.Status == Enum.PathStatus.Success then
  552.         waypoints = path:GetWaypoints()
  553.         if not reachedConnection then
  554.             reachedConnection = Players.LocalPlayer.Character.Humanoid.MoveToFinished:Connect(function(reached)
  555.                 if reached and nextWaypointIndex < #waypoints then
  556.                     nextWaypointIndex = nextWaypointIndex + 1
  557.                     Players.LocalPlayer.Character.Humanoid:MoveTo(waypoints[nextWaypointIndex].Position)
  558.                 else
  559.                     atBooth = true
  560.                     reachedConnection:Disconnect()
  561.                 end
  562.             end)
  563.         end
  564.         nextWaypointIndex = 2
  565.         Players.LocalPlayer.Character.Humanoid:MoveTo(waypoints[nextWaypointIndex].Position)
  566.     end
  567. end
  568. followPath(Vector3.new(booths[tostring(unclaimed[1])]:match("(.+), (.+), (.+)")))
  569. local Controls = require(Players.LocalPlayer.PlayerScripts:WaitForChild("PlayerModule")):GetControls()
  570. Controls:Disable()
  571. while not atBooth do
  572.     wait(0.1)
  573.     if Players.LocalPlayer.Character.Humanoid:GetState() == Enum.HumanoidStateType.Seated then
  574.         Players.LocalPlayer.Character.Humanoid.Jump = true
  575.     end
  576. end
  577. Players.LocalPlayer.Character:SetPrimaryPartCFrame(CFrame.new(Players.LocalPlayer.Character.HumanoidRootPart.Position, Vector3.new(40, 14, 101)))
  578. Controls:Enable()
  579. if getgenv().settings.danceToggle then
  580.     wait(1)
  581.     Players:Chat("/e dance")
  582. end
  583. if getgenv().settings.textUpdateToggle and getgenv().settings.customBoothText then
  584.     update()
  585. end
  586. Players.LocalPlayer.leaderstats.Raised.Changed:Connect(function()
  587.     counter = 0
  588.     if getgenv().settings.webhookToggle and getgenv().settings.webhookBox then
  589.         local LogService = Game:GetService("LogService")
  590.         local logs = LogService:GetLogHistory()
  591.         --Tries to grabs donation message from logs
  592.         if string.find(logs[#logs].message, Players.LocalPlayer.DisplayName) then
  593.             webhook(tostring(logs[#logs].message.. " (Total: ".. Players.LocalPlayer.leaderstats.Raised.value.. ")"))
  594.         else
  595.             webhook(tostring("💰 Somebody tipped ".. Players.LocalPlayer.leaderstats.Raised.value - RaisedC.. " Robux to ".. Players.LocalPlayer.DisplayName.. " (Total: " .. Players.LocalPlayer.leaderstats.Raised.value.. ")"))
  596.         end
  597.     end
  598.     if getgenv().settings.autoThanks then
  599.         game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(getgenv().settings.thanksMessage[math.random(#getgenv().settings.thanksMessage)],"All")
  600.     end
  601.     wait(getgenv().settings.textUpdateDelay)
  602.     if getgenv().settings.textUpdateToggle and getgenv().settings.customBoothText then
  603.         update()
  604.     end
  605. end)
  606.  
  607. --Waits for donations
  608. while wait(1) do
  609.     counter = counter + 1
  610.     if getgenv().settings.serverHopToggle then
  611.         if counter >= (getgenv().settings.serverHopDelay * 60) then
  612.             serverHop()
  613.         end
  614.     end
  615. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement