Killed an Player
So I’m looking just how to do the wanted system for killed an player right now.
So if you guys perhaps have an youtube Tutorial on how to make Cuffs and an Wanted Database etc That’ll help. Or maybe I don’t know…?
I’m pretty sure gonna need to have a BoolValue inside the player that’s called “Wanted” or whatever you want, and whenever a player commits a crime that value becomes true,
and when a officer tries to arrest someone, it checks if the player is true or false, if it’s true the player gets arrested, otherwise the officer gets warned for trying to arrest an innocent person.
I do this in my game Navy Simulator, it’s pretty basic.
make a boolvalue in the folder of each player called “Wanted” and if that gets checked that player can be arrested.
make a cuffs tool that allows the “police” player to click on other players. If you want to limit the range players can be arrested from just use magnitude
check bool you made in step 1 in the player that’s being clicked on. If they’re wanted run whatever arrest function you wanna use
Up to how you want to implement it. StarterCharacterScripts will reset when the player respawns, StarterPlayerScripts won’t. I personally use StarterCharacterScripts to hold the local code in Navy Sim.