So currently I am working on a custom leaderboard player list UI for my game as I wanted to add some new features. I would like to replicate the “Report Abuse” and “Block” buttons which currently exist on the default Roblox UI, how would I go about scripting this?
local StarterGui = game:GetService("StarterGui")
local player
-- Prompts the current player to block the given Player.
StarterGui:SetCore("PromptBlockPlayer", player)
-- Prompts the current player to unblock the given Player.
StarterGui:SetCore("PromptUnblockPlayer", player)
Yeah Same I don’t think you can script to connect to those buttons.
But you wanted to
Well you could always make a datastore called “Blocked Players” and save players Id in there, so if the blocked player joined the player who block 'em you’d teleport such player back into the game resulting in the blocked player being moved to another server. Same can be done vice versa if I join a player who I blocked then I should be teleported into a different server.