Advertisement
robloxscript111

Button Bobux Simulator

Jan 31st, 2023
2,490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. --// Settings \\--
  2. local MessageDelay = {2, 5} -- between 2 and 5 seconds
  3.  
  4. --// Services \\--
  5. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  6. local Players = game:GetService("Players")
  7. local Workspace = game:GetService("Workspace")
  8.  
  9. --// Variables \\--
  10. local SayMessage = ReplicatedStorage:WaitForChild("DefaultChatSystemChatEvents"):WaitForChild("SayMessageRequest")
  11. local Leaderboards = Workspace:WaitForChild("Leaderboards")
  12.  
  13. --// Auto Questions \\--
  14. ReplicatedStorage:WaitForChild("RemoteEvents"):WaitForChild("SendCustomMessage").OnClientEvent:Connect(function(a)
  15. warn(a)
  16. local Random = math.random(MessageDelay[1]*10, MessageDelay[2]*10)/10
  17. task.wait(Random)
  18. if string.find(a, "Question") then
  19. if string.find(a, "top 1 player") then
  20. a = string.split(a, "in the ")[2]
  21. a = string.split(a, " leaderboard")[1]
  22. local LB = a == "Donations" and "RobuxSpent" or a
  23. local List = Leaderboards["GlobalLB_" .. LB].GlobalLBGui.List
  24. while #List:GetChildren() < 30 do
  25. task.wait(0.1)
  26. end
  27. for _, V in next, List:GetChildren() do
  28. if V:IsA("Frame") and V.Rank.Text == "#1" then
  29. SayMessage:FireServer(V.PlrName.Text, "All")
  30. task.wait()
  31. Players:Chat(V.PlrName.Text)
  32. break
  33. end
  34. end
  35. elseif string.find(a, "= ?") then
  36. a = string.split(a, ">: ")[2]
  37. a = string.split(a, " =")[1]
  38. a = "return " .. a
  39. local Answer = loadstring(a)()
  40. SayMessage:FireServer(Answer, "All")
  41. task.wait()
  42. Players:Chat(Answer)
  43. end
  44. end
  45. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement