Detecting If Mouse is hovering on leaderboard Gui

I would like to be able to detect if the players mouse is hovering on the roblox leaderboard gui
I have tried using GetGuiObjectsAtPosition and other Gui detection methods.

This should help

I have tried this but for it to work I need to get the gui of the leaderboard which is hidden

What do you mean it’s “hidden,” clients usually have access to most things outside ServerStorage.

image

Removing All Gui Inside PlayerGui and Starter Gui will still show leaderboard which I cant find

Try using the search bar to find ur gui

image

I meant search ScreenGUI to find all instances of that
The name might’ve changed.

image
There is nothing it can find I deleted all but leaderboard still shows

Are you talking about the player list?

1 Like

yes the player list, Is it even possible to?

Disabling/Enabling Core GUIS (chat, playerlist, etc.)
Other Functions

Something easier to do would just be replace the playerlist.

1 Like

maybe something like this would work. not sure if i wrote this script correctly

local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Move:Connect(function()
	local pos = game.Players.LocalPlayer:GetMouse()
	local StarterGui = game:GetService("StarterGui")
	local gui = StarterGui:GetGuiObjectsAtPosition(pos.x,pos.y) -- returns a list of gui objects at a position

Oh I have tried that but it doesn’t return the gui

1 Like

You can also try replacing the playerlist entirely, giving you control over everything that happens.

1 Like

ok i updated the script. it now works but only with the chat and such. it doesnt appear to work with the player list or any “core” gui

local mouse = game.Players.LocalPlayer:GetMouse()
mouse.Move:Connect(function()
	local pos = game.Players.LocalPlayer:GetMouse()
	local gui = game.Players.LocalPlayer.PlayerGui:GetGuiObjectsAtPosition(pos.x,pos.y)
	for i,v in ipairs(gui) do
		print(v.Name)
	end
end)

I copy and pasted your code and it seems only works for gui in PlayerGui

1 Like

maybe you could try switching it to starter gui or something idk

1 Like

Found something you might be interested in

1 Like