Hi! I wanted to do the mute command and I watched your video, and I followed every single step and it didn’t work. Can you send me your game if possible?
Welcome to the forums!
Hello, please edit your post title to be more specific to the topic, can you also send the logs once you’ve done that?
I watched his video and I put all the code and it did not work.
Hi, please check your logs and edit the post title, it’s undescriptive, I would reccommend you read on how to make a good scripting support post!
Alright, let me just paste in all the code.
Notification Handler Script
local ReplicatedStorage = game:GetService("ReplicatedStorage").MuteCommandRoblox
local StarterGui = game:GetService("StarterGui")
local MuteUser = ReplicatedStorage:WaitForChild("MuteUser")
local SomethingWentWrong = ReplicatedStorage:WaitForChild("WentWrong")
local function Notification(Title, Text)
StarterGui:SetCore("SendNotification", {
Title = Title,
Text = Text
})
end
local function ChatEnabled(Enabled)
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, Enabled)
end
MuteUser.OnClientEvent:Connect(function(Status)
if Status == true then
Notification("MUTED", "You were muted, you can no longer speak in chat!")
ChatEnabled(false)
else
Notification("UN-MUTED", "You can now speak in chat!")
ChatEnabled(true)
end
end)
SomethingWentWrong.OnClientEvent:Connect(function(Title, Msg)
Notification(Title, Msg)
end)
Mute Command Handler script
local ReplicatedStorage = game:GetService("ReplicatedStorage").MuteCommandRoblox
local MuteUser = ReplicatedStorage:WaitForChild("MuteUser")
local SomethingWentWrong = ReplicatedStorage:WaitForChild("WentWrong")
local GroupId = 15659746
local MinRank = 3
local function PlayerInstance(PlayerName)
if game.Players:FindFirstChild(PlayerName) then
return game.Players:FindFirstChild(PlayerName)
else
return false
end
end
game.Players.PlayerAdded:Connect(function(player)
if player:GetRankInGroup(GroupId) >= MinRank then
player.Chatted:Connect(function(Msg)
local SplitMesssage = string.split(Msg, " ")
local PlayerInstance = PlayerInstance(SplitMesssage[2])
if PlayerInstance == false then
SomethingWentWrong:FireClient(player, "Uh-oh", "We couldn't find the player you wanted!")
else
if SplitMesssage[1] == "!mute" then
MuteUser:FireClient(PlayerInstance, true)
SomethingWentWrong:FireClient(player, "SUCCESS", "We muted the player!")
else if SplitMesssage[1] == "!unmute" then
MuteUser:FireClient(PlayerInstance, false)
SomethingWentWrong:FireClient(player, "SUCCESS", "We un-muted the player!")
end
end
end
end)
end
end)
I did all the code and put in my Own Group Id and role ID and still not working? Can you contact Cookie Tech’s Roblox user? It is Cookie_Devx
What is this about?
Also - Please put all of the code in code tags.
Do you remember you made a video on how to make a mute command on Roblox?
Yes, please post your post in code tags.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.