#I have a kdr/deaths/kills skript and it is supposed to showup on my scoreboard but it isn't. I'm usi

1 messages · Page 1 of 1 (latest)

bronze linden
#

skbee

    if {deaths::%player's uuid%} is not set:
        set {deaths::%player's uuid%} to 0
    if {kills::%player's uuid%} is not set:
        set {kills::%player's uuid%} to 0
        
    while player is online:
        set title of player's scoreboard to "&x&6&e&0&0&f&b&l1&x&7&6&0&0&d&c&lB&x&7&e&0&0&b&c&lo&x&8&5&0&0&9&d&lx&x&8&d&0&0&7&e&l1&x&9&5&0&0&5&e&lL&x&9&d&0&0&3&f&li&x&a&4&0&0&1&f&lf&x&a&c&0&0&0&0&le"
        set line 18 of player's scoreboard to " "
        set line 17 of player's scoreboard to "&5&lUSER"
        set line 16 of player's scoreboard to " "
        set line 15 of player's scoreboard to "  &8&l» &4Rank: &c%player's prefix%"
        set line 14 of player's scoreboard to " "
        set line 13 of player's scoreboard to "  &8&l» &4Deaths: &c%{deaths::%player's uuid%}%"
        set line 12 of player's scoreboard to " "
        set line 11 of player's scoreboard to "  &8&l» &4Kills: &c%{kills::%player's uuid%}%"
        set line 10 of player's scoreboard to " "
        set line 9 of player's scoreboard to "  &8&l» &4KDR: &c%{kdr::%player's uuid%}%"
        set line 8 of player's scoreboard to " "
        set line 7 of player's scoreboard to "&5&lSERVER"
        set line 6 of player's scoreboard to " "
        set line 5 of player's scoreboard to "  &8&l» &4Joins: &8 &c%{joins}%"
        set line 4 of player's scoreboard to " "
        set line 3 of player's scoreboard to "  &8&l» &4TPS: &8 &c%tps%"
        set line 2 of player's scoreboard to " "
        set line 1 of player's scoreboard to "  &8&l» &4IP: &x&6&e&0&0&f&b&l1&x&7&6&0&0&d&c&lB&x&7&e&0&0&b&c&lo&x&8&5&0&0&9&d&lx&x&8&d&0&0&7&e&l1&x&9&5&0&0&5&e&lL&x&9&d&0&0&3&f&li&x&a&4&0&0&1&f&lf&x&a&c&0&0&0&0&le&r&4&l.minehut.gg"
        wait 1 second

on death of player:
    attacker is a player
    add 1 to {kills::%attacker's uuid%}
    set {kdr::%attacker's uuid%} to {kills::%attacker's uuid%} / {deaths::%attacker's uuid%}```
#

im getting no error

#

its just not showing on scoreboard

astral veldt
#

does that line attempt to show?
is there anything there?

bronze linden
#

which line?

#

yes it shows

#

it says 0 as the value

#

but it doesnt change whenever you die

astral veldt
#

for deaths? kills?

bronze linden
#

yes

#

deaths kills and KDR

astral veldt
#

show me where you set deaths?

bronze linden
#

a diff skript

#

lemme check

#

nvm

#

i didnt set deaths

#

what should i put to set the deaths?

astral veldt
#

im sure you can figure that out

bronze linden
#

uhh

#

on death of player:

astral veldt
#

that would be smart now wouldnt it

bronze linden
#

yeah

#

ig idk how to skritp never tried to learn

#

on death of player:
victim is a player
add 1 to {deaths::%attacker's uuid%}

#

correct?

#

yep still not working

#

idk if i even did that correctly

#

victims*

willow ibex
#

And you also should set player's kdr to 0 on join. If not then you'll get <none> on first join.

bronze linden
#

okay

bronze linden
willow ibex
#

kdr also should work. I tested it.

bronze linden
#

hmm

willow ibex
#

Can you show the code?

bronze linden
#

it isn't updating on scoreboard

#

sure

#

o

#

damn its to long

#

wait nvm

#

thats the whjole code

#

just expand it

willow ibex
#

Works fine for me.

#

Did you rejoin the server?

#

Or maybe restart would help.

bronze linden
#

okay

#

Resatarting now

bronze linden
#

for some reason

#

i have a command which shows your kdr when you do /kdr <player>

#

and it shows 1.9

#

but on the scoreboard the kills and deaths are at 0

bronze linden