Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to use PromptBlockPlayer?

I've tried to use PromptBlockPlayer but this happened...

Expected output:

09:09:48: CoreGui.RobloxGui.CoreScripts/BlockPlayerPrompt:103: Invalid argument to PromptBlockPlayer.

Script Used:

StarterGui:SetCore("PromptBlockPlayer", targetPlayer.Name)

Any fixes?

2 comments

0

This will probably get removed. lol

0

no U

1 answer

✓ Accepted answer

The second argument of PromptBlockPlayer is the player, not their name.

StarterGui:SetCore("PromptBlockPlayer", targetPlayer)

(note that PromptBlockPlayer only shows a prompt, it doesn't force player1 to block player2, they still have to confirm it)

1 comment

0

gud jab men

This discussion is preserved as it was. New answers, comments, and votes are closed.