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 4 years ago
Edited 4 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 — 4y
0
Yes, please do. BashGuy10 384 — 4y
0
You aren't calling the function though... greatneil80 2647 — 4y

Answer this question