I’m trying to make a feedback system with HTTPService. I’m trying to transfer information in between scripts from RemoteEvents. One type of information that I’m trying to transfer is textbox text. Whenever I do textbox.Text, it just gives me the player’s name. So, I’m transferring the textbox. I transferred the textbox and now I’m trying to use the text. The next thing that happens is, there’s an error.
-- FeedbackFrame.TextButton.MouseButton1Click:Connect(function()
if FeedbackFrame.TextBox.Text ~= "" then
print(TextBox.Text)
game.ReplicatedStorage.FeedbackSubmit:FireServer(game.Players.LocalPlayer, TextBox)
wait(1)
FeedbackFrame.Visible = not FeedbackFrame.Visible
end
end)
This is in a local script and next, it sends it to the server.
-- game.ReplicatedStorage.FeedbackSubmit.OnServerEvent:Connect(function(player, textBox)
local playerName = tostring(player.Name)
print(textBox.Text)
local Output = Mail:SendEmail("*this is blurred out for security reasons*", playerName.." has given some feedback!", playerName.." has given feedback. Please respond as quick as possible. "..tostring(textBox.Text))
print(Output)
wait(1)
print(textBox)
end)
Then, this error comes up
Text is not a valid member of Player “Players.robloxmailtest”
Can someone help?