Advertisement
albinoxxe

intão é isso pezoal

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