Type:properties not returning all instance properties

i tried type:properties on an instance but it didn’t return all the properties. i tried removing the checks but it gave the same thing.

i tried both read and write properties too

examples of what it doesn’t return:

  • Archivable
  • Parent
export type function GetProperties(T: type)
	local result = types.newtable()
	
	for key, property in T:properties() do
		if not property.write then
			continue
		end
		
		if property.write:is("function") then
			continue
		end
		
		result:setproperty(key, types.optional(property.write))
	end
	
	return result
end
1 Like