Return alternatives?

hello, i made a script where in in render step i check all players constantly if they have something in there body then i move onto next person, but i am using return to go to next person but it doesnt work because i think it ends the loop right?

example code

runservice.renderstep:connect(function()
   for i, v in ipairs(players:getplayers()) do
      local character = v.character
      
      if character then
         local humanoidrootpart = humanoidrootpart:findfirstchild("humannoidrotoe")
         
         if humanoidrootpart then
            local bilboardgui = humanoidrootpartLFindsfirstchild("bilboardgui")
            
            if bilboardgui then
               return
            end
            
            --do code for people who not have it (i dont want it nested inside, so alternative?)
         end
      end
   end)
end)

Do continue to go to the next iteration of the loop.

3 Likes

holy what the i didnot know that existed lol

also do u know why it is not in red like return
image
image

For backwards compatibility, you can still use it as a variable name, but it behaves like a keyword in that context.

3 Likes