Local Script:
(When a button is pressed, a Screen Gui I have will close btw, and I added the RemoteEvent to do something in the Server once Gui closes.)
local opened = script.Parent.Parent
local close = script.Parent
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = ReplicatedStorage:WaitForChild("RE1")
close.MouseButton1Up:Connect(function()
opened:TweenPosition(
UDim2.new(0.32, 0,-0.771, 0),
"Out",
"Quad",
1,
false
)
local theTextYouWantToMove = game.StarterGui.AgendaGUI.AgendaFrame.AgendaTxt
remoteEvent:FireServer(theTextYouWantToMove.Text)
end)
Script in (ServerScriptService):
(When someone types in something in a textbox, i want whatever they typed to be the new text in a part in workspace)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = ReplicatedStorage:WaitForChild("RE1")
local function ChangeText(player, text)
local NAText = workspace.Agenda.Agenda.SurfaceGui.NA
NAText.Text = text
end
remoteEvent.OnServerEvent:Connect(ChangeText)
Btw I used the RemoteEvent scripts from the Roblox Dev Website and followed the steps but for some reason what I am doing is not working. Please help!

5 comments
um for the top script there is no input parameter, it just fires the server it doesnt have the text string
Try printing theTextYouWantToMove.Text and confirm you're sending a string through.
i wrote: "print("theTextYouWantToMove.Text") in server script, in line 9... the output said: theTextYouWantToMove.Text
Dont put it inside of quotes.
HEY PPL, I'm so happy I finally found my problem, I referenced the text as "StarterGui" and realized you can't do that and need to say script.Parent.ETC! It worked.