1. local player = game.Players.LocalPlayer
  2. local coins = workspace:WaitForChild('Coins')
  3. for _, v in ipairs(coins:GetChildren()) do
  4. if v:IsA('BasePart') then
  5. player.Character:PivotTo(v:GetPivot())
  6. task.wait()
  7. end
  8. end