Pickpocketing System

I’m trying to make a pickpocket system like jailbreak but with proximity prompts, in jailbreak they have a pickpocketing system, prisoners and criminals can pickpocket police but police can’t pickpocket each other. I’m trying to make a proximity prompt that can only be visible and used by the prisoners, citizens, and criminals that would appear on the Police’s backs. Can anyone please help?

1 Like

create the proximity prompt through a local script.

a quick example.

LocalScript:

local Player = game.Players.LocalPlayer

-- Check if player is not a policemen
if Player.Info.Status ~= "Police" then

	-- Loop through every player
	for i,player in pairs(game.Players:GetPlayers()) do
		-- Check if player is police
		if player.Info.Status == "Police" and player.Name ~= Player.Name then
			--Create ProximityPrompt
			local Proximity = Instance.new("ProximityPrompt")
			Proximity.Parent = player.Character.HumanoidRootPart
			
			
			
		end
		
	end
	
	
	
end

this is just the making of it. Not the full function.

1 Like

Howtoroblox has a tutorial on it, maybe check that out

That doesn’t make it show up for only specific teams though.

Is there a way to make that only show up for the citizens, criminals, and prisoners?