# SFC Scripting - Turning On Light When Mode Activated

**URL:** <https://forum.inductiveautomation.com/t/sfc-scripting-turning-on-light-when-mode-activated/96071>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [September 17, 2024, 3:43pm UTC](https://forum.inductiveautomation.com/t/sfc-scripting-turning-on-light-when-mode-activated/96071 "2024-09-17T15:43:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Capobianco](https://avatars.discourse-cdn.com/v4/letter/j/6de8d8/32.png) [@James\_Capobianco](https://forum.inductiveautomation.com/u/James_Capobianco)\
**Post date:** [September 17, 2024, 3:43pm UTC](https://forum.inductiveautomation.com/t/sfc-scripting-turning-on-light-when-mode-activated/96071/1 "2024-09-17T15:43:46Z")

</div>

Hey there,

I'm having difficulty figuring out Scripting for simple tasks in SFC Ignition Designer. My task is to "activate a light, when a Maintenance Mode is Enabled." So I'm trying to understand how I assign Transitions and Actions in SFC and how many I would need for this task.

I've attached a screenshot of my chart below, hoping that helps.

If anyone has any advice on this I would greatly appreciate it. Also if someone has addition sources for training on Scripting outside of Inductive University, I would greatly appreciate that as well. Thank you!

 ![SFC_Screenshot_1](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/f/cfc9f0aa638964a47101bfbc37d4739869691e3b.png)
