Advertisement
xdJustice29

Untitled

May 5th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. ESPButton.MouseButton1Click:connect(function()
  2. local esp = false
  3. if esp == false then
  4. esp = true
  5. for i,v in pairs(game.Players:GetChildren()) do
  6. if v.Name ~= game.Players.LocalPlayer.Name then
  7. if v ~= game.Players.LocalPlayer.Character.Torso then
  8. local base = Instance.new("BillboardGui", workspace.Camera)
  9. local esP = Instance.new("Frame", base)
  10. base.AlwaysOnTop = true
  11. base.Enabled = true
  12. base.Size = UDim2.new(45,0,6,0)
  13. base.Transparency = 0.8
  14. base.Name = "ESP"
  15. base.Adornee = v.Character.Torso
  16. base.StudsOffset = Vector3.new(0, -0.6, 0)
  17. esP.BackgroundColor3 = Color3.new(75, 0, 0)
  18. esP.BackgroundTransparency = 0.8
  19. esP.BorderColor3 = Color3.new(0,0,0)
  20. esP.BorderSizePixel = 1
  21. esP.Size = UDim2.new(1,0,1,0)
  22. local name = Instance.new("TextLabel",base)
  23. name.Size = UDim2.new(1,0,1,0)
  24. name.BackgroundTransparency = 1
  25. name.Position = UDim2.new(0,0,0,0)
  26. name.Text = v.Name
  27. name.TextScaled = true
  28. name.TextColor3 = Color3.new(255,255,255)
  29. name.TextXAlignment = "Center"
  30. name.TextYAlignment = "Top"
  31. name.Font = "Highway"
  32. name.Position = UDim2.new(0,0,0,-100) elseif esp == true then
  33. ESPButton.Text = "ESP cannot be turned off."
  34. ESPButton.TextScaled = true
  35. wait(2)
  36. ESPButton.Text = "ESP: On"
  37. ESPButton.TextScaled = false
  38. end
  39. end
  40. end
  41. end
  42. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement