i want to save colours for multiple houses and each house has multiple houses how would i save them? i know how to save them the long way so like
--when player leaves--
local colourdatastore =game:GetService("DataStoreService"):GetDataStore("Colour")
colourdatastore:SetAsync(player.UserId..":wallcolour:")
--when player enters--
local getwallcolour= colourdatastore:GetAsync(player.userId..":WallColour")
if wallcolour == nil then
wallcolour.Value = Brickcolor.new("Black")
else
wallcolour.Value = getwallcolour
end
iis there a easier way to save them? because the way i know will take a long time and alot of space, anything will be great TY.

5 comments
Use a table to store them.
yes i can use a table but its for multiple houes and each house can have multiple colours
how would i access it from a table tho? it comes out nil when i do v.Value
I dont understand your point, using a table would still be much more efficient. You could save every house and every color into one table, and only require 1 data store.
Hmm, let me see if i can whip something up. Hopefully its what you mean.