Automax money kill everybody in the server esp collect a loo
Views: 817Executions: 51

Automax money kill everybody in the server esp collect a loo

  • Keyless
  • Mobile untested

Advertisement

About this script

-- Put this LocalScript in StarterPlayer > StarterPlayerScripts

local Players = game:GetService("Players")

local RunService = game:GetService("RunService")

local player = Players.LocalPlayer

local autoCollect = false

local espEnabled = false

-- GUI

local gui = Instance.new("ScreenGui")

gui.Name = "FarmMenu"

gui.ResetOnSpawn = false

gui.Parent = player:WaitForChild("PlayerGui")

local frame = Instance.new("Frame")

frame.Size = UDim2.fromOffset(210, 150)

frame.Position = UDim2.new(0, 20, 0.5, -75)

frame.Parent = gui

local title = Instance.new("TextLabel")

title.Size = UDim2.new(1, 0, 0, 35)

title.Text = "Farm Menu"

title.TextScaled = true

title.Parent = frame

local collect = Instance.new("TextButton")

collect.Size = UDim2.new(1, -20, 0, 40)

collect.Position = UDim2.fromOffset(10, 45)

collect.Text = "Auto Collect: OFF"

collect.TextScaled = true

collect.Parent = frame

local esp = Instance.new("TextButton")

esp.Size = UDim2.new(1, -20, 0, 40)

esp.Position = UDim2.fromOffset(10, 95)

esp.Text = "ESP: OFF"

esp.TextScaled = true

esp.Parent = frame

collect.Activated:Connect(function()

autoCollect = not autoCollect

collect.Text = "Auto Collect: " .. (autoCollect and "ON" or "OFF")

end)

esp.Activated:Connect(function()

espEnabled = not espEnabled

esp.Text = "ESP: " .. (espEnabled and "ON" or "OFF")

end)

-- Collect objects named Coin, Money, or Loot

local function collectLoot()

local character = player.Character

local root = character and character:FindFirstChild("HumanoidRootPart")

if not root then return end

for _, obj in ipairs(workspace:GetDescendants()) do

if obj:IsA("BasePart") and

(obj.Name == "Coin" or obj.Name == "Money" or obj.Name == "Loot") then

if (obj.Position - root.Position).Magnitude <= 20 then

obj.CanTouch = true

firetouchinterest(root, obj, 0)

firetouchinterest(root, obj, 1)

end

end

end

end

-- Player ESP

local function updateESP()

for _, other in ipairs(Players:GetPlayers()) do

if other ~= player and other.Character then

local head = other.Character:FindFirstChild("Head")

if head then

local tag = head:FindFirstChild("PlayerESP")

if espEnabled and not tag then

local bill = Instance.new("BillboardGui")

bill.Name = "PlayerESP"

bill.Size = UDim2.fromOffset(150, 35)

bill.StudsOffset = Vector3.new(0, 2.5, 0)

bill.AlwaysOnTop = true

bill.Parent = head

local text = Instance.new("TextLabel")

text.Size = UDim2.fromScale(1, 1)

text.BackgroundTransparency = 1

text.Text = other.Name

text.TextScaled = true

text.Parent = bill

elseif not espEnabled and tag then

tag:Destroy()

end

end

end

end

end

RunService.RenderStepped:Connect(function()

if autoCollect then

collectLoot()

end

updateESP()

end)

Features

  • Automax money kill everybody in the serv