anuisud1

Untitled

Feb 17th, 2019
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. Important = {Players = game:GetService("Players"), Workspace = game:GetService("Workspace"), CoreGui = game:GetService("CoreGui")}
  2.  
  3. local enabledesp = false
  4.  
  5. function CreateESP(plr)
  6.  
  7. if plr ~= nil then
  8.  
  9. local GetChar = plr.Character
  10. if not GetChar then return end
  11.  
  12. local GetHead do
  13.  
  14. repeat wait() until GetChar:FindFirstChild("Head")
  15.  
  16. end
  17. GetHead = GetChar.Head
  18.  
  19. local bb = Instance.new("BillboardGui", Important.CoreGui)
  20. bb.Adornee = GetHead
  21. bb.ExtentsOffset = Vector3.new(0, 1, 0)
  22. bb.AlwaysOnTop = true
  23. bb.Size = UDim2.new(0, 5, 0, 5)
  24. bb.StudsOffset = Vector3.new(0, 3, 0)
  25. bb.Name = "ESP_PLAYER_" .. plr.Name
  26.  
  27. local displayframe = Instance.new("Frame", bb)
  28. displayframe.ZIndex = 10
  29. displayframe.BackgroundTransparency = 1
  30. displayframe.Size = UDim2.new(1,0,1,0)
  31.  
  32. local name = Instance.new("TextLabel", displayframe)
  33. name.Name = "Name"
  34. name.ZIndex = 10
  35. name.Text = plr.Name
  36. name.Visible = true
  37. name.TextColor3 = Color3.new(212,244,188)
  38. name.BackgroundTransparency = 1
  39. name.Size = UDim2.new(1,0,10,0)
  40. name.Font = Enum.Font.SourceSansLight
  41. name.TextSize = 20
  42. name.TextStrokeTransparency = .5
  43.  
  44. end
  45.  
  46. end
  47.  
  48.  
  49. for i,v in pairs(Important.Players:GetChildren()) do
  50. if game.GameId == 1320186298 then return end
  51. CreateESP(v)
  52.  
  53. end
Add Comment
Please, Sign In to add comment