Sword Island Simulator
192 Views
361 Executions

Sword Island Simulator
YoussefEslam9991
YoussefEslam9991First script
3 months ago
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Just a script xd

View Raw
local Players = game:GetService("Players")
local player = Players.LocalPlayer

local isFarming = false
local farmCoroutine = nil

local function farmAction()
    for _, tool in ipairs(player.Backpack:GetChildren()) do
        if tool:IsA("Tool") and tool.Name:match("^Sword") then
            local handle = tool:FindFirstChild("Handle")
            local scriptFolder = handle and handle:FindFirstChild("Script")
            local remote = scriptFolder and scriptFolder:FindFirstChild("RemoteEvent")
            if remote and remote:IsA("RemoteEvent") then
                remote:FireServer()
            end
            task.wait(0.03)
        end
    end
end

local function startFarming()
    isFarming = true
    farmCoroutine = coroutine.create(function()
        while isFarming do
            farmAction()
            task.wait(0)
        end
    end)
    coroutine.resume(farmCoroutine)
    toggleButton.Text = "Stop"
    toggleButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
end

local function stopFarming()
    isFarming = false
    if farmCoroutine then
        farmCoroutine = nil
    end
    toggleButton.Text = "Start"
    toggleButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More Sword Island Simulator scripts

See all
Murder Mystery 2
54.7k
160.1k
Bumped 12 seconds ago
Key System
Illegal Soccer
6.7k
50.5k
Bumped 21 minutes ago
(🎃UPDATE🎃) THA BRONX 3
716
118
Bumped 2 hours ago
Key System
Paid
Fling Things and People
11.4k
81.7k
Bumped 4 hours ago
Deadly Golf  [UPD]
743
1.0k
Bumped 5 hours ago