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.
COMMUNITY QUESTION
How do I transmit the text inside a textbox to a RemoteEvent?
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.
