#How can I make people keep roles when they rejoin?

70 messages · Page 1 of 1 (latest)

weary mesa
#

How??

harsh finch
weary mesa
#

my game

#

Im making this war type game and i want people to keep their roles when they leave so when they join back they dont have to put it in their bio

#

but i think u need RRS

gilded wing
weary mesa
#

oh

gilded wing
#

Assuming it’s just 1 role, you could just have a Bool cloud variable and set it to true, if it’s true, on join, apply role

weary mesa
#

what if it's three?

#

would it work the same?

gilded wing
#

Apply 3 roles

#

Not 1

weary mesa
#

Ok

#

Thank you

#

im very slow

#

was my question dumb?

gilded wing
#

Inherently no, what was dumb is that you didn’t search first, like everyone else ElmoFireLord

weary mesa
#

i did..

#

sorry

gilded wing
#

Next time, a coconut will fall and hit you on the head, and it will make a comical Bonk sound on impact

weary mesa
#

im still a little new to circuts

#

also im kinda confused

#

does it save every role that person has ever gotten?

gilded wing
#

No, it saves the fact that the player should get the roles to begin with

#

Bools are true or false

#

So on joining, if it’s true, give them roles

#

If it is false, do not give them roles

weary mesa
#

but what if i want only the people who have had it before to get the role?

#

and not everyone?

gilded wing
#

Configure the Bool variable to cloud, it will remember the state per player

#

So I could be true for me, but false for others

weary mesa
#

ok

#

after the bool i put player add role correct?

gilded wing
#

Use an If chip

#

Then the Add role

weary mesa
#

alright understood

#

so it should go, event player join, bool variable, then if and player add role?

#

i do that three times?

gilded wing
#

Literally that

#

Too lazy to type

weary mesa
#

and i do this three times to only give them one role?

#

that makes sence

#

ohhhhh

#

they all need to be from the same event

#

This huh

#

did i do it?

harsh finch
#

Keep in mind, all of those bool variables are storing the same value, as they all have the same name

weary mesa
#

?

thorn hawk
#

What is the book book variable for?

weary mesa
#

huh

#

bool?

#

uhm it still isnt working

#

should it be false or true?

harsh finch
# weary mesa should it be false or true?

It depends

if its true, it means the local player has this role
if its false, it means the local player does not have this role

This entire thing is incredibly inefficient, and not something I would recommend doing at all

#

You can just store the local players rank in an Int Variable, the bigger the number the higher the rank, and you can keep the name of each rank baked into a List<String>, easiest done with a List Create, better done with String Split

Most the time, you do not need to know what is in that players variable, that player can handle everything themselves based off what is in that variable

If you want to show what they are above their heads, they can do that themselves, networking is incredibly important skill to learn

weary mesa
#

can u send me a picture on what to do?

weary mesa
#

I DID IT

#

:D

#

all i had to do was save it to the boo;

#

bool

#

so

#

where ever the role was given

#

connect it to the boo;

#

bool