diff --git a/starfallex/starfall_tts_gimpy.lua b/starfallex/starfall_tts_gimpy.lua new file mode 100644 index 0000000..c476c6d --- /dev/null +++ b/starfallex/starfall_tts_gimpy.lua @@ -0,0 +1,20 @@ +--@name GimpyTTS +--@author Mavain and Minori +--@client + +local lang = "en" +local soundref + +hook.add("playerchat", "fucke2", function(ply, txt) + if ply ~= owner() then return end + + bass.loadURL("https://translate.google.com/translate_tts?ie=UTF-8&q=" .. txt .. "&tl=" .. lang .. "&client=tw-ob", "3d", + function(a, err, name) + -- we dispose the current reference, then we create a new one + if soundref then soundref:stop() end + soundref = a + + hook.add("think", "soundFollow", function() a:setPos(owner():getPos()) end) + a:play() + end) +end) \ No newline at end of file