Advertisement
Josemmoya

Untitled

Jan 1st, 2021
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. function findsheriff() --Find who the Sheriff is
  2. for i, v in pairs(game:GetService("Players"):GetChildren()) do
  3. if v ~= game:GetService("Players").LocalPlayer then
  4. for i,v in pairs(v.Backpack:GetChildren()) do --Checks backpack for knife
  5. if v.Name == "Gun" then
  6. warn(v.Parent.Parent.Name.. " is the sheriff.")
  7. end
  8. end
  9. end
  10. end
  11. end
  12. function findgood() --Find who the Sheriff is
  13. for i, v in pairs(game:GetService("Players"):GetChildren()) do
  14. if v ~= workspace.Josemmoya then
  15. for i,v in pairs(v:GetChildren()) do --Checks backpack for knife
  16. if v.Name == "Gun" then
  17. warn(v.Parent.Name.. " is the sheriff.")
  18. end
  19. end
  20. end
  21. end
  22. end
  23. findgood()
  24. findsheriff()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement