Advertisement
robloxboblox

build a boat for treasure auto farm

Mar 16th, 2022
1,159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.02 KB | None | 0 0
  1.  
  2. function start()
  3.     for i,v in ipairs(game:GetService("Workspace").BoatStages.OtherStages:GetChildren()) do
  4.     v:Destroy()
  5.     end
  6.      game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  7.      wait()
  8.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-28, 54, 670)
  9.     local endf = game.Workspace.BoatStages.NormalStages.TheEnd.GoldenChest.LightPart.CFrame + Vector3.new(0,416,0)
  10.     local tweenservice = game:GetService("TweenService")
  11.     local part = game.Players.LocalPlayer.Character.HumanoidRootPart
  12.     local goal = {
  13.         CFrame = endf
  14.     }
  15.  
  16.     local info = TweenInfo.new(
  17.         24,
  18.         Enum.EasingStyle.Linear,
  19.         Enum.EasingDirection.Out,
  20.         0,
  21.         false,
  22.         0
  23.         )
  24.     local parttween = tweenservice:Create(part, info, goal)
  25.     parttween:Play()
  26.     parttween.Completed:Wait()
  27.     print("Completed")
  28.     part.CFrame = game.Workspace.BoatStages.NormalStages.TheEnd.GoldenChest.LightPart.CFrame
  29.     wait(20)
  30.     start()
  31. end
  32.  
  33. start()
  34.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement