Advertisement
dady172172

Fishing Simulator GUI

Oct 23rd, 2019 (edited)
18,461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.71 KB | None | 0 0
  1. --[[
  2. Game : https://www.roblox.com/games/3329474278
  3. Codded by : Keathunsar : https://github.com/dady172172/Roblox-Cheats : https://discord.gg/MhMB3c2CBn
  4. GUI Made by : xTheAlex14 : https://teppyboy.github.io/Mirrors/Documentations/Zypher_UI/zypher.wtf/docs/uilibdocs.html
  5. ]]--
  6.  
  7. ---- vars ----
  8. kVars = {}
  9. kVars.WindowName = "Fishing Simulator GUI"
  10. kVars.placeID = 3329474278
  11. kVars.lp = game:GetService('Players').LocalPlayer
  12. kVars.vu = game:GetService('VirtualUser')
  13. kVars.uis = game:GetService('UserInputService')
  14. kVars.rs = game:GetService('ReplicatedStorage')
  15. kVars.humanoid = kVars.lp.Character:WaitForChild('Humanoid')
  16. kVars.hrp = kVars.lp.Character:WaitForChild('HumanoidRootPart')
  17.  
  18. ---- check for correct game ----
  19. if kVars.placeID ~= game.PlaceId then
  20.     warn("#### - This Script is not for this game. - ####")
  21.     script:Destroy()
  22.     return
  23. end
  24.  
  25. ---- destroy old gui if exists ----
  26. if game:GetService("CoreGui"):FindFirstChild(kVars.WindowName) then
  27.     game:GetService("CoreGui"):FindFirstChild(kVars.WindowName):Destroy()
  28.     wait(2)
  29. end
  30.  
  31. ---- antiAFK ----
  32. kVars.connectAntiAfk = game:GetService('Players').LocalPlayer.Idled:connect(function()
  33.     kVars.vu:CaptureController()
  34.     kVars.vu:ClickButton2(Vector2.new())
  35.  end)
  36.  
  37. ---- gui build ----
  38. local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/teppyboy/RbxScripts/master/Misc/UI_Libraries/Zypher/Library.lua"))()
  39. local Window = library:CreateMain({
  40.     projName = kVars.WindowName,
  41.     Resizable = true,
  42.     MinSize = UDim2.new(0,400,0,400),
  43.     MaxSize = UDim2.new(0,750,0,500),
  44. })
  45.  
  46. local pageMain = Window:CreateCategory("Main")
  47. local sectionFarm = pageMain:CreateSection("Farm")
  48.  
  49. local pageTeleport = Window:CreateCategory("Teleport")
  50. local sectionTPToPlayer = pageTeleport:CreateSection("Teleport To Player")
  51. local sectionTPLocation = pageTeleport:CreateSection("Location")
  52.  
  53. local pageCharacter = Window:CreateCategory("Character")
  54. local sectionCharacter = pageCharacter:CreateSection("Options")
  55.  
  56. local pageMisc = Window:CreateCategory("Misc")
  57. local sectionKeybinds = pageMisc:CreateSection("KeyBinds")
  58. local sectionWorld = pageMisc:CreateSection("World Options")
  59. local sectionMisc = pageMisc:CreateSection("Options")
  60.  
  61. local pageCredits = Window:CreateCategory("Credits")
  62. local sectionCreditsKeath = pageCredits:CreateSection("Coded by : Keathunsar")
  63. local sectionCreditsAlex = pageCredits:CreateSection("UI-Lib by : xTheAlex14")
  64.  
  65. ----========== page main ==========----
  66. ---- Farm ----
  67. sectionFarm:Create("Toggle", "Cast",function(bool)
  68.     kVars.boolCast = bool
  69.     if bool then
  70.         fCast()
  71.     end
  72. end,{default = kVars.boolCast})
  73.  
  74. function fCast()
  75.     spawn(function()
  76.         while kVars.boolCast do
  77.             wait()
  78.             kVars.rs.Connections.FishingCast:InvokeServer()
  79.         end
  80.     end)
  81. end
  82.  
  83. sectionFarm:Create("Toggle", "Sell",function(bool)
  84.     kVars.boolSell = bool
  85.     if bool then
  86.         fSell()
  87.     end
  88. end,{default = kVars.boolSell})
  89.  
  90. function fSell()
  91.     spawn(function()
  92.         while kVars.boolSell do
  93.             wait()
  94.             kVars.rs.Connections.FishingSellAll:InvokeServer()
  95.         end
  96.     end)
  97. end
  98.  
  99. sectionFarm:Create("Toggle", "Bait",function(bool)
  100.     kVars.boolBait = bool
  101.     if bool then
  102.         fBait()
  103.     end
  104. end,{default = kVars.boolBait})
  105.  
  106. function fBait()
  107.     spawn(function()
  108.         while kVars.boolBait do
  109.             wait()
  110.             local baitAmount = tonumber(string.match(kVars.lp.PlayerGui.ScreenGui.SideBait.Counter.text, "%d+"))
  111.             if (baitAmount <= 2) then
  112.                 kVars.rs.Connections.FishingPurchaseBait:InvokeServer()
  113.             end
  114.         end
  115.     end)
  116. end
  117.  
  118.  
  119. ----========== page teleport ==========----
  120. ---- section teleport to player ----
  121. kVars.SelectedTPToPlayer = kVars.lp.name
  122. sectionTPToPlayer:Create("TextBox", "Enter Users Name", function(value)
  123.     kVars.SelectedTPToPlayer = value
  124. end,{text = "Enter Users Name"})
  125.  
  126. sectionTPToPlayer:Create("Button", "Teleport To Player", function()
  127.     for i,v in pairs(game.Players:GetPlayers()) do
  128.         if kVars.SelectedTPToPlayer ~= nil and kVars.SelectedTPToPlayer ~= kVars.lp.name then
  129.             if string.lower(v.DisplayName) == string.lower(kVars.SelectedTPToPlayer) then
  130.                 kVars.hrp.CFrame = v.Character.HumanoidRootPart.CFrame                
  131.             end
  132.         end
  133.     end
  134. end,{animated = true})
  135.  
  136. ---- section teleport to location ----
  137. kVars.Locations = {
  138.     {name = "Spawn", cf = CFrame.new(3.53067803, 23.0966682, -79.0282516)},
  139.     {name = "Sell Area", cf = CFrame.new(159, 23, -74)},
  140.     {name = "Rod Shop", cf = CFrame.new(59, 24, 3)},
  141.     {name = "Bait Shop", cf = CFrame.new(112, 24, 4)},
  142.     {name = "Backpack Shop", cf = CFrame.new(166, 24, 4)},
  143.     {name = "Fish Spot", cf = CFrame.new(4, 23, -154)},
  144.     {name = "Fish Spot 2", cf = CFrame.new(84, 23, -111)},
  145.     {name = "Fish Spot 3", cf = CFrame.new(212, 23, -196)},
  146.     {name = "Fish Spot 4", cf = CFrame.new(384, 23, -234)}
  147. }
  148.  
  149. for i,v in pairs(kVars.Locations) do
  150.     sectionTPLocation:Create("Button", v.name, function()
  151.         kVars.hrp.CFrame = v.cf
  152.     end,{animated = true})
  153. end
  154.  
  155.  
  156. ----========== page character ==========----
  157. ---- section Character ----
  158. kVars.walkSpeed = kVars.humanoid.WalkSpeed
  159. sectionCharacter:Create("Slider", "Walk Speed", function(value)
  160.     kVars.walkSpeed = value
  161.     kVars.humanoid.WalkSpeed = value
  162. end,{min = 16, max = 500, default = kVars.humanoid.walkSpeed, precise = false, changablevalue = true})
  163.  
  164. kVars.jumpHeight = kVars.humanoid.JumpPower
  165. sectionCharacter:Create("Slider", "Jump Height", function(value)
  166.     kVars.jumpHeight = value
  167.     kVars.humanoid.JumpPower = value
  168. end,{min = 7.2, max = 500, default = kVars.humanoid.jumpHeight, precise = true, changablevalue = true})
  169.  
  170.  
  171. kVars.plrAdded = game.Players.LocalPlayer.CharacterAdded:Connect(function(child)
  172.     kVars.humanoid = kVars.lp.Character:WaitForChild('Humanoid', 999999)
  173.     kVars.hrp = kVars.lp.Character:WaitForChild('HumanoidRootPart', 999999)
  174.     task.wait(1)
  175.     kVars.humanoid.WalkSpeed = kVars.walkSpeed
  176.     kVars.humanoid.JumpPower = kVars.jumpHeight
  177. end)
  178.  
  179. kVars.boolInfJump = false
  180. sectionCharacter:Create("Toggle", "Inf Jump",function(bool)
  181.     kVars.boolInfJump = bool
  182. end,{default = kVars.boolInfJump})
  183.  
  184. kVars.connectJumpRequest = game:GetService("UserInputService").JumpRequest:Connect(function()
  185.     if kVars.boolInfJump then
  186.         kVars.humanoid:ChangeState("Jumping")
  187.     end
  188. end)
  189.  
  190. ----========== page misc ==========----
  191. ---- section keybinds ----
  192. kVars.OpenCloseMenuKey = Enum.KeyCode.F5
  193. sectionKeybinds:Create("KeyBind", "Open Close Menu", function(key)
  194.     kVars.OpenCloseMenuKey = key
  195. end,{default = kVars.OpenCloseMenuKey})
  196.  
  197.  
  198. kVars.connectInputBegan = kVars.uis.InputBegan:Connect(function(key)
  199.     if key.UserInputType == Enum.UserInputType.Keyboard and key.KeyCode == kVars.OpenCloseMenuKey then
  200.         if game:GetService("CoreGui"):FindFirstChild(kVars.WindowName).Enabled then
  201.             game:GetService("CoreGui"):FindFirstChild(kVars.WindowName).Enabled = false
  202.         else
  203.             game:GetService("CoreGui"):FindFirstChild(kVars.WindowName).Enabled = true
  204.         end
  205.     end
  206. end)
  207.  
  208. ---- section world ----
  209. if game.Lighting.FogStart < 100 then
  210.     kVars.boolFog = true
  211. else
  212.     kVars.boolFog = false
  213. end
  214. sectionWorld:Create("Toggle", "Fog",function(bool)
  215.     kVars.boolFog = bool
  216.     if bool then
  217.         game.Lighting.FogStart = 0
  218.     else
  219.         game.Lighting.FogStart = math.huge
  220.     end
  221. end,{default = kVars.boolFog})
  222.  
  223. ---- sections options ----
  224. sectionMisc:Create("Button", "Destroy this GUI",function()
  225.     game:GetService("CoreGui"):FindFirstChild(kVars.WindowName):Destroy()
  226. end,{animated = true})
  227.  
  228. sectionMisc:Create("Toggle", "Purchase Prompt",function(bool)
  229.     game:GetService("CoreGui").PurchasePrompt.Enabled = bool
  230. end,{default = game:GetService("CoreGui").PurchasePrompt.Enabled})
  231.  
  232. kVars.Esp = {}
  233. kVars.boolEsp = false
  234. sectionMisc:Create("Toggle", "Player ESP",function(bool)
  235.     kVars.boolEsp = bool
  236.     if not bool then
  237.         for i,v in pairs(game.Players:GetPlayers()) do
  238.             if kVars.Esp[v] then
  239.                 kVars.Esp[v].Drawing:Remove()
  240.             end
  241.         end
  242.         kVars.Esp = {}
  243.     else
  244.         fEsp()
  245.     end
  246. end,{default = kVars.boolEsp})
  247.  
  248. kVars.plrRemovingConnect = game:GetService("Players").PlayerRemoving:Connect(function(player)
  249.     if kVars.Esp[player] then
  250.         kVars.Esp[player].Drawing:Remove()
  251.     end
  252. end)
  253.  
  254. function fEsp()
  255.     spawn(function()
  256.         while kVars.boolEsp do
  257.             task.wait()
  258.             pcall(function()
  259.                 for i,v in pairs(game.Players:GetPlayers()) do
  260.                     if kVars.boolEsp == false then break end
  261.                     if kVars.lp.name ~= v.name and kVars.boolEsp then
  262.                         if not kVars.Esp[v] then
  263.                             kVars.Esp[v] = {}
  264.                             kVars.Esp[v].Drawing = Drawing.new("Text")
  265.                             kVars.Esp[v].Drawing.Visible = false
  266.                             kVars.Esp[v].Drawing.Size = 16
  267.                             kVars.Esp[v].Drawing.Color = Color3.fromRGB(0, 255, 60)
  268.                             kVars.Esp[v].Drawing.Transparency = 1
  269.                             kVars.Esp[v].Drawing.ZIndex = 1
  270.                             kVars.Esp[v].Drawing.Center = true
  271.                             kVars.Esp[v].Drawing.Font = 3
  272.                             kVars.Esp[v].Drawing.Outline = true
  273.                             kVars.Esp[v].Drawing.OutlineColor = Color3.fromRGB(0,0,0)
  274.                             kVars.Esp[v].Drawing.Text = v.name
  275.                         end
  276.                         if v.Character:FindFirstChild("Head") then
  277.                             local vector, onScreen = game.Workspace.CurrentCamera:WorldToScreenPoint(game.Players[v.name].Character.Head.Position)
  278.                             if onScreen then
  279.                                 kVars.Esp[v].Drawing.Visible = true
  280.                                 kVars.Esp[v].Drawing.Position = Vector2.new(vector.x, vector.y)
  281.                             else
  282.                                 kVars.Esp[v].Drawing.Visible = false
  283.                             end
  284.                         end
  285.                     end
  286.                 end
  287.             end)
  288.         end
  289.     end)
  290. end
  291.  
  292.  
  293. ----========== page credits ==========----
  294. ---- keaths ----
  295. sectionCreditsKeath:Create("Button", "https://github.com/dady172172/Roblox-Cheats", function()
  296.     setclipboard('https://github.com/dady172172/Roblox-Cheats')
  297. end,{animated = true})
  298.  
  299. sectionCreditsKeath:Create("Button", "https://discord.gg/MhMB3c2CBn", function()
  300.     setclipboard('https://discord.gg/MhMB3c2CBn')
  301. end,{animated = true})
  302.  
  303. ---- alex ----
  304. sectionCreditsAlex:Create("Button", "https://teppyboy.github.io/", function()
  305.     setclipboard('https://teppyboy.github.io/Mirrors/Documentations/Zypher_UI/zypher.wtf/docs/main.html')
  306. end,{animated = true})
  307.  
  308. ----========== set window size after load ==========----
  309. game:GetService("CoreGui"):FindFirstChild(kVars.WindowName).Motherframe.Size = UDim2.new(0, 495, 0, 400)
  310.  
  311. ----========== delete script if re-injecting ==========----
  312.  
  313. kVars.cR = game:GetService("CoreGui").ChildRemoved:Connect(function(child)
  314.     if child.name == kVars.WindowName then
  315.         for i,v in pairs(kVars) do
  316.             if type(v) == "boolean" then
  317.                 kVars[i] = false
  318.             end
  319.         end
  320.         kVars.connectAntiAfk:Disconnect()
  321.         kVars.connectInputBegan:Disconnect()
  322.         kVars.connectJumpRequest:Disconnect()
  323.         kVars.plrAdded:Disconnect()
  324.         kVars.plrRemovingConnect:Disconnect()
  325.         wait(1)
  326.         script:Destroy()
  327.         kVars.cR:Disconnect()
  328.     end
  329. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement