I want to add a “security” feature to a model I’m making. And an easy way to update the model. I want to export the dependencies to something like JSON. Once the game loads, I want it to create all the instances with the properties inside each other from that JSON (excluding scripts).
You can create a table, then use HttpService:JSONDecode(table), then you should get like what you expected, also use :GetFullName(), do something like this
local HttpService = game:GetService("HttpService")
local tab = {
Model = {
{
type = "Part",
Parent = script.Parent.Part:GetFullName(),
Name = "Part"
}
}
}
HttpService:JSONEncode(tab)
then you should get this when you convert it to JSON