Help with return

How i can return an value from an function like this:

image

it will help me alot!

What exactly are you trying to do?

Iā€™m not sure why you want to return a value from this. Where are you trying to return the value to?

It would return that child back to the callback function. Best if you did:

local Child

Instance.ChildAdded:Connect(function(child)
     Child = child
end)
1 Like

i want to get the frame that is added on this frame to later update it with some specific player information

Will return RankGui.ChildAdded:Wait() help?

However, what is stopping you from always updating the frame in the function?

If you absolutely cannot yield yet, want to update it later, what @MixedConscience said works, but you probably need to use a table instead if you are updating multiple.

3 Likes