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?

1 comment

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