I have no idea how to do this, here is what I tried :P Script is in the GUI

local test = game.ReplicatedStorage:WaitForChild("Test")

script.Parent.TextBox.Text.Changed:Connect(function()
	
	test.Value = script.Parent.TextBox.Text
	
end)