Advertisement
Guest User

Untitled

a guest
Jan 9th, 2023
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. if G.SENDER_CONNECTIONS then for , Connection in pairs(G.SENDER_CONNECTIONS) do Connection:Disconnect() end end _G.SENDER_CONNECTIONS = {} _G.SENDER_DEBUG = false -- set this to true if you want to debug the script (also setting to true stop bot from saying anything) _G.SENDER_ACTIVE = true -- set this to false to stop the bot from saying anything _G.SENDER_STARTERS = { "I think its gonna be", "I predict its", "The next one is", "Next is", "Simon says:", "Its gonna be", "Next one is", "Next will be", "The next thing is", "The answer is", "The spin is", } local ReplicatedStorage = game:GetService('ReplicatedStorage') local SayMessageRequest = ReplicatedStorage:WaitForChild('DefaultChatSystemChatEvents'):WaitForChild('SayMessageRequest') local function SayMessage(Message) if _G.SENDER_DEBUG then print('Say', Message) else SayMessageRequest:FireServer(Message, 'All') end end local function GetSpinFromName(Name) local Spin for ,v in pairs(workspace:WaitForChild('Spinner'):WaitForChild('Spin'):WaitForChild('Model2'):GetChildren()) do
  2. if tonumber(v.Name) == Name then
  3. Spin = v.SurfaceGui.TextLabel.Text
  4. end
  5. end
  6. return Spin
  7. end
  8. local ScreenSpin = ReplicatedStorage:WaitForChild('Remotes'):WaitForChild('ScreenSpin')
  9. table.insert(_G.SENDER_CONNECTIONS, ScreenSpin.Event:Connect(function(Type, Name, Timeout)
  10. local Spin = GetSpinFromName(Name)
  11. if Spin and _G.SENDER_ACTIVE then
  12. local Starter = _G.SENDER_STARTERS[math.random(1, #_G.SENDER_STARTERS)] .. ' ' .. Spin
  13. if math.random(1, 3) == 1 then Starter = Starter .. ', trust' end
  14. if math.random(1, 2) == 1 then Starter = Starter:lower() end
  15. task.wait((((math.random() + 1) / 2) * Timeout) / 10)
  16. SayMessage(Starter)
  17. end
  18. end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement