#Can someone help me with a system
1 messages · Page 1 of 1 (latest)
When interaction volume clicked, add role to player who clicked
When clicked again, remove role from player who clicked
To do this use a T-FlipFlop system
Only 3 chips needed for this
Bool Variable
Not
If
Connect the output of the red part of the Boolean variable to the input of the Not and the red output of the Not into the red input of the Boolean variable
yeah
👍🏼
but i want that if one guy have the role no other person can click the interaction volume until he clicks again the voulume to remove the role
yk?
I guess use events?
Make the event sender to send to Others
When the role is added to player, send event to others and set it to locked
Whenever role is removed, send event to others and set it to unlocked
yeah
No
Just use “get all with tags”
then see if it’s greater then 1
you could also replace the t flipflop with player has role and then according to that remove/add the role
He wants it to be locked for other players and only the player with the role can use it
yes
refer to above message from ardenis, solves that problem
just use get all with role instead of tags
@left tinsel
What
Do what @serene garnet Said
what does he mean with get all with tags i dont find that chip
it outputs a list but you can list get count to get the number
then?
then use >= 1 or > 0 when attempting to grant the role to stop it from being given
s
i dont understand bro im german
List get count
Greater than or equal to 1 or you can use greater than 0
output of get all players with role goes into list get count
output of list get count goes into the A port on greater than
then before you give the role you need an if chip
output of greater than goes into that and the else port output goes into add role
you should still replace the t flipflop with player has role
and what should i connect with the olayer has role
you just input the role name and plug its output into the if chip that the flipflop used to go into
then after doing that you need to reverse the outputs of the if chip so that the then port goes into removing the role and the else port into giving it
you still need to do this
ah okay
no, not like that. doing that would prevent the player with the role from removing it
can you do it like ardenis did thats easy to understand for me
this is how you need to do it
yes, this is correct
this will allow the granting of the role if no one has it and removal of the role if you do have it
so its done?
yep, this is barebones for what you need
okay
an can i also make that when someone have the role and other press it that there a text that says a other player have the role or something like this
yes, just wire up to the unused output of the upper if chip
so on the if chip what is above the get all players chip
yes
and when someone get the role?
add onto the end of add role
youre welcome
I can ask again how a system works, but I don't think it should be that complicated this time
