Nova355killer

Mad Farmer gui

Jan 31st, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.82 KB | None | 0 0
  1. --[[
  2. This script is made by Bean07#8282, This is a Mad City farm gui.
  3. Please don't showcase or use a part of this script without proper credits.
  4. --]]
  5. -- Instances:
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local TextBox = Instance.new("TextLabel")
  8. local Frame = Instance.new("Frame")
  9. local CashFarm = Instance.new("TextButton")
  10. local XpFarm = Instance.new("TextButton")
  11. local TextLabel = Instance.new("TextLabel")
  12. local InfAmmo = Instance.new("TextButton")
  13. --Properties:
  14. ScreenGui.Parent = game.CoreGui
  15. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  16.  
  17. TextBox.Parent = ScreenGui
  18. TextBox.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  19. TextBox.Position = UDim2.new(0.698610067, 0, 0.098096624, 0)
  20. TextBox.Size = UDim2.new(0, 304, 0, 52)
  21. TextBox.Font = Enum.Font.Cartoon
  22. TextBox.Text = "Mad Farmers"
  23. TextBox.TextColor3 = Color3.new(0.666667, 0, 0)
  24. TextBox.TextSize = 22
  25. TextBox.Active = true
  26. TextBox.Draggable = true
  27.  
  28. Frame.Parent = TextBox
  29. Frame.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  30. Frame.Position = UDim2.new(0, 0, 1.01923072, 0)
  31. Frame.Size = UDim2.new(0, 304, 0, 328)
  32.  
  33. CashFarm.Name = "CashFarm"
  34. CashFarm.Parent = Frame
  35. CashFarm.BackgroundColor3 = Color3.new(0.811765, 0, 0.0117647)
  36. CashFarm.Position = UDim2.new(0.171052635, 0, 0.208719552, 0)
  37. CashFarm.Size = UDim2.new(0, 200, 0, 47)
  38. CashFarm.Font = Enum.Font.SourceSans
  39. CashFarm.Text = "Cash Farm"
  40. CashFarm.TextColor3 = Color3.new(0, 0, 0)
  41. CashFarm.TextSize = 14
  42.  
  43. XpFarm.Name = "XpFarm"
  44. XpFarm.Parent = Frame
  45. XpFarm.BackgroundColor3 = Color3.new(0.811765, 0, 0.0117647)
  46. XpFarm.Position = UDim2.new(0.171052635, 0, 0.040788278, 0)
  47. XpFarm.Size = UDim2.new(0, 200, 0, 47)
  48. XpFarm.Font = Enum.Font.SourceSans
  49. XpFarm.Text = "XP Farm"
  50. XpFarm.TextColor3 = Color3.new(0, 0, 0)
  51. XpFarm.TextSize = 14
  52.  
  53. TextLabel.Parent = Frame
  54. TextLabel.BackgroundColor3 = Color3.new(0.176471, 0.176471, 0.176471)
  55. TextLabel.Position = UDim2.new(0, 0, 0.847184777, 0)
  56. TextLabel.Size = UDim2.new(0, 304, 0, 50)
  57. TextLabel.Font = Enum.Font.Cartoon
  58. TextLabel.Text = "Made by Bean07#8282"
  59. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  60. TextLabel.TextSize = 20
  61.  
  62. InfAmmo.Name = "InfAmmo"
  63. InfAmmo.Parent = Frame
  64. InfAmmo.BackgroundColor3 = Color3.new(0.215686, 0.215686, 0.215686)
  65. InfAmmo.Position = UDim2.new(0.171052635, 0, 0.380239516, 0)
  66. InfAmmo.Size = UDim2.new(0, 200, 0, 50)
  67. InfAmmo.Font = Enum.Font.Cartoon
  68. InfAmmo.Text = "InfAmmo (Half-Broke)"
  69. InfAmmo.TextColor3 = Color3.new(0, 0, 0)
  70. InfAmmo.TextSize = 14
  71. -- Scripts:
  72. local ct = false
  73. local xt = false
  74. CashFarm.MouseButton1Down:Connect(function()
  75. if not ct then
  76. ct = true
  77. CashFarm.BackgroundColor3 = Color3.fromRGB(65,207,4)
  78. while ct and wait() do
  79. for _,v in pairs (workspace.ObjectSelection:GetChildren()) do
  80. if v.Name == "CashRegister" then
  81. if v:FindFirstChild("SmashCash") then
  82. v.SmashCash.SmashCash.Event:FireServer()
  83. end
  84. else if v.Name == "ATM" or v.Name == "Cash" or v.Name == "SlotMachine" then
  85. if v:FindFirstChild(v.Name) then
  86. v[v.Name][v.Name].Event:FireServer()
  87. end
  88. end
  89. end
  90. end
  91. end
  92. else
  93. ct = false
  94. CashFarm.BackgroundColor3 = Color3.fromRGB(207,0,3)
  95. end
  96. end)
  97.  
  98. XpFarm.MouseButton1Down:Connect(function()
  99. if not xt then
  100. xt = true
  101. XpFarm.BackgroundColor3 = Color3.fromRGB(65,207,4)
  102. game:service'RunService'.RenderStepped:Connect(function()
  103. if xt then
  104. if game.Players.LocalPlayer.Team.Name == "Prisoners" then
  105. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(2116,25,348)
  106. end
  107. wait(.25)
  108. if game.Players.LocalPlayer.Team.Name == "Criminals" then
  109. game.ReplicatedStorage.RemoteFunction:InvokeServer("SetTeam", "Police")
  110. wait(.25)
  111. game.ReplicatedStorage.RemoteFunction:InvokeServer("SetTeam", "Prisoners")
  112. wait(.5)
  113. end
  114. end
  115. end)
  116. else
  117. xt = false
  118. XpFarm.BackgroundColor3 = Color3.fromRGB(207,0,3)
  119. end
  120. end)
  121. InfAmmo.MosueButton1Down:Connect(function()
  122. for _,v in next,game.Players.LocalPlayer.Backpack:GetDescendants() do
  123. 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
  124. for _,b in next, v:GetDescendants() do
  125. if b:IsA("LocalScript") then
  126. local env = getsenv(b)
  127. debug.setupvalue(env.Reload, "Ammo", math.huge)
  128. debug.setupvalue(env.Reload, "Clip", math.huge)
  129. end
  130. end
  131. end
  132. end
  133. end)
  134. local VirtualUser=game:service'VirtualUser'
  135. game:service'Players'.LocalPlayer.Idled:connect(function()
  136. VirtualUser:CaptureController()
  137. VirtualUser:ClickButton2(Vector2.new())
  138. end)
Add Comment
Please, Sign In to add comment