RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make me an voice chat script that lets you hear muted poeple"
-- local script local player = game.Players.LocalPlayer local mutedPlayers = {} game.Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(message) if mutedPlayers[player.Name] then print("Muted Player: "..message) end end) end) game.Players.PlayerRemoving:Connect(function(player) mutedPlayers[player.Name] = nil end) game.StarterGui:SetCore("SendNotification", { Title = "Mute Player", Text = "Enter the name of the player you want to mute:", Button1 = "Mute", Button2 = "Cancel", OnButton1Click = function(playerName) mutedPlayers[playerName] = true end })