Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local bbg = Instance.new("BillboardGui", espf)
- bbg.Name = player.Name
- bbg.AlwaysOnTop = true
- bbg.Size = UDim2.new(4,0,5.4,0)
- bbg.ClipsDescendants = false
- local outlines = Instance.new("Frame", bbg)
- outlines.Size = UDim2.new(1,0,1,0)
- outlines.BorderSizePixel = 0
- outlines.BackgroundTransparency = 1
- local left = Instance.new("Frame", outlines)
- left.BorderSizePixel = 0
- left.Size = UDim2.new(0,1,1,0)
- local right = left:Clone()
- right.Parent = outlines
- right.Size = UDim2.new(0,-1,1,0)
- right.Position = UDim2.new(1,0,0,0)
- local up = left:Clone()
- up.Parent = outlines
- up.Size = UDim2.new(1,0,0,1)
- local down = left:Clone()
- down.Parent = outlines
- down.Size = UDim2.new(1,0,0,-1)
- down.Position = UDim2.new(0,0,1,0)
- local info = Instance.new("BillboardGui", bbg)
- info.Name = "info"
- info.Size = UDim2.new(3,0,0,54)
- info.StudsOffset = Vector3.new(3.6,-3,0)
- info.AlwaysOnTop = true
- info.ClipsDescendants = false
- local namelabel = Instance.new("TextLabel", info)
- namelabel.Name = "namelabel"
- namelabel.BackgroundTransparency = 1
- namelabel.TextStrokeTransparency = 0
- namelabel.TextXAlignment = Enum.TextXAlignment.Left
- namelabel.Size = UDim2.new(0,100,0,18)
- namelabel.Position = UDim2.new(0,0,0,0)
- namelabel.Text = player.Name
- local distancel = Instance.new("TextLabel", info)
- distancel.Name = "distancelabel"
- distancel.BackgroundTransparency = 1
- distancel.TextStrokeTransparency = 0
- distancel.TextXAlignment = Enum.TextXAlignment.Left
- distancel.Size = UDim2.new(0,100,0,18)
- distancel.Position = UDim2.new(0,0,0,18)
- local healthl = Instance.new("TextLabel", info)
- healthl.Name = "healthlabel"
- healthl.BackgroundTransparency = 1
- healthl.TextStrokeTransparency = 0
- healthl.TextXAlignment = Enum.TextXAlignment.Left
- healthl.Size = UDim2.new(0,100,0,18)
- healthl.Position = UDim2.new(0,0,0,36)
- local uill = Instance.new("UIListLayout", info)
- local forhealth = Instance.new("BillboardGui", bbg)
- forhealth.Name = "forhealth"
- forhealth.Size = UDim2.new(5,0,6,0)
- forhealth.AlwaysOnTop = true
- forhealth.ClipsDescendants = false
- local healthbar = Instance.new("Frame", forhealth)
- healthbar.Name = "healthbar"
- healthbar.BackgroundColor3 = Color3.fromRGB(40,40,40)
- healthbar.BorderColor3 = Color3.fromRGB(0,0,0)
- healthbar.Size = UDim2.new(0.04,0,0.9,0)
- healthbar.Position = UDim2.new(0,0,0.05,0)
- local bar = Instance.new("Frame", healthbar)
- bar.Name = "bar"
- bar.BorderSizePixel = 0
- bar.BackgroundColor3 = Color3.fromRGB(94,255,69)
- bar.AnchorPoint = Vector2.new(0,1)
- bar.Position = UDim2.new(0,0,1,0)
- bar.Size = UDim2.new(1,0,1,0)
- local co = coroutine.create(function()
- while wait(0.1) do
- if (player.Character and player.Character:FindFirstChild"HumanoidRootPart") then
- bbg.Adornee = player.Character.HumanoidRootPart
- info.Adornee = player.Character.HumanoidRootPart
- forhealth.Adornee = player.Character.HumanoidRootPart
- if (player.Team ~= localplayer.Team) then
- bbg.Enabled = true
- info.Enabled = true
- forhealth.Enabled = true
- end
- if player.Character:FindFirstChild("ForceField") then
- outlines.BackgroundTransparency = 0.4
- left.BackgroundTransparency = 0.4
- right.BackgroundTransparency = 0.4
- up.BackgroundTransparency = 0.4
- down.BackgroundTransparency = 0.4
- healthl.TextTransparency = 0.4
- healthl.TextStrokeTransparency = 0.8
- distancel.TextTransparency = 0.4
- distancel.TextStrokeTransparency = 0.8
- namelabel.TextTransparency = 0.4
- namelabel.TextStrokeTransparency = 0.8
- bar.BackgroundTransparency = 0.4
- healthbar.BackgroundTransparency = 0.8
- else
- outlines.BackgroundTransparency = 0
- left.BackgroundTransparency = 0
- right.BackgroundTransparency = 0
- up.BackgroundTransparency = 0
- down.BackgroundTransparency = 0
- healthl.TextTransparency = 0
- healthl.TextStrokeTransparency = 0
- distancel.TextTransparency = 0
- distancel.TextStrokeTransparency = 0
- namelabel.TextTransparency = 0
- namelabel.TextStrokeTransparency = 0
- bar.BackgroundTransparency = 0
- healthbar.BackgroundTransparency = 0
- end
- if cheats.b_b == true then
- outlines.Visible = true
- else
- outlines.Visible = false
- end
- if cheats.b_f == true then
- if player.Character:FindFirstChild("ForceField") then
- outlines.BackgroundTransparency = 0.9
- else
- outlines.BackgroundTransparency = cheats.b_f_t
- end
- else
- outlines.BackgroundTransparency = 1
- end
- if cheats.b_sh == true then
- if (player.Character:FindFirstChild"Humanoid") then
- healthl.Text = "Health: "..math.floor(player.Character:FindFirstChild"Humanoid".Health)
- healthbar.bar.Size = UDim2.new(1,0,player.Character:FindFirstChild"Humanoid".Health/player.Character:FindFirstChild"Humanoid".MaxHealth,0)
- end
- if cheats.b_ht == "Text" then
- healthbar.Visible = false
- healthl.Visible = true
- end
- if cheats.b_ht == "Bar" then
- healthl.Visible = false
- healthbar.Visible = true
- end
- if cheats.b_ht == "Both" then
- healthl.Visible = true
- healthbar.Visible = true
- end
- else
- healthl.Visible = false
- healthbar.Visible = false
- end
- if cheats.b_sn then
- namelabel.Visible = true
- else
- namelabel.Visible = false
- end
- if cheats.b_sd == true then
- distancel.Visible = true
- if (localplayer.Character and localplayer.Character:FindFirstChild"HumanoidRootPart") then
- distancel.Text = "Distance: "..math.floor(0.5+(localplayer.Character:FindFirstChild"HumanoidRootPart".Position - player.Character:FindFirstChild"HumanoidRootPart".Position).magnitude)
- end
- else
- distancel.Visible = false
- end
- if cheats.b_rt == true then
- if (player.Team == localplayer.Team) then
- bbg.Enabled = true
- info.Enabled = true
- forhealth.Enabled = true
- end
- else
- if (player.Team == localplayer.Team) then
- bbg.Enabled = false
- info.Enabled = false
- forhealth.Enabled = false
- end
- end
- if cheats.b_tc == true then
- outlines.BackgroundColor3 = player.TeamColor.Color
- left.BackgroundColor3 = player.TeamColor.Color
- right.BackgroundColor3 = player.TeamColor.Color
- up.BackgroundColor3 = player.TeamColor.Color
- down.BackgroundColor3 = player.TeamColor.Color
- healthl.TextColor3 = player.TeamColor.Color
- distancel.TextColor3 = player.TeamColor.Color
- namelabel.TextColor3 = player.TeamColor.Color
- else
- if (player.Team == localplayer.Team) then
- outlines.BackgroundColor3 = Color3.fromRGB(ct_r.Text, ct_g.Text, ct_b.Text)
- left.BackgroundColor3 = Color3.fromRGB(ct_r.Text, ct_g.Text, ct_b.Text)
- right.BackgroundColor3 = Color3.fromRGB(ct_r.Text, ct_g.Text, ct_b.Text)
- up.BackgroundColor3 = Color3.fromRGB(ct_r.Text, ct_g.Text, ct_b.Text)
- down.BackgroundColor3 = Color3.fromRGB(ct_r.Text, ct_g.Text, ct_b.Text)
- healthl.TextColor3 = Color3.fromRGB(ct_r.Text, ct_g.Text, ct_b.Text)
- distancel.TextColor3 = Color3.fromRGB(ct_r.Text, ct_g.Text, ct_b.Text)
- namelabel.TextColor3 = Color3.fromRGB(ct_r.Text, ct_g.Text, ct_b.Text)
- else
- outlines.BackgroundColor3 = Color3.fromRGB(ce_r.Text, ce_g.Text, ce_b.Text)
- left.BackgroundColor3 = Color3.fromRGB(ce_r.Text, ce_g.Text, ce_b.Text)
- right.BackgroundColor3 = Color3.fromRGB(ce_r.Text, ce_g.Text, ce_b.Text)
- up.BackgroundColor3 = Color3.fromRGB(ce_r.Text, ce_g.Text, ce_b.Text)
- down.BackgroundColor3 = Color3.fromRGB(ce_r.Text, ce_g.Text, ce_b.Text)
- healthl.TextColor3 = Color3.fromRGB(ce_r.Text, ce_g.Text, ce_b.Text)
- distancel.TextColor3 = Color3.fromRGB(ce_r.Text, ce_g.Text, ce_b.Text)
- namelabel.TextColor3 = Color3.fromRGB(ce_r.Text, ce_g.Text, ce_b.Text)
- end
- end
- end
- if not (game:GetService"Players":FindFirstChild(player.Name)) then
- print(player.Name.." has left. Clearing esp.")
- espf:FindFirstChild(player.Name):Destroy()
- coroutine.yield()
- end
- end
- end)
- coroutine.resume(co)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement