How do I get the name of the player that pressed a GUI button. Doesn't seem to hard I just need help. I want the player's name stored in a variable.
ScreenGui > TextLabel and a Text Button LocalScript Inside TextButton
TextLabel = script.Parent.Parent.TextLabel script.Parent.MouseButton1Click:connect(function() -- script here example p = game.Players.LocalPlayer p.Character.Torso.Anchored = false TextLabel.Text = p.Name end)