Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I transmit the text inside a textbox to a RemoteEvent?

Basically, I want to make it so that when someone submits a text, a RemoteEvent is fired, then, the leaderboard 'Nation' tab is changed with whatever the person submitted.

1 answer

Local Script:

SubmitButton.MouseButton1Down:Connect(function()
	RemoteEvent:FireServer(TextBox.Text)
end)

-------

Server Script:

RemoteEvent.OnServerEvent:Connect(function(player, text)
	print(text)
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.