Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to save the positions and rotations of a part in a plot then load it again?

Asked by 4 years ago

Hello,

As I said in the title too,I know how to save and load parts but i can't load/save their positions and rotations.Any help would be awesome

1 answer

Log in to vote
2
Answered by 4 years ago

You have to save their positions and rotations into your datastorage

01local data = {}
02 
03local part = workspace.Part1
04local partData = {
05    ['Orientation'] = part.Orientation;
06    ['Position'] = part.Position
07    ['BrickColor'] = part.BrickColor
08}
09 
10table.insert(data, partData)

I'm assuming you already kinda know what you're doing though. otherwise start from something easier

Ad

Answer this question