Advertisement
nguyenminhnghia

expautofarm

Feb 2nd, 2019
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. local autofarm = false
  2.  
  3. local XPAutoFarmGui = Instance.new("ScreenGui")
  4. local MainFrame = Instance.new("Frame")
  5. local Deco = Instance.new("TextLabel")
  6. local Button = Instance.new("TextButton")
  7. --Properties:
  8. XPAutoFarmGui.Name = "XPAutoFarmGui"
  9. XPAutoFarmGui.Parent = game.CoreGui
  10.  
  11. MainFrame.Name = "MainFrame"
  12. MainFrame.Parent = XPAutoFarmGui
  13. MainFrame.BackgroundColor3 = Color3.new(0, 0, 0)
  14. MainFrame.Position = UDim2.new(0.430536449, 0, 0.229166672, 0)
  15. MainFrame.Size = UDim2.new(0, 161, 0, 91)
  16. MainFrame.Active = true
  17. MainFrame.Draggable = true
  18.  
  19. Deco.Name = "Deco"
  20. Deco.Parent = MainFrame
  21. Deco.BackgroundColor3 = Color3.new(0.388235, 0.388235, 0.388235)
  22. Deco.Size = UDim2.new(0, 161, 0, 37)
  23. Deco.Font = Enum.Font.Fantasy
  24. Deco.Text = "EXP FARM"
  25. Deco.TextColor3 = Color3.new(0, 0, 0)
  26. Deco.TextSize = 20
  27. Deco.TextWrapped = true
  28.  
  29. Button.Name = "Button"
  30. Button.Parent = MainFrame
  31. Button.BackgroundColor3 = Color3.new(0.0117647, 0.0117647, 0.0117647)
  32. Button.Position = UDim2.new(0.217391297, 0, 0.494505495, 0)
  33. Button.Size = UDim2.new(0, 91, 0, 36)
  34. Button.Font = Enum.Font.SourceSans
  35. Button.Text = "OFF"
  36. Button.TextColor3 = Color3.new(1, 0, 0)
  37. Button.TextScaled = true
  38. Button.TextSize = 14
  39. Button.TextWrapped = true
  40. -- Scripts:
  41. Button.MouseButton1Down:connect(function()
  42. if autofarm == false then
  43. autofarm = true
  44. Button.TextColor3 = Color3.new(0, 1, 0)
  45. Button.Text = "ON"
  46. else
  47. autofarm = false
  48. Button.TextColor3 = Color3.new(1, 0, 0)
  49. Button.Text = "OFF"
  50. end
  51. end)
  52.  
  53. spawn(function()
  54. while true do
  55. wait()
  56. if autofarm == true then
  57. game.ReplicatedStorage.RemoteFunction:InvokeServer("SetTeam", "Hero")
  58. game.ReplicatedStorage.RemoteFunction:InvokeServer("SetTeam", "Police")
  59. game.ReplicatedStorage.RemoteFunction:InvokeServer("SetTeam", "Prisoners")
  60. wait(1.2)
  61. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-750, 55, -3340))
  62. wait(1)
  63. end
  64. end
  65. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement