hi, my loading screen has a check for whether players are in a group or not because it affects what teams and spawns they have access to.
i currently have a timeout check that theoretically should work, but i feel like it's hanging on waiting for a response and so never increments its timeout.
expected behaviour: print 'uh' initially, then print 1, nil - 2, nil - etc. until roblox returns a value or timeout hits 10
actual behaviour: prints 'uh' initially, then either immediately prints 1, true (successful api call) or there is a long delay with no printing until the api returns a value and it prints 1, true
local timeout = 0
print('uh')
local success, failure = pcall(function() repeat timeout += 1 print(timeout, player:IsInGroup(12326302)) task.wait(1) until player:IsInGroup(12326302) ~= nil or timeout == 10 end) --check whether in group before we get to menu so theyre not waiting there