I tried using the code from earlier to try and fix my problem, but it didn't work! Here are all the code snippets:
ServerScriptService script:
game.ReplicatedStorage.InfoInput.OnServerEvent:Connect(function(player)
workspace.Board.SurfaceGui.Username.Text = player.PlayerGui.Gui.ScreenGui.Frame.Username.Text
end)
TextButton [Local] script:
script.Parent.MouseButton1Click:Connect(function()
print("Clicked!")
local TextBox = game.StarterGui.ScreenGui.Frame.Username
game.ReplicatedStorage.InfoInput:FireServer(TextBox.Text)
end)
I have already asked someone for help and they said to make some changes to the TextButton script? I don't know if I'm being really dumb, or it just doesn't work.

5 comments
what does the error message say?
Gui is not a valid member of PlayerGui
What are you trying to accomplish btw, I think I know the answer
I'm trying to make a surface gui textlabel's text the same as a text box's user input text when a button is pressed.
You can't fire server events from local script. Try firing FireClient instead.