Advertisement
CriShoux

ESP

Sep 27th, 2018
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. --// Create a variable for all the players in the game
  2.  
  3. local plrs = game.Players:GetPlayers()
  4.  
  5. --// Print credits
  6.  
  7. print("Thank you for using CriShoux's ESP!")
  8.  
  9. --// Main
  10.  
  11. for i = 1, #plrs do
  12. --// Create BillBoardGui to hold main stuff
  13. local boxholder = Instance.new("BillboardGui", game.Workspace[plrs[i].Name].Torso)
  14. boxholder.Name = "HolderBox"
  15. boxholder.AlwaysOnTop = true
  16. boxholder.LightInfluence = 0
  17. boxholder.Adornee = game.Workspace[plrs[i].Name].Torso
  18. boxholder.Size = UDim2.new(5, 0, 8, 0)
  19. --// Create the box/esp itself
  20. local box = Instance.new("Frame", boxholder)
  21. box.Size = UDim2.new(1, 0, 1, 0)
  22. box.BackgroundColor3 = Color3.fromRGB(85, 255, 255)
  23. box.BorderSizePixel = 0
  24. box.BackgroundTransparency = 0.5
  25. --// Create a textlabel with the player's name
  26. local label = Instance.new("TextLabel", boxholder)
  27. label.BackgroundColor3 = Color3.fromRGB(255,255,255)
  28. label.BorderSizePixel = 0
  29. label.BackgroundTransparency = 1
  30. label.TextScaled = true
  31. label.Text = plrs[i].Name
  32. label.Size = UDim2.new(1, 0, 0.15, 0)
  33. label.TextColor3 = Color3.fromRGB(255,255,255)
  34. end
  35.  
  36. --// Destroy your own box
  37.  
  38. wait(1)
  39. game.Workspace[game.Players.LocalPlayer.Name].Torso:FindFirstChild("HolderBox"):Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement