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.
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.
Try using the search bar to find ur gui
I meant search ScreenGUI to find all instances of that
The name might’ve changed.
There is nothing it can find I deleted all but leaderboard still shows
Are you talking about the player list?
yes the player list, Is it even possible to?
Something easier to do would just be replace the playerlist.
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
You can also try replacing the playerlist entirely, giving you control over everything that happens.
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
maybe you could try switching it to starter gui or something idk