Advertisement
chandreeeee

Instant collect treasure

Mar 29th, 2018
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. local char = game:GetService("Players").LocalPlayer.Character
  2. local function collect(folder)
  3. for _,part in ipairs(folder:GetChildren()) do
  4. if part.Parent then
  5. char:MoveTo(part.Position)
  6. wait(0.5)
  7. end
  8. end
  9. end
  10. collect(workspace.TreasureCollectibles)
  11. collect(workspace.Treasures)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement