script.Parent.MouseButton1Click:connect(function() player.Character.Name = script.Parent.Parent.TextBox.Text end)
it doesnt like player whatd do i put instead
Well you never actually define player in this script. All you would need to do is put this in a local script if it isn’t already in one and make a variable of that for the player like this:
player = game.Players.LocalPlayer
Simple as that, hope I helped.