Advertisement
karobloxYT

Untitled

Oct 24th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. local Character = game:GetService("Players").LocalPlayer.Character
  2. local Distance = Vector3.new(0, 0, 5)
  3. local Delay = 2.5
  4.  
  5. local Chests = {}
  6.  
  7. for _, Items in next, workspace:GetDescendants() do
  8. if Items.Name:match("Chest") and Items:IsA("BasePart") then
  9. table.insert(Chests, Items)
  10. end
  11. end
  12.  
  13. for i = 1, 20 do
  14. local Chest = Chests[i]
  15. if Chest.Transparency < 1 then
  16. Character:MoveTo(Chest.Position + Distance)
  17. wait(Delay)
  18. end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement