Advertisement
Vanihgol33

Burger game script (the first function infinitely orders meat) (The second function randomly chooses

May 8th, 2023
1,017
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. local function kickPlayers()
  2. while true do
  3.  
  4. local players = game:GetService("Players"):GetPlayers()
  5.  
  6.  
  7. local playerToKick = players[math.random(1, #players)]
  8.  
  9.  
  10. local kickCommand = "/kick " .. playerToKick.Name .. " kick"
  11.  
  12.  
  13. local args = {
  14. [1] = kickCommand,
  15. [2] = "All"
  16. }
  17.  
  18.  
  19. game:GetService("ReplicatedStorage"):WaitForChild("DefaultChatSystemChatEvents"):WaitForChild("SayMessageRequest"):FireServer(unpack(args))
  20.  
  21.  
  22. wait(60)
  23. end
  24. end
  25.  
  26.  
  27. local function orderFood()
  28. while true do
  29. local args = {
  30. [1] = "Order",
  31. [2] = "Meat"
  32. }
  33.  
  34. game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Tell"):FireServer(unpack(args))
  35. wait(5)
  36. end
  37. end
  38.  
  39.  
  40. spawn(kickPlayers)
  41. spawn(orderFood)
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement