Advertisement
Guest User

Script build a boat (auto farm, walkspeed, jump power)

a guest
Aug 28th, 2022
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.72 KB | None | 0 0
  1. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Robojini/Tuturial_UI_Library/main/UI_Template_1"))()
  2.  
  3. local Window = Library.CreateLib("Name", "RJTheme3")
  4.  
  5. local Tab = Window:NewTab("Main")
  6.  
  7. local Section = Tab:NewSection("Player")
  8.  
  9. Section:NewButton("Walkspeed x2", "Set speed x2", function()
  10.     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 100
  11. end)
  12.  
  13.  
  14. Section:NewButton("JumpPower x2", "Set jump power x2", function()
  15.     game.Players.LocalPlayer.Character.Humanoid.JumpPower = 100
  16. end)
  17.  
  18. Section:NewButton("AutoFarm", "AutoFarm gold", function()
  19.     local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/vozoid/ui-backups/main/uwuware-v1.lua"))()
  20. local client = game:GetService("Players").LocalPlayer
  21. local infarm = false
  22. local cancelled = false
  23.  
  24. local function farm()
  25.     infarm = true
  26.  
  27.     local platform = Instance.new("Part", client.Character)
  28.     platform.Anchored = true
  29.     platform.Transparency = 1
  30.     platform.Size = Vector3.new(6, 1, 6)
  31.  
  32.     local connection
  33.     connection = game:GetService("RunService").RenderStepped:connect(function()
  34.         if client.Character:FindFirstChild("HumanoidRootPart") then
  35.             platform.Position = client.Character.HumanoidRootPart.CFrame * Vector3.new(0, -3.5, 0)
  36.         else
  37.             connection:Disconnect()
  38.         end
  39.     end)
  40.  
  41.     task.spawn(function()
  42.         task.wait(2)
  43.         firetouchinterest(client.Character.HumanoidRootPart, workspace.BoatStages.NormalStages.TheEnd.GoldenChest.Trigger, 0)
  44.     end)
  45.    
  46.     for i=1,10 do
  47.         if cancelled then
  48.             return
  49.         else
  50.             client.Character.HumanoidRootPart.CFrame = workspace.BoatStages.NormalStages["CaveStage" .. i].DarknessPart.CFrame + Vector3.new(0, -30, 0)
  51.            
  52.             task.wait(1)
  53.  
  54.             if workspace.BoatStages.NormalStages:FindFirstChild("CaveStage" .. i + 1) then
  55.                 client.Character.HumanoidRootPart.CFrame = workspace.BoatStages.NormalStages["CaveStage" .. i + 1].DarknessPart.CFrame + Vector3.new(0, -30, -20)
  56.             end
  57.        
  58.             task.wait(0.5)
  59.         end
  60.     end
  61.  
  62.     infarm = false
  63. end
  64.  
  65. local main = library:CreateWindow("Build A Boat")
  66.  
  67. main:AddToggle({text = "Autofarm", flag = "autofarm", callback = function(toggled)
  68.     cancelled = not toggled
  69.     if toggled then
  70.         if not infarm then
  71.             farm()
  72.         end
  73.     else
  74.         client.Character:WaitForChild("Humanoid").Health = 0
  75.     end
  76. end})
  77.  
  78. library:Init()
  79.  
  80. game.Players.LocalPlayer.CharacterAdded:Connect(function()  
  81.     if library.flags.autofarm then
  82.         workspace.ClaimRiverResultsGold:FireServer()
  83.         task.wait(6)
  84.         farm()
  85.     end
  86. end)
  87. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement