Determining when in Team Test vs. when In Game

Hey Guys,
I am working on a game that utilizes multiple places within a game universe to the extreme (there’s a place for each planet in the game). We utilize Team Create as multiple dev’s are working on different planets simultaneously. I have a Framework that handles teleportation of player/player data throughout the game universe. Currently to update the Framework I have had to open each game then publish with the updated framework each time I update.

I am working on switching to loading the production framework from my models instead. This way I can have the development version of the framework in the place I am testing/deving in and when in game it will load from the production version. The framework loads like this:

local RunService = game:GetService("RunService")
local isStudio = RunService:IsStudio()

local Onion
if isStudio then
	print"Loading Framework in Dev Mode"
	Onion = require(script.MainModule)
else
	print"Loading Framework in Play Mode"
	Onion = require(8898462533)
end

Onion:init()
Onion:run()

This works, the problem is when we are in a Team Test it loads from the Production Framework instead of the development frame work. I want it to use the Development Version instead of the Production Version when in Team Test and in Play Test. When in TeamTest RunService:IsStudio() returns as false. I have played around with the other RunService Functions as well as the JobId but have had no success determining the difference between Team Test and in Actual Game, Any Ideas?

1 Like

Team Test is emulating an actual game with a server, so its going to run like in-game. The only thing I can think of is having separate places for development and public versions, and checking PlaceID.