Advertisement
SigmaBoy456

Roblox School Fight Kill Aura #7482

Oct 11th, 2024
627
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local character = player.Character
  3. local localroot = character:WaitForChild("HumanoidRootPart")
  4.  
  5. local function closest()
  6. local range = 50
  7. local target = nil
  8. for _, v in pairs(game.Players:GetPlayers()) do
  9. if v ~= player and v.Character and not v.Character:FindFirstChildWhichIsA("ForceField") then
  10. local JN = v.Character:FindFirstChild("HumanoidRootPart")
  11. local JNR = v.Character:FindFirstChildOfClass("Humanoid")
  12. if JN and JNR.Health > 0 then
  13. local dist = (localroot.Position - JN.Position).magnitude
  14. if dist < range then
  15. range = dist
  16. target = v.Character
  17. end
  18. end
  19. end
  20. end
  21. return target
  22. end
  23.  
  24. game.Players.LocalPlayer.CharacterAdded:Connect(function(char)
  25. character = char
  26. localroot = character:WaitForChild("HumanoidRootPart")
  27. end)
  28.  
  29. local jh = closest()
  30. game:GetService("RunService").Heartbeat:Connect(function()
  31. jh = closest()
  32. end)
  33. while game:GetService("RunService").Heartbeat:Wait() do
  34. if jh and jh:FindFirstChild("UpperTorso") then
  35. local vroot = jh:FindFirstChild("UpperTorso")
  36. local args = {
  37. [1] = "\243\160\128\160\243\160\128\131\243\160\128\157\243\160\128\143\243\160\128\188\243\160\128\168",
  38. [2] = {
  39. ["Limb"] = "UpperTorso",
  40. ["Character"] = jh,
  41. ["Point"] = Vector3.new(vroot.Position.X, vroot.Position.Y, vroot.Position.Z),
  42. ["Hit"] = vroot
  43. },
  44. [3] = false,
  45. [4] = player.Name .. "-12387781526-6193893072"
  46. }
  47.  
  48. game:GetService("Players").LocalPlayer.Character.Core.Communicate:FindFirstChild(""):FireServer(unpack(args))
  49. end
  50. end
  51.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement