Jump to content

Player Tracker Scoreboard Help


mraehal

Recommended Posts

I am using This for a player tracker I wanted some help

command /track:
    trigger:
        set {x} to player's x-coordinates
        set {z} to player's z-coordinates
        set name of sidebar of player to "&6Survivor Cords!"
#loop need to go here to refresh Board and update player cords 
        set score "Mraehal:" in sidebar of player to {x}
        set score "Mraehal2:" in sidebar of player to {z}
        wait 10 seconds
        wipe player's sidebar
command /Backup:
    trigger:
        set {x} to player's x-coordinates
        set {z} to player's z-coordinates
        #set {x1} to player2'sx-coordinates#set player2 cords
        #set {z2} to player2's z-coordinates#set player 2 cords 
        set name of sidebar of player to "&6Hello oreboards!"
        set score "raehal:" in sidebar of player to {x}
        set score "raehal2:" in sidebar of player to {z}
        wait 10 seconds
        wipe player's sidebar
    # i need help getting it to track multiple player I can only get it to do it for me not able to see my freinds cords 

Link to comment
Share on other sites

I've noticed several mistakes in your script, but the main thing I want to point out is your misuse of variables. You see, if you set for example the {x} variable to the player's variable, then the player's variable would be the same for everyone, and would change constantly.

Use local variables instead, {_x}, {_y}, {_z}.

 

 

Link to comment
Share on other sites

On the scoreboard you could probably just display this %("_Tarna_" parsed as a player)'s location% if you want to display a certain player's location. 

Discord - tarna256

In-game name - _Tarna_

Website - https://tarna.dev
Paste Site: https://paste.tarna.dev

---------------------------------------------------------

[VIP] - 7/27/2020

Community Support - 7/8/20 | 11/3/20

Helper  - 11/3/20 - 2/21/21

Moderator - 2/21/21 - 5/17/21

❤️ - 5/17/21 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...