How do I make a PVP game getting working?

So, I’ve been working on our Rock, Paper, Scissors game. Whenever the player gets in the stage and the other player joins in too I wanna show the UI. The problem is I can’t fire a RemoteEvent or invoke RemoteFunction from the workspace. If I do them from the code it wouldn’t be flexible and I would need to do the same process every stage.

Thanks!

I would appreciate every reply because I’m struggling so bad right now.

So you could make a circular podium and store a variable that has the position a the dead center of the podium. like say this

--podium radius is around 5 and is centered at 0,0,0
local RunService = game:GetService("RunService")
local playersInPodium = {}
local centerValue = Vector3.new(0,0,0)
RunService.HeartBeat:Connect(function()
    if #playersInPodiom = 2 then
        --start the game
    else #playersInPodium < 2 then
        for _,v in pairs(game:GetService("Players"):GetPlayers()) do
            char = v.Character or CharacterAdded:Wait()
            if v ~= playersInPodium and (char.Humanoid.RootPart.Position - centerValue).Magnitude <= 5.5 then
                playersInPodium.Add(v)
        end
    end

end )

sorry it took long for me to write this in devforum lol

Thanks for the response, I’ll be checking this and trying to implement it.