Advertisement
Honansik

Anomalous Activities: Parity: ESP Script

Jun 25th, 2023
690
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.97 KB | None | 0 0
  1. local Anomaly
  2. local hpMain
  3.  
  4. function WTS(part)
  5.   local screen = workspace.CurrentCamera:WorldToViewportPoint(part.Position)
  6.   return Vector2.new(screen.x, screen.y)
  7. end
  8.  
  9.  
  10. function UpdateHealth(model)
  11.   if model:FindFirstChild("Humanoid") and model ~= nil then
  12.      print("working")
  13.      local kumming
  14.      local humanoid = model:WaitForChild("Humanoid")
  15.      kumming = humanoid.HealthChanged:Connect(function(HP)
  16.      if model == nil then
  17.         hpMain = false
  18.         terrorHpMain = false
  19.         return kumming:Disconnect()
  20.      end
  21.      hpMain = humanoid.Health
  22.      end)
  23.   end
  24. end
  25.  
  26. function ESP(part, text, color)
  27.   local name = Drawing.new("Text")
  28.   name.Text = text
  29.   name.Color = color
  30.   name.Position = WTS(part)
  31.   name.Size = 20.0
  32.   name.Outline = true
  33.   name.Center = true
  34.   name.Visible = true
  35.   game:GetService("RunService").Stepped:connect(function()
  36.   pcall(function()
  37.   local destroyed = not part:IsDescendantOf(workspace)
  38.   if destroyed and name ~= nil then
  39.      name:Remove()
  40.   end
  41.   if part ~= nil then
  42.      name.Position = WTS(part)
  43.      if Anomaly and Anomaly.Humanoid:FindFirstChild("inside_health") then
  44.         name.Color = Color3.new(255, 0, 0)
  45.         name.Text = "[ANOMALY]: " .. Anomaly.Name .. "\n [HP]: " .. hpMain .. "\n [TERROR HP]: " .. Anomaly.Humanoid["inside_health"].Value
  46.      else
  47.         name.Color = Color3.new(255, 5, 0)
  48.         name.Text = "[ANOMALY]: " .. Anomaly.Name .. "\n [HP]: " .. hpMain
  49.      end
  50.   end
  51.   local _, screen = workspace.CurrentCamera:WorldToViewportPoint(part.Position)
  52.   if screen then
  53.      name.Visible = true
  54.   else
  55.      name.Visible = false
  56.   end
  57.   end)
  58.   end)
  59. end
  60.  
  61.  
  62. game:GetService("Workspace").mainGame["active_anomaly"].ChildAdded:Connect(function(modelB)
  63. if not modelB:FindFirstChild("Head") then
  64.   return
  65. end
  66. coroutine.wrap(UpdateHealth)(modelB)
  67. Anomaly = modelB
  68. task.wait(1)
  69. ESP(modelB.Head, "[ANOMALY]: " .. modelB.Name .. "\n [HP]: " .. hpMain, Color3.new(255, 5, 0))
  70. end)
  71.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement