UsernameRTX

Phantom Forces Auto-Spot

Jul 19th, 2021
1,410
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Players = game:GetService("Players")
  2. local ReplicatedFirst = game:GetService("ReplicatedFirst")
  3. local RunService = game:GetService("RunService")
  4.  
  5. local LocalPlayer = Players.LocalPlayer
  6.  
  7. local ClientModules = ReplicatedFirst.ClientModules
  8.  
  9. local Old = ClientModules.Old
  10.  
  11. local framework = Old.framework
  12.  
  13. local network = require(framework.network)
  14.  
  15. local GetEnemyPlayers = function(...)
  16.     local EnemyPlayers = {}
  17.     for _, Value in ipairs(Players:GetPlayers()) do
  18.         if Value ~= LocalPlayer and Value.Team ~= LocalPlayer.Team then
  19.             table.insert(EnemyPlayers, Value)
  20.         end
  21.     end
  22.     return EnemyPlayers
  23. end
  24.  
  25. RunService.RenderStepped:Connect(function(...)
  26.     network:send("spotplayers", GetEnemyPlayers())
  27. end)
RAW Paste Data