SHARE
TWEET

k

HHLExploits Nov 19th, 2019 190 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --made by nacereal
  2.  
  3. if _G.active == nil then
  4.     _G.active = true
  5. end
  6.  
  7. local plr = game:GetService("Players").LocalPlayer
  8. local round_type = game:GetService("Workspace")["__VARIABLES"].RoundType
  9. local guns_folder = game:GetService("Workspace")["__DEBRIS"].Guns
  10. local RS = game:GetService("RunService")
  11.  
  12. local function getPlayer()
  13.     local char = plr.Character or plr.CharacterAdded:Wait()
  14.     local humr = char:WaitForChild("HumanoidRootPart")
  15.  
  16.     return char, humr
  17. end
  18.  
  19. local function get_target_players()
  20.     local current_guns = guns_folder:GetChildren()
  21.     local target_players = {}
  22.  
  23.         for i,v in next, current_guns do
  24.             local player = game:GetService("Players"):FindFirstChild(v.Name)
  25.  
  26.             if player then
  27.                 if round_type.Value:lower():match("tdm") and player.Team ~= plr.Team then
  28.                     table.insert(target_players, player)
  29.                 elseif round_type.Value:lower():match("ffa") and player.UserId ~= plr.UserId then
  30.                     table.insert(target_players, player)
  31.                 end
  32.             end
  33.         end
  34.  
  35.     return target_players
  36. end
  37.  
  38. while RS.RenderStepped:Wait() and _G.active do
  39.     local targets = get_target_players()
  40.  
  41.     for i,v in next, targets do
  42.         local cam = workspace.CurrentCamera
  43.  
  44.         repeat
  45.             local char, humr = getPlayer()
  46.             local target_char = v.Character if not target_char then break end
  47.             local target_humr = target_char:WaitForChild("HumanoidRootPart")
  48.  
  49.             humr.CFrame = target_humr.CFrame - target_humr.CFrame.lookVector * 5
  50.             cam.CFrame = CFrame.new(cam.CFrame.p, target_humr.Position)
  51.             RS.RenderStepped:Wait()
  52.         until not guns_folder:FindFirstChild(v.Name) or not _G.active
  53.     end
  54. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top