Advertisement
Macrosaw

Counter Blox Gui

Nov 9th, 2018
11,103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.78 KB | None | 0 0
  1. -- shit Counter blox gui i made
  2. -- Version: 2.82
  3. -- Instances:
  4. local Vendo = Instance.new("ScreenGui")
  5. local main = Instance.new("Frame")
  6. local topbar = Instance.new("Frame")
  7. local vendo = Instance.new("TextLabel")
  8. local esp = Instance.new("TextButton")
  9. local aimbot = Instance.new("TextButton")
  10. --Properties:
  11. Vendo.Name = "Vendo"
  12. Vendo.Parent = game.CoreGui
  13.  
  14. main.Name = "main"
  15. main.Parent = Vendo
  16. main.BackgroundColor3 = Color3.new(0.172549, 0.172549, 0.172549)
  17. main.BackgroundTransparency = 0.10000000149012
  18. main.BorderSizePixel = 0
  19. main.Position = UDim2.new(0, 50, 0, 80)
  20. main.Size = UDim2.new(0, 200, 0, 170)
  21. main.Active = true
  22. main.Draggable = true
  23.  
  24. topbar.Name = "topbar"
  25. topbar.Parent = main
  26. topbar.BackgroundColor3 = Color3.new(0.0470588, 0.556863, 1)
  27. topbar.BorderSizePixel = 0
  28. topbar.Position = UDim2.new(0, 0, 0, -30)
  29. topbar.Size = UDim2.new(0, 200, 0, 30)
  30.  
  31. vendo.Name = "vendo"
  32. vendo.Parent = main
  33. vendo.BackgroundColor3 = Color3.new(1, 1, 1)
  34. vendo.BackgroundTransparency = 1
  35. vendo.BorderSizePixel = 0
  36. vendo.Position = UDim2.new(-0.00461227819, 0, -0.177068651, 0)
  37. vendo.Size = UDim2.new(0, 200, 0, 30)
  38. vendo.Font = Enum.Font.Fantasy
  39. vendo.Text = "Vendo"
  40. vendo.TextColor3 = Color3.new(0, 0, 0)
  41. vendo.TextSize = 20
  42. vendo.TextWrapped = true
  43.  
  44. esp.Name = "esp"
  45. esp.Parent = main
  46. esp.BackgroundColor3 = Color3.new(1, 1, 1)
  47. esp.BackgroundTransparency = 1
  48. esp.BorderSizePixel = 0
  49. esp.Position = UDim2.new(-0.000880432141, 0, 0, 0)
  50. esp.Size = UDim2.new(0, 200, 0, 30)
  51. esp.Font = Enum.Font.SourceSans
  52. esp.Text = "     ESP"
  53. esp.TextColor3 = Color3.new(0.0470588, 0.556863, 1)
  54. esp.TextSize = 20
  55. esp.TextXAlignment = Enum.TextXAlignment.Left
  56.  
  57. aimbot.Name = "aimbot"
  58. aimbot.Parent = main
  59. aimbot.BackgroundColor3 = Color3.new(1, 1, 1)
  60. aimbot.BackgroundTransparency = 1
  61. aimbot.BorderSizePixel = 0
  62. aimbot.Position = UDim2.new(-0.000880432141, 0, 0.176470593, 0)
  63. aimbot.Size = UDim2.new(0, 200, 0, 30)
  64. aimbot.Font = Enum.Font.SourceSans
  65. aimbot.Text = "     Aimbot"
  66. aimbot.TextColor3 = Color3.new(0.0470588, 0.556863, 1)
  67. aimbot.TextSize = 20
  68. aimbot.TextXAlignment = Enum.TextXAlignment.Left
  69. -- Scripts:
  70.  
  71. esp.MouseButton1Click:connect (function()
  72.     -- -----------------------------------
  73. --  ___      _   _   _              --
  74. -- / __| ___| |_| |_(_)_ _  __ _ ___--
  75. -- \__ \/ -_)  _|  _| | ' \/ _` (_-<--
  76. -- |___/\___|\__|\__|_|_||_\__, /__/--
  77. --                         |___/    --
  78. -- -----------------------------------
  79. -- -----------------------------------
  80.                                 ALLYCOLOR = {24,24,24}      --//Color of the ESP  of people on the same team
  81.                                 ENEMYCOLOR =  {24,24,24}    --//Color of the ESP  of people on NOT the same team
  82.                                 TRANSPARENCY = 0.5          --//Transparency of the ESP
  83.                                 HEALTHBAR_ACTIVATED = true  --//Renders the Healthbar
  84. --
  85. --
  86.  
  87. --                          !!!Don't Change Anything Below Here Unless You Know What You're Doing!!!
  88.  
  89. function createFlex()
  90. -- -----------------------------------------------------------------------------------
  91. --[VARIABLES] //Changing may result in Errors!
  92. players = game:GetService("Players") --//Required for PF
  93. faces = {"Front","Back","Bottom","Left","Right","Top"} --//Every possible Enum face
  94. currentPlayer = nil --//Used for the Team-Check
  95. lplayer = players.LocalPlayer --//The LocalPlayer
  96. -- -----------------------------------------------------------------------------------
  97. players.PlayerAdded:Connect(function(p)
  98.     currentPlayer = p
  99.         p.CharacterAdded:Connect(function(character) --//For when a new Player joins the game
  100.             createESP(character)           
  101.         end)       
  102. end)
  103. -- -----------------------------------------------------------------------------------
  104. function checkPart(obj)  if (obj:IsA("Part") or obj:IsA("MeshPart")) and obj.Name~="HumanoidRootPart" then return true end end --//Check if the Part is suitable
  105. -- -----------------------------------------------------------------------------------
  106. function actualESP(obj)
  107.    
  108.     for i=0,5 do
  109.         surface = Instance.new("SurfaceGui",obj) --//Creates the SurfaceGui
  110.         surface.Face = Enum.NormalId[faces[i+1]] --//Adjusts the Face and chooses from the face table
  111.         surface.AlwaysOnTop = true
  112.  
  113.         frame = Instance.new("Frame",surface)   --//Creates the viewable Frame
  114.         frame.Size = UDim2.new(1,0,1,0)
  115.         frame.BorderSizePixel = 0                                              
  116.         frame.BackgroundTransparency = TRANSPARENCY
  117.             if currentPlayer.Team == players.LocalPlayer.Team then --//Checks the Players Team
  118.                     frame.BackgroundColor3 = Color3.new(ALLYCOLOR[1],ALLYCOLOR[2],ALLYCOLOR[3]) --//If in same Team                                        
  119.             else
  120.                 frame.BackgroundColor3 = Color3.new(ENEMYCOLOR[1],ENEMYCOLOR[2],ENEMYCOLOR[3])  --//If in another Team
  121.             end
  122.                                                            
  123.     end
  124. end
  125. -- -----------------------------------------------------------------------------------
  126. function createHealthbar(hrp)
  127.     board =Instance.new("BillboardGui",hrp) --//Creates the BillboardGui with HumanoidRootPart as the Parent
  128.     board.Name = "total"
  129.     board.Size = UDim2.new(1,0,1,0)
  130.     board.StudsOffset = Vector3.new(3,1,0)
  131.     board.AlwaysOnTop = true
  132.  
  133.     bar = Instance.new("Frame",board) --//Creates the red background
  134.     bar.BackgroundColor3 = Color3.new(255,0,0)
  135.     bar.BorderSizePixel = 0
  136.     bar.Size = UDim2.new(0.2,0,4,0)
  137.     bar.Name = "total2"
  138.                                                
  139.     health = Instance.new("Frame",bar) --//Creates the changing green Frame
  140.     health.BackgroundColor3 = Color3.new(0,255,0)
  141.     health.BorderSizePixel = 0
  142.     health.Size = UDim2.new(1,0,hrp.Parent.Humanoid.Health/100,0)
  143.         hrp.Parent.Humanoid.Changed:Connect(function(property) --//Triggers when any Property changed
  144.             hrp.total.total2.Frame.Size = UDim2.new(1,0,hrp.Parent.Humanoid.Health/100,0) --//Adjusts the size of the green Frame                              
  145.         end)
  146. end
  147. -- -----------------------------------------------------------------------------------
  148. function createESP(c) --//Checks and calls the proper function
  149.     bugfix = c:WaitForChild("Head") --// *Used so the children of the character arent nil.
  150.     for i,v in pairs(c:GetChildren()) do
  151.         if checkPart(v) then
  152.         actualESP(v)
  153.         end
  154.     end
  155.     if HEALTHBAR_ACTIVATED then --//If the user decided to
  156.         createHealthbar(c:WaitForChild("HumanoidRootPart")) --//Calls the function of the creation
  157.     end
  158. end
  159. -- -----------------------------------------------------------------------------------
  160. for i,people in pairs(players:GetChildren())do
  161.     if people ~= players.LocalPlayer then
  162.         currentPlayer = people
  163.                                                                 --//Used for Players already in the Game
  164.         createESP(people.Character)
  165.             people.CharacterAdded:Connect(function(character)
  166.                 createESP(character)           
  167.             end)
  168.     end
  169. end
  170. -- -----------------------------------------------------------------------------------
  171. end --//End of the entire function
  172.  
  173. createFlex() --// Does exactly that :)
  174. end)
  175.  
  176.  
  177. aimbot.MouseButton1Click:connect (function()
  178.       loadstring(game:GetObjects("rbxassetid://2388477622")[1].Source)()
  179. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement