ADVERTISEMENTREMOVE ADS
Role ESP
47,856 views
Description
esp for all roles in this dog ass game
[edit - fixed the "-" at line 1]
Tested with
ADVERTISEMENTREMOVE ADS
93 Lines • 2.95 KiB
local plrs = game:GetService("Players");
local rs = game:GetService("RunService");
local cam = workspace.CurrentCamera;
local esp = {};
local conn;
local sg = Instance.new("ScreenGui");
local frm = Instance.new("Frame");
local scrl = Instance.new("ScrollingFrame");
local lyt = Instance.new("UIListLayout");
sg.Parent = game:GetService("CoreGui");
frm.Size = UDim2.new(0, 300, 0, 300);
frm.Position = UDim2.new(1, -320, 0.5, -150);
frm.BackgroundColor3 = Color3.fromRGB(30, 30, 30);
frm.BorderSizePixel = 0;
frm.Parent = sg;
scrl.Size = UDim2.new(1, -10, 1, -10);
scrl.Position = UDim2.new(0, 5, 0, 5);
scrl.BackgroundTransparency = 1;
scrl.Parent = frm;
lyt.Parent = scrl;
lyt.Padding = UDim.new(0, 5);
local function mkdraw()
local d = Drawing.new("Text");
d.Size = 13;
d.Center = true;
d.Outline = true;
d.Visible = true;
d.Color = Color3.new(1,1,1);
return d;
end;
local function updtxt(plr, txt, role, alive)
if not esp[plr] then
esp[plr] = {
draw = mkdraw(),
label = Instance.new("TextLabel")
};
local lbl = esp[plr].label;
lbl.Size = UDim2.new(1, 0, 0, 25);
lbl.BackgroundColor3 = Color3.fromRGB(40, 40, 40);
lbl.BorderSizePixel = 0;
lbl.TextColor3 = Color3.new(1,1,1);
lbl.TextSize = 14;
lbl.TextWrapped = true;
lbl.Parent = scrl;
end;
local char = plr.Character;
if not char then
esp[plr].draw.Visible = false;
return;
end;
local hum = char:FindFirstChild("HumanoidRootPart");
if not hum then
esp[plr].draw.Visible = false;
return;
end;
local pos, vis = cam:WorldToViewportPoint(hum.Position);
if not vis then
esp[plr].draw.Visible = false;
return;
end;
esp[plr].draw.Position = Vector2.new(pos.X, pos.Y - 30);
esp[plr].draw.Text = txt;
esp[plr].draw.Color = role == "Imposter" and Color3.new(1,0,0) or Color3.new(1,1,1);
esp[plr].draw.Visible = true;
esp[plr].label.Text = plr.Name.." - "..txt;
esp[plr].label.TextColor3 = role == "Imposter" and Color3.new(1,0,0) or Color3.new(1,1,1);
esp[plr].label.BackgroundColor3 = alive and Color3.fromRGB(40,80,40) or Color3.fromRGB(80,40,40);
end;
conn = rs.RenderStepped:Connect(function()
for _,p in plrs:GetPlayers() do
if p ~= plrs.LocalPlayer then
local states = p:WaitForChild("PublicStates",1);
local role = states and states:FindFirstChild("Role");
local subrole = states and states:FindFirstChild("SubRole");
local alive = states and states:FindFirstChild("Alive");
local txt = (role and role.Value or "Unknown")..(subrole and " ["..subrole.Value.."]" or "")..(alive and alive.Value and " [Alive]" or " [Dead]");
updtxt(p, txt, role and role.Value, alive and alive.Value);
end;
end;
end);
ADVERTISEMENTREMOVE ADS
ADVERTISEMENTREMOVE ADS


![Imposters & RoIes | Among us [UI SETTINGS] thumbnail](/_next/image?url=%2Fassets%2Fscripts%2F6829eeff9636c1e64b80cac1_1747578623694_mNNWZETXxl.webp&w=640&q=75)





Comments
not work bro
@XndjIdjsh remove the - at line 1
bruh not working on delta
@TanTan remove the - at line 1 before the "local plrs "
fixed it :)
Executor and go to UI label.
it only shows Label after you execute the script
@KrazyPie once you go in a game it will show the roles of the players
I don't see anything happening except for label.
@XndjIdjsh once you go in a game it will show the roles of the players
@Xenon videos?
@Xenon Is there a video clip to watch?
Remove the big box pls I'm on mobile and it blocks my view
nice noice
Bro I delete the gui for mobile but max limit coment 500 mobile v I sent the my profile guys