Hi everyone. It’s late at night, and I’ve been pulling my hair out because Roblox is deciding to be funky with me today. I have 2 computers testing a game right now so I can toy around with voice chat. I’ve been toying around with custom voice chat stuff and stumbled across something insanely weird.
Acknowledge the following code:
local Voice = {}
Voice.Connections = {}
local Camera = workspace.CurrentCamera
local Events = game.ReplicatedStorage.Events
local function CreateVoiceFX()
task.wait(5)
for _,v in pairs(game:GetDescendants()) do
if v:IsA("AudioDeviceOutput") then
print(v.Parent,v.Parent.Parent,v.Parent.Parent.Parent)
end
end
-- ...
end
Voice.Setup = function()
CreateVoiceFX()
-- ...
end
Voice.Dismantle = function()
for _,Connection in pairs(Voice.Connections) do
Connection:Disconnect()
end
end
return Voice
That print statement is printing (“Wire AudioListener Camera”) for one player, and (“SoundService Ugc nil”) for another. It is seriously messing with my ability to develop because it is inconsistent across players.
What is going on here???