Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I store a CFrame inside a datastore of a part?

Asked by 4 years ago

Itried this:


Data:SetAsync(Part.Name, {Part.CFrame})

But it just errors

 Cannot store Array in data store. Data stores can only accept valid UTF-8 characters.
0
You cannot store userdatas in data stores. Instead, store the components of the CFrame. {Part.CFrame:GetComponents()}. GetComponents returns the components of the CFrame. So the table contains all of the components User#24403 69 — 4y

Answer this question