Advertisement
Ninja2016x

Mad City

Feb 17th, 2019
441
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.10 KB | None | 0 0
  1. --made by sir meme
  2.  
  3. local autofarm = false
  4.  
  5. local XPAutoFarmGui = Instance.new("ScreenGui")
  6. local MainFrame = Instance.new("Frame")
  7. local Button = Instance.new("TextButton")
  8. local Deco = Instance.new("TextLabel")
  9.  
  10. XPAutoFarmGui.Name = "XPAutoFarmGui"
  11. XPAutoFarmGui.Parent = game.CoreGui
  12.  
  13. MainFrame.Name = "MainFrame"
  14. MainFrame.Parent = XPAutoFarmGui
  15. MainFrame.Active = true
  16. MainFrame.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  17. MainFrame.BorderSizePixel = 0
  18. MainFrame.Draggable = true
  19. MainFrame.Position = UDim2.new(0.25, 0, 0.25, 0)
  20. MainFrame.Size = UDim2.new(0.150000006, 0, 0.100000001, 0)
  21.  
  22. Button.Name = "Button"
  23. Button.Parent = MainFrame
  24. Button.BackgroundColor3 = Color3.new(0, 0, 0)
  25. Button.BorderSizePixel = 0
  26. Button.Position = UDim2.new(0.25, 0, 0.400000006, 0)
  27. Button.Size = UDim2.new(0.5, 0, 0.400000006, 0)
  28. Button.Font = Enum.Font.SourceSans
  29. Button.FontSize = Enum.FontSize.Size14
  30. Button.Text = "OFF"
  31. Button.TextColor3 = Color3.new(1, 0, 0)
  32. Button.TextScaled = true
  33. Button.TextSize = 14
  34. Button.TextWrapped = true
  35.  
  36. Deco.Name = "Deco"
  37. Deco.Parent = MainFrame
  38. Deco.BackgroundColor3 = Color3.new(1, 1, 1)
  39. Deco.BackgroundTransparency = 0.89999997615814
  40. Deco.BorderSizePixel = 0
  41. Deco.Size = UDim2.new(1, 0, 0.300000012, 0)
  42. Deco.Font = Enum.Font.SourceSansBold
  43. Deco.FontSize = Enum.FontSize.Size14
  44. Deco.Text = "XP Autofarm"
  45. Deco.TextColor3 = Color3.new(1, 1, 1)
  46. Deco.TextScaled = true
  47. Deco.TextSize = 14
  48. Deco.TextWrapped = true
  49.  
  50. Button.MouseButton1Down:connect(function()
  51. if autofarm == false then
  52. autofarm = true
  53. Button.TextColor3 = Color3.new(0, 1, 0)
  54. Button.Text = "ON"
  55. else
  56. autofarm = false
  57. Button.TextColor3 = Color3.new(1, 0, 0)
  58. Button.Text = "OFF"
  59. end
  60. end)
  61.  
  62. spawn(function()
  63. while true do
  64. wait()
  65. if autofarm == true then
  66. game.ReplicatedStorage.RemoteFunction:InvokeServer("SetTeam", "Hero")
  67. game.ReplicatedStorage.RemoteFunction:InvokeServer("SetTeam", "Police")
  68. game.ReplicatedStorage.RemoteFunction:InvokeServer("SetTeam", "Prisoners")
  69. wait(1.2)
  70. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-750, 55, -3340))
  71. wait(1)
  72. end
  73. end
  74. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement