#Update variable name
1 messages · Page 1 of 1 (latest)
command /something:
trigger:
set {a} to random element of all players in world “world”
set line 1 of all players’ scoreboard to {a}
on damage:
set {a} to attacker
set line 1 of all players’ scoreboard to {a}
oh i forgot a thing, what if the scoreboard updates?
like every second
That would be really bad for your server
why?
anyways we are like 5 players so
yeah i got that but why would it lag
Don’t use every X
What you could do is on join, while players is online, code
That would not cause as much lag
But do add a 1 tick delay
And the end of code
it is like a playmode that when i run that command starts
and it loops X(the time that i want the playmode to last) times and waits 1 seconds every loop
and also update the scoreboard
so i cant use on join
Why not use this? This causes no lag at all
Oh you have a playtime?
I though it was just forever
Ye then you can use this
No, it will be kinda long to explain, let's say i did a playmode, where when i start it with a command a players get selected and have to catch other players, when he catches someone the one that got caught become the cather, so i just want a scoreboard that displays the current catcher
Oh its like tag?
yeah
OHHH now i know what direction you’re going in
Imma help you with that when i get to my pc
Brb
ok ty
btw i did all the code i just need that thing
i just didnt posted all of it because it would be a waste of time to read all the things that doesent matter in what i'm trying to do
I just figured it out
Ty btw
alr :)
also, make sure to set it to a variable not a list, as if you make a list it can sometimes add more things at once
so use {a} instead of {a::*}
Oh ok ty