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

How do i send the data of multiple textboxes to server?

Asked by 4 years ago

So, ive been trying to figure out how to make something like a servery, but i can't seem to figure out how to send a message to the server once they press submit (its at the end of final question)

heres my code:

local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:Connect(function()
    script.Parent.Text = "Sent! You may now exit the game."
    local line = "Hello! My username is "..script.Parent.Parent.Parent.Parent.Name.." and I want to apply to be a "..script.Parent.Parent.Parent.Second.Reply.Text..". The reason I want this rank, is "..script.Parent.Parent.Parent.Third.Reply.Text..". What I would do with this rank, is "..script.Parent.Parent.Parent.Forth.Reply.Text..". Do I have any experience like this and if so who? Well, "..script.Parent.Parent.Parent.Fifth.Reply.Text..". Thank you for your time!"
    print(line)
    game.Players.LocalPlayer.Msg.Value = line -- idk why this is here lol
    game.ReplicatedStorage.Send:FireServer(line)
end)

Whats wrong with my code?

0
Are you getting any errors, on a quick overlook this should work fine, don't forget you do need a server-script to read the event. This would be done with Send.OnServerEvent Vathriel 510 — 4y

Answer this question