So I have tried for a while now to get the name of a player that presses a button to a textlabel but it won't work. I'm not entirely sure what I'm doing wrong.
script.Parent.MouseButton1Down:connect(function() local TextLabel = script.Parent.Parent.TextLabel TextLabel.Text = game.Players.LocalPlayer.Name end)