Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Save a part's position and size in a table?

Hello im wondering how i could save a parts position and size in a table by just getting it's value

My attempt

local values = {}

local part = workspace.point

table.insert(values,part.Position)
table.insert(values,part.Size)

This seperate's the value's so i cant get them both together ;'/

1 answer

✓ Accepted answer

Dictionaries

local values = {}
local part = workspace.point

local Data = { Position = part.Position, Size = part.Size }
values[part.Name] = Data 
print ( values[part.Name].Position ) 

1 comment

0

Thank you i am now a dev thank you for giving me that rank!

This discussion is preserved as it was. New answers, comments, and votes are closed.