(cherry picked from commit 87977b00d3f040c5a52b5bba6fc5e04d6a4d7385) Core/Scripts: Partial Revert in 87977b00d3f040c5a52b5bba6fc5e04d6a4d7385 misunderstand concept. (#18334) Sorry for the mess (cherry picked from commit cd687fb36dead14f5ae34b293a37488cc250d375)