How do I change the values of my properties?

I am trying to make a part in my game where you can go into a bunker and not get knocked out, but everyone out of it does. The problem is, I can’t change my “safe” property. Other than that, it should all work.

make a property that is player-scoped, and is a number

make a zone trigger a trigger, whether it is by channels or wires
example using wires:

Player enters zone → Trigger

use the block that says:
ex

Set Property: "property"
Value: 1

and
When player leaves zone → Trigger (on a different trigger)
block code for 2nd trigger:

Set Property: "property"
Value: 0

then when the event that depends on whether you are in the safezone or not happens, use a checker that checks whether “property” is equal to one, and if the check fails, then the player gets knocked out :+1:

Summary

@Jhan check canva :P.

THIS SHOULD NOT BE FLAGGED I LITTERALLY HAD HIS ANSWER

1 Like

I want it to be for the individual player but it will only change it for everyone.

1 Like

Try using a Relay device with Relay Audience setting set to “All Other Players”

1 Like

Thank you! :grinning_face_with_smiling_eyes: This advice is easy to fallow and very useful!

that is why i said to make the property player-scoped

1 Like

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.