Cannot store Dictionary in data store. Data stores can only accept valid UTF-8 characters

The problems will never get solved, because when one gets solved, two more pop up, and a third one gets un-solved :rofl: :rofl: :rofl:

One more thing: Any advice for:

CustomPhysicalProperties = { 
Density = item.CustomPhysicalProperties.Density, 
Elasticity = item.CustomPhysicalProperties.Elasticity, 
ElasticityWeight = item.CustomPhysicalProperties.ElasticityWeight, 
Friction = item.CustomPhysicalProperties.Friction, 
FrictionWeight = item.CustomPhysicalProperties.FrictionWeight 
}

Thank you so much!

Was your lack of reply intentional? Either way, it was a blessing in disguise, because it gave me time to rewrite your function so I can better wrap my head around it, and I realized I can also use it for the custom physical properties!

local function convertStringToVector(DataString:string) 
	
	local Result = {}

	for _, Value in DataString:split(", ") do

		table.insert(Result, tonumber(Value))
		
	end

	return table.unpack(Result)

end

Again, thank you so so much! :smiley: :smiley: :smiley: :smiley: :smiley: :smiley:

My lack of a reply was not intentional I was just doing something.

On the dev forum, I like to store stuff in variables so the reader can understand it better but it seems you understand the main function of it either way. It’s great you brainstormed by yourself to figure out you can use the function for PhysicalProperties :smile:

Edit: Forget saving the position and orientation separately and just use the CFrame. Just tostring it and then use the function to return it back to it’s original form

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.