Text box text to surface gui

Here’s what I did:

TextBox Script:

script.Parent.Changed:Connect(function()
	game.ReplicatedStorage.ChangeText:FireServer(script.Parent.Text)
end)

Server Script:

game.ReplicatedStorage.ChangeText.OnServerEvent:Connect(function(plr, text)
	script.Parent.Text = text
end)

The result:


Hope this helped.

6 Likes