So, I have this script to show/hide some elements but it won't run. In the debug window it won't show any errors. Any idea what it might be?
Code:
function options_panicOnClick(Sender)
{
if(emergency_shutdown.Visible == true)
{
options_panic.Text = "Panic Button - OFF";
options_panic.Background.SolidColor.Color = rgba(194,44,44,170);
emergency_background.Visible = false;
emergency_shutdown.Visible = false;
}
else
{
options_panic.Text = "Panic Button - ON";
options_panic.Background.SolidColor.Color = rgba(43,188,61,170);
emergency_background.Visible = true;
emergency_shutdown.Visible = true;
}
}