Advertisement
Anonymouse10101

Build A Boat Script (Autofarm)

May 19th, 2019
2,151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. _G.Farm = true
  2.  
  3. Mouse = game.Players.LocalPlayer:GetMouse()
  4. Mouse.KeyDown:connect(function(key)
  5. if key == "p" then
  6. if _G.Farm == true then _G.Farm = false print("Disabled")
  7. elseif
  8. _G.Farm == false then G.Farm = true print("Enabled")
  9. end
  10. end
  11. end)
  12.  
  13. function Upd()
  14. for ,v in pairs(workspace:GetDescendants()) do
  15. if v.Name == "DarknessPart"
  16. or v.Name == "GatePart" then
  17. v.Size = Vector3.new(257.4, 155.8, 100)
  18. end
  19. end
  20. end
  21. Upd()
  22.  
  23. local Chest = game.workspace.GoldenChest.Collider
  24. Chest.Size = Vector3.new(948.8, 1327.2, 1401.6)
  25. Chest.CFrame = CFrame.new(-54.5, -218.1, 9316.9)
  26. Chest.CanCollide = true
  27.  
  28. while true do
  29. wait()
  30. if _G.Farm == true then
  31. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(42.897, 35, 463.6)
  32. local Force = Instance.new("BodyVelocity")
  33. Force.Name = ""
  34. Force.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
  35. Force.MaxForce = Vector3.new(99999, 99999, 99999)
  36. Force.Velocity = Vector3.new(0, 0, 625)
  37. wait(18)
  38. Upd()
  39. end
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement