Reproduction Steps
Enter any Roblox game and (while not playtesting) execute the following code in the Command Bar: game:GetService("VoiceChatService"):IsVoiceEnabledForUserIdAsync(1)
Expected Behavior
For the function to either print out an error message (if something goes wrong) or return a Boolean value.
Actual Behavior
The studio freezes for a moment and crashes a few seconds later.
Sometimes, before the studio freezes, “StartProcessException…” appears in the output.
(It doesn’t matter if I put a random userId or if I put my userId, it still crashes the Studio)
Issue Area: Studio Issue Type: Crashing Impact: Low Frequency: Very Rarely
OP marked it as low priority because this only happens in command bar, and not many developers use this function (yet), let alone in the command bar. So it’s not the highest priority.
While Studio crashing here is certainly not ideal and should instead be replaced with an error, it is worth pointing out that the docs clearly state that:
This function is not yet implemented server-side.
The reason this happens is because IsVoiceEnabledForUserIdAsync is only implemented on the client and only works for the authenticated user. The only place that this method works is when called in a LocalScript with LocalPlayer.UserId as the parameter.
I just tested it out, and Studio crashes instantly for me. This seems to only occur when in Edit mode, and functions correctly in playtest mode (returns true/false on client, errors that it’s not implemented on server).