Skip to content

ReferenceStates, zones, net events, instances, decals

Spectating ​

lua
RLX.SpectatePlayer(watcher, target)   -- the watcher's camera follows the target, live
RLX.StopSpectating(watcher)           -- (or the watcher presses Backspace)
RLX.GetSpectating(watcher)            -- the target, or nil

The watcher turns around the target with the mouse and comes closer or moves away with the wheel. Their own character waits frozen out of sight under the target (in the target's instance), so the game keeps everything around loaded; it goes back to its place at the end, and it is saved at that place meanwhile (even if they leave). Events rlx:spectateStarted, rlx:spectateStopped (watcher, target). rlx_admin uses it (Watch live).