how to search the whole server for a player with a certain tool in his backpack? because the tool can be only with one player
like i want to search the whole server for that player and if that tool is in his backpack, then want to make that player a variable
1 | local players = game.Players:GetChildren() |
2 |
3 | for _, player in pairs (players) do |
4 | if player.Backpack:FindFirstChild( "Tool" ) then |
5 | local PlayerWhichIsNeeded = player |
6 | end |
7 | end |
this might help you out but just see the capitals and all...
thanks!!