[V2.0.7] Slider Class - Create Sliders With Ease!

Hi! I don’t exactly understand… If you mean clicking anywhere on the slider’s parent moves the slider to the mouse (when moveToMouse is true), then yes, that is intentional, if not, can you provide a video of what you mean and/or elaborate?


Lmao, I sure do! But jokes aside, it’s nice that you’re spotting bugs, I always knew there are bugs that I didn’t know of, and here they are, being revealed.

1 Like


here’s a totally professional diagram of what I mean

1 Like

Lmao, alright yea, that’s not intentional, I’ll look into it.

Hello, I tried using this module but I can’t get it to work properly. I attached a video with the problem and here is the code:

--//slider
local properties = {
	step = 1,
	xboxStep = 5,
	canLeaveFrame = false,
	canFullyLeaveFrame = false,
	moveToMouse = false,
	waypoints = {},
	trackers = {},
	values = {
		min = 0,
		max = 100
	},
	defaultValue = 100,
	axis = "X",
}

local slider = module.new(script.Parent.Slider, properties)

slider:Enable()

local tracker = slider:AddTracker(script.Parent.Parent.Value)

slider:EnableTracker(tracker)

slider.moved:Connect(function()
	print(slider:GetValue())
end)


--//slider

Hello! I tried reproducing the issue but it doesn’t seem to work, I created a slider and copied your properties, it worked just fine, maybe it’s something with how your UI is setup, can you show me the full structure of the slider and it’s parent?

It’s in the video although it’s not complete so here you go:

1 Like

Hey, I intentionally removed the part where it checks if the mouse is inside the parent when fixing the last problem and guess what, I completely forgot about it! :sob:

Idek what’s going on anymore- Apologies for that lol, thx for spotting it again.


Won’t count this as a patch, just update your module right away.

Hmm, doesn’t seem to be something related to the structure (or maybe UIAspectRatio does something)… If you don’t mind, can you send the rbxm of the frame (or the whole screen gui)? You can remove other things unrelated to the slider if you want. Thanks.

I think I have messaged you it I don’t really use the devforum so I don’t know if you received it or not.

Yes, I have received it, I’ll look into it in a bit and inform you whether or not it was your or the module’s problem and send a fix.

Hey @GamerproxDDx, the issue was from the module and it has been fixed! Thanks for spotting it, please update your module.

1 Like

Update V2.0.6

:bug: bug fixes :bug:

  • Fix slider not caring about whether or not the mouse is inside the parent when moveToMouse is true.
  • Fixed yet another problem with :GetValue() not calculating the actual value, it has been 100% fixed now.

And how do I exactly update the model? I tried removing it and installing it again in a couple different ways but the problem persists.

You should remove the one in the game and insert another one from the toolbox.

I’m pretty sure that’s exactly what I did. But I’ll try again later anyways.

Edit: I just did exactly that and the problem is still happening.

1 Like

Please add some images of the type of sliders you can make
since most people cannot be bothered to follow along to see.

1 Like

There’s a video showing a FOV slider. I may add some quick 2-5 seconds clips if that’s what you mean.

when i move the slider i have problem that it sometimes gives the wrong value so like when i have the slider button all on the right it gives out the value: 80 or something like that but it should be 100.

Can you send ur code and structure from the explorer? Also make sure to update it in case you haven’t already. Older versions had some bugs in calculating the values.

I’m experiencing the same problem I updated the module like you told me before and the problem still occurs

1 Like