Find any script for Roblox

Enter the name of the game or script.

Tiny Ocean script: Autofarm, Auto Flags

More Tiny Ocean Scripts code icon


Dive into Tiny Ocean, a PVP battleground where you fish, fight, and conquer! With autofarm, auto flags, auto chests, and auto collect, your progress is fully automated, letting you focus on dominating the waters and outplaying opponents in this unique aquatic simulator.

Game link: Tiny Ocean

Table of Contents
    Lua
    
    local players = game:GetService("Players")
    local cs = game:GetService("CollectionService")
    local rs = game:GetService("ReplicatedStorage")
    
    local plr = players.LocalPlayer
    local rem = rs:WaitForChild("Remotes")
    
    local farm = false
    local flags = false
    local chests = false
    local collect = false
    
    local ui = loadstring(game:HttpGet("https://sirius.menu/rayfield"))()
    
    local win = ui:CreateWindow({
    	Name = "https://discord.gg/KWcpdvbY",
    	LoadingTitle = "https://discord.gg/KWcpdvbY",
    	LoadingSubtitle = "loading",
    	ConfigurationSaving = { Enabled = false },
    	KeySystem = false
    })
    
    local main = win:CreateTab("Main", 4483362458)
    
    main:CreateToggle({
    	Name = "Auto Farm",
    	CurrentValue = false,
    	Callback = function(v)
    		farm = v
    	end
    })
    
    main:CreateToggle({
    	Name = "Auto Flags",
    	CurrentValue = false,
    	Callback = function(v)
    		flags = v
    	end
    })
    
    main:CreateToggle({
    	Name = "Auto Chests",
    	CurrentValue = false,
    	Callback = function(v)
    		chests = v
    	end
    })
    
    main:CreateToggle({
    	Name = "Auto Collect",
    	CurrentValue = false,
    	Callback = function(v)
    		collect = v
    	end
    })
    
    local mainFolder = workspace:WaitForChild("Main")
    local pickups = mainFolder:WaitForChild("Pickups"):WaitForChild("Active")
    local capturePoints = mainFolder:WaitForChild("CapturePoints")
    local collectibles = mainFolder:WaitForChild("Collectibles")
    
    local function root()
    	local c = plr.Character
    	if not c then return end
    	return c:FindFirstChild("HumanoidRootPart")
    end
    
    rem.CollectiblesTask.OnClientEvent:Connect(function(item, data, cancel)
    	if cancel == "Cancel" then return end
    	if not collect or not item then return end
    
    	rem.CollectiblesTask:FireServer(item)
    
    	local gui = plr.PlayerGui:FindFirstChild("CollectiblesGUI")
    	if gui then
    		gui.Enabled = false
    	end
    end)
    
    task.spawn(function()
    	while true do
    		local hrp = root()
    
    		if hrp then
    			if farm then
    				for _, v in ipairs(pickups:GetChildren()) do
    					for _, d in ipairs(v:GetDescendants()) do
    						if d:IsA("BasePart") then
    							firetouchinterest(hrp, d, 0)
    							firetouchinterest(hrp, d, 1)
    						end
    					end
    				end
    			end
    
    			if flags then
    				for _, p in ipairs(capturePoints:GetChildren()) do
    					if not flags then break end
    					local t = p:FindFirstChild("TouchPart")
    					if t then
    						hrp.CFrame = t.CFrame
    						task.wait(6)
    					end
    				end
    			end
    
    			if collect then
    				for _, zone in ipairs(collectibles:GetChildren()) do
    					for _, item in ipairs(zone:GetChildren()) do
    						if not collect then break end
    						if not item:GetAttribute("Active") then continue end
    
    						local m = item:FindFirstChild("Main")
    						local a = m and m:FindFirstChild("Attachment")
    
    						if a then
    							hrp.CFrame = CFrame.new(a.WorldPosition)
    							task.wait(0.3)
    
    							rem.InteractRemote:FireServer(item)
    
    							local t0 = tick()
    							while plr:GetAttribute("CollectiblesBusy") and tick() - t0 < 3 do
    								task.wait(0.05)
    							end
    						end
    					end
    				end
    			end
    
    			if chests then
    				for _, chest in ipairs(cs:GetTagged("ActiveChest")) do
    					if not chests then break end
    
    					local r = chest:FindFirstChild("Root")
    					if r then
    						hrp.CFrame = r.CFrame * CFrame.new(0, 0, -3)
    						task.wait(0.3)
    
    						local att = r:FindFirstChild("Attachment")
    						if att then
    							local prompt = att:FindFirstChildOfClass("ProximityPrompt")
    							if prompt then
    								fireproximityprompt(prompt)
    								task.wait((chest:GetAttribute("CaptureTime") or 3) + 1)
    							end
    						end
    					end
    				end
    			end
    		end
    
    		task.wait(0.1)
    	end
    end)
      

    Script Features:

    • Autofarm – Automatically farms fish and resources.
    • Auto Flags – Captures flags in battleground modes automatically.
    • Auto Chest – Opens all chests on the map.
    • Auto Collect – Gathers all dropped items and loot.
    • Script developer: alsk


    How to use Tiny Ocean script?


    Important information:

    • All scripts are free.
    • All scripts are safe to use.
    • We do not have viruses or malware.

    Leave a Comment

    Your email address will not be published. Required fields are marked *