Detect where player clicks in gui

Ok, so this might be a little confusing.

I need to detect where the player clicks within a gui element. There are several areas I want to monitor within a gui box, and I don’t even know where to begin to know where to start. All the other elements of this script work, it does what I want, except the clicking aspect. Basically like a slider, where they click and hold and move up and down and affect an int, or click and the int immediately jumps to the correct spot.

I think I know how to make it work as a slider, but not how to detect which spot to be in, or to define the parameters. Anyone have any idea?

To detect where player clicks in gui, use
Event.current.type = EventType.MouseUp (or down, depending on your needs).