Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. warn("by Fathfull/Amos")
  2. x = Instance.new('ScreenGui',game.CoreGui)
  3. y = Instance.new('TextButton',x)
  4. z = Instance.new('Frame',y)
  5. f = Instance.new('TextButton',z)
  6. local open = false
  7. function esp()
  8. workspace.CurrentCamera:ClearAllChildren()
  9. local Egg1 = workspace["Eggs"]
  10. local Egg2 = workspace["Eggs"]
  11. for i,v in pairs(Egg1:GetChildren()) do
  12. bill = Instance.new('BillboardGui',workspace.CurrentCamera)
  13. bill.AlwaysOnTop = true
  14. bill.Size = UDim2.new(3,0,3,0)
  15. bill.Adornee = v
  16. Frame = Instance.new('Frame',bill)
  17. Frame.BackgroundColor3 = Color3.fromRGB(0,226,37)
  18. Frame.Size = UDim2.new(1,0,1,0)
  19. Frame.BackgroundTransparency = 0.7
  20. Text = Instance.new('TextLabel',Frame)
  21. Text.Size = UDim2.new(1,0,1,0)
  22. Text.BackgroundTransparency = 1
  23. Text.TextScaled = false
  24. Text.Position = UDim2.new(0,0,-0.9,0)
  25. Text.Text = v.Name
  26. Text.TextColor3 = Color3.new(1,1,1)
  27. end
  28. for i,v in pairs(Egg2:GetChildren()) do
  29. bill = Instance.new('BillboardGui',workspace.CurrentCamera)
  30. bill.AlwaysOnTop = true
  31. bill.Size = UDim2.new(3,0,3,0)
  32. bill.Adornee = v
  33. Frame = Instance.new('Frame',bill)
  34. Frame.BackgroundColor3 = Color3.fromRGB(0,226,37)
  35. Frame.Size = UDim2.new(1,0,1,0)
  36. Frame.BackgroundTransparency = 0.7
  37. Text = Instance.new('TextLabel',Frame)
  38. Text.Size = UDim2.new(1,0,1,0)
  39. Text.BackgroundTransparency = 1
  40. Text.TextScaled = false
  41. Text.Position = UDim2.new(0,0,-0.9,0)
  42. Text.Text = v.Name
  43. Text.TextColor3 = Color3.new(1,1,1)
  44. end
  45. end
  46. y.Size = UDim2.new(0,45,0,15)
  47. y.BackgroundColor3 = Color3.fromRGB(136,255,0)
  48. y.Text = ''
  49. y.Draggable = true
  50. z.Size = UDim2.new(1,0,0,55)
  51. z.BackgroundColor3 = Color3.fromRGB(136,255,0)
  52. z.BackgroundTransparency = 0.7
  53. f.BackgroundColor3 = Color3.fromRGB(136,255,0)
  54. f.TextColor3 = Color3.new(1,1,1)
  55. f.Size = UDim2.new(0,25,0,25)
  56. f.Position = UDim2.new(0,10,0,20)
  57. f.Text = 'O'
  58. f.TextScaled = true
  59. y.Position = UDim2.new(0.5,0,0.5,0)
  60. f.MouseButton1Down:connect(function()
  61. if open == false then
  62. open = true
  63. esp()
  64. f.Text = 'X'
  65. elseif open == true then
  66. f.Text = 'O'
  67. open = false
  68. workspace.CurrentCamera:ClearAllChildren()
  69. end
  70. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement