How to find where the infinite yield is

I have a lot of scripts in my game and a lot of them have replicated storage. I deleted a remote event because I don’t need it anymore, but I can’t find where it is defined on script because when the console outputs infinite yield possible, I don’t know which script it is. It doesn’t tell me the script name or the line it is on. it doesn’t even tell me if it’s on a server script or a client script.

This happened to me before and I just looked through every script for the WaitForChild() function but this is a very time-consuming process, and I don’t want to do that again.

Infinite yield possible on 'ReplicatedStorage:WaitForChild("GetAbilityInfo")' 

How do I find it efficiently?

You could use the “Find All / Replace All” tool in Studio and that would show you each occurrence of the reference.
Find all

2 Likes

My bad, I didn’t notice that. Thank you!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.