I made a Police Radio script. All i want is to Filter messages to make people don't swear through the radio. But i don't know how to make it, and no tutorials are clear! Can you help me?
Normal script in ServerScriptService:
local PoliceMessages = game.Workspace:WaitForChild("PoliceMessages") local TextService = game:GetService("TextService") game.ReplicatedStorage.PoliceMessage.OnServerEvent:Connect(function(Player, Text, StateChosen) local NewChat = Instance.new("StringValue", workspace.PoliceMessages:FindFirstChild("State"..StateChosen)) NewChat.Name = (Player.Name.." : "..Text) end)
Can you plz tell me how to do it or just write the good script?