Can't find players in the server

local Players = game:GetService("Players")
local Workspace = game:GetService("Workspace")

local folder = Workspace["Fight Request Pads Set 1"]
local value1 = folder["Fight Request Pad 1"].Value.Value
local value2 = folder["Fight Request Pad 2"].Value.Value

while true do
	task.wait(0.1)
	if Players:FindFirstChild(value1) and Players:FindFirstChild(value2) then
		print("Both players found")
	else
		print("One or more players not found")
	end
end

This code isn’t working, it keeps saying ‘One ore more players not found’, although both players in the server.

1 Like

I think this happens because you’re making the player’s variable at the top which only detects the first player who joins

Consider moving the variables inside of the while loop, maybe that’ll fix it

1 Like

Oh lol, tysm it works.
30charcharchar

1 Like