Here's my situation: I have a SurfaceGui (on a Part) and a Frame inside it. There's a TextButton in the Frame.
Just wondering if it's possible to find out the Username of the player who clicked the TextButton. Is it possible to find it out using a normal Script?
Yes. It IS possible, you can check my question and the accepted answer for more information: https://scriptinghelpers.org/questions/23710/how-do-i-acquire-someones-username-and-then-use-it-to-automatically-edit-a-text-box
But in this case:
local function Click(Player) Print (Player.Name) end script.Parent.TextButton.MouseButton1Click:connect(Click)