voicechat. setmicmuted Synchronous
Set Kawaii's microphone-mute choice for the voice mixer. This is useful for a Push to Talk or mute control alongside file playback.
Luau
voicechat.setmicmuted(muted: boolean) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
muted | boolean | true to silence physical microphone samples in the mixer; false to allow them. |
Returns
()No values.
Usage notes
The host voice system can have its own mute state. getstatus reports Kawaii's micmuted value and a separate enginemuted observation.
Example
Luau
local status = voicechat.getstatus()
if status.available then
voicechat.setmicmuted(not status.micmuted)
print("Microphone muted:", voicechat.getstatus().micmuted)
end