Edwin1170

Pet Posse OP Script

Jul 8th, 2022 (edited)
1,212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. --███████╗██████╗░░██╗░░░░░░░██╗██╗███╗░░██╗░░███╗░░░░███╗░░███████╗░█████╗░
  2. --██╔════╝██╔══██╗░██║░░██╗░░██║██║████╗░██║░████║░░░████║░░╚════██║██╔══██╗
  3. --█████╗░░██║░░██║░╚██╗████╗██╔╝██║██╔██╗██║██╔██║░░██╔██║░░░░░░██╔╝██║░░██║
  4. --██╔══╝░░██║░░██║░░████╔═████║░██║██║╚████║╚═╝██║░░╚═╝██║░░░░░██╔╝░██║░░██║
  5. --███████╗██████╔╝░░╚██╔╝░╚██╔╝░██║██║░╚███║███████╗███████╗░░██╔╝░░╚█████╔╝
  6. --╚══════╝╚═════╝░░░░╚═╝░░░╚═╝░░╚═╝╚═╝░░╚══╝╚══════╝╚══════╝░░╚═╝░░░░╚════╝░
  7. --🆂🆄🅱🆂🅲🆁🅸🅱🅴
  8. --]]
  9. local plr = game.Players.LocalPlayer
  10. local things = workspace.__THINGS
  11. local remote = things.__REMOTES.clickedButton
  12.  
  13. while task.wait() do -- no delay so it can go hella fucking fast + the script iterating over instances makes it go slow enough
  14. local pets = {}; for i,v in pairs(things.Pets:FindFirstChild(plr.Name):GetChildren()) do
  15. table.insert(pets, v.Name)
  16. end
  17.  
  18. local coins = {}; for i,v in pairs(things.Coins.SpawnWorld:GetChildren()) do
  19. for z,x in pairs(v:GetDescendants()) do
  20. if table.find(pets, x.Name) then
  21. table.insert(coins, v)
  22. end
  23. end
  24. end
  25.  
  26. for i,v in pairs(coins) do
  27. remote:FireServer(v.Coin, v)
  28. end
  29. end
Add Comment
Please, Sign In to add comment