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

local data = {}

local part = workspace.Part1
local partData = {
    ['Orientation'] = part.Orientation;
    ['Position'] = part.Position
    ['BrickColor'] = part.BrickColor
}

table.insert(data, partData)

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

Ad

Answer this question