Как получить текст текст бокса в обычном скрипте в роблокс студио

Как получить текст текст бокса в обычном скрипте? вот код:

game.ReplicatedStorage.WriteBoothTextToATextbox.OnServerEvent:Connect(function(player)
    if game.Workspace.Booth1:GetAttribute("boothOwnerName") == _G.playerName then
        game.Workspace.Booth1.WoodFloor2.SurfaceGui.BoothText.Text = player:WaitForChild("PlayerGui").MainGui.YouBoothSettingsFrame.BoothTextBox.Text
    end
end)

Ответы (0 шт):