Drag the circle with the mouse. It’s confined to the slider. Added arrow key slider controls.
So, the reason why I coded this is because I thought having script for a slider might come in handy for stuff, particularly my attempt at coding Stardew Valley on Scratch. Feel free to copy it, just give credit. A little warning: you have to set the numbers for the location and size of your sliders. I might add some comments to the code explaining what the numbers mean. Until then, you’re on your own. See if you can figure them out!