Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago
Edited 5 years ago

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.

0
You freak. Why would you want voice chat.! User#19524 175 — 5y
0
lol User#21908 42 — 5y
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"? HeyItzDanniee 252 — 5y
0
You want to hear little kids voices? Freak! xd i know what you meant tho User#19524 175 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

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)
Ad

Answer this question