Imported from ScriptBlox https://scriptblox.com/
Auto Fish
Free
script.lua
52 lines
local players = game:GetService("Players")
local rs = game:GetService("ReplicatedStorage")
local player = players.LocalPlayer
local function galaxy()
local char = player.Character
if not char then return end
local near = nil
local dist = math.huge
for _, v in workspace.Galaxies:GetChildren() do
local d = (v:GetPivot().Position - char.HumanoidRootPart.Position).Magnitude
if d < dist then
dist = d
near = v
end
end
return near
end
local itemEvent = rs.Events.Global.ClientRecieveItems
itemEvent.OnClientEvent:Connect(function(p1, p2, p3, catchData, p5, waitData)
if catchData then
for idx, fishData in catchData do
local fishId = fishData['id']
if fishId then
task.wait(waitData[idx] or 3)
rs.Events.Global.ClientItemConfirm:FireServer(fishId)
end
end
end
end)
while true do
local char = player.Character
if char then
local rod = char:FindFirstChild("Rod")
if rod then
local targetGalaxy = galaxy()
if targetGalaxy then
local hrp = char.HumanoidRootPart
local castPos = targetGalaxy:GetPivot().Position + Vector3.new(0, 5, 0)
local castDir = (castPos - hrp.Position).Unit
rs.Events.Global.Cast:FireServer(char.Humanoid, castPos, castDir, rod.Model.Nodes.RodTip.Attachment)
task.wait(0.1)
rs.Events.Global.WithdrawBobber:FireServer(char.Humanoid)
end
end
end
task.wait(0.3)
end
Description
Comments 0
Login to comment
Loading comments...
Copied!