The title is pretty self explanatory
I just want to know how to retrieve a Variable from a Module script.
Module Script:
local GCM = {}
-- GAME CORE [SHORTCUT] --
GameInfoFolder = GameCore.GameInfo
ScriptsFolder = GameCore.Scripts
PlayerParentFolder = GameCore.PlayerParent
CurrentMapFolder = GameCore.CurrentMap
LobbyFolder = GameCore.Lobby
RedOrbsFolder = GameCore.RedOrbs
-------------------------------------------
-- GAME CORE [PlayerParent] --
InLobby = PlayerParentFolder.InLobby
OutsideLobby= PlayerParentFolder.OutsideLobby
-------------------------------------------
-- GAME CORE [SCRIPT VALUES] --
chosenMap = GameInfoFolder["Chosen Map"]
mapID = chosenMap.MapID
playerQuantity = GameInfoFolder.PlayerQuantity
startingGame = GameInfoFolder.StartingGame
Stat = GameInfoFolder.Stat
matchResults = GameInfoFolder.MatchResults
remainingTime = GameInfoFolder.RemainingTime
startlineTime = GameInfoFolder.RemainingTime.StartlineTime
matchresultsTime = GameInfoFolder.RemainingTime.MatchResultsTime
NoMorePlayers = GameInfoFolder.NoMorePlayers
-------------------------------------------
return GCM
What i am trying to do is Retrieve the startlineTime variable in this piece of code:
local STARTLINE_TIME = GCM.startlineTime.Value -- HOW LONG THE COUNTDOWN TO START THE RACE LASTS
But it keeps returning nil whenever i start the game:
My question is simple, how to call variables from module scripts?