//Thank you to Claudz for her support! ::CoscoSetup <- function(player) { player.ValidateScriptScope() local scope = player.GetScriptScope() for (local child = entity.FirstMoveChild(); child != null; child = child.NextMovePeer()) { if(child.GetClassname() == "logic_relay" && child.GetName().find("molecule") != null) { scope.relay_to_trigger <- child break // <- if you have other child relays you want to look for and save, get rid of this break and do more if checks } } scope.OnPlayerFire <- function() { EntFireByHandle(scope.relay_to_trigger, "trigger", null, 0, null, null) } }