How to get the player from .MouseButton1Click on a SurfaceGui?

the title pretty much explains my problem, how do i get a player from MouseButton1Click if the Button is in a SurfaceGui

The way you’re supposed to use Surface guis is a little different than a lot of people comprehend. Put the gui into StarterGui with LocalScripts inside. Then set the .Adornee property to the part you want the gui to be displayed on. You’ll probably have to rework some of the stuff, but I’m pretty sure there’s no way to get the player through a UI button, as they’re all supposed to be inside the player object.