Help with yeilding

I have a function that returns a table and inside that functions i need to wait for a certain bindable to fire and the fire another bindable with yeilding the function, I have tried coroutines but they have not work wha do I do

example:

function Example()
	local CrucialTable = {}
	Bindable.Event:Wait()
	Bindable2:Fire()
	return CrucialTable
end

as you can see I need to do Bindable.Event:Wait() and Bindable:Fire() without yeilding example for any seconds. How can I do this?

1 Like