Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- local PlayerUi = plr.PlayerGui
- local Backpack = plr.Backpack
- local Char = plr.Character
- local FishingRod = Char:FindFirstChild("Fishing Rod") or Backpack:FindFirstChild("Fishing Rod")
- local Deployed = FishingRod.Vars.IsDeployed
- local FishingUI = plr.PlayerGui:WaitForChild("FishingGameUI")
- local Prompt = FishingUI.CatchBar.ClickPrompt
- local Mouse = plr:GetMouse()
- if getgenv().Connections==nil then
- getgenv().Connections={}
- else
- for _,Connection in pairs(getgenv().Connections) do
- Connection:Disconnect()
- end
- getgenv().Connections={}
- end
- function AddConnection(connection)
- table.insert(getgenv().Connections,connection)
- end
- function ActivateReelLogic()
- if FishingUI.Enabled == false then return end
- if Prompt.Text == "Press & Hold" then
- wait(0.5)
- mouse1press()
- else
- mouse1release()
- while task.wait() do
- if Prompt.Text == "Press & Hold" then break end
- mouse1click()
- end
- end
- end
- AddConnection(Prompt:GetPropertyChangedSignal("Text"):Connect(ActivateReelLogic))
- AddConnection(FishingUI:GetPropertyChangedSignal("Enabled"):Connect(function()
- if FishingUI.Enabled == false then mouse1release() wait(0.5) mouse1click() return end
- ActivateReelLogic()
- end))
- AddConnection(Deployed:GetPropertyChangedSignal("Value"):Connect(function()
- if Deployed.Value == false then return end
- while wait(0.1) do
- if FishingUI.Enabled == true then break end
- mouse1click()
- end
- end))
Advertisement
Add Comment
Please, Sign In to add comment