Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ESPButton.MouseButton1Click:connect(function()
- local esp = false
- if esp == false then
- esp = true
- for i,v in pairs(game.Players:GetChildren()) do
- if v.Name ~= game.Players.LocalPlayer.Name then
- if v ~= game.Players.LocalPlayer.Character.Torso then
- local base = Instance.new("BillboardGui", workspace.Camera)
- local esP = Instance.new("Frame", base)
- base.AlwaysOnTop = true
- base.Enabled = true
- base.Size = UDim2.new(45,0,6,0)
- base.Transparency = 0.8
- base.Name = "ESP"
- base.Adornee = v.Character.Torso
- base.StudsOffset = Vector3.new(0, -0.6, 0)
- esP.BackgroundColor3 = Color3.new(75, 0, 0)
- esP.BackgroundTransparency = 0.8
- esP.BorderColor3 = Color3.new(0,0,0)
- esP.BorderSizePixel = 1
- esP.Size = UDim2.new(1,0,1,0)
- local name = Instance.new("TextLabel",base)
- name.Size = UDim2.new(1,0,1,0)
- name.BackgroundTransparency = 1
- name.Position = UDim2.new(0,0,0,0)
- name.Text = v.Name
- name.TextScaled = true
- name.TextColor3 = Color3.new(255,255,255)
- name.TextXAlignment = "Center"
- name.TextYAlignment = "Top"
- name.Font = "Highway"
- name.Position = UDim2.new(0,0,0,-100) elseif esp == true then
- ESPButton.Text = "ESP cannot be turned off."
- ESPButton.TextScaled = true
- wait(2)
- ESPButton.Text = "ESP: On"
- ESPButton.TextScaled = false
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement