## Purpose
It's a pain to move bots from one dimension to another, especially if you have a lot of them.
This moves bots from one dimension to another, transfers their position, and updates their tags so any animations or programmed movement work in the new dimension.
## Script
```javascript
const origin = await os.showInput(null, {title: "From dimension"});
const destination = await os.showInput(null, {title: "To dimension"});
if (!origin || !destination) { return }
const allBots = getBots(inDimension(origin));
for (var b of allBots) {
if (b.id === thisBot.id) { continue }
b.tags[destination] = true;
b.tags[`${destination}X`] = b.tags[`${origin}X`];
b.tags[`${destination}Y`] = b.tags[`${origin}Y`];
b.tags[`${destination}Z`] = b.tags[`${origin}Z`];
b.tags[`${destination}SortOrder`] = b.tags[`${origin}SortOrder`];
b.tags[origin] = null;
b.tags[`${origin}X`] = null;
b.tags[`${origin}Y`] = null;
b.tags[`${origin}Z`] = null;
b.tags[`${origin}SortOrder`] = null;
for (var t of Object.keys(b.tags)) {
if (typeof b.tags[t] !== "string") { continue }
b.tags[t] = b.tags[t].replaceAll(origin, destination)
}
// IF THIS CRASHES YOUR CHROMEBOOK, UNCOMMENT THIS LINE:
// await os.sleep(250)
}
```