I created a save/load script for Parts. Now i have to seperate the data to load it again how whould i do this?
Data format: Name: [Part], Position: [0, 0, 0] , Color: [0, 0, 0] , Material: [Enum.Material.Plastic]
how would you separate this to something like local Name,local Position, local Color and local Material?
I thought about doing something like string.sub
How I store the data:
function generateDataTable(player)
local dataTable = {}
for i,v in pairs(game.Workspace.TestFolder:GetChildren()) do
table.insert(dataTable, ("Name: ["..tostring(v.Name).."], Position: ["..tostring(v.Position).."] , Color: ["..tostring(v.Color).."] , Material: ["..tostring(v.Material).."]"))
return dataTable
end

7 comments
It depends on how you`re saving the parts... can you please post the script?
I added the script to the question
I think the error is on the saving script
there is no error i just want to get the saved data separated into pieces
I want this: Name: [Part], Position: [0, 0, 0] , Color: [0, 0, 0] , Material: [Enum.Material.Plastic] to be something like this: local Name = ... local Position = ... local Color = ... local Material = ...
You don't need to tostring the name, it's already a string.
ok but how do i seperate the data