I want the GUI circle button to be moving at the position of the mouse, but its very off, its behind my mouse.
local Players = game:GetService("Players")
local UIS = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local settingsFrame = script.Parent
local sliderButton = settingsFrame.VolumeSlider.SliderButton
local mouse = player:GetMouse()
local dragging = false
local hovering = true
local mouseButtonDown = false
local maxPosY = -0.149
local function moveGuiToMouse()
local mouseLocation = UIS:GetMouseLocation()
sliderButton.Position = UDim2.fromOffset(mouseLocation.X, mouseLocation.Y)
end
moveGuiToMouse()
RunService:BindToRenderStep("moveGuiToMouse", 1, moveGuiToMouse)