Hello, I recently decided to convert one of my games to using filteringenabled and i've been trying to learn as much as I can about remotefunctions and remoteevents. I've been trying to convert this script.
contestants = {} for _, player in pairs(game.Players:GetPlayers()) do if player and player.Character then local humanoid = player.Character:WaitForChild("Humanoid") if humanoid and humanoid.Health > 0 and player.PlayerGui.Playing.Value==true then table.insert(contestants, player) end end end if #contestants >= 2 then print("yep") else print("nope") end
to be compatible with fe. The part that breaks this is
player.PlayerGui.Playing.Value==true
This part looks inside of the PlayerGui and find the value called Playing, if the value is true it adds the player to a table and if the table has more than 2 Playing players then it continues. But with fe the script can't look inside of PlayerGui to find the value. I believe that a remotefunction would come in handy here because it can return a argument but i've been trying to experiment and have had no luck. So I have come here to look for help. Thanks.