How do i fix this it keeps coming out as “GetMass is not a member of part”
local Part1 = Instance.new("Part",workspace)
function Part1:GetMass()
local volume = self.Size.x * self.Size.y * self.Size.z
local density = PhysicalProperties.new(self.Material).Density
return volume * density
end
print(Part1:GetMass())