Select most recent part

how do i make a script that selects the most recent part that was placed there. i have a loop that clones parts and i want to make it so that it selects the most recent part that was cloned and placed in a folder.

i dont need the clone script or anything, just a simple cript that selects the most recently placed or moved part.

1 Like

Just keep track of the last part with a variable outside the loop and inside the loop set the part to the last part

2 Likes

Can you give some more context like:

  • Where is “there”
  • and is this for roblox studio (like a plugin) or an in-game mechanic?
1 Like