Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to use PromptBlockPlayer?

Asked by 5 years ago

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?

0
This will probably get removed. lol Inventfvl 21 — 5y
0
no U User#23365 30 — 5y

1 answer

Log in to vote
0
Answered by
Amiaa16 3227 Moderation Voter Community Moderator
5 years ago

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)

0
gud jab men User#24403 69 — 5y
Ad

Answer this question