#SKBEE bossbar not deleting when spamed

1 messages · Page 1 of 1 (latest)

stiff finch
#

So i created a function that when called would create bossbar with text and red color etc.. And would stay on the players screen for specified period of time and then delete it self..
But when i call the funtion too fast (autoclicker) it will stay on the players screen even tho it should delete it self.
https://pastebin.com/y7hFXrz2
Any suggestions to rewrite it are also welcome.

Showcase Vid of the problem
https://upload.depstr.eu/󠁧󠁲󠁹󠁶󠁹󠁴󠁫󠁡󠁭󠁯󠁹󠁦󠁲󠁿󠁵󠁣󠁸󠁧󠁲󠁱

north compass
#

set {_waittime} to "%{_t}% ticks" parsed as timespan
wait 1 ticks
set {_testbar} to bossbar named "test" with title "%{_m}%" with color bar red with style solid
wait 1 ticks
set bossbar players of {_testbar} to {_p}
wait {_waittime}
remove {_p} from bossbar players of {_testbar}
delete bossbar named "test"