I don't think this problem is occurring within the code. So, what's happening is that I can only click certain buttons on a SurfaceGui. The SurfaceGui is in a part in Workspace and I don't know how to fix this problem! Please help! Thanks.
Have you used the Zindex? (The Zindex Determines Whether The Button/Frame Is Infront Or Behind Of Something Else)