local H={}local o={}script.SyncMember.OnClientEvent:connect(function(H,f,Z)if not o[H]then o[H]={}end o[H][f]=Z script.PublicMemberChanged:Fire(H,f,Z)end)function H.GetMemberValue(Z,H,f)if o[H]then return o[H][f]end end return H
--get member data associated with a roblox entity

local PublicMembers = {}

local Data = {}

script.SyncMember.OnClientEvent:connect(function(object, memberName, value)
	if not Data[object] then
		Data[object] = {}
	end
	Data[object][memberName] = value

	script.PublicMemberChanged:Fire(object, memberName, value)
end)

function PublicMembers:GetMemberValue(object, memberName)
	if Data[object] then
		return Data[object][memberName]
	end
end

return PublicMembers
