local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local Players = game.Players:GetChildren()
local contraband = player:WaitForChild('Illegal').Contraband
local SearchedPlayer = game.Players:FindFirstChild("Player1")
function SearchPerson()
if mouse.target ~= nil then
if mouse.target.Parent.Name == SearchedPlayer.Name then
print ('This person is in players')
print ("Searching " ..mouse.Target.Parent.Name .. " for illegal substances")
end
end
end
mouse.Button1Down:connect(SearchPerson)
everything works fine when player1 is in the brackets, but I don't have enough knowledge to figure out how to make it equal to the mouse target parent! I'm stumped! Thank you!!!

2 comments
Thank you! I have one more question if you are up for it. How would I access this chosen player's leader-stats? is there a way?
NEVER MIND I FIGURED IT OUT THANK YOU SO MUCH!!!!