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 4 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

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

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 4 years ago

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

1FilterStringAsync()

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 — 4y
Ad

Answer this question