Mr_3242

Impostors & Roles | Among Us esp (see who are impostors + full bright)

May 10th, 2026
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.96 KB | Gaming | 0 0
  1. local Players = game:GetService("Players")
  2. local RunService = game:GetService("RunService")
  3. local Lighting = game:GetService("Lighting")
  4. local Camera = workspace.CurrentCamera
  5.  
  6. local LocalPlayer = Players.LocalPlayer
  7.  
  8. local espEnabled = false
  9. local brightEnabled = false
  10.  
  11. local ESP = {}
  12.  
  13. -- ESP creation
  14. local function createESP(player)
  15.     if player == LocalPlayer then return end
  16.  
  17.     local box = Drawing.new("Square")
  18.     box.Thickness = 2
  19.     box.Filled = false
  20.     box.Visible = false
  21.  
  22.     local text = Drawing.new("Text")
  23.     text.Size = 16
  24.     text.Center = true
  25.     text.Outline = true
  26.     text.Visible = false
  27.  
  28.     ESP[player] = {box = box, text = text}
  29. end
  30.  
  31. for _,p in pairs(Players:GetPlayers()) do
  32.     createESP(p)
  33. end
  34.  
  35. Players.PlayerAdded:Connect(createESP)
  36.  
  37. -- ESP LOOP
  38. RunService.RenderStepped:Connect(function()
  39.  
  40.     for player,data in pairs(ESP) do
  41.  
  42.         local box = data.box
  43.         local text = data.text
  44.  
  45.         if not espEnabled then
  46.             box.Visible = false
  47.             text.Visible = false
  48.             continue
  49.         end
  50.  
  51.         local char = player.Character
  52.         local root = char and char:FindFirstChild("HumanoidRootPart")
  53.         local hum = char and char:FindFirstChildOfClass("Humanoid")
  54.  
  55.         local states = player:FindFirstChild("PublicStates")
  56.  
  57.         local inGame,loaded,alive = false,false,false
  58.  
  59.         if states then
  60.             local ig = states:FindFirstChild("InGame")
  61.             local ld = states:FindFirstChild("Loaded")
  62.             local al = states:FindFirstChild("Alive")
  63.  
  64.             if ig then inGame = ig.Value end
  65.             if ld then loaded = ld.Value end
  66.             if al then alive = al.Value end
  67.         end
  68.  
  69.         if root and hum and inGame and loaded and alive then
  70.  
  71.             local pos, visible = Camera:WorldToViewportPoint(root.Position)
  72.  
  73.             if visible then
  74.  
  75.                 local dist = (root.Position - Camera.CFrame.Position).Magnitude
  76.                 local scale = math.clamp(120/dist,0.5,3)
  77.  
  78.                 local w = 35 * scale
  79.                 local h = 55 * scale
  80.  
  81.                 box.Size = Vector2.new(w,h)
  82.                 box.Position = Vector2.new(pos.X - w/2,pos.Y - h/2)
  83.                 box.Visible = true
  84.  
  85.                 local role = "Unknown"
  86.                 local sub = ""
  87.  
  88.                 if states then
  89.                     local r = states:FindFirstChild("Role")
  90.                     local s = states:FindFirstChild("SubRole")
  91.  
  92.                     if r then role = tostring(r.Value) end
  93.                     if s then sub = tostring(s.Value) end
  94.                 end
  95.  
  96.                 text.Text = player.Name.." | "..role.." "..sub
  97.                 text.Position = Vector2.new(pos.X,pos.Y - h/2 - 16)
  98.                 text.Visible = true
  99.  
  100.                 if string.lower(role):find("impost") then
  101.                     box.Color = Color3.fromRGB(255,80,80)
  102.                     text.Color = Color3.fromRGB(255,80,80)
  103.                 else
  104.                     box.Color = Color3.fromRGB(80,200,255)
  105.                     text.Color = Color3.fromRGB(80,200,255)
  106.                 end
  107.  
  108.             else
  109.                 box.Visible = false
  110.                 text.Visible = false
  111.             end
  112.  
  113.         else
  114.             box.Visible = false
  115.             text.Visible = false
  116.         end
  117.  
  118.     end
  119. end)
  120.  
  121. -- FULLBRIGHT
  122. local function updateBright()
  123.  
  124.     if brightEnabled then
  125.         Lighting.Brightness = 4
  126.         Lighting.ClockTime = 14
  127.         Lighting.FogEnd = 100000
  128.         Lighting.GlobalShadows = false
  129.     else
  130.         Lighting.Brightness = 1
  131.         Lighting.GlobalShadows = true
  132.     end
  133.  
  134. end
  135.  
  136. -- GUI
  137. local gui = Instance.new("ScreenGui")
  138. gui.Parent = LocalPlayer:WaitForChild("PlayerGui")
  139. gui.ResetOnSpawn = false
  140.  
  141. local frame = Instance.new("Frame")
  142. frame.Size = UDim2.new(0,200,0,120)
  143. frame.Position = UDim2.new(0,20,0.5,-60)
  144. frame.BackgroundColor3 = Color3.fromRGB(35,35,50)
  145. frame.Parent = gui
  146. frame.Active = true
  147. frame.Draggable = true
  148. Instance.new("UICorner",frame)
  149.  
  150. local title = Instance.new("TextLabel")
  151. title.Size = UDim2.new(1,0,0,30)
  152. title.Text = "IMPOSTERS TOOL"
  153. title.BackgroundTransparency = 1
  154. title.Font = Enum.Font.GothamBold
  155. title.TextColor3 = Color3.new(1,1,1)
  156. title.TextScaled = true
  157. title.Parent = frame
  158.  
  159. -- ESP BUTTON
  160. local espBtn = Instance.new("TextButton")
  161. espBtn.Size = UDim2.new(0.9,0,0,35)
  162. espBtn.Position = UDim2.new(0.05,0,0.35,0)
  163. espBtn.Text = "ESP OFF"
  164. espBtn.BackgroundColor3 = Color3.fromRGB(255,80,80)
  165. espBtn.TextColor3 = Color3.new(1,1,1)
  166. espBtn.Font = Enum.Font.GothamBold
  167. espBtn.TextScaled = true
  168. espBtn.Parent = frame
  169. Instance.new("UICorner",espBtn)
  170.  
  171. espBtn.MouseButton1Click:Connect(function()
  172.  
  173.     espEnabled = not espEnabled
  174.  
  175.     if espEnabled then
  176.         espBtn.Text = "ESP ON"
  177.         espBtn.BackgroundColor3 = Color3.fromRGB(80,220,120)
  178.     else
  179.         espBtn.Text = "ESP OFF"
  180.         espBtn.BackgroundColor3 = Color3.fromRGB(255,80,80)
  181.     end
  182.  
  183. end)
  184.  
  185. -- FULLBRIGHT BUTTON
  186. local brightBtn = Instance.new("TextButton")
  187. brightBtn.Size = UDim2.new(0.9,0,0,35)
  188. brightBtn.Position = UDim2.new(0.05,0,0.7,0)
  189. brightBtn.Text = "FULLBRIGHT"
  190. brightBtn.BackgroundColor3 = Color3.fromRGB(80,150,255)
  191. brightBtn.TextColor3 = Color3.new(1,1,1)
  192. brightBtn.Font = Enum.Font.GothamBold
  193. brightBtn.TextScaled = true
  194. brightBtn.Parent = frame
  195. Instance.new("UICorner",brightBtn)
  196.  
  197. brightBtn.MouseButton1Click:Connect(function()
  198.  
  199.     brightEnabled = not brightEnabled
  200.     updateBright()
  201.  
  202.     if brightEnabled then
  203.         brightBtn.BackgroundColor3 = Color3.fromRGB(80,220,120)
  204.     else
  205.         brightBtn.BackgroundColor3 = Color3.fromRGB(80,150,255)
  206.     end
  207.  
  208. end)
Tags: delta
Advertisement
Add Comment
Please, Sign In to add comment