Is there a way I could make a GUI that comes out when I click on a player. Like a GUI that can friend players or teleport?
There is a public API for prompting a friend request
(It’s under “PromptSendFriendRequest”)
-- Local script: --
clickDetector.MouseClick:Connect(function()
game:GetService("StarterGui"):SetCore("PromptSendFriendRequest", targetPlayer)
end)
The click handling can be achieved using ClickDetectors parented to the character HumanoidRootParts
4 Likes
There’s in-house support for a menu to show upon clicking a player which you can use and add buttons into. See Introducing the Avatar Context Menu for its release announcement and the Developer Hub for extra information if this interests you.
3 Likes