Unnamed
public lua v1 · immutable-- SERVER CODEfunction setstuff()ply:SetNetworkedInt("spawntimer",CurTime()+10) -- 10 secondsend-- CLIENT CODEfunction GM:HudPaint()local endtime=LocalPlayer:GetNetworkedInt("spawntimer",-1) -- if it isn't set, it is -1if endtime~=-1 thenif endtime<CurTime() thenlocal secondsremaining=endtime-CurTime()-- draw your HUD stuff hereelseLocalPlayer:SetNetworkedInt("ending",-1) -- we don't want to use it anymoreendend end