Basically, I'm connecting a chosen player's chat message to a RemoteEvent that displays whatever they say on everyone's screen.
--Script
1 | game.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 |
6 | end ) |
There's a whole framework surrounding this, but I'm sure the fix here is simple. Thanks in advance for your guys' help!
ROBLOX has a way to filter a string. You can do this with
1 | FilterStringAsync() |
I'm assuming that's what you want.