Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to fix issues with FE GUI and remote events?

So I am trying to make a game where you enter your nation's name in a text box then appears on a surface gui text label. It works fine without FE but now that I try to turn it into FE the text on the surface GUI just goes blank.

that's the script for the button which fires the event

local event = game.ReplicatedStorage:WaitForChild("Changetext")

script.Parent.MouseButton1Down:connect(function()
	event:FireServer()
end)

This is the script which does the things after the event has been fired:

local event = game.ReplicatedStorage:WaitForChild("Changetext")

event.OnServerEvent:connect(function()
	game.Workspace.nation.SurfaceGui.TextLabel.Text = game.StarterGui.SeatGUI.Frame2.TextBox.Text
end)

The Event is in replicated storage

1 answer

You have to pass the text in the event, the text entered on the client is not replicated to the server.

This discussion is preserved as it was. New answers, comments, and votes are closed.