0% found this document useful (0 votes)
558 views7 pages

Health Indicators for Game Characters

Uploaded by

4twfxrhpcc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
558 views7 pages

Health Indicators for Game Characters

Uploaded by

4twfxrhpcc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

ocal lUILibrary =

loadstring(game:HttpGet("[Link]
libs/main/twink"))()

local MainUI = [Link]("BlackFire")


local FirstPage = [Link]("Home")

local FirstLabel = [Link]("Section 1")


local FirstButton = [Link]("Esp", function()
local lplr = [Link]
local camera = game:GetService("Workspace").CurrentCamera
local CurrentCamera = [Link]
local worldToViewportPoint = [Link]

local HeadOff = [Link](0, 0.5, 0)


local LegOff = [Link](0,3,0)

for i,v in pairs([Link]:GetChildren()) do


local BoxOutline = [Link]("Square")
[Link] = false
[Link] = [Link](0,0,0)
[Link] = 3
[Link] = 1
[Link] = false

local Box = [Link]("Square")


[Link] = false
[Link] = [Link](1,1,1)
[Link] = 1
[Link] = 1
[Link] = false

local HealthBarOutline = [Link]("Square")


[Link] = 3
[Link] = false
[Link] = [Link](0,0,0)
[Link] = 1
[Link] = false

local HealthBar = [Link]("Square")


[Link] = 1
[Link] = false
[Link] = 1
[Link] = false

function boxesp()
game:GetService("RunService").RenderStepped:Connect(function()
if [Link] ~= nil and [Link]:FindFirstChild("Humanoid") ~= nil
and [Link]:FindFirstChild("HumanoidRootPart") ~= nil and v ~= lplr and
[Link] > 0 then
local Vector, onScreen =
camera:worldToViewportPoint([Link])

local RootPart = [Link]


local Head = [Link]
local RootPosition, RootVis = worldToViewportPoint(CurrentCamera,
[Link])
local HeadPosition = worldToViewportPoint(CurrentCamera,
[Link] + HeadOff)
local LegPosition = worldToViewportPoint(CurrentCamera,
[Link] - LegOff)

if onScreen then
[Link] = [Link](1000 / RootPosition.Z,
HeadPosition.Y - LegPosition.Y)
[Link] = [Link](RootPosition.X -
[Link].X / 2, RootPosition.Y - [Link].Y / 2)
[Link] = true

[Link] = [Link](1000 / RootPosition.Z, HeadPosition.Y -


LegPosition.Y)
[Link] = [Link](RootPosition.X - [Link].X / 2,
RootPosition.Y - [Link].Y / 2)
[Link] = true

[Link] = [Link](2, HeadPosition.Y -


LegPosition.Y)
[Link] = [Link] -
[Link](6,0)
[Link] = true

[Link] = [Link](2, (HeadPosition.Y -


LegPosition.Y) / (game:GetService("Players")
[[Link]].NRPBS["MaxHealth"].Value / [Link](game:GetService("Players")
[[Link]].NRPBS["Health"].Value, 0, game:GetService("Players")
[[Link]].NRPBS:WaitForChild("MaxHealth").Value)))
[Link] = [Link]([Link].X - 6,
[Link].Y + (1 / [Link].Y))
[Link] = [Link](255 - 255 /
(game:GetService("Players")[[Link]].NRPBS["MaxHealth"].Value /
game:GetService("Players")[[Link]].NRPBS["Health"].Value), 255 /
(game:GetService("Players")[[Link]].NRPBS["MaxHealth"].Value /
game:GetService("Players")[[Link]].NRPBS["Health"].Value), 0)
[Link] = true

if [Link] == [Link] then


--- Our Team
[Link] = false
[Link] = false
[Link] = false
[Link] = false
else
---Enemy Team
[Link] = true
[Link] = true
[Link] = true
[Link] = true
end

else
[Link] = false
[Link] = false
[Link] = false
[Link] = false
end
else
[Link] = false
[Link] = false
[Link] = false
[Link] = false
end
end)
end
[Link](boxesp)()
end

[Link]:Connect(function(v)
local BoxOutline = [Link]("Square")
[Link] = false
[Link] = [Link](0,0,0)
[Link] = 3
[Link] = 1
[Link] = false

local Box = [Link]("Square")


[Link] = false
[Link] = [Link](1,1,1)
[Link] = 1
[Link] = 1
[Link] = false

local HealthBarOutline = [Link]("Square")


[Link] = 3
[Link] = false
[Link] = [Link](0,0,0)
[Link] = 1
[Link] = false

local HealthBar = [Link]("Square")


[Link] = 1
[Link] = false
[Link] = 1
[Link] = false

function boxesp()
game:GetService("RunService").RenderStepped:Connect(function()
if [Link] ~= nil and [Link]:FindFirstChild("Humanoid") ~= nil
and [Link]:FindFirstChild("HumanoidRootPart") ~= nil and v ~= lplr and
[Link] > 0 then
local Vector, onScreen =
camera:worldToViewportPoint([Link])

local RootPart = [Link]


local Head = [Link]
local RootPosition, RootVis = worldToViewportPoint(CurrentCamera,
[Link])
local HeadPosition = worldToViewportPoint(CurrentCamera,
[Link] + HeadOff)
local LegPosition = worldToViewportPoint(CurrentCamera,
[Link] - LegOff)

if onScreen then
[Link] = [Link](1000 / RootPosition.Z,
HeadPosition.Y - LegPosition.Y)
[Link] = [Link](RootPosition.X -
[Link].X / 2, RootPosition.Y - [Link].Y / 2)
[Link] = true

[Link] = [Link](1000 / RootPosition.Z, HeadPosition.Y -


LegPosition.Y)
[Link] = [Link](RootPosition.X - [Link].X / 2,
RootPosition.Y - [Link].Y / 2)
[Link] = true

[Link] = [Link](2, HeadPosition.Y -


LegPosition.Y)
[Link] = [Link] -
[Link](6,0)
[Link] = true

[Link] = [Link](2, (HeadPosition.Y -


LegPosition.Y) / (game:GetService("Players")
[[Link]].NRPBS["MaxHealth"].Value / [Link](game:GetService("Players")
[[Link]].NRPBS["Health"].Value, 0, game:GetService("Players")
[[Link]].NRPBS:WaitForChild("MaxHealth").Value)))
[Link] = [Link]([Link].X - 6,
[Link].Y + (1/[Link].Y))
[Link] = [Link](255 - 255 /
(game:GetService("Players")[[Link]].NRPBS["MaxHealth"].Value /
game:GetService("Players")[[Link]].NRPBS["Health"].Value), 255 /
(game:GetService("Players")[[Link]].NRPBS["MaxHealth"].Value /
game:GetService("Players")[[Link]].NRPBS["Health"].Value), 0)
[Link] = true

if [Link] == [Link] then


--- Our Team
[Link] = false
[Link] = false
[Link] = false
[Link] = false
else
---Enemy Team
[Link] = true
[Link] = true
[Link] = true
[Link] = true
end

else
[Link] = true
[Link] = true
[Link] = true
[Link] = true
end
else
[Link] = true
[Link] = true
[Link] = true
[Link] = true
end
end)
end
[Link](boxesp)()
end)
end)
local FirstToggle = [Link]("Chams", false, function(Value)
local dwEntities = game:GetService("Players")
local dwLocalPlayer = [Link]
local dwRunService = game:GetService("RunService")

local settings_tbl = {
ESP_Enabled = true,
ESP_TeamCheck = false,
Chams = true,
Chams_Color = [Link](0,0,255),
Chams_Transparency = 0.1,
Chams_Glow_Color = [Link](255,0,0)
}

function destroy_chams(char)

for k,v in next, char:GetChildren() do

if v:IsA("BasePart") and [Link] ~= 1 then

if v:FindFirstChild("Glow") and
v:FindFirstChild("Chams") then

[Link]:Destroy()
[Link]:Destroy()

end

end

end

end

[Link]:Connect(function()

if settings_tbl.ESP_Enabled then

for k,v in next, dwEntities:GetPlayers() do

if v ~= dwLocalPlayer then

if [Link] and
[Link]:FindFirstChild("HumanoidRootPart") and
[Link]:FindFirstChild("Humanoid") and
[Link]:FindFirstChild("Humanoid").Health ~= 0 then

if settings_tbl.ESP_TeamCheck == false then

local char = [Link]

for k,b in next, char:GetChildren() do

if b:IsA("BasePart") and
[Link] ~= 1 then

if settings_tbl.Chams then
if not b:FindFirstChild("Glow") and
not b:FindFirstChild("Chams") then

local chams_box =
[Link]("BoxHandleAdornment", b)
chams_box.Name = "Chams"
chams_box.AlwaysOnTop = true
chams_box.ZIndex = 4
chams_box.Adornee = b
chams_box.Color3 = settings_tbl.Chams_Color
chams_box.Transparency =
settings_tbl.Chams_Transparency
chams_box.Size = [Link] + [Link](0.02,
0.02, 0.02)

local glow_box =
[Link]("BoxHandleAdornment", b)
glow_box.Name = "Glow"
glow_box.AlwaysOnTop = false
glow_box.ZIndex = 3
glow_box.Adornee = b
glow_box.Color3 =
settings_tbl.Chams_Glow_Color
glow_box.Size = chams_box.Size +
[Link](0.13, 0.13, 0.13)

end

else

destroy_chams(char)

end

end

end

else

if [Link] == [Link] then


destroy_chams([Link])
end

end

else

destroy_chams([Link])

end

end

end

else

for k,v in next, dwEntities:GetPlayers() do


if v ~= dwLocalPlayer and
[Link] and
[Link]:FindFirstChild("HumanoidRootPart") and
[Link]:FindFirstChild("Humanoid") and
[Link]:FindFirstChild("Humanoid").Health ~= 0 then

destroy_chams([Link])

end

end

end

end)
end)

You might also like