How to make a dragger with ConeHandleAdornment

Well, the title explains all that I’m wondering, I have this script which appearently doesn’t work(I don’t know why)

            local NewHeight = self.Object.Height

            if self.Object.DraggingHeightHandle then
                NewHeight = math.clamp(
                    self.Object.Height - (self.MouseDelta.Y / 10),
                    1,
                    8
                )
            end

            self.Object.Height = math.round(NewHeight / 1) * 1