Advertisement
KebobRemover

Roblox AFK Bot Script

Apr 17th, 2022
4,363
2
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.50 KB | None | 2 0
  1. function roll()
  2. action = math.random(1,4)
  3. return action
  4. end
  5.  
  6. function walkandjump()
  7. local LocalPlayer = game:GetService("Players").LocalPlayer
  8. local move = game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass('Humanoid'):MoveTo(Vector3.new(math.random(-100,100), 10, math.random(-100,100)))
  9. wait(math.random(1,10))
  10. LocalPlayer.Character:FindFirstChildOfClass("Humanoid").Jump = true
  11. end
  12.  
  13. function jump()
  14. local LocalPlayer = game:GetService("Players").LocalPlayer
  15. LocalPlayer.Character:FindFirstChildOfClass("Humanoid").Jump = true
  16. end
  17.  
  18. function walk()
  19. local move = game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass('Humanoid'):MoveTo(Vector3.new(math.random(-100,100), 10, math.random(-100,100)))
  20. end
  21.  
  22. function talk()
  23. localaction = math.random(1,4)
  24.  
  25. if localaction == 1 then
  26. chatString = "Hello World"
  27. end
  28. if localaction == 2 then
  29. chatString = "Message Recieved from 'Alice' >> 'SGksIEJvYiE='"
  30. end
  31. if localaction == 3 then
  32. chatString = "Message Recieved from 'Bob' >> 'SGksIEFsaWNlIQ=='"
  33. end
  34. if localaction == 4 then
  35. chatString = "Uncaught Error: Your mom"
  36. end
  37. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(chatString, "All")
  38. end
  39.  
  40. while true do
  41. wait(math.random(1,(10)))
  42. roll()
  43. if action == 1 then
  44. print("walking and jumping")
  45. walkandjump()
  46. end
  47. if action == 2 then
  48. print("walking")
  49. walk()
  50. end
  51. if action == 3 then
  52. print("jumping")
  53. jump()
  54. end
  55. if action == 4 then
  56. print("talking")
  57. talk()
  58. end
  59. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement