Is it possible to delete a message from chat when writing a command message?

Is it possible to delete a message with a command, for example, wrote / tp, and this message is deleted from the chat?

10 Likes

This article might be useful:

3 Likes

Should I write a command which is called in quotes?

3 Likes

If you want to make it command-based, you can do this.

I’m not entirely sure about the “deleting chat message” thing yet.

game.Players.PlayerAdded:Connect(function(player)
    player.Messaged:Connect(function(message)
        print(player.Name..' said: "'..message..'".')
    end)
end)
2 Likes