mraehal Posted November 10, 2020 Share Posted November 10, 2020 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 More sharing options...
HunterLux Posted November 13, 2020 Share Posted November 13, 2020 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 More sharing options...
_Tarna_ Posted November 13, 2020 Share Posted November 13, 2020 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 --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now