Skip to content

Game Module

The game module provides access to global server data and environmental conditions.


FunctionReturnsDescription
game.weather()stringReturns the current weather.
game.weatherDuration()numberReturns the remaining time in seconds for the current weather.
game.changedWeather:connect(func()
player.sent("The weather is now: " + game.weather())
end)

FunctionReturnsDescription
game.players()listReturns a list of player data tables.
lau-compiler.exe
varol allPlayers = game.players()
print("[Leaderboard]")
for i, data inpairs(allPlayers) do
print(i + ". " + data.Name + ": " + data.scrap)
end
OUTPUT:
[Leaderboard] 1. A1fi_e: 27,139,262 2. namnamnamnamnampro: 1,246,273,642

PropertyTypeDescription
game.uptimenumberHow many seconds the current server has been running.
game.versionstringThe current server version.
game.lauversionstringThe current LAU engine version.
FunctionReturnsDescription
game.rejoin()voidInstantly reconnects you to the game.