of     1   

Seraine
#213441667Monday, April 03, 2017 12:01 PM GMT

When a user enter some #### ## a Textbox and click on 'Submit' button, the same text appears on a SurfaceGui called "Surface GUI2", but when I enter inappropriate words, they don't get hashtagged and people can see the inappropriate words appearing on the SurfaceGui This is server-sided script inside 'Submit' button, the game is not Filtering Enabled by the way - function onButtonClicked() game.Workspace["Surface GUI2"].SurfaceGui.Frame.Frame.TextLabel.Text = script.Parent.Parent.TextBox.Text end script.Parent.MouseButton1Click:connect(onButtonClicked) Will be giving a donation to whoever can fix this... I've got a dream that's worth more than my sleep♥
Seraine
#213441729Monday, April 03, 2017 12:02 PM GMT

When a user enter texts in a Textbox and click on 'Submit' button, the same text appears on a SurfaceGui called "Surface GUI2", but when I enter inappropriate words, they don't get hashtagged and people can see the inappropriate words appearing on the SurfaceGui This is server-sided script inside 'Submit' button, the game is not Filtering Enabled by the way - function onButtonClicked() game.Workspace["Surface GUI2"].SurfaceGui.Frame.Frame.TextLabel.Text = script.Parent.Parent.TextBox.Text end script.Parent.MouseButton1Click:connect(onButtonClicked) Will be giving a donation to whoever can fix this... I've got a dream that's worth more than my sleep♥
PRESTIGIOUSaLEGEND
#213442153Monday, April 03, 2017 12:09 PM GMT

Text is not automatically filtered, you need to call a function to do that. as explained here in this wiki link. local filteredMessage if game:GetService("RunService"):IsStudio() then -- FilterStringAsync does not work in Studio chatMessage:FireClient(player, sender, message) else local success, filteredMessage = pcall(function() return ChatService:FilterStringAsync(message, sender, player) end) if not success then filteredMessage = "Failed to filter message" end chatMessage:FireClient(player, sender, filteredMessage) end
Disillusions
#213442168Monday, April 03, 2017 12:10 PM GMT

surfacegui.Text = game:GetService('Chat'):FilterStringForBroadcast(textbox.Text,playerWhoInputted) capitalist atheist
PRESTIGIOUSaLEGEND
#213442186Monday, April 03, 2017 12:10 PM GMT

################################################################## replace the (DOT) with a .
PRESTIGIOUSaLEGEND
#213442213Monday, April 03, 2017 12:11 PM GMT

I hate this filter, the irony, getting filtered while trying to link to wiki about filter.
Cyrakohl
#213442615Monday, April 03, 2017 12:18 PM GMT

for _,v in pairs(game.Players:GetChildren()) do surfaceGui.Text = game:GetService("Chat"):FilterStringForBroadCast(surfaceGui.Text,v) end (It filters it for the entire server) #code print(string.rep("Lit",5)) #code print(string.rep("Lit",5))
Cyrakohl
#213442667Monday, April 03, 2017 12:19 PM GMT

Dont worry about that im dumb lol. #code print(string.rep("Lit",5))
Seraine
#213445081Monday, April 03, 2017 1:04 PM GMT

I used an example script from FilterStringForBroadcast example under Text Filtering section, but when I tested in GUI in server mode, it says "FireServer can only be called from client"? I've got a dream that's worth more than my sleep♥
Seraine
#213446062Monday, April 03, 2017 1:25 PM GMT

I used this script, it's inside the submit text button - local ReplicatedStorage = game:GetService("ReplicatedStorage") local frame = script.Parent.Parent local box = frame.TextBox local button = frame.TextButton local setSignText = ReplicatedStorage:WaitForChild("SetSignText") local function onClick() local message = box.Text if message ~= "" then setSignText:FireServer(message) frame.Visible = false end end button.MouseButton1Click:Connect(onClick) Why does it says "FireServer can only be called from the client" when I click on the button...? I've got a dream that's worth more than my sleep♥

    of     1