urabigfatnoob

wallhack

Jul 21st, 2017
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.18 KB | None | 0 0
  1. wait();
  2. sgui = Instance.new('SurfaceGui');
  3. sgui.AlwaysOnTop = true;
  4. sgui.Active = true;
  5. tlabel = Instance.new('TextLabel',sgui);
  6. tlabel.Size = UDim2.new(1,0,1,0);
  7. tlabel.BackgroundColor = BrickColor.new(0,1,0);
  8. tlabel.BorderSizePixel = 20;
  9. tlabel.Text = '';
  10. bbgui = Instance.new('BillboardGui');
  11. bbgui.AlwaysOnTop = true;
  12. bbgui.Active = true;
  13.  
  14. bbgui.StudsOffset = Vector3.new(0,2,0);
  15. bbgui.Size = UDim2.new(0,200,0,50);
  16. name = Instance.new('TextLabel',bbgui);
  17. name.BackgroundTransparency = 1;
  18. name.TextStrokeColor3 = Color3.new(0,0,0);
  19. name.TextColor3 = Color3.new(1,1,1);
  20. name.Font = 'Legacy';
  21. name.Size = UDim2.new(0,200,0,50);
  22. name.TextSize = 10;
  23. faces = {'Back','Bottom','Front','Left','Right','Top'};
  24. function check(adornee)
  25.     for _,v in pairs(game.Players.LocalPlayer.PlayerGui:GetChildren()) do
  26.         if v.Name == 'SurfaceGui' and v.Adornee == adornee then
  27.             return true;
  28.         end;
  29.     end;
  30. end;
  31. function color(gui,part)
  32.     if part.Name == 'Head' then
  33.         gui.BackgroundColor = BrickColor.new(1,0,0)
  34.     elseif part.Name == 'Torso' or part.Name == 'HumanoidRootPart' then
  35.         gui.BackgroundColor = BrickColor.new(0,0,1);
  36.     end;
  37. end;
  38. function hack()
  39.     local plr = game.Players.LocalPlayer;
  40.     local chr = plr.Character or plr.CharacterAdded:wait();
  41.     for _,v in pairs(workspace:GetChildren()) do
  42.         game:GetService('RunService').RenderStepped:wait();
  43.         if v.ClassName == 'Model' and v~=chr then
  44.             local h = v:FindFirstChild('Humanoid');
  45.             local head = v:FindFirstChild('Head');
  46.             if h and head then
  47.                 local enemy = game.Players:GetPlayerFromCharacter(v);
  48.                 if enemy and enemy.TeamColor ~= plr.TeamColor then
  49.                     for _,x in pairs(v:GetChildren()) do
  50.                         local tagged = check(x);
  51.                         if x.ClassName == 'Part' and not tagged then
  52.                             local nametag = bbgui:Clone();
  53.                             nametag.Parent = plr.PlayerGui;
  54.                             nametag.Adornee = head;
  55.                             nametag.TextLabel.Text = head.Parent.Name;
  56.                             for i = 1,6 do
  57.                                 local clone = sgui:Clone();
  58.                                 clone.Parent = plr.PlayerGui;
  59.                                 clone.Adornee = x;
  60.                                 clone.Face = faces[i];
  61.                                 color(clone.TextLabel,x);
  62.                             end;
  63.                         end;
  64.                     end;
  65.                 end;
  66.             end;
  67.         end;
  68.     end;
  69. end;
  70. while wait() do
  71.     hack();
  72. end;
Add Comment
Please, Sign In to add comment