Sooclean

Roblox Polybattle Hack/Script | LEVELS, Kill Everyone, Silent aim,

Feb 24th, 2022 (edited)
1,695
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.11 KB | None | 0 0
  1.  
  2. JOIN DISCORD  https://discord.gg/QvueRevCM4
  3.  
  4.  
  5.  
  6. game:GetService('RunService').Stepped:Connect(function()
  7.     pcall(function()
  8.         game.Players.LocalPlayer.PlayerGui.ScreenGui.Right.ScaleYY.Bottom.EQ.Ammo.Ammo.Text = '-1'
  9.         require(game.Players.LocalPlayer.Character:FindFirstChildOfClass('Folder').config).AMMO = 2
  10.     end)
  11. end)
  12.  
  13. function GetClosestPlayer()
  14.     local Plr = nil
  15.     local BestDis = math.huge
  16.     for i, v in pairs(game.Players:GetPlayers()) do
  17.         if v.Name ~= game.Players.LocalPlayer.Name then
  18.             if v.Character and v.Character:FindFirstChild("Humanoid") and v.Character.Humanoid.Health ~= 0 and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Head") and v.Team ~= game.Players.LocalPlayer.Team then
  19.                 local Pos = game.Workspace.CurrentCamera:WorldToViewportPoint(v.Character.HumanoidRootPart.Position)
  20.                 local magnitude = (Vector2.new(Pos.X, Pos.Y) - Vector2.new(game.Players.LocalPlayer:GetMouse().X, game.Players.LocalPlayer:GetMouse().Y)).magnitude
  21.                 if magnitude < BestDis then
  22.                     Plr = v
  23.                     BestDis = magnitude
  24.                 end
  25.             end
  26.         end
  27.     end
  28.     return Plr
  29. end
  30. function HitTarget()
  31.     pcall(function()
  32.         game.Players.LocalPlayer.PlayerGui.ScreenGui.Center.ScaleYY.Middle.MouseIcon.TargetHitImage.ImageTransparency = 0.3;
  33.         if not crossOn then
  34.     crossOn = true
  35.         delay(0.3, function()
  36.         pcall(function()
  37.         while game.Players.LocalPlayer.PlayerGui.ScreenGui.Center.ScaleYY.Middle.MouseIcon.TargetHitImage.ImageTransparency < 1 do
  38.         wait(0.1);
  39.         game.Players.LocalPlayer.PlayerGui.ScreenGui.Center.ScaleYY.Middle.MouseIcon.TargetHitImage.ImageTransparency = game:GetService("Players").LocalPlayer.PlayerGui.ScreenGui.Center.ScaleYY.Middle.MouseIcon.TargetHitImage.ImageTransparency + 0.1;
  40.         end;
  41.         crossOn = false;
  42.             end)
  43.             end)
  44.         end
  45. end)
  46. end
  47. GameMeta = getrawmetatable(game)
  48. setreadonly(GameMeta,false)
  49. OldMt = GameMeta.__namecall
  50. GameMeta.__namecall = newcclosure(function(self,...)
  51.     if getnamecallmethod() == 'FireServer' and tostring(self) == 'ChangeStat' then
  52.         return
  53.     end
  54.     if getnamecallmethod() == 'FireServer' and tostring(self) == 'BulletEvent' and GetClosestPlayer() ~= nil then
  55.         Args = {...}
  56.         Target = GetClosestPlayer()
  57.         if not Args[3] then
  58.             return OldMt(self,...)
  59.         end
  60.         local v1 = {
  61.             ["shotCode"] = { game.Workspace.CurrentCamera.CFrame.Position, (CFrame.new(game.Workspace.CurrentCamera.CFrame.p,Target.Character.Head.Position).LookVector) },
  62.             ["target"] = Target,
  63.             ["originObj"] = game.Players.LocalPlayer.Character:FindFirstChildOfClass('Folder'),
  64.             ["bulletID"] = Args[3],
  65.             ["pos"] = Target.Character.Head.Position
  66.         }
  67.         local rem = game:GetService("ReplicatedStorage").Remote.DmgEvent
  68.         rem:FireServer(v1)
  69.         HitTarget()
  70.         return OldMt(self,...)
  71.     end
  72.     return OldMt(self,...)
  73. end)
Add Comment
Please, Sign In to add comment