Simple AutoFarm Keyless
Key Required

Simple AutoFarm Keyless

Pirate Wars!eeknoMeeknoM 658 views 153 executesUpdated Dec 23, 2025
Unrated
00
Lua Script•59 lines (1679 chars)
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")

local player = Players.LocalPlayer

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "CloseHintGui"
screenGui.ResetOnSpawn = false
screenGui.Parent = player:WaitForChild("PlayerGui")

local otherIsland = workspace:WaitForChild("Map"):WaitForChild("OtherIslands")

for _, obj in ipairs(otherIsland:GetDescendants()) do
	if obj:IsA("Model") and obj.Name == "Palm Tree" then
		obj:Destroy()
	end
end

local textLabel = Instance.new("TextLabel")
textLabel.Size = UDim2.fromScale(0.3, 0.05)
textLabel.AnchorPoint = Vector2.new(0.5, 0)
textLabel.Position = UDim2.fromScale(0.5, 0.02)
textLabel.BackgroundTransparency = 1
textLabel.Text = "E to close"
textLabel.TextScaled = true
textLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
textLabel.Parent = screenGui

local connection
connection = UserInputService.InputBegan:Connect(function(input, gameProcessed)
	if gameProcessed then return end

	if input.KeyCode == Enum.KeyCode.E then
		if screenGui then
			screenGui:Destroy()
		end

		if connection then
			connection:Disconnect()
		end
	end
end)

local uis = game:GetService("UserInputService")


while (not uis:IsKeyDown(Enum.KeyCode.E)) do
    local chests = game.workspace.Chests:GetChildren()
    local ogpos = (#chests > 0 and game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart").Position) or nil
    for k, v in pairs(chests) do
             game.Players.LocalPlayer.Character:MoveTo(v:WaitForChild("Treasure").Position)
        wait(0.2)
    end
    if (ogpos) then
    game.Players.LocalPlayer.Character:MoveTo(ogpos)
    end

    wait(1)
end

Features & Information

Press E to close script very barebones

Community Comments (0)

No comments yet for this script.

More Scripts for Pirate Wars!