Skip to main content
Client Reads statebags only. No network call. UgCore.LocalPlayer is the client side of the players module. On the server it raises UgCore.LocalPlayer exists on clients only.

React to changes

Watch the statebag instead of polling:
client.lua
Clients never change their own state. Revive, respawn and every other change happen on the server.