- local function addESP(part, name)
- local billBoard = Instance.new("BillboardGui", part)
- billBoard.Name = "ESP"
- billBoard.Size = UDim2.new(10,0, 10,0)
- billBoard.AlwaysOnTop = true
- local espFrame = Instance.new("Frame", billBoard)
- espFrame.Size = UDim2.new(1,0, 1,0)
- espFrame.BackgroundTransparency = 0.8
- espFrame.BorderSizePixel = 0
- espFrame.BackgroundColor3 = Color3.new(0, 255, 0)
- local espText = Instance.new('TextLabel', espFrame)
- espText.BackgroundTransparency = 1
- espText.Size = UDim2.new(2,0,2,0)
- espText.BorderSizePixel = 0
- espText.TextSize = 10
- espText.Text = name
- espText.BackgroundTransparency = 1
- end
- for i,v in pairs(game.Workspace.Islands:GetChildren()) do
- if v.PrimaryPart then
- addESP(v.PrimaryPart, v.Name)
- end
- end