Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Character = game:GetService("Players").LocalPlayer.Character
- local Distance = Vector3.new(0, 0, 5)
- local Delay = 2.5
- local Chests = {}
- for _, Items in next, workspace:GetDescendants() do
- if Items.Name:match("Chest") and Items:IsA("BasePart") then
- table.insert(Chests, Items)
- end
- end
- for i = 1, 20 do
- local Chest = Chests[i]
- if Chest.Transparency < 1 then
- Character:MoveTo(Chest.Position + Distance)
- wait(Delay)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement