Workshop help please?

Hey! So me and my friends wanted to make a custom game mode where the host player can toggle invincibility. We have ZERO clue on how workshop works and have tried researching but we still cannot figure it out. Is there anyone that can help or explain how we can go about this?
We want to set the toggle button to be reload, where if you press it, you’re invincible, then you can press it again and you can now become killable. So like, you can switch between them through rounds how often we may need.
Any help is appreciated :slight_smile:

The simplest way is:

  • Open the Workshop and create a new Rule.
  • Set the rule Event to Ongoing - Each player

  • Create a condition called Is Button Held
  • Change Player from Event Player to Host Player
  • Set your button to the key you want, in this case Reload in the drop down menu
  • Make sure it’s equal to True

  • Create an If statement that checks if player Has Status = false
  • If false, under the If statement, Create an action called Set Status and set to Invincible
  • Select who and from it affects, you can use filters for specific or multiple. In this case you can leave it as the Event Player, which is the player triggering the condition of the rule (sorta when you press the button, you become the one running the rule)
  • You can set a timer or leave it default 9999 if you want
  • Create an Else action
  • Under else create a Clear Status action, selecting Invincible (this will remove it if you click again)
  • Create an End action to close the if statement

That should work
Code looks like this

rule(“Invincible Rule”)
{
event
{
Ongoing - Each Player;
All;
All;
}

conditions
{
Is Button Held(Event Player, Button(Reload)) == True;
}

actions
{
If(Has Status(Event Player, Invincible) == False);
Set Status(Event Player, Null, Invincible, 9999);
Else;
Clear Status(Event Player, Invincible);
End;
}
}

It sounds like a lot but its easy and quick to make once you get used to it