Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait();
- sgui = Instance.new('SurfaceGui');
- sgui.AlwaysOnTop = true;
- sgui.Active = true;
- tlabel = Instance.new('TextLabel',sgui);
- tlabel.Size = UDim2.new(1,0,1,0);
- tlabel.BackgroundColor = BrickColor.new(0,1,0);
- tlabel.BorderSizePixel = 20;
- tlabel.Text = '';
- bbgui = Instance.new('BillboardGui');
- bbgui.AlwaysOnTop = true;
- bbgui.Active = true;
- bbgui.StudsOffset = Vector3.new(0,2,0);
- bbgui.Size = UDim2.new(0,200,0,50);
- name = Instance.new('TextLabel',bbgui);
- name.BackgroundTransparency = 1;
- name.TextStrokeColor3 = Color3.new(0,0,0);
- name.TextColor3 = Color3.new(1,1,1);
- name.Font = 'Legacy';
- name.Size = UDim2.new(0,200,0,50);
- name.TextSize = 10;
- faces = {'Back','Bottom','Front','Left','Right','Top'};
- function check(adornee)
- for _,v in pairs(game.Players.LocalPlayer.PlayerGui:GetChildren()) do
- if v.Name == 'SurfaceGui' and v.Adornee == adornee then
- return true;
- end;
- end;
- end;
- function color(gui,part)
- if part.Name == 'Head' then
- gui.BackgroundColor = BrickColor.new(1,0,0)
- elseif part.Name == 'Torso' or part.Name == 'HumanoidRootPart' then
- gui.BackgroundColor = BrickColor.new(0,0,1);
- end;
- end;
- function hack()
- local plr = game.Players.LocalPlayer;
- local chr = plr.Character or plr.CharacterAdded:wait();
- for _,v in pairs(workspace:GetChildren()) do
- game:GetService('RunService').RenderStepped:wait();
- if v.ClassName == 'Model' and v~=chr then
- local h = v:FindFirstChild('Humanoid');
- local head = v:FindFirstChild('Head');
- if h and head then
- local enemy = game.Players:GetPlayerFromCharacter(v);
- if enemy and enemy.TeamColor ~= plr.TeamColor then
- for _,x in pairs(v:GetChildren()) do
- local tagged = check(x);
- if x.ClassName == 'Part' and not tagged then
- local nametag = bbgui:Clone();
- nametag.Parent = plr.PlayerGui;
- nametag.Adornee = head;
- nametag.TextLabel.Text = head.Parent.Name;
- for i = 1,6 do
- local clone = sgui:Clone();
- clone.Parent = plr.PlayerGui;
- clone.Adornee = x;
- clone.Face = faces[i];
- color(clone.TextLabel,x);
- end;
- end;
- end;
- end;
- end;
- end;
- end;
- end;
- while wait() do
- hack();
- end;
Add Comment
Please, Sign In to add comment