Zombie Attack Script | SILENT AIM

Png-21.png

Created by 0xDEITY

Features:

  • silent aim closest to mouse – with a nice highlight touch
local EnemiesFolder = workspace.enemies
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local Mouse = Player:GetMouse()
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
local HitTI = TweenInfo.new(.4, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut)

local GetClosestToCursor = function()
   local closestDistance = math.huge
   local closestEnemy = nil

   for _, enemy in pairs(EnemiesFolder:GetChildren()) do
       if not enemy:FindFirstChild("Head") then continue end
       if not enemy:FindFirstChildOfClass("Humanoid") then continue end
       if enemy.Humanoid.Health <= 0 then continue end

       local screenPos, visible = workspace.CurrentCamera:WorldToViewportPoint(enemy.Head.Position)

       local distance = (Vector2.new(Mouse.X, Mouse.Y) - Vector2.new(screenPos.X, screenPos.Y)).Magnitude
       if distance < closestDistance then
           closestEnemy = enemy
           closestDistance = distance
       end
   end

   return closestEnemy
end

local ClosestEnemy = GetClosestToCursor()
RunService.Stepped:Connect(function(time, deltaTime)
   ClosestEnemy = GetClosestToCursor()
end)

local Highlight = function(ClosestEnemy)
   local hl = Instance.new("Highlight")
   hl.Adornee = ClosestEnemy
   hl.FillColor = Color3.fromRGB(255, 0, 0)
   hl.FillTransparency = .2
   hl.OutlineColor = Color3.fromRGB(200, 0, 0)
   hl.OutlineTransparency = .2
   hl.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
   hl.Parent = ClosestEnemy
   local t = TweenService:Create(hl, HitTI, {FillTransparency = 1, OutlineTransparency= .8})
   t.Completed:Connect(function()
       hl:Destroy()
   end)
   t:Play()
end


local old; old = hookmetamethod(game, '__namecall', function(this, ...)
  local args = {...}
  local method = getnamecallmethod()

  if not checkcaller() and method == 'FireServer' and this.Name == "Gun" then
       if ClosestEnemy then
           task.spawn(Highlight, ClosestEnemy)
           args[1]["Hit"] = ClosestEnemy.Head
       end
   end

  return old(this, unpack(args))
end)

 

ENJOY!

 

Warning: DO NOT DOWNLOAD anything from this page, you’re only here to copy the script or Get it from Pastebin!

About Us

What is arponag.xyz? arponag.xyz is a website focused on releasing safe exploits, we only release the best and most trusted exploits on our website, guaranteed to satisfy you. Contact us [email protected]

Safety

Is this safe to use? Everything on the website has been scanned and tested by professionals and the community, we only release the best exploits for our users, so we make sure that our exploits won’t harm your devices, everything here is clean.

Copyright © 2018 – 2020 Arpon AG | All rights reserved |
Privacy Policy | Terms of Service