Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Is it possible to create a voice chat/command? [SOLVED]

I want to create some kind of an AI, that will help players in the game. So I wanted to know if its possible to create a voice command and if there is a way Roblox Studio allows to do it. I tried to search but couldn't find anythind, if anyone could help me and give me a link to something? Thank you. Meanwhile I will try to find a solution.

4 comments

0

You freak. Why would you want voice chat.!

0

lol

0

Because I like trying new stuff.. and I want to try and do voice chat.. is that a problem? Why I am being a "freak"?

0

You want to hear little kids voices? Freak! xd i know what you meant tho

1 answer

I managed to find something similar to what I wanted. Not exactly what I wanted but it will do. The following script will play a sound whenever you type a specific word:

sound = game.Workspace.Sound --Where your sound is located
game.Players.PlayerAdded:Connect(function(player)
         player.Chatted:Connect(function(message)
                  If sound.IsPlaying == false then
                             If message == "YourMessage" then
                                         sound.SoundId = "TheSoundID"
                                         sound:Play()
                             end
                   end
         end)
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.