Print returns Blank (No Text) when there is text on TextBox?

since your genius, why did it print the textbox’s name?

local TxtBox = game.Players.LocalPlayer.PlayerGui.TrainerCard.TrainerFrame.TypeName

Is game.Players.LocalPlayer.PlayerGui.TrainerCard Class name “ScreenGui”?

is the text boxes name TypeName?

yes, why???

Yessir!!!443r3r34r3r

That is because the text is not replicated to the server (when changed by the client).
Send the text to the server instead, not the button itself.

1 Like

bruh smart. How am i so dumb???

1 Like

It’s just something people don’t realize in time.
You can look more into replication here: Working with the Replication Boundary

does it print like this?
anything

Ghost solved it. Now the print shows what the text of the textbox is. Thank you very much for trying!

1 Like

F.Y.I: This was the shortest solved forum I’ve ever seen

No worries.
I still recommend you to learn more about replication though, it’s a good thing to have.

Wait, how do I filter it though so that they dont put their nicknames as bad words?

Straight-forward version:

local TextService = game:GetService('TextService')
local String = 'Hello world!'

local FilterSuccess, FilterResult = pcall(function()
	return TextService:FilterStringAsync(String, PlayerUserId)
end)
if (FilterSuccess)
then
	String = FilterResult:GetNonChatStringForUserAsync(PlayerUserId) or ''
else
	print(('Unexpected error with FilterSuccess!: %s'):format(FilterResult))
end

I don’t understand clearly. Could you give me like an example? A short one?

Just did in my post above, I edited it.

1 Like

How would we use it for a situation like mine?

String would be the filtered string.
You should be able to implement this.

1 Like

Thanks again, real poggers bro…

1 Like

I’m sorry I’m still pissed about this even after 2 months. THAT IS BASICALLY WHAT I SAID!