Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- This script is made by Bean07#8282, This is a Mad City farm gui.
- Please don't showcase or use a part of this script without proper credits.
- --]]
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local TextBox = Instance.new("TextLabel")
- local Frame = Instance.new("Frame")
- local CashFarm = Instance.new("TextButton")
- local XpFarm = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- local InfAmmo = Instance.new("TextButton")
- --Properties:
- ScreenGui.Parent = game.CoreGui
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- TextBox.Parent = ScreenGui
- TextBox.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
- TextBox.Position = UDim2.new(0.698610067, 0, 0.098096624, 0)
- TextBox.Size = UDim2.new(0, 304, 0, 52)
- TextBox.Font = Enum.Font.Cartoon
- TextBox.Text = "Mad Farmers"
- TextBox.TextColor3 = Color3.new(0.666667, 0, 0)
- TextBox.TextSize = 22
- TextBox.Active = true
- TextBox.Draggable = true
- Frame.Parent = TextBox
- Frame.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
- Frame.Position = UDim2.new(0, 0, 1.01923072, 0)
- Frame.Size = UDim2.new(0, 304, 0, 328)
- CashFarm.Name = "CashFarm"
- CashFarm.Parent = Frame
- CashFarm.BackgroundColor3 = Color3.new(0.811765, 0, 0.0117647)
- CashFarm.Position = UDim2.new(0.171052635, 0, 0.208719552, 0)
- CashFarm.Size = UDim2.new(0, 200, 0, 47)
- CashFarm.Font = Enum.Font.SourceSans
- CashFarm.Text = "Cash Farm"
- CashFarm.TextColor3 = Color3.new(0, 0, 0)
- CashFarm.TextSize = 14
- XpFarm.Name = "XpFarm"
- XpFarm.Parent = Frame
- XpFarm.BackgroundColor3 = Color3.new(0.811765, 0, 0.0117647)
- XpFarm.Position = UDim2.new(0.171052635, 0, 0.040788278, 0)
- XpFarm.Size = UDim2.new(0, 200, 0, 47)
- XpFarm.Font = Enum.Font.SourceSans
- XpFarm.Text = "XP Farm"
- XpFarm.TextColor3 = Color3.new(0, 0, 0)
- XpFarm.TextSize = 14
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
- TextLabel.Position = UDim2.new(0, 0, 0.847184777, 0)
- TextLabel.Size = UDim2.new(0, 304, 0, 50)
- TextLabel.Font = Enum.Font.Cartoon
- TextLabel.Text = "Made by Bean07#8282"
- TextLabel.TextColor3 = Color3.new(0, 0, 0)
- TextLabel.TextSize = 20
- InfAmmo.Name = "InfAmmo"
- InfAmmo.Parent = Frame
- InfAmmo.BackgroundColor3 = Color3.new(0.215686, 0.215686, 0.215686)
- InfAmmo.Position = UDim2.new(0.171052635, 0, 0.380239516, 0)
- InfAmmo.Size = UDim2.new(0, 200, 0, 50)
- InfAmmo.Font = Enum.Font.Cartoon
- InfAmmo.Text = "InfAmmo (Half-Broke)"
- InfAmmo.TextColor3 = Color3.new(0, 0, 0)
- InfAmmo.TextSize = 14
- -- Scripts:
- local ct = false
- local xt = false
- CashFarm.MouseButton1Down:Connect(function()
- if not ct then
- ct = true
- CashFarm.BackgroundColor3 = Color3.fromRGB(65,207,4)
- while ct and wait() do
- for _,v in pairs (workspace.ObjectSelection:GetChildren()) do
- if v.Name == "CashRegister" then
- if v:FindFirstChild("SmashCash") then
- v.SmashCash.SmashCash.Event:FireServer()
- end
- else if v.Name == "ATM" or v.Name == "Cash" or v.Name == "SlotMachine" then
- if v:FindFirstChild(v.Name) then
- v[v.Name][v.Name].Event:FireServer()
- end
- end
- end
- end
- end
- else
- ct = false
- CashFarm.BackgroundColor3 = Color3.fromRGB(207,0,3)
- end
- end)
- XpFarm.MouseButton1Down:Connect(function()
- if not xt then
- xt = true
- XpFarm.BackgroundColor3 = Color3.fromRGB(65,207,4)
- game:service'RunService'.RenderStepped:Connect(function()
- if xt then
- if game.Players.LocalPlayer.Team.Name == "Prisoners" then
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(2116,25,348)
- end
- wait(.25)
- if game.Players.LocalPlayer.Team.Name == "Criminals" then
- game.ReplicatedStorage.RemoteFunction:InvokeServer("SetTeam", "Police")
- wait(.25)
- game.ReplicatedStorage.RemoteFunction:InvokeServer("SetTeam", "Prisoners")
- wait(.5)
- end
- end
- end)
- else
- xt = false
- XpFarm.BackgroundColor3 = Color3.fromRGB(207,0,3)
- end
- end)
- InfAmmo.MosueButton1Down:Connect(function()
- for _,v in next,game.Players.LocalPlayer.Backpack:GetDescendants() do
- if v:FindFirstChild("PistolScript") or v:FindFirstChild("RifleScript") or v:FindFirstChild("ShotgunScript") or v:FindFirstChild("TazerScript") or v:FindFirstChild("GrenadeScript") or v:FindFirstChild("PowerScript") then
- for _,b in next, v:GetDescendants() do
- if b:IsA("LocalScript") then
- local env = getsenv(b)
- debug.setupvalue(env.Reload, "Ammo", math.huge)
- debug.setupvalue(env.Reload, "Clip", math.huge)
- end
- end
- end
- end
- end)
- local VirtualUser=game:service'VirtualUser'
- game:service'Players'.LocalPlayer.Idled:connect(function()
- VirtualUser:CaptureController()
- VirtualUser:ClickButton2(Vector2.new())
- end)
Add Comment
Please, Sign In to add comment