Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------------
- _G.var = true
- -------------------------------------------
- local plrgui = game.Players.LocalPlayer.PlayerGui.ScreenGui
- local function str_split(str, sep)
- if sep == nil then
- sep = '%s'
- end
- local res = {}
- local func = function(w)
- table.insert(res, w)
- end
- string.gsub(str, '[^'..sep..']+', func)
- return res
- end
- while _G.var do
- game.ReplicatedStorage.Connections.FishingCast:InvokeServer(false,false)
- inventoryTable=str_split(plrgui.SideInventory.InventorySize.Text, "/")
- bait=string.gsub(plrgui.SideBait.Counter.Text, "BAIT: ", "")
- if bait == "0" then
- game.ReplicatedStorage.Connections.FishingPurchaseBait:InvokeServer()
- end
- if tonumber(inventoryTable[1]) == tonumber(inventoryTable[2]) then
- game.ReplicatedStorage.Connections.FishingSellAll:InvokeServer()
- end
- wait(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement