if not game then script = require "test/relative-string" end local graph = require(script.Parent.graph) type Node = graph.Node local get_scope = graph.get_scope local function untrack(source: () -> T): T local scope = get_scope() if scope then -- sources are only tracked if the node in scope has an effect local effect = scope.effect scope.effect = false local ok, result = pcall(source) scope.effect = effect :: () -> () if not ok then error(result, 0) end return result else return source() end end return untrack