So, whenever both players come to the stage my remote function will find two of them and give them a GameTag to see if the player left, reset and showing the UI. I store the usernames in a StringValue and I was wondering if there’s any way to find them and give them the GameTag.
Edit: Here’s how the system works:
LocalScript: Checks if two bool values are true and invokes the remote function
Script: Whenever the remote function is invoked find both of the players and give them a GameTag
LocalScript(for the gui): If the player has GameTag then display them the GUI using PlayerGui.
local User1 = game.Players:FindFirstChild(StringValue.Value)
local User2 = game.Players:FindFirstChild(StringValue2.Value)
if User1 and User2 then
-- give players gametag and fire remotefunction
end
Okay, I am learning it by checking articles in Developer Hub and some tutorials on YouTube. Nevertheless, yes it is very important to learn these and I’m learning them right now!