I'm trying to make a textbox that when a button is clicked, a textlabel withing StarterGui will become the same as the text in the textbox. I have fired a remote event through a localscript within the textbutton. The script in ServerScriptService is this:
.game.ReplicatedStorage.InfoInput.OnServerEvent:Connect(function(player)
game.Workspace.Board.SurfaceGui.Username.Text = game.StarterGui.ScreenGui.Frame.Username.Text
end)

1 comment
The weird line arrangement in the code isn't in the actual script, it's just how this website arranges it, I guess it's just a bit long.