Advertisement
yaminameis59

Arsenal Drop ESP

Apr 27th, 2023
673
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.61 KB | Gaming | 0 0
  1. local camera = workspace.CurrentCamera
  2.  
  3. local function DrawDrop(drop)
  4.  
  5.     local DropText = Drawing.new("Text")
  6.     DropText.Visible = false
  7.     DropText.Center = true
  8.     DropText.Outline = true
  9.     DropText.Font = 2
  10.     DropText.Size = 13
  11.     DropText.Color = Color3.new(1,1,1) --> or any color, using FromRGB
  12.     DropText.Text = "Drop"
  13.  
  14.     local function UPDATER()
  15.         local c
  16.         c = game:GetService("RunService").RenderStepped:Connect(function()
  17.             if drop and workspace:FindFirstChild(drop.Name) and drop:FindFirstChild("Briefcase") then
  18.                
  19.                 local dropvector, onscreen = camera:WorldToViewportPoint(drop.Briefcase.Position)
  20.  
  21.                 if onscreen then
  22.                     DropText.Position = Vector2.new(dropvector.X, dropvector.Y)
  23.                     DropText.Visible = true
  24.                 else
  25.                     DropText.Visible = false
  26.                 end
  27.  
  28.             else
  29.  
  30.                 if game:GetService("Workspace"):FindFirstChild(drop.Name) == nil then
  31.                     c:Disconnect()
  32.                 end
  33.  
  34.                 DropText.Visible = false
  35.            
  36.             end
  37.         end)
  38.     end
  39.     coroutine.wrap(UPDATER)()
  40. end
  41.  
  42. for i,drop in pairs(workspace:GetChildren()) do
  43.     if drop.Name == "Drop" then
  44.         if drop:FindFirstChild("Briefcase") then
  45.             coroutine.wrap(DrawDrop)(drop)
  46.         end
  47.     end
  48. end
  49.  
  50. workspace.ChildAdded:Connect(function(drop)
  51.     if drop.Name == "Drop" then
  52.         if drop:FindFirstChild("Briefcase") then
  53.             coroutine.wrap(DrawDrop)(drop)
  54.         end
  55.     end
  56. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement