Creating different modes to switch to

Hey, fellow developers! How would I go about creating a system that allows me to switch and cycle through different modes? Like a building mode, then a selling mode, and then a buying mode. So if one mode is selected, then you can’t do the other modes function. Would I use more than one script? Would I use remote events or functions? Is there a way I can create a function where if a value is set to something, then something becomes available to me? I know this is a lot and there are lots of questions from my side. But I just need a general idea on how to get something like this started.

1 Like

i would create 1 main script (think local script)

in that script create 1 default mode and every other mode you need

then create a function that first switches to the default mode.
and if another mode is needed it switches from default mode to the selected mode

I like that approach, just minutes after posting this, I created something. But, this idea is different. And I will try it as a separate test, thank you!