aCatYT

Best Pls donate Script (Tzechco)

Dec 22nd, 2022
10,317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.45 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 and game.PlaceId ~= 8943844393 then
  8. return
  9. end
  10.  
  11. if getgenv().loaded then
  12. return
  13. else
  14. getgenv().loaded = true
  15. end
  16. loadstring(game:HttpGet("https://raw.githubusercontent.com/CF-Trail/random/main/hook/hookwscripts.lua"))()
  17. task.wait(1)
  18. --Anti-AFK
  19. local Players = game:GetService("Players")
  20. Players.LocalPlayer:Kick('unsupported executor')
  21. local connections = getconnections or get_signal_cons
  22. if connections then
  23. for i,v in pairs(connections(Players.LocalPlayer.Idled)) do
  24. if v["Disable"] then
  25. v["Disable"](v)
  26. elseif v["Disconnect"] then
  27. v["Disconnect"](v)
  28. end
  29. end
  30. else
  31. Players.LocalPlayer.Idled:Connect(function()
  32. local VirtualUser = game:GetService("VirtualUser")
  33. VirtualUser:CaptureController()
  34. VirtualUser:ClickButton2(Vector2.new())
  35. end)
  36. end
  37.  
  38. --Variables
  39. local unclaimed = {}
  40. local counter = 0
  41. local donation, boothText, spamming, hopTimer, vcEnabled
  42. local signPass = false
  43. local errCount = 0
  44. local booths = { ["1"] = "72, 3, 36", ["2"] = "83, 3, 161", ["3"] = "11, 3, 36", ["4"] = "100, 3, 59", ["5"] = "72, 3, 166", ["6"] = "2, 3, 42", ["7"] = "-9, 3, 52", ["8"] = "10, 3, 166", ["9"] = "-17, 3, 60", ["10"] = "35, 3, 173", ["11"] = "24, 3, 170", ["12"] = "48, 3, 29", ["13"] = "24, 3, 33", ["14"] = "101, 3, 142", ["15"] = "-18, 3, 142", ["16"] = "60, 3, 33", ["17"] = "35, 3, 29", ["18"] = "0, 3, 160", ["19"] = "48, 3, 173", ["20"] = "61, 3, 170", ["21"] = "91, 3, 151", ["22"] = "-24, 3, 72", ["23"] = "-28, 3, 88", ["24"] = "92, 3, 51", ["25"] = "-28, 3, 112", ["26"] = "-24, 3, 129", ["27"] = "83, 3, 42", ["28"] = "-8, 3, 151" }
  45. local queueonteleport = (syn and syn.queue_on_teleport) or queue_on_teleport or (fluxus and fluxus.queue_on_teleport)
  46. local httprequest = (syn and syn.request) or http and http.request or http_request or (fluxus and fluxus.request) or request
  47. local httpservice = game:GetService('HttpService')
  48. queueonteleport("loadstring(game:HttpGet('https://raw.githubusercontent.com/CF-Trail/tzechco-PlsDonateAutofarmBackup/main/autofarm'))()")
  49. local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/CF-Trail/tzechco-PlsDonateAutofarmBackup/main/UI"))()
  50.  
  51. local function claimGifts()
  52. pcall(function()
  53. Players.LocalPlayer:WaitForChild("PlayerGui")
  54. local guipath = Players.LocalPlayer.PlayerGui:WaitForChild("ScreenGui")
  55. firesignal(guipath.GiftAlert.Buttons.Close["Activated"])
  56. local count = require(game.ReplicatedStorage.Remotes).Event("UnclaimedDonationCount"):InvokeServer()
  57. while count == nil do
  58. task.wait(5)
  59. count = require(game.ReplicatedStorage.Remotes).Event("UnclaimedDonationCount"):InvokeServer()
  60. end
  61. if count then
  62. local ud = {}
  63. for i = 1, count do
  64. table.insert(ud, i)
  65. end
  66. if #ud > 0 then
  67. firesignal(guipath.Gift.Buttons.Inbox["Activated"])
  68. Players.LocalPlayer.ClaimDonation:InvokeServer(ud)
  69. task.wait(.5)
  70. firesignal(guipath.GiftInbox.Buttons.Close["Activated"])
  71. task.wait(.5)
  72. firesignal(guipath.Gift.Buttons.Close["Activated"])
  73. end
  74. end
  75. end)
  76. end
  77. task.spawn(claimGifts)
  78.  
  79.  
  80. getgenv().settings = {}
  81. --Load Settings
  82. if isfile("plsdonatesettings.txt") then
  83. local sl, er = pcall(function()
  84. getgenv().settings = httpservice:JSONDecode(readfile('plsdonatesettings.txt'))
  85. end)
  86. if er ~= nil then
  87. task.spawn(function()
  88. errMsg = Instance.new("Hint")
  89. errMsg.Parent = game.workspace
  90. errMsg.Text = tostring("Settings reset due to error: ".. er)
  91. task.wait(15)
  92. errMsg:Destroy()
  93. end)
  94. delfile("plsdonatesettings.txt")
  95. end
  96.  
  97. end
  98. local sNames = {"textUpdateToggle", "textUpdateDelay", "serverHopToggle", "serverHopDelay", "hexBox", "goalBox", "webhookToggle", "webhookBox", "danceChoice", "thanksMessage", "signToggle", "customBoothText", "signUpdateToggle", "signText", "signHexBox", "autoThanks", "autoBeg", "begMessage", "begDelay", "fpsLimit", "render", "thanksDelay", "vcServer",'donationJump'}
  99. local sValues = {true, 30, true, 30, "#32CD32", 5, false, "", "Disabled", {"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, 60, false, 3, false,false}
  100. if #getgenv().settings ~= sNames then
  101. for i, v in ipairs(sNames) do
  102. if getgenv().settings[v] == nil then
  103. getgenv().settings[v] = sValues[i]
  104. end
  105. end
  106. writefile('plsdonatesettings.txt', httpservice:JSONEncode(getgenv().settings))
  107. end
  108.  
  109. --Save Settings
  110. local settingsLock = true
  111. local function saveSettings()
  112. if settingsLock == false then
  113. print('Settings saved.')
  114. writefile('plsdonatesettings.txt', httpservice:JSONEncode(getgenv().settings))
  115. end
  116. end
  117. function serverHop()
  118. local gameId = "8737602449"
  119. if vcEnabled and getgenv().settings.vcServer then
  120. gameId = "8943844393"
  121. end
  122. local servers = {}
  123. local req = httprequest({Url = "https://games.roblox.com/v1/games/".. gameId.."/servers/Public?sortOrder=Desc&limit=100"})
  124. local body = httpservice:JSONDecode(req.Body)
  125. if body and body.data then
  126. for i, v in next, body.data do
  127. if type(v) == "table" and tonumber(v.playing) and tonumber(v.maxPlayers) and v.playing < v.maxPlayers and v.playing > 19 then
  128. table.insert(servers, 1, v.id)
  129. end
  130. end
  131. end
  132. if #servers > 0 then
  133. game:GetService("TeleportService"):TeleportToPlaceInstance(gameId, servers[math.random(1, #servers)], Players.LocalPlayer)
  134. end
  135. game:GetService("TeleportService").TeleportInitFailed:Connect(function()
  136. game:GetService("TeleportService"):TeleportToPlaceInstance(gameId, servers[math.random(1, #servers)], Players.LocalPlayer)
  137. end)
  138. end
  139.  
  140. local function waitServerHop()
  141. task.wait(getgenv().settings.serverHopDelay * 60)
  142. serverHop()
  143. end
  144.  
  145. local function hopSet()
  146. if hopTimer then
  147. task.cancel(hopTimer)
  148. end
  149. if getgenv().settings.serverHopToggle then
  150. hopTimer = task.spawn(waitServerHop)
  151. end
  152. end
  153.  
  154. --Function to fix slider
  155. local sliderInProgress = false;
  156. local function slider(value, whichSlider)
  157. if sliderInProgress then
  158. return
  159. end
  160. sliderInProgress = true
  161. task.wait(5)
  162. if getgenv().settings[whichSlider] == value then
  163. saveSettings()
  164. sliderInProgress = false;
  165. if whichSlider == "serverHopDelay" then
  166. hopSet()
  167. end
  168. else
  169. sliderInProgress = false;
  170. return slider(getgenv().settings[whichSlider], whichSlider)
  171. end
  172. end
  173.  
  174. --Booth update function
  175. local function update()
  176. local text
  177. local current = Players.LocalPlayer.leaderstats.Raised.Value
  178. local goal = current + tonumber(getgenv().settings.goalBox)
  179. if goal == 420 or goal == 425 then
  180. goal = goal + 10
  181. end
  182. if current == 420 or current == 425 then
  183. current = current + 10
  184. end
  185. if goal > 999 then
  186. if tonumber(getgenv().settings.goalBox) < 10 then
  187. goal = string.format("%.2fk", (current + 10) / 10 ^ 3)
  188. else
  189. goal = string.format("%.2fk", (goal) / 10 ^ 3)
  190. end
  191. end
  192. if current > 999 then
  193. current = string.format("%.2fk", current / 10 ^ 3)
  194. end
  195. if getgenv().settings.textUpdateToggle and getgenv().settings.customBoothText then
  196. text = string.gsub(getgenv().settings.customBoothText, "$C", current)
  197. text = string.gsub (text, "$G", goal)
  198. boothText = tostring('<font color="'.. getgenv().settings.hexBox.. '">'.. text.. '</font>')
  199. --Updates the booth text
  200. local myBooth = Players.LocalPlayer.PlayerGui.MapUIContainer.MapUI.BoothUI:FindFirstChild(tostring("BoothUI".. unclaimed[1]))
  201. if myBooth.Sign.TextLabel.Text ~= boothText then
  202. if string.find(myBooth.Sign.TextLabel.Text, "# #") or string.find(myBooth.Sign.TextLabel.Text, "##") then
  203. require(game.ReplicatedStorage.Remotes).Event("SetBoothText"):FireServer("your text here", "booth")
  204. task.wait(3)
  205. end
  206. require(game.ReplicatedStorage.Remotes).Event("SetBoothText"):FireServer(boothText, "booth")
  207. task.wait(3)
  208. end
  209. end
  210. if getgenv().settings.signToggle and getgenv().settings.signUpdateToggle and getgenv().settings.signText and signPass then
  211. local currentSign = game.Players.LocalPlayer.Character.DonateSign.TextSign.SurfaceGui.TextLabel.Text
  212.  
  213. text = string.gsub(getgenv().settings.signText, "$C", current)
  214. text = string.gsub (text, "$G", goal)
  215. signText = tostring('<font color="'.. getgenv().settings.signHexBox.. '">'.. text.. '</font>')
  216.  
  217. if currentSign ~= signText then
  218. if string.find(currentSign, "# #") or string.find(currentSign, "##") then
  219. require(game.ReplicatedStorage.Remotes).Event("SetBoothText"):FireServer("your text here", "sign")
  220. task.wait(3)
  221. end
  222. require(game.ReplicatedStorage.Remotes).Event("SetBoothText"):FireServer(signText, "sign")
  223. end
  224. end
  225. end
  226.  
  227. local function begging()
  228. while getgenv().settings.autoBeg do
  229. game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(getgenv().settings.begMessage[math.random(#getgenv().settings.begMessage)],"All")
  230. task.wait(getgenv().settings.begDelay)
  231. end
  232. end
  233.  
  234. local function webhook(msg)
  235. httprequest({
  236. Url = getgenv().settings.webhookBox,
  237. Body = httpservice:JSONEncode({["content"] = msg}),
  238. Method = "POST",
  239. Headers = {["content-type"] = "application/json"}
  240. })
  241. end
  242.  
  243. --GUI
  244. local Window = library:AddWindow("Loading...",
  245. {
  246. main_color = Color3.fromRGB(0, 128, 0),
  247. min_size = Vector2.new(373, 433),
  248. toggle_key = Enum.KeyCode.RightShift,
  249. })
  250. local boothTab = Window:AddTab("Booth")
  251. local signTab = Window:AddTab("Sign")
  252. local chatTab = Window:AddTab("Chat")
  253. local webhookTab = Window:AddTab("Webhook")
  254. local serverHopTab = Window:AddTab("Server")
  255. local otherTab = Window:AddTab("Other")
  256.  
  257. --Booth Settings
  258. local textUpdateToggle = boothTab:AddSwitch("Text Update", function(bool)
  259. if settingsLock then
  260. return
  261. end
  262. getgenv().settings.textUpdateToggle = bool
  263. saveSettings()
  264. if bool then
  265. update()
  266. end
  267. end)
  268. textUpdateToggle:Set(getgenv().settings.textUpdateToggle)
  269. local textUpdateDelay = boothTab:AddSlider("Text Update Delay (S)", function(x)
  270. if settingsLock then
  271. return
  272. end
  273. getgenv().settings.textUpdateDelay = x
  274. coroutine.wrap(slider)(getgenv().settings.textUpdateDelay, "textUpdateDelay")
  275. end,
  276. {
  277. ["min"] = 0,
  278. ["max"] = 120
  279. })
  280.  
  281. textUpdateDelay:Set((getgenv().settings.textUpdateDelay / 120) * 100)
  282. boothTab:AddLabel("Text Color:")
  283. local hexBox = boothTab:AddTextBox("Hex Codes Only", function(text)
  284. if settingsLock then
  285. return
  286. end
  287. local success = pcall(function()
  288. return Color3.fromHex(text)
  289. end)
  290. if success and string.find(text, "#") then
  291. getgenv().settings.hexBox = text
  292. saveSettings()
  293. update()
  294. end
  295. end,
  296. {
  297. ["clear"] = false
  298. })
  299. hexBox.Text = getgenv().settings.hexBox
  300. boothTab:AddLabel("Goal Increase:")
  301. local goalBox = boothTab:AddTextBox("Numbers Only", function(text)
  302. if tonumber(text) then
  303. getgenv().settings.goalBox = tonumber(text)
  304. saveSettings()
  305. update()
  306. end
  307. end,
  308. {
  309. ["clear"] = false
  310. })
  311. goalBox.Text = getgenv().settings.goalBox
  312. boothTab:AddLabel("Custom Booth Text:")
  313. local customBoothText = boothTab:AddConsole({
  314. ["y"] = 50,
  315. ["source"] = "",
  316. })
  317. customBoothText:Set(getgenv().settings.customBoothText)
  318. boothTab:AddButton("Save", function()
  319. if #customBoothText:Get() > 221 then
  320. return customBoothText:Set("221 Character Limit")
  321. end
  322. if settingsLock then
  323. return
  324. end
  325. if customBoothText:Get() then
  326. getgenv().settings.customBoothText = customBoothText:Get()
  327. saveSettings()
  328. update()
  329. end
  330. end)
  331. local helpLabel = boothTab:AddLabel("$C = Current, $G = Goal, 221 Character Limit")
  332. helpLabel.TextSize = 9
  333. helpLabel.TextXAlignment = Enum.TextXAlignment.Center
  334. --Sign Settings
  335. pcall(function()
  336. if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(Players.LocalPlayer.UserId, 28460459) then
  337. signPass = true
  338. end
  339. end)
  340. if signPass then
  341. local signToggle = signTab:AddSwitch("Equip Sign", function(bool)
  342. getgenv().settings.signToggle = bool
  343. saveSettings()
  344. if bool then
  345. Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid"):EquipTool(Players.LocalPlayer.Backpack:FindFirstChild("DonateSign"))
  346. else
  347. Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid"):UnequipTools(Players.LocalPlayer.Backpack:FindFirstChild("DonateSign"))
  348. end
  349. end)
  350. signToggle:Set(getgenv().settings.signToggle)
  351. local signUpdateToggle = signTab:AddSwitch("Text Update", function(bool)
  352. if settingsLock then
  353. return
  354. end
  355. getgenv().settings.signUpdateToggle = bool
  356. saveSettings()
  357. if bool then
  358. update()
  359. end
  360. end)
  361. signUpdateToggle:Set(getgenv().settings.signUpdateToggle)
  362. signTab:AddLabel("Text Color:")
  363. local signHexBox = signTab:AddTextBox("Hex Codes Only", function(text)
  364. if settingsLock then
  365. return
  366. end
  367. local success = pcall(function()
  368. return Color3.fromHex(text)
  369. end)
  370. if success and string.find(text, "#") then
  371. getgenv().settings.signHexBox = text
  372. saveSettings()
  373. if getgenv().settings.signUpdateToggle and getgenv().settings.signText then
  374. update()
  375. end
  376. end
  377. end,
  378. {
  379. ["clear"] = false
  380. })
  381. signHexBox.Text = getgenv().settings.signHexBox
  382. signTab:AddLabel("Sign Text:")
  383. local signText = signTab:AddConsole({
  384. ["y"] = 50,
  385. ["source"] = "",
  386. })
  387. signText:Set(getgenv().settings.signText)
  388. signTab:AddButton("Save", function()
  389. if #signText:Get() > 221 then
  390. return signText:Set("221 Character Limit")
  391. end
  392. if settingsLock then
  393. return
  394. end
  395. if signText:Get() then
  396. getgenv().settings.signText = signText:Get()
  397. saveSettings()
  398. update()
  399. end
  400. end)
  401. local signHelpLabel = signTab:AddLabel("$C = Current, $G = Goal, 221 Character Limit")
  402. signHelpLabel.TextSize = 9
  403. signHelpLabel.TextXAlignment = Enum.TextXAlignment.Center
  404.  
  405. else
  406. signTab:AddLabel('Requires Sign Gamepass')
  407. end
  408.  
  409. --Chat Settings
  410. local autoThanks = chatTab:AddSwitch("Auto Thank You", function(bool)
  411. getgenv().settings.autoThanks = bool
  412. saveSettings()
  413. end)
  414. autoThanks:Set(getgenv().settings.autoThanks)
  415. local autoBeg = chatTab:AddSwitch("Auto Beg", function(bool)
  416. if settingsLock then
  417. return
  418. end
  419. getgenv().settings.autoBeg = bool
  420. saveSettings()
  421. if bool then
  422. spamming = task.spawn(begging)
  423. else
  424. task.cancel(spamming)
  425. end
  426. end)
  427. autoBeg:Set(getgenv().settings.autoBeg)
  428. local thanksDelay = chatTab:AddSlider("Thanks Delay (S)", function(x)
  429. if settingsLock then
  430. return
  431. end
  432. getgenv().settings.thanksDelay = x
  433. coroutine.wrap(slider)(getgenv().settings.thanksDelay, "thanksDelay")
  434. end,
  435. {
  436. ["min"] = 1,
  437. ["max"] = 120
  438. })
  439. thanksDelay:Set((getgenv().settings.thanksDelay / 120) * 100)
  440. local begDelay = chatTab:AddSlider("Begging Delay (S)", function(x)
  441. if settingsLock then
  442. return
  443. end
  444. getgenv().settings.begDelay = x
  445. coroutine.wrap(slider)(getgenv().settings.begDelay, "begDelay")
  446. end,
  447. {
  448. ["min"] = 1,
  449. ["max"] = 300
  450. })
  451. begDelay:Set((getgenv().settings.begDelay / 300) * 100)
  452. local tym = chatTab:AddFolder("Thank You Messages:")
  453. local thanksMessage = tym:AddConsole({
  454. ["y"] = 170,
  455. ["source"] = "",
  456. })
  457. local full = ''
  458. for i, v in ipairs(getgenv().settings.thanksMessage) do
  459. full = full .. v .. "\n"
  460. end
  461. thanksMessage:Set(full)
  462. tym:AddButton("Save", function()
  463. local split = {}
  464. for newline in string.gmatch(thanksMessage:Get(), "[^\n]+") do
  465. table.insert(split, newline)
  466. end
  467. getgenv().settings.thanksMessage = split
  468. saveSettings()
  469. end)
  470. local bm = chatTab:AddFolder("Begging Messages:")
  471. local begMessage = bm:AddConsole({
  472. ["y"] = 170,
  473. ["source"] = "",
  474. })
  475. local bfull = ''
  476. for i, v in ipairs(getgenv().settings.begMessage) do
  477. bfull = bfull .. v .. "\n"
  478. end
  479. begMessage:Set(bfull)
  480. bm:AddButton("Save", function()
  481. local bsplit = {}
  482. for newline in string.gmatch(begMessage:Get(), "[^\n]+") do
  483. table.insert(bsplit, newline)
  484. end
  485. getgenv().settings.begMessage = bsplit
  486. saveSettings()
  487. end)
  488.  
  489.  
  490. --Webhook Settings
  491. local webhookToggle = webhookTab:AddSwitch("Discord Webhook Notifications", function(bool)
  492. getgenv().settings.webhookToggle = bool
  493. saveSettings()
  494. end)
  495. webhookToggle:Set(getgenv().settings.webhookToggle)
  496. local webhookBox = webhookTab:AddTextBox("Webhook URL", function(text)
  497. if string.find(text, "https://discord.com/api/webhooks/") then
  498. getgenv().settings.webhookBox = text;
  499. saveSettings()
  500. end
  501. end,
  502. {
  503. ["clear"] = false
  504. })
  505. webhookBox.Text = getgenv().settings.webhookBox
  506. webhookTab:AddLabel('Press Enter to Save')
  507. webhookTab:AddButton("Test", function()
  508. if getgenv().settings.webhookBox then
  509. webhook("Sent from PLS DONATE!!")
  510. end
  511. end)
  512.  
  513.  
  514. --Server Hop Settings
  515. pcall(function()
  516. if game:GetService("VoiceChatService"):IsVoiceEnabledForUserIdAsync(Players.LocalPlayer.UserId) then
  517. vcEnabled = true
  518. end
  519. end)
  520. local serverHopToggle = serverHopTab:AddSwitch("Auto Server Hop", function(bool)
  521. if settingsLock then
  522. return
  523. end
  524. getgenv().settings.serverHopToggle = bool
  525. hopSet()
  526. saveSettings()
  527. end)
  528. serverHopToggle:Set(getgenv().settings.serverHopToggle)
  529. local serverHopDelay = serverHopTab:AddSlider("Server Hop Delay (M)", function(x)
  530. if settingsLock then
  531. return
  532. end
  533. getgenv().settings.serverHopDelay = x
  534. coroutine.wrap(slider)(getgenv().settings.serverHopDelay, "serverHopDelay")
  535. end,
  536. {
  537. ["min"] = 1,
  538. ["max"] = 120
  539. })
  540. serverHopDelay:Set((getgenv().settings.serverHopDelay / 120) * 100)
  541. serverHopTab:AddLabel("Timer resets after donation")
  542. if vcEnabled then
  543. local vcToggle = serverHopTab:AddSwitch("Voice Chat Servers", function(bool)
  544. if settingsLock then
  545. return
  546. end
  547. getgenv().settings.vcServer = bool
  548. saveSettings()
  549. end)
  550. vcToggle:Set(getgenv().settings.vcServer)
  551. end
  552. serverHopTab:AddButton("Server Hop", function()
  553. serverHop()
  554. end)
  555. --Other tab
  556. otherTab:AddLabel('Dance:')
  557. local danceDropdown = otherTab:AddDropdown("[ ".. getgenv().settings.danceChoice.. " ]", function(object)
  558. if settingsLock then
  559. return
  560. end
  561. getgenv().settings.danceChoice = object
  562. saveSettings()
  563. if object == "Disabled" then
  564. Players:Chat("/e wave")
  565. elseif object == "1" then
  566. Players:Chat("/e dance")
  567. else
  568. Players:Chat("/e dance".. object)
  569. end
  570. end)
  571. danceDropdown:Add("Disabled")
  572. danceDropdown:Add("1")
  573. danceDropdown:Add("2")
  574. danceDropdown:Add("3")
  575. local render = otherTab:AddSwitch("Disable Rendering", function(bool)
  576. getgenv().settings.render = bool
  577. saveSettings()
  578. if bool then
  579. game:GetService("RunService"):Set3dRenderingEnabled(false)
  580. else
  581. game:GetService("RunService"):Set3dRenderingEnabled(true)
  582. end
  583. end)
  584.  
  585. local jumpswitch = otherTab:AddSwitch("Donation Jump",function(bool)
  586. getgenv().settings.donationJump = bool
  587. saveSettings()
  588. end)
  589.  
  590. jumpswitch:Set(getgenv().settings.donationJump)
  591.  
  592. render:Set(getgenv().settings.render)
  593. if setfpscap and type(setfpscap) == "function" then
  594. local fpsLimit = otherTab:AddSlider("FPS Limit", function(x)
  595. if settingsLock then
  596. return
  597. end
  598. getgenv().settings.fpsLimit = x
  599. setfpscap(x)
  600. coroutine.wrap(slider)(getgenv().settings.fpsLimit, "fpsLimit")
  601. end,
  602. {
  603. ["min"] = 1,
  604. ["max"] = 60
  605. })
  606. fpsLimit:Set((getgenv().settings.fpsLimit / 60) * 100)
  607. setfpscap(getgenv().settings.fpsLimit)
  608. end
  609.  
  610. boothTab:Show()
  611. library:FormatWindows()
  612. settingsLock = false
  613.  
  614. --Finds unclaimed booths
  615. local function findUnclaimed()
  616. for i, v in pairs(Players.LocalPlayer.PlayerGui.MapUIContainer.MapUI.BoothUI:GetChildren()) do
  617. if (v.Details.Owner.Text == "unclaimed") then
  618. table.insert(unclaimed, tonumber(string.match(tostring(v), "%d+")))
  619. end
  620. end
  621. end
  622. if not pcall(findUnclaimed) then
  623. serverHop()
  624. end
  625. local claimCount = #unclaimed
  626. --Claim booth function
  627. local function boothclaim()
  628. require(game.ReplicatedStorage.Remotes).Event("ClaimBooth"):InvokeServer(unclaimed[1])
  629. if not string.find(Players.LocalPlayer.PlayerGui.MapUIContainer.MapUI.BoothUI:FindFirstChild(tostring("BoothUI".. unclaimed[1])).Details.Owner.Text, Players.LocalPlayer.DisplayName) then
  630. task.wait(1)
  631. if not string.find(Players.LocalPlayer.PlayerGui.MapUIContainer.MapUI.BoothUI:FindFirstChild(tostring("BoothUI".. unclaimed[1])).Details.Owner.Text, Players.LocalPlayer.DisplayName) then
  632. error()
  633. end
  634. end
  635. end
  636. --Checks if booth claim fails
  637. while not pcall(boothclaim) do
  638. if errCount >= claimCount then
  639. serverHop()
  640. end
  641. table.remove(unclaimed, 1)
  642. errCount = errCount + 1
  643. end
  644.  
  645. hopSet()
  646. --Walks to booth
  647. local Controls = require(Players.LocalPlayer.PlayerScripts:WaitForChild("PlayerModule")):GetControls()
  648. Controls:Disable()
  649. Players.LocalPlayer.Character.Humanoid:MoveTo(Vector3.new(booths[tostring(unclaimed[1])]:match("(.+), (.+), (.+)")))
  650. local atBooth = false
  651. local function noclip()
  652. for i,v in pairs(Players.LocalPlayer.Character:GetDescendants()) do
  653. if v:IsA("BasePart") then
  654. v.CanCollide = false
  655. end
  656. end
  657. end
  658. local noclipper = game:GetService("RunService").Stepped:Connect(noclip)
  659. Players.LocalPlayer.Character.Humanoid.MoveToFinished:Connect(function(reached)
  660. atBooth = true
  661. end)
  662. while not atBooth do
  663. task.wait(.1)
  664. if Players.LocalPlayer.Character.Humanoid:GetState() == Enum.HumanoidStateType.Seated then
  665. Players.LocalPlayer.Character.Humanoid.Jump = true
  666. end
  667. end
  668. Controls:Enable()
  669. noclipper:Disconnect()
  670. Players.LocalPlayer.Character:SetPrimaryPartCFrame(CFrame.new(Players.LocalPlayer.Character.HumanoidRootPart.Position, Vector3.new(40, 14, 101)))
  671. require(game.ReplicatedStorage.Remotes).Event("RefreshItems"):InvokeServer()
  672. if getgenv().settings.danceChoice == "1" then
  673. task.wait(.25)
  674. Players:Chat("/e dance")
  675. else
  676. task.wait(.25)
  677. Players:Chat("/e dance".. getgenv().settings.danceChoice)
  678. end
  679.  
  680. if getgenv().settings.autoBeg then
  681. spamming = task.spawn(begging)
  682. end
  683. local RaisedC = Players.LocalPlayer.leaderstats.Raised.value
  684. Players.LocalPlayer.leaderstats.Raised.Changed:Connect(function()
  685. hopSet()
  686. if getgenv().settings.webhookToggle and getgenv().settings.webhookBox then
  687. local LogService = Game:GetService("LogService")
  688. local logs = LogService:GetLogHistory()
  689. --Tries to grabs donation message from logs
  690. if string.find(logs[#logs].message, Players.LocalPlayer.DisplayName) then
  691. webhook(tostring(logs[#logs].message.. " (Total: ".. Players.LocalPlayer.leaderstats.Raised.value.. ")"))
  692. else
  693. webhook(tostring("💰 Somebody tipped ".. Players.LocalPlayer.leaderstats.Raised.value - RaisedC.. " Robux to ".. Players.LocalPlayer.DisplayName.. " (Total: " .. Players.LocalPlayer.leaderstats.Raised.value.. ")"))
  694. end
  695. end
  696. if getgenv().settings.donationJump then
  697. task.spawn(function()
  698. for i = 1, game.Players.LocalPlayer.leaderstats.Raised.value - RaisedC do
  699. game.Players.LocalPlayer.Character.Humanoid:ChangeState("Jumping")
  700. repeat task.wait() until game.Players.LocalPlayer.Character.Humanoid:GetState() == Enum.HumanoidStateType.Landed or game.Players.LocalPlayer.Character.Humanoid:GetState() == Enum.HumanoidStateType.Running
  701. end
  702. end)
  703. end
  704. RaisedC = Players.LocalPlayer.leaderstats.Raised.value
  705. if getgenv().settings.autoThanks then
  706. task.spawn(function()
  707. task.wait(getgenv().settings.thanksDelay)
  708. game.ReplicatedStorage.DefaultChatSystemChatEvents.SayMessageRequest:FireServer(getgenv().settings.thanksMessage[math.random(#getgenv().settings.thanksMessage)],"All")
  709. end)
  710. end
  711. task.wait(getgenv().settings.textUpdateDelay)
  712. update()
  713. end)
  714. update()
  715. if game:GetService("CoreGui").imgui.Windows.Window.Title.Text == "Loading..." then
  716. game:GetService("CoreGui").imgui.Windows.Window.Title.Text = "PLS DONATE - tzechco / brought back by dotgg"
  717. end
  718. while task.wait(getgenv().settings.serverHopDelay * 60) do
  719. if not hopTimer then
  720. hopSet()
  721. end
  722. end
  723.  
Advertisement
Add Comment
Please, Sign In to add comment