I've tried to get the text of a box using textbox.Text. After some debugging I found out the text it gets is just blank space. The local script is in a "Submit" button that sends the text through a remote event.
local submit = script.Parent local textbox = game.StarterGui.ScreenGUI.Tab:WaitForChild("input") local input = textbox.Text local remevent= game.ReplicatedStorage:WaitForChild("RemEvent") submit.MouseButton1Click:Connect(function() remevent:FireServer(input) print(input) end)
The reason is because the input is the variable from before the player clicked the button. This should be the code
local submit = script.Parent local textbox = game.StarterGui.ScreenGUI.Tab:WaitForChild("input") local remevent= game.ReplicatedStorage:WaitForChild("RemEvent") submit.MouseButton1Click:Connect(function() local input = textbox.Text remevent:FireServer(input) print(input) end)
This should work because it is the input from when the player clicked the button.