How do you make it so that you can only press a button if you have this specific name?

It would really help me. :slight_smile:

You would need a trigger and block code for this

I can send a picture of the block Code

How do you do that? I’m not good at devices

That would be good thx

So do wire it to when button pressed-trigger

And then do block code in the trigger (I’ll show you a picture of the code in the trigger)

Change “Easton” to whatever player name


Does that answer your question?

I’m currently doing it now. How do you make it 2 names?

Try to use a name checker:
Lifecycle set on game start, Relay set on all players, Button not activate when game start.

Lifecycle (event occurs) → Relay (trigger relay)
Relay (triggered relay) → trigger (trigger)

In trigger, put this block code:

Make the button activate when receive on [activate button].

3 Likes

What do you mean, like another player name? In that case just make another if-do block and do the same thing

Go to essentials, you should be able to see the “Triggering Player’s Name” block, for the name block, go to text and choose the text block, enter the name you wanted.

1 Like

(post deleted by author)

To the button of the admin board

Just wire the button to the trigger

Go to the button settings, make it [not active when game start], and make it activate when receive on [Go to admin board], make it player-scoped.

No, that won’t work, you can’t activate a button if the check failed.

1 Like

It doesn’t work I can still teleport as any name

I can’t press the button now

Have you tried my method?

2 Likes

Hold up, give me a second than I will send more photos