Hi guys!
I'm trying to save CFrame to a stringvalue using table and JSON encoding/decoding :)
Any ideas what I'm doing wrong? I'm not sure how to convert CFrame to a table?! I thought CFrame was already a table...
Thanks!
local position = game.Workspace:FindFirstChild(plr.Name.."Office"):GetPrimaryPartCFrame()
local HttpService = game:GetService("HttpService")
local json = HttpService:JSONEncode(position)
print(json)
plr.PlayerData.ModelPos.Value = json
It prints [nulll] unable to convert to JSON and then on decoding "Unable to parse JSON"
Thanks!

1 comment
Thank you very much!