Hi! I am creating a setting bar that will regulate the volume of the ingame sound, but I got no idea about how could I pull this off.
Here is my progress:
here is my scrolling bar, that white squere is a TextButton that will be later transparent, it’s purpose is to detect mouse click
I have scripted TextButton to detect MouseButton1Down/Up and based on that connection and disconnection from the RenderStepped event.
I store mouse position as Vector2.new(mouse.X, mouseY)
So my main problem is actually converting mouse.X (which is in offset) to a scale that I could use for a bar. I should also mention that the bar you is located in even bigger frame, so I dont think that a regular
conversion from offset to scale would help.
I hope I provided enough information, but if I didnt then pls ask. Thanks for help and your time!