Available since Version 1.27.
Gets what level of the game the player is currently in.
Syntax
GetCurrentLevel()Arguments
No arguments.
Return Values
- (integer | nil): The current level or
nilif the player is not in game.
Examples
local CurrentLevel = GetCurrentLevel()
if CurrentLevel == 7 then
-- Do Spooky Scary Stuff Here
end