Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago

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

Log in to vote
0
Answered by 6 years ago

Local Script:

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

-------

Server Script:

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

Answer this question