script.Parent.Handle.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
if hit.Team == Criminal
hit.Parent:MoveTo(game.Workspace.Part.Position)
end
end)
The script works if I don't put if hit.Team == Criminal, but it will work if the player is in a team like Police.
How do I make it so it only can arrest Criminals?

1 comment
When I use this script the player teleports to the jail then they teleport back to the handcuffs