Advertisement
ProtonDev-Sys

Untitled

Feb 1st, 2021
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. function isFFA()
  2. local m = #game.Players:GetPlayers()
  3. local t = 0;
  4. for i , v in pairs(game.Players:GetPlayers()) do
  5. if v.Team == game.Players.LocalPlayer.Team then
  6. t = t + 1;
  7. end;
  8. end;
  9. return t == m;
  10. end;
  11. while wait() do
  12. for i , v in pairs(game.Players:GetChildren()) do
  13. if v.Character and v.Character:FindFirstChild("HitboxHead") and v.Character:FindFirstChildOfClass("Tool") ~= nil then
  14. v.Character.HitboxHead.Size =Vector3.new(3,3,3);
  15. if isFFA() and v~= game.Players.LocalPlayer then
  16. v.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector * 3
  17. else
  18. if v.Team ~= game.Players.LocalPlayer.Team then
  19. v.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector * 3
  20. end;
  21. end;
  22.  
  23. end;
  24. end;
  25. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement