function SliderClass.new(V,y)local A=setmetatable({},SliderClass)A._Maid=Lazy.Utilities.Maid.new()A._Spring=Lazy.Utilities.Spring.new(1,.1,1,0)A._Axis=y or"\120"A._ChangedBind=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")A._ClickedBind=Instance.new("\066\105\110\100\097\098\108\101\069\118\101\110\116")A.Interval=0 A.IsActive=true A.TweenClick=true A.Inverted=false A.Frame=V A.Changed=A._ChangedBind.Event A.Clicked=A._ClickedBind.Event A.DragStart=nil A.DragStop=nil init(A)A:Set(.5)return A end function SliderClass.Create(V)local y=nil if not V or V=="\120"then y=SliderClass.new(SLIDER_FRAMEX:Clone(),V)else y=SliderClass.new(SLIDER_FRAMEY:Clone(),V)y.Inverted=true end return y end


function SliderClass.new(sliderFrame, axis)
	local self = setmetatable({}, SliderClass)
	
	self._Maid = Lazy.Utilities.Maid.new()
	self._Spring = Lazy.Utilities.Spring.new(1, 0.1, 1, 0)
	self._Axis = axis or "x"
	self._ChangedBind = Instance.new("BindableEvent")
	self._ClickedBind = Instance.new("BindableEvent")
	
	self.Interval = 0
	self.IsActive = true
	self.TweenClick = true
	self.Inverted = false
	
	self.Frame = sliderFrame
	self.Changed = self._ChangedBind.Event
	self.Clicked = self._ClickedBind.Event
	self.DragStart = nil
	self.DragStop = nil
	
	init(self)
	self:Set(0.5)
	
	return self
end

function SliderClass.Create(axis)
	local slider = nil
	
	if (not axis or axis == "x") then
		slider = SliderClass.new(SLIDER_FRAMEX:Clone(), axis)
	else
		slider = SliderClass.new(SLIDER_FRAMEY:Clone(), axis)
		slider.Inverted = true
	end
	
	return slider
end
