local z=false local w=.01 local l=0 function snap(z,w)if w==0 then return z else return math.floor(z/w+.5)*w end end UIS.InputEnded:connect(function(w,l)if w.UserInputType==Enum.UserInputType.MouseButton1 then z=false end end)SliderBtn.MouseButton1Down:connect(function()z=true end)RuS.RenderStepped:connect(function(z)if game.Players.LocalPlayer.Character:FindFirstChild("\086\105\098\101 \082\097\100\105\111")then local z=(UIS:GetMouseLocation()).X local b=SliderBtn.Position local e=Slider.AbsoluteSize.X local u=Slider.AbsolutePosition.X local g=snap((z-u)/e,w)l=math.clamp(game.Players.LocalPlayer.Character["\086\105\098\101 \082\097\100\105\111"]["\086\105\098\101 \114\097\100\105\111"].bruH.speaker.Sound.TimePosition/game.Players.LocalPlayer.Character["\086\105\098\101 \082\097\100\105\111"]["\086\105\098\101 \114\097\100\105\111"].bruH.speaker.Sound.TimeLength,0,1)SliderBtn.Position=UDim2.new(l,0,b.Y.Scale,b.Y.Offset)end end)
-- Properties
local held = false
local step = 0.01
local percentage = 0

function snap(number, factor)
	if factor == 0 then
		return number
	else
		return math.floor(number / factor + 0.5) * factor
	end
end

UIS.InputEnded:connect(function(input, processed)
	if input.UserInputType == Enum.UserInputType.MouseButton1 then
		held = false
	end
end)

SliderBtn.MouseButton1Down:connect(function()
	held = true
end)

RuS.RenderStepped:connect(function(delta)
	if game.Players.LocalPlayer.Character:FindFirstChild("Vibe Radio") then
		local MousePos = UIS:GetMouseLocation().X
		local BtnPos = SliderBtn.Position
		local SliderSize = Slider.AbsoluteSize.X
		local SliderPos = Slider.AbsolutePosition.X
		local pos = snap((MousePos - SliderPos) / SliderSize, step)
		percentage = math.clamp(
			(
				game.Players.LocalPlayer.Character["Vibe Radio"]["Vibe radio"].bruH.speaker.Sound.TimePosition
				/ game.Players.LocalPlayer.Character["Vibe Radio"]["Vibe radio"].bruH.speaker.Sound.TimeLength
			),
			0,
			1
		)
		SliderBtn.Position = UDim2.new(percentage, 0, BtnPos.Y.Scale, BtnPos.Y.Offset)
	end
end)
