I want to mute the player when he gets moved into another team. I’ve tried to use VoiceChatSDK, but I found it too complicated and didn’t want to recode half of the game. Is there any other way to do it?
3 Likes
It’s not complicated to use VoiceChatSDK. It’s really just
local replicatedStorage = game:GetService("ReplicatedStorage")
local vcSDK = require(replicatedStorage:WaitForChild("VoiceChatSDK"))
vcSDK.mutePlayerAsync(player)
You can explain more about why and I may be able to guide you through it.
2 Likes
- Does this code work on server-side?
- VoiceChatSDK changes how characters work on the client-side, for example, if I try to access the humanoid, it will look like this:
Character.Components.Humanoid
. Its not that its hard to replace, I personally just kinda dislike it. I’m just wondering if there’s another way around of muting the VC without changing the code too much.
2 Likes
Apparently, it does have a function that works server-side which does it Async as shown here on Open-Source Github.
3 Likes
I’ve tried to implement VoiceChatSDK, but it has a couple of different issues:
- In previous post I’ve mentioned the components thing, which actually is false. But for some reason its mentioned in the VoiceChatSDK post.
- As you can guess, I tried to use VoiceChatSDK. Its not quite working. Sometimes players can hear me, sometimes not.
I’ll probably leave voice chat as it is for now, hopefully roblox releases API access to voice chat soon.
4 Likes
Roblox hinted at this being the case. I’m hopeful for a release before the end of the year but this will most likely be something we have in 2024.
2 Likes