Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why Is This Function Not Returning Anything?

Asked by 5 years ago
Edited 5 years ago

I Have A Function That Is Suppose To Run Through Every Available Lobby In A Game

It's A LocalScript. Here Is The Function

local function ReturnDungeon(owner)
    for i,v in pairs(game.ReplicatedStorage.Lobbies:GetChildren()) do
        if v.Owner.Value == owner then
            return v
        end
    end
end

However When This Function Is Run, This Does Not Return Anything

I've Checked All The Values Involved And They Are All Correct, I've Done Multiple Debugs, They Haven't Been Helpful

This Function Not Returning Anything Is Literally Breaking The Game. I Need To Know What I've Done Wrong As I Can't See It Myself.

0
Please Stop Typing Like This You're Hurting My Eyes programmerHere 371 — 5y
0
Yes, please do. BashGuy10 384 — 5y
0
You aren't calling the function though... greatneil80 2647 — 5y

Answer this question