Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make GUI visible to everyone, but only one person can use it?

Asked by 3 years ago

Hello, I am working on an RPG game in Roblox, to be exact its an online RPG where friends fight as a team, and if one of them encounters an enemy, they all get brought to a turn based combat arena, and they are all fighting the enemy in turns (like persona if you’ve heard of that, but instead of a cpu or you controlling your team, its another player (your friend to be precise)), now the thing is, I want everyone to see the attack selection UI (Like if the player who’s turn it is goes in the special attack menu all other players see that menu too, or if he enters the melee menu, they see that too etc.), but only the player who’s turn it is, will be able to enter the menus and use the attacks (meaning they can’t use buttons or anything, they just get the same UI as the player who’s turn it is, and every action he does gets mirrored to their UI, but they don’t actually have any control over it.).

1 answer

Log in to vote
0
Answered by 3 years ago

You can disable the scripts for everybody else except for the person's turn. And when it moves on to another person, the person which had the previous turn has their GUI scripts disabled and the person with the current turn has their GUI scripts enabled.

Ad

Answer this question