Hello! I am currently helping to make a border game and I would like to know how I would be able to make a random kill system. If you don’t know what I’m talking about, whenever a player kills a player for no reason, they get a warning, the second time another warning and maybe a punishment, and then they get a punishment.
To do something like this, you could have a bool attribute associated with the player’s humanoid that detects if the player is being shot at through a script, also having another attribute which is the player that shot at them (if multiple, you may have to implement a table or buffer into it). This attribute could turn false after a certain period of time and if a player shoots at the person that shot at them, they wont get any warnings or whatever
I’m doing something where if the player has an illegal item and get killed, it doesn’t count as a random kill. If the player doesn’t have an illegal item, it will count as a random kill.
You could add an attribute or tag to that item and use CollectionService
to check if that item is illegal in a certain player
Alright, thank you for the help.