#Can someone help me with a system

1 messages · Page 1 of 1 (latest)

left tinsel
#

Filter the invisible collision to that role only

#

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

scenic pulsar
#

got it

left tinsel
#

Ok 👍🏼

#

You know how to make a t-flipflop

scenic pulsar
#

yeah

left tinsel
#

👍🏼

scenic pulsar
#

so what now?

left tinsel
#

That’s it

#

Just filter the invisible collision to that role

#

And your done

scenic pulsar
#

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?

left tinsel
#

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

astral sphinx
#

flipper flopper

left tinsel
#

Whenever role is removed, send event to others and set it to unlocked

scenic pulsar
#

do yk what the event ist called

#

?

left tinsel
#

Get an event definition, event sender, and event receiver

#

Name it whatever you want

scenic pulsar
#

yeah

left tinsel
#

Set the event sender to the event definition

#

You know how to use events?

scenic pulsar
#

not really

#

so i can name the event definiton what ever i want?

left tinsel
#

Yea

#

Just nothing inappropriate lol

#

Atleast I don’t think 🧐

scenic pulsar
#

okay i

#

and how do i make unlocked

#

?

left tinsel
#

Not like that

#

Configure the event receiver to “pugs”

serene garnet
#

Just use “get all with tags”

#

then see if it’s greater then 1

scenic pulsar
#

okay

#

wait ardenis can you come on?

haughty perch
#

you could also replace the t flipflop with player has role and then according to that remove/add the role

left tinsel
scenic pulsar
#

yes

haughty perch
#

refer to above message from ardenis, solves that problem

#

just use get all with role instead of tags

scenic pulsar
#

@left tinsel

left tinsel
#

What

scenic pulsar
left tinsel
#

Do what @serene garnet Said

scenic pulsar
#

what does he mean with get all with tags i dont find that chip

left tinsel
#

Use player get all with role

#

Get all players with role*

haughty perch
#

it outputs a list but you can list get count to get the number

scenic pulsar
haughty perch
#

then use >= 1 or > 0 when attempting to grant the role to stop it from being given

scenic pulsar
left tinsel
#

Read

#

What

#

Joku said

#

Joksu*

scenic pulsar
#

i dont understand bro im german

left tinsel
#

List get count
Greater than or equal to 1 or you can use greater than 0

scenic pulsar
#

that is what i have now

haughty perch
#

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

scenic pulsar
#

okay

#

i have that

haughty perch
#

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

scenic pulsar
haughty perch
#

you should still replace the t flipflop with player has role

scenic pulsar
#

and what should i connect with the olayer has role

haughty perch
#

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

scenic pulsar
serene garnet
scenic pulsar
#

ah okay

haughty perch
#

no, not like that. doing that would prevent the player with the role from removing it

serene garnet
scenic pulsar
haughty perch
#

this is how you need to do it

scenic pulsar
#

like this?

haughty perch
#

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

scenic pulsar
#

so its done?

haughty perch
#

yep, this is barebones for what you need

scenic pulsar
#

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

haughty perch
#

yes, just wire up to the unused output of the upper if chip

scenic pulsar
#

so on the if chip what is above the get all players chip

haughty perch
#

yes

scenic pulsar
#

and when someone get the role?

haughty perch
#

add onto the end of add role

scenic pulsar
#

BROOOO

#

I LOVE YOUUU

#

THANKS

haughty perch
#

youre welcome

scenic pulsar
#

I can ask again how a system works, but I don't think it should be that complicated this time