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
1 | local function ReturnDungeon(owner) |
2 | for i,v in pairs (game.ReplicatedStorage.Lobbies:GetChildren()) do |
3 | if v.Owner.Value = = owner then |
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.