Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

I accidentally bypassed the filter in my game! How do I fix this?

Asked by 3 years ago

Basically, I'm connecting a chosen player's chat message to a RemoteEvent that displays whatever they say on everyone's screen.

--Script

game.Players[rapper.Name].Chatted:Connect(function(m)
    if workspace[rapper.Name].RapCheck and workspace[rapper.Name].RapCheck.Value == true then
        lyric = m
        cd:FireAllClients(lyric)
        else return end
end)

There's a whole framework surrounding this, but I'm sure the fix here is simple. Thanks in advance for your guys' help!

1 answer

Log in to vote
0
Answered by 3 years ago

ROBLOX has a way to filter a string. You can do this with

FilterStringAsync()

I'm assuming that's what you want.

0
Thanks, I'll be checking this out. I knew there was probably a simple way to do this and I just hadn't found it. MustangHeart 67 — 3y
Ad

Answer this question