Help with box PvP edit button

Hi, i need help to create an edit button for my box PvP map. Context- i am making a box PvP game and I figured that out how to make a prop appear disappear and vanish when the edit button is pressed. The way my game is set up it is so that the prop can only be shown at the start by pressing a button. Then this button activates the edit button that can make it disappear and reappear , but i want it to be that only the person who built the prop in the first place can use that button. The part that is tricky is that i also have a button that will hide the prop full (essentially destroying the prop) so someone else can build the prop again. then they can use the edit button but the very original person cant anymore. Is that possible? Thanks

Set the props to “Visible on game start” - “No.”
Then, wire the button to the prop, and make it say “When button pressed,” - “Show Prop”
To hide it again, make two buttons with wire repeaters and whatnot.
I’ll explain later; i’m tired right now

Um you can make the button scope to player to make sure only the person who activated can press it.

if you destroy a prop though you can’t get it to show again tho.

Yes I figured that out but i made it so that you can loop hide and build again and again. I’m looking for help making the edit button only work fo r the most recent builder of the prop

show button pressed → trigger, store the name into a property, show prop
hide button pressed → get the name of player that pressed, if it is equal to the one in the property, hide prop
And set the scope to global

note

There is a block that gets the triggering player name, the block code (in the show button trigger) should be this:

Set property: prop1
       Value: triggering player's name

hide button trigger code:

if [get property: prop1] = [triggering player's name]: broadcast on channel: "hideprop1"

Make the prop hide on channel hideprop1

There’s probably a better and easier way to do this, but this is what I came up with
Also, @mrdoggyman1, because you didn’t find a solution to your problem, remove the solution for now

1 Like