game.ReplicatedStorage.REMOTES.BOOTH_REMOTES.TEXT_CHANGE.OnServerEvent:Connect(function(player)
for i,v in pairs(game.Workspace:GetDescendants()) do
if v:IsA("StringValue") then
if v.Name == player.Name then
v.Parent.Parent:FindFirstChild("Canvas").SurfaceGui.TextLabel.Text = player:FindFirstChild("PlayerGui").BOOTH_ADMIN.Frame.TextBox.Text
end
end
end
end)
First, make sure there isn’t a TextBox called Text inside it. You don’t want the name of an object to conflict with a property of another.
Second, it looks like you’re calling this from a server script. If the text is updated on the client, that information won’t replicate to the server. You shouldn’t manipulate GUI from serverside. Instead, you should pass the text in the textbox as an argument to :FireServer() to get the text.
Edit: Basically, the server doesn’t see anything the client does (with a couple exceptions, like moving the character around). So, if you want the server to see something specific, you need to send it via a RemoteEvent. For yours, you can just add another argument in: event:FireServer(text). And on the server: event.OnServerEvent:Connect(function(player, text) ... end)
Yeah, I got it. Thanks for the help ![]()