Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Is it possible to disable ties on a KO WO leaderboard? How?

How do you disable ties, on a KO WO leaderboard, so if you tie, it won't count it on the leaderboard?

1 comment

0

I'm asking this, because it's what I'm wondering about how you'd prevent WOs, and KOs showing up on a leaderboard.

1 answer

First off, are you familiar with the kill tag system? Whenever a tool damages a humanoid, it creates a "tag" ObjectValue in the damaged person's character that refers to the attacker. If a humanoid dies, there is typically a leaderboard script that checks for the kill tag, and increments the Knockouts and Wipeouts.

(More about the kill tag system: http://wiki.roblox.com/index.php?title=Tools#Damage)

So what you'll need to do is modify the onHumanoidDied function in your leaderboard script to only treat it as a kill if: the killer has a character, and the killer's character's humanoid is alive.

1 comment

0

Wow merely, thanks I discovered something new. Also, I'm wondering how you can track both killtags for when both players die, so it doesn't count the points? Even in a lag spike, when another player kills him, and he pauses then kills back.

This discussion is preserved as it was. New answers, comments, and votes are closed.