The Player ID block doesn't work?

New update, new block.
Problem: I don’t think it works.

First I will show the cool setup I have for this to work.

(Lifecycle set to game start, relay set to all players, property player scoped)

Now the blockcode:

So I supposedly set the score to be the PlayerID property, but…

Values of 0, is there just a problem in the system or the actual gimkit code?

1 Like

Alright, now you can read.


Wingwave

(og post removed)
Maybe the id is 0? Try a new tab and j0in that game and see what happens.

1 Like

Take out that relay and lemme see what happens.

1 Like

Could you open another tab with another ‘player’? Hypothetically, that second player’s ID should be 1, then.

2 Likes

That’s what i’m saying but yeah

I opened another tab and replicated the system. I’ve got nothing.

I tried the player ID earlier. I tried to set the triggering player’s ID to a property, then put that property on a text device. The text showed up as undefined, which is interesting to me. Maybe it was because it was a text property and not a number property, or maybe not. Just a thought.

3 Likes

WAIT
I think I just cracked it.
You see, the block is defined as a text block, not a number block.
What we need is something that can convert a string into a number.

I feel like I just said what @Gimkiter28 said.

2 Likes

I think multiplication by 1 works(or addition by 0).

Also, it’s because the leaderboard can only display number properties. Try using the activity feed.

Edit: This is what the player id looks like:

It is a text value only.

Oh, it produces something I didn’t expect…
Sad.

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.