Scripting is too hard

Someone pls tell me what to to here. I’m trying to make an object spawn and Deshawon by a switch. I have no clue what I need to do. I’ve been trying it but I’m only running into more problems

You want one switch to despawn and one switch to spawn, right?

Or do you want one switch to toggle between despawn and spawn every time?

> 2533274833081329;2:
> You want one switch to despawn and one switch to spawn, right?
>
> Or do you want one switch to toggle between despawn and spawn every time?

I want one to toggle. Sorry I should of clarified my self better

Okay, in short, the Button will have one script, the object in question will have 2 scripts.

Button:

  • Script 1: On Interaction - Power Set “alpha” to Toggle
    Object:

  • Script 1: When Power State “alpha” set to “On”, Despawn - Script 2: When Power State “alpha” set to “Off”, SpawnTry that. Make sure you don’t do anything else with Power Set alpha in Forge.

> 2533274833081329;4:
> Okay, in short, the Button will have one script, the object in question will have 2 scripts.
>
> Button:
>
> - Script 1: On Interaction - Power Set “alpha” to Toggle
> Object:
>
>
>
> - Script 1: When Power State “alpha” set to “On”, Despawn
> - Script 2: When Power State “alpha” set to “Off”, Spawn
> Try that. Make sure you don’t do anything else with Power Set alpha in Forge.

Thank you that helps a lot!