Advertisement
ProScripter29

SkyWars Kill Aura

Mar 9th, 2024 (edited)
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2.  
  3. while task.wait() do
  4. for i, TPlayer in pairs(game.Players:GetPlayers()) do
  5. if TPlayer and TPlayer.Character and Player and Player.Character then
  6. if TPlayer.Character:FindFirstChild("HumanoidRootPart") and Player.Character:FindFirstChild("HumanoidRootPart") then
  7. local Distance = (TPlayer.Character.HumanoidRootPart.Position - Player.Character.HumanoidRootPart.Position).magnitude
  8. if Distance <= 25 then
  9. local args = {
  10. [1] = game:GetService("Players"):WaitForChild(TPlayer.Name)
  11. }
  12.  
  13. game:GetService("ReplicatedStorage"):WaitForChild("kav"):WaitForChild("13166fd0-1618-4057-9a33-55dfd439d66e"):FireServer(unpack(args))
  14.  
  15. end
  16. end
  17. end
  18. end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement