Advertisement
scripterhaxer

fishing code

Feb 18th, 2020
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.53 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local OpenFrame = Instance.new("Frame")
  8. local Open = Instance.new("TextButton")
  9. local Fishthing = Instance.new("Frame")
  10. local AutoFish = Instance.new("TextButton")
  11. local AutoSell = Instance.new("TextButton")
  12. local StopFishing = Instance.new("TextButton")
  13. local Gamepasses = Instance.new("TextButton")
  14. local FastBoat = Instance.new("TextButton")
  15. local Creature = Instance.new("TextButton")
  16. local TpBoat = Instance.new("TextButton")
  17. local TpBoat_2 = Instance.new("TextButton")
  18. local InstaCatch = Instance.new("TextButton")
  19. local random = Instance.new("TextLabel")
  20. local random2 = Instance.new("TextLabel")
  21. local ok = Instance.new("TextLabel")
  22. local idk = Instance.new("TextLabel")
  23. local Close = Instance.new("TextButton")
  24.  
  25. --Properties:
  26.  
  27. ScreenGui.Parent = game.CoreGui
  28. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  29.  
  30. OpenFrame.Name = "OpenFrame"
  31. OpenFrame.Parent = ScreenGui
  32. OpenFrame.Active = true
  33. OpenFrame.BackgroundColor3 = Color3.new(0, 0, 0)
  34. OpenFrame.BackgroundTransparency = 0.69999998807907
  35. OpenFrame.Position = UDim2.new(-6.0216216e-08, 0, 0.939803421, 0)
  36. OpenFrame.Size = UDim2.new(0, 122, 0, 49)
  37.  
  38. Open.Name = "Open"
  39. Open.Parent = OpenFrame
  40. Open.BackgroundColor3 = Color3.new(1, 1, 1)
  41. Open.BackgroundTransparency = 1
  42. Open.Size = UDim2.new(0, 122, 0, 49)
  43. Open.Font = Enum.Font.SourceSans
  44. Open.Text = "Hehe"
  45. Open.TextColor3 = Color3.new(1, 1, 1)
  46. Open.TextSize = 30
  47. Open.TextStrokeColor3 = Color3.new(1, 1, 1)
  48. Open.MouseButton1Down:connect(function()
  49. Fishthing.Visible = true
  50. OpenFrame.Visible = false
  51. end)
  52.  
  53. Fishthing.Archivable = false
  54. Fishthing.Name = "Fishthing"
  55. Fishthing.Parent = ScreenGui
  56. Fishthing.Active = true
  57. Fishthing.BackgroundColor3 = Color3.new(0, 0, 0)
  58. Fishthing.BackgroundTransparency = 0.69999998807907
  59. Fishthing.Position = UDim2.new(0.14127861, 0, 0.213759214, 0)
  60. Fishthing.Size = UDim2.new(0, 681, 0, 361)
  61. Fishthing.Draggable = true
  62.  
  63. AutoFish.Name = "AutoFish"
  64. AutoFish.Parent = Fishthing
  65. AutoFish.BackgroundColor3 = Color3.new(1, 1, 1)
  66. AutoFish.Position = UDim2.new(0.0200892854, 0, 0.0416666679, 0)
  67. AutoFish.Size = UDim2.new(0, 188, 0, 47)
  68. AutoFish.Font = Enum.Font.SourceSans
  69. AutoFish.Text = "Auto Fishing"
  70. AutoFish.TextColor3 = Color3.new(0, 0, 0)
  71. AutoFish.TextSize = 14
  72. AutoFish.MouseButton1Down:connect(function()
  73. -------------------------------------------
  74. _G.var = true
  75. -------------------------------------------
  76. local plrgui = game.Players.LocalPlayer.PlayerGui.ScreenGui
  77. local function str_split(str, sep)
  78. if sep == nil then
  79. sep = '%s'
  80. end
  81.  
  82. local res = {}
  83. local func = function(w)
  84. table.insert(res, w)
  85. end
  86.  
  87. string.gsub(str, '[^'..sep..']+', func)
  88. return res
  89. end
  90. while _G.var do
  91. game.ReplicatedStorage.Connections.FishingCast:InvokeServer(false,false)
  92. inventoryTable=str_split(plrgui.SideInventory.InventorySize.Text, "/")
  93. bait=string.gsub(plrgui.SideBait.Counter.Text, "BAIT: ", "")
  94. if bait == "0" then
  95. game.ReplicatedStorage.Connections.FishingPurchaseBait:InvokeServer()
  96. end
  97. if tonumber(inventoryTable[1]) == tonumber(inventoryTable[2]) then
  98. game.ReplicatedStorage.Connections.FishingSellAll:InvokeServer()
  99. end
  100. wait(1)
  101. end
  102. end)
  103.  
  104. AutoSell.Name = "AutoSell"
  105. AutoSell.Parent = Fishthing
  106. AutoSell.BackgroundColor3 = Color3.new(1, 1, 1)
  107. AutoSell.Position = UDim2.new(0.333775818, 0, 0.0416666679, 0)
  108. AutoSell.Size = UDim2.new(0, 188, 0, 47)
  109. AutoSell.Font = Enum.Font.SourceSans
  110. AutoSell.Text = "Auto Sell"
  111. AutoSell.TextColor3 = Color3.new(0, 0, 0)
  112. AutoSell.TextSize = 14
  113. AutoSell.MouseButton1Down:connect(function()
  114. _G.autoSell = true
  115.  
  116. while _G.autoSell and wait() do
  117. for _, v in pairs(game:GetService("Players").LocalPlayer["LocalData"]["FishDiscovered"]:GetChildren()) do
  118. local string_1 = tostring(v);
  119. local number_1 = 1;
  120. local Target = game:GetService("ReplicatedStorage").CloudClientResources.Communication.Functions.SellItem;
  121. Target:InvokeServer(string_1, number_1);
  122. end
  123. end
  124. end)
  125.  
  126. StopFishing.Name = "StopFishing"
  127. StopFishing.Parent = Fishthing
  128. StopFishing.BackgroundColor3 = Color3.new(1, 1, 1)
  129. StopFishing.Position = UDim2.new(0.0200892836, 0, 0.242468834, 0)
  130. StopFishing.Size = UDim2.new(0, 188, 0, 47)
  131. StopFishing.Font = Enum.Font.SourceSans
  132. StopFishing.Text = "Stop AutoFishing"
  133. StopFishing.TextColor3 = Color3.new(0, 0, 0)
  134. StopFishing.TextSize = 14
  135. StopFishing.MouseButton1Down:connect(function()
  136. -------------------------------------------
  137. _G.var = false
  138. -------------------------------------------
  139. local plrgui = game.Players.LocalPlayer.PlayerGui.ScreenGui
  140. local function str_split(str, sep)
  141. if sep == nil then
  142. sep = '%s'
  143. end
  144.  
  145. local res = {}
  146. local func = function(w)
  147. table.insert(res, w)
  148. end
  149.  
  150. string.gsub(str, '[^'..sep..']+', func)
  151. return res
  152. end
  153. while _G.var do
  154. game.ReplicatedStorage.Connections.FishingCast:InvokeServer(false,false)
  155. inventoryTable=str_split(plrgui.SideInventory.InventorySize.Text, "/")
  156. bait=string.gsub(plrgui.SideBait.Counter.Text, "BAIT: ", "")
  157. if bait == "0" then
  158. game.ReplicatedStorage.Connections.FishingPurchaseBait:InvokeServer()
  159. end
  160. if tonumber(inventoryTable[1]) == tonumber(inventoryTable[2]) then
  161. game.ReplicatedStorage.Connections.FishingSellAll:InvokeServer()
  162. end
  163. wait(1)
  164. end
  165. end)
  166.  
  167. Gamepasses.Name = "Gamepasses"
  168. Gamepasses.Parent = Fishthing
  169. Gamepasses.BackgroundColor3 = Color3.new(1, 1, 1)
  170. Gamepasses.Position = UDim2.new(0.333333343, 0, 0.240997225, 0)
  171. Gamepasses.Size = UDim2.new(0, 188, 0, 47)
  172. Gamepasses.Font = Enum.Font.SourceSans
  173. Gamepasses.Text = "Gamepasses"
  174. Gamepasses.TextColor3 = Color3.new(0, 0, 0)
  175. Gamepasses.TextSize = 14
  176. Gamepasses.MouseButton1Down:connect(function()
  177. for _, gamepass in pairs(game:GetService("Players").LocalPlayer["LocalData"]["Gamepasses"]:GetChildren()) do
  178. gamepass.Value = true
  179. end
  180. end)
  181.  
  182. FastBoat.Name = "FastBoat"
  183. FastBoat.Parent = Fishthing
  184. FastBoat.BackgroundColor3 = Color3.new(1, 1, 1)
  185. FastBoat.Position = UDim2.new(0.637298107, 0, 0.0415512472, 0)
  186. FastBoat.Size = UDim2.new(0, 188, 0, 47)
  187. FastBoat.Font = Enum.Font.SourceSans
  188. FastBoat.Text = "Fast Boat"
  189. FastBoat.TextColor3 = Color3.new(0, 0, 0)
  190. FastBoat.TextSize = 14
  191. FastBoat.MouseButton1Down:connect(function()
  192. workspace:FindFirstChild(tostring(game:GetService("Players").LocalPlayer).. "'s Boat")["Controller"]["VehicleSeat"].MaxSpeed = 500
  193. end)
  194.  
  195. Creature.Name = "Creature"
  196. Creature.Parent = Fishthing
  197. Creature.BackgroundColor3 = Color3.new(1, 1, 1)
  198. Creature.Position = UDim2.new(0.637298107, 0, 0.240997225, 0)
  199. Creature.Size = UDim2.new(0, 188, 0, 47)
  200. Creature.Font = Enum.Font.SourceSans
  201. Creature.Text = "Creature Locator"
  202. Creature.TextColor3 = Color3.new(0, 0, 0)
  203. Creature.TextSize = 14
  204. Creature.MouseButton1Down:connect(function()
  205. for _, model in pairs(workspace:GetChildren()) do
  206. if model:FindFirstChild("IsSeaMonster") and not model["HumanoidRootPart"]:FindFirstChild("CreatureLocator") then
  207. local billboard = Instance.new("BillboardGui", model["HumanoidRootPart"])
  208. billboard.Name = "CreatureLocator"
  209. billboard.AlwaysOnTop = true
  210. billboard.Active = true
  211. billboard.ClipsDescendants = true
  212. billboard.Size = UDim2.new(0,200,0,100)
  213. billboard.StudsOffsetWorldSpace = Vector3.new(0,0,25)
  214. billboard.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  215. billboard.Adornee = model["HumanoidRootPart"]
  216.  
  217. local locatedName = Instance.new("TextLabel", billboard)
  218. locatedName.Name = "locatedNameLabel"
  219. locatedName.BackgroundTransparency = 1
  220. locatedName.Font = Enum.Font.SourceSansBold
  221. locatedName.Text = tostring(model)
  222. locatedName.TextColor3 = Color3.fromRGB(255,255,255)
  223. locatedName.Size = UDim2.new(1,0,1,0)
  224. locatedName.TextSize = 10
  225. locatedName.TextStrokeTransparency = 0
  226.  
  227. --[[ -- delete [ from here and add them above to remove
  228. billboard:Destroy()
  229. -]]
  230.  
  231. end
  232. end
  233. end)
  234.  
  235. TpBoat.Name = "TpBoat"
  236. TpBoat.Parent = Fishthing
  237. TpBoat.BackgroundColor3 = Color3.new(1, 1, 1)
  238. TpBoat.Position = UDim2.new(0.0190895796, 0, 0.434903026, 0)
  239. TpBoat.Size = UDim2.new(0, 188, 0, 47)
  240. TpBoat.Font = Enum.Font.SourceSans
  241. TpBoat.Text = "Teleport to Boat"
  242. TpBoat.TextColor3 = Color3.new(0, 0, 0)
  243. TpBoat.TextSize = 14
  244. TpBoat.MouseButton1Down:connect(function()
  245. game:GetService("Players").LocalPlayer.Character["HumanoidRootPart"].CFrame = CFrame.new(workspace:FindFirstChild(tostring(game:GetService("Players").LocalPlayer).. "'s Boat")["Controller"]["VehicleSeat"].Position + Vector3.new(0,2,0))
  246. end)
  247.  
  248. TpBoat_2.Name = "TpBoat"
  249. TpBoat_2.Parent = Fishthing
  250. TpBoat_2.BackgroundColor3 = Color3.new(1, 1, 1)
  251. TpBoat_2.Position = UDim2.new(0.0190895796, 0, 0.434903026, 0)
  252. TpBoat_2.Size = UDim2.new(0, 188, 0, 47)
  253. TpBoat_2.Font = Enum.Font.SourceSans
  254. TpBoat_2.Text = "Teleport to Boat"
  255. TpBoat_2.TextColor3 = Color3.new(0, 0, 0)
  256. TpBoat_2.TextSize = 14
  257.  
  258. InstaCatch.Name = "Insta Catch"
  259. InstaCatch.Parent = Fishthing
  260. InstaCatch.BackgroundColor3 = Color3.new(1, 1, 1)
  261. InstaCatch.Position = UDim2.new(0.333333343, 0, 0.434903055, 0)
  262. InstaCatch.Size = UDim2.new(0, 188, 0, 47)
  263. InstaCatch.Font = Enum.Font.SourceSans
  264. InstaCatch.Text = "Insta Catch"
  265. InstaCatch.TextColor3 = Color3.new(0, 0, 0)
  266. InstaCatch.TextSize = 14
  267. InstaCatch.MouseButton1Down:connect(function()
  268. -- Script generated by R2Sv2
  269. -- R2Sv2 fixed by ButterflyEffect, dragging function Danisty§#9161
  270. -- Remote Path: game:GetService("ReplicatedStorage").CloudClientResources.Communication.Events.FishCaught
  271.  
  272. local Event = game:GetService("ReplicatedStorage").CloudClientResources.Communication.Events.FishCaught
  273. Event:FireServer()
  274. end)
  275.  
  276. random.Name = "random"
  277. random.Parent = Fishthing
  278. random.BackgroundColor3 = Color3.new(1, 1, 1)
  279. random.BackgroundTransparency = 0.5
  280. random.Position = UDim2.new(0.019089574, 0, 0.722991705, 0)
  281. random.Size = UDim2.new(0, 314, 0, 36)
  282. random.Font = Enum.Font.SourceSans
  283. random.Text = "1. first throw your cast and execute this once"
  284. random.TextColor3 = Color3.new(0, 0, 0)
  285. random.TextSize = 14
  286.  
  287. random2.Name = "random2"
  288. random2.Parent = Fishthing
  289. random2.BackgroundColor3 = Color3.new(1, 1, 1)
  290. random2.BackgroundTransparency = 0.5
  291. random2.Position = UDim2.new(0.019089574, 0, 0.595567882, 0)
  292. random2.Size = UDim2.new(0, 314, 0, 36)
  293. random2.Font = Enum.Font.SourceSans
  294. random2.Text = "---------Insta Catch--------------"
  295. random2.TextColor3 = Color3.new(0, 0, 0)
  296. random2.TextSize = 14
  297.  
  298. ok.Name = "ok"
  299. ok.Parent = Fishthing
  300. ok.BackgroundColor3 = Color3.new(1, 1, 1)
  301. ok.BackgroundTransparency = 0.5
  302. ok.Position = UDim2.new(0.020557994, 0, 0.847645402, 0)
  303. ok.Size = UDim2.new(0, 614, 0, 36)
  304. ok.Font = Enum.Font.SourceSans
  305. ok.Text = "2. wait for the bubbles and for the thing to show up and execute again and boom you got 2 fish without any effort"
  306. ok.TextColor3 = Color3.new(0, 0, 0)
  307. ok.TextSize = 14
  308.  
  309. idk.Name = "idk"
  310. idk.Parent = Fishthing
  311. idk.BackgroundColor3 = Color3.new(1, 1, 1)
  312. idk.BackgroundTransparency = 0.5
  313. idk.Position = UDim2.new(0.501387835, 0, 0.722168148, 0)
  314. idk.Size = UDim2.new(0, 314, 0, 36)
  315. idk.Font = Enum.Font.SourceSans
  316. idk.Text = "3. don't spam it too much or you will get kicked"
  317. idk.TextColor3 = Color3.new(0, 0, 0)
  318. idk.TextSize = 14
  319.  
  320. Close.Name = "Close"
  321. Close.Parent = Fishthing
  322. Close.BackgroundColor3 = Color3.new(1, 1, 1)
  323. Close.BackgroundTransparency = 1
  324. Close.Position = UDim2.new(0.922173321, 0, 0, 0)
  325. Close.Size = UDim2.new(0, 53, 0, 42)
  326. Close.Font = Enum.Font.SourceSans
  327. Close.Text = "X"
  328. Close.TextColor3 = Color3.new(0, 0, 0)
  329. Close.TextSize = 30
  330. Close.MouseButton1Down:connect(function()
  331. Open.Visible = true
  332. Fishthing.Visible = false
  333. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement