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.
bruh smart. How am i so dumb???
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?
Ghost solved it. Now the print shows what the text of the textbox is. Thank you very much for trying!
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.
How would we use it for a situation like mine?
String
would be the filtered string.
You should be able to implement this.
Thanks again, real poggers bro…
I’m sorry I’m still pissed about this even after 2 months. THAT IS BASICALLY WHAT I SAID!