Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function screen(part, text)
- local pos, vis = game.workspace.Camera:WorldToScreenPoint(part.Position)
- if vis then
- text.Visible = true
- return Vector2.new(pos.x, pos.y)
- else text.Visible = false
- return Vector2.new(0, 0) end end
- esp = {}
- function insert(part)
- if esp[part] ~= nil then return end
- esp[part] = {
- ["t"] = Drawing.new("Text"),
- ["obj"] = part
- }
- end
- function esp1(v)
- insert(v)
- end
- function esp2()
- for i,v in pairs(esp) do
- local text = v["t"]
- local o = v["obj"]
- text.Visible = true
- text.Text = _G.text
- text.Size = _G.size
- text.Color = _G.color
- text.Position = screen(o, text)
- end end
- for i,v in pairs(game.workspace.Items:GetDescendants()) do
- if v:IsA("BasePart") then
- esp1(v) end end
- game.workspace.Items.ChildAdded:Connect(function(v)
- esp1(v.Part)
- end)
- game:GetService("RunService").RenderStepped:Connect(function()
- esp2() end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement