Hello, Iooking how to make an Cuff System that only arrests people that are wanted

For wanted, I mean such as:

  • 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.

That should work :smiley:.

I do this in my game Navy Simulator, it’s pretty basic.

  1. make a boolvalue in the folder of each player called “Wanted” and if that gets checked that player can be arrested.
  2. 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
  3. 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
1 Like

Alright thanks, I assume in StarterPlayerScripts/Startercharacterscripts, which one?
(By the way, BIG FAN of navy sim)

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.

Thanks so much, your the best. Continue on with Navy Sim. FYI :slight_smile:

1 Like

Hope these help you in some way.