Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
567
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. -------------------------------------------
  2. _G.var = true
  3. -------------------------------------------
  4. local plrgui = game.Players.LocalPlayer.PlayerGui.ScreenGui
  5. local function str_split(str, sep)
  6. if sep == nil then
  7. sep = '%s'
  8. end
  9.  
  10. local res = {}
  11. local func = function(w)
  12. table.insert(res, w)
  13. end
  14.  
  15. string.gsub(str, '[^'..sep..']+', func)
  16. return res
  17. end
  18. while _G.var do
  19. game.ReplicatedStorage.Connections.FishingCast:InvokeServer(false,false)
  20. inventoryTable=str_split(plrgui.SideInventory.InventorySize.Text, "/")
  21. bait=string.gsub(plrgui.SideBait.Counter.Text, "BAIT: ", "")
  22. if bait == "0" then
  23. game.ReplicatedStorage.Connections.FishingPurchaseBait:InvokeServer()
  24. end
  25. if tonumber(inventoryTable[1]) == tonumber(inventoryTable[2]) then
  26. game.ReplicatedStorage.Connections.FishingSellAll:InvokeServer()
  27. end
  28. wait(1)
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement