# This is our main script. It runs the race logic. using { /Fortnite.com/Devices } using { /Verse.org/Simulation } # We make a new type of object for our race. # Think of this as a blueprint for our game brain. RaceController := class(creative_device): # We declare the Score Manager as a property. # Drag your Score Manager device onto this slot in the editor. ScoreMgr : score_manager_device = score_manager_device{} # This function starts when the game begins. OnBegin(): void => # We wait for the game to start. # This is like waiting for the flag to drop. Sleep(1.0) # Now we tell the Score Manager to reset. # ScoreMgr is wired up in the editor, so it is always found. ScoreMgr.ResetScores() Print("Race is ready! Go!")