UserInputService Core Gui Interaction Detection

I would like to make sure a player does not activate a near by object with their click when trying to equip a roblox gear via the inbuilt gui or interact with their roblox guis (core I’d presume) like the leaderboard and such. How do I accomplish this?
They are not part of the PlayerGui:GetGuiObjectsAtPosition cache.

I learned that it was the “gameProcessedEvent” parameter of InputBegan, which is used for UIS clicks. This detects if internal inbuilt Guis are mouseOvered, acted upon. Check the learn Roblox article!: https://developer.roblox.com/en-us/api-reference/event/UserInputService/InputBegan.

1 Like