Advertisement
justanotherhaxer

ESP bizzare_adventure_item_esp

Dec 8th, 2019
2,832
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.46 KB | None | 0 0
  1. local player = game:GetService("Players").LocalPlayer
  2. local camera = workspace.Camera
  3. local items = workspace["Item_Spawns"].Items
  4. local runservice = game:GetService("RunService")
  5.  
  6. local pairs = pairs
  7.  
  8. local vecTrans = function(vec) -- Vector3 to Vector2
  9.     local worldP = vec
  10.     local result = camera:WorldToScreenPoint(worldP)
  11.  
  12.     return Vector2.new(result.X, result.Y)
  13. end
  14.  
  15. local esps = {}
  16.  
  17. local esp = function(item)
  18.     local text = Drawing.new("Text")
  19.     esps[#esps + 1] = {text, item}
  20.    
  21.     if item.Color == Color3.fromRGB(165, 110, 0) then
  22.         text.Text = "Arrow"
  23.         text.Color = Color3.fromRGB(255, 255, 0)
  24.     elseif item.Color == Color3.fromRGB(139, 58, 86) then
  25.         text.Text = "Rokakaka"
  26.         text.Color = Color3.fromRGB(255, 0, 85)
  27.     end
  28.  
  29.     text.Position = vecTrans(item.Position)
  30.     text.Size = 16
  31.     text.Outline = true
  32.     text.Visible = true
  33. end
  34.  
  35. for i,v in pairs(items:GetDescendants()) do
  36.     if v.Name == "Base" then
  37.         esp(v)
  38.     end
  39. end
  40.  
  41. items.DescendantAdded:Connect(function(descendant)
  42.     if descendant.Name == "Base" then
  43.         esp(descendant)
  44.     end
  45. end)
  46.  
  47. local update_esp = function()
  48.     for i,v in pairs(esps) do
  49.         local tbl = v
  50.         local drawing = tbl[1]
  51.         local inst = tbl[2]
  52.  
  53.         if drawing and drawing.Text ~= "" then
  54.             drawing.Position = vecTrans(inst.Position)
  55.  
  56.             if not inst:IsDescendantOf(workspace) or inst.Parent.Parent ~= items then
  57.                 drawing:Remove()
  58.                 table.remove(esps, i)
  59.             end
  60.         end
  61.     end
  62. end
  63.  
  64. runservice.RenderStepped:Connect(update_esp)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement