Connected function help!

simple question, wondering how i can pass a custom value to a function connected like

GUI.Button.MouseButton1Up:Connect(Function)

is there any way to do this? i want it to send info like how calling a function like this could

function("Nice info here")

i know i could do

GUI.Button.MouseButton1Up:Connect(Function()
otherfunction(info)
end)

but wondering if theres anything more elegant

You can just write a function to call your function with parameters.

GUI.Button.MouseButton1Up:Connect(function() Func("Nice info here") end)

I don’t think theres a roblox version of python lambda, but if there is please let me know.

2 Likes