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

How do i Save Models For My Game?

I'm trying to make a game and i need to be able to save model or part and load them. I tryde Making a part adding it into a table and then load it into the workspace


local numberarray = {}

function add()
	local Cat = Instance.new("Part")
	Cat.Name = "KingRaul"
	Cat.Parent = workspace
	Cat.Material = "Neon"
	Cat.BrickColor = BrickColor.new("Toothpaste")
	wait(5)
	print("Got it")
	table.insert(numberarray,Cat)
	print(numberarray[1])
	
	wait(5)
	for i,v in pairs(numberarray:) do
		v:Clone().Parent = workspace
		print("Going to Workspace")
	end
end
add()

1 answer

The problem is that you cannot save instances inside datastore.

If you need to save one part you could simply use boolvalues and numbervals to create the part

But with multiple I recommend using strings to store more information

Like NAME_PROPERTY_VALUE

You can use a lot of info from here and here

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