How to open Report Abuse menu and block players?

Hey!

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?

3 Likes

I think this belongs in #help-and-feedback:scripting-support

3 Likes

I don’t think you can, I think you can only do this with the Roblox leader board, I may be wrong, but I don’t think you can script it.

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)
3 Likes

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.