So I want to make a script that does for example, If you say like the code for twitter codes or something because I dont want people giving out codes in chat, it blocks the word and turns it into hashtags.
Any way to do that?
Hello, even though this is not a request site, you are new to scripting so I can teach you the very basics on how you can do this.
THE GOAL What I'm assuming you want is that you want it so that if someone says a twitter code you put out it will be censored so people won't know. We'll use events such as Chatted. THE CODE
local Player = game:GetService("Players").LocalPlayer --We get the player. local Code = "123" --The code Player.Chatted:Connect(function(Message) --Every time the player chats we'll get the message of what he said. if string.match(Message,Code) then --If we find the code inside the player's message then --Censor the message. However, this is for you to script, not me. end end)