203 Views
431 Executions
Sword Island Simulator

YoussefEslam9991First script
4 months ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Just a script xd
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
0Log in to join the conversation. Login
No comments yet. Be the first!![🎃 [MOBILE] Your Bizarre Adventure 🎃](/images/script/2809202155-1794563300275.png)


