Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local autofarm = false
- local XPAutoFarmGui = Instance.new("ScreenGui")
- local MainFrame = Instance.new("Frame")
- local Deco = Instance.new("TextLabel")
- local Button = Instance.new("TextButton")
- --Properties:
- XPAutoFarmGui.Name = "XPAutoFarmGui"
- XPAutoFarmGui.Parent = game.CoreGui
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = XPAutoFarmGui
- MainFrame.BackgroundColor3 = Color3.new(0, 0, 0)
- MainFrame.Position = UDim2.new(0.430536449, 0, 0.229166672, 0)
- MainFrame.Size = UDim2.new(0, 161, 0, 91)
- MainFrame.Active = true
- MainFrame.Draggable = true
- Deco.Name = "Deco"
- Deco.Parent = MainFrame
- Deco.BackgroundColor3 = Color3.new(0.388235, 0.388235, 0.388235)
- Deco.Size = UDim2.new(0, 161, 0, 37)
- Deco.Font = Enum.Font.Fantasy
- Deco.Text = "EXP FARM"
- Deco.TextColor3 = Color3.new(0, 0, 0)
- Deco.TextSize = 20
- Deco.TextWrapped = true
- Button.Name = "Button"
- Button.Parent = MainFrame
- Button.BackgroundColor3 = Color3.new(0.0117647, 0.0117647, 0.0117647)
- Button.Position = UDim2.new(0.217391297, 0, 0.494505495, 0)
- Button.Size = UDim2.new(0, 91, 0, 36)
- Button.Font = Enum.Font.SourceSans
- Button.Text = "OFF"
- Button.TextColor3 = Color3.new(1, 0, 0)
- Button.TextScaled = true
- Button.TextSize = 14
- Button.TextWrapped = true
- -- Scripts:
- Button.MouseButton1Down:connect(function()
- if autofarm == false then
- autofarm = true
- Button.TextColor3 = Color3.new(0, 1, 0)
- Button.Text = "ON"
- else
- autofarm = false
- Button.TextColor3 = Color3.new(1, 0, 0)
- Button.Text = "OFF"
- end
- end)
- spawn(function()
- while true do
- wait()
- if autofarm == true then
- game.ReplicatedStorage.RemoteFunction:InvokeServer("SetTeam", "Hero")
- game.ReplicatedStorage.RemoteFunction:InvokeServer("SetTeam", "Police")
- game.ReplicatedStorage.RemoteFunction:InvokeServer("SetTeam", "Prisoners")
- wait(1.2)
- game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-750, 55, -3340))
- wait(1)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement