Lua · Variables · Features
spectators
Who is watching you.
| Function | What it does |
|---|---|
spectators.list() | Players spectating you right now. |
#spectators.list
spectators.list()Players spectating you right now.
Returns
table[]
name (string), mode (integer: 2 first person, 3 third person, 4 free camera, others rare), teammate (boolean).Example
for _, s in ipairs(spectators.list()) do print(s.name) end