repeat wait()until _G.BTCoreEnv and(_G.BTCoreEnv[script.Parent.Parent]and _G.BTCoreEnv[script.Parent.Parent].CoreReady)setfenv(1,_G.BTCoreEnv[script.Parent.Parent])
-- Load the main tool's core environment when it's ready
repeat
	wait()
until _G.BTCoreEnv and _G.BTCoreEnv[script.Parent.Parent] and _G.BTCoreEnv[script.Parent.Parent].CoreReady
setfenv(1, _G.BTCoreEnv[script.Parent.Parent])
