I would like to have it be on a different chat channel tab.
1 Like
Please before posting research this topic, there are already a few posts regarding this.
e.g.
Code was from the post above, I editted this a little bit
local Players = game:GetService("Players") --// Needed for later
local ServerScriptService = game:GetService("ServerScriptService")
local ChatService = require(ServerScriptService:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
local GroupId = 0 --// Put your's here
local RankId = 2 --// Put minimal rank id here
local ChannelName = "SecretChat"
local Channel = ChatService:AddChannel(ChannelName)
Channel.Joinable = false
Channel.AutoJoin = false
--// There's more customisation too
ChatService.SpeakerAdded:Connect(function(PlayerName)
local Player = Players:FindFirstChild(PlayerName)
if Player and Player:GetRankInGroup(GroupId) >= CertainRank then
local Speaker = ChatService:GetSpeaker(PlayerName)
Speaker:JoinChannel(ChannelName)
end
end)
1 Like
How to change the chat’s name?
If you mean here. Then you can do it through this line.
Does not work, put it into the chat in a “SCRIPT” and didn’t work, Also:
CertainRank is not a value
Changed it to: RankId, but still didn’t work.
1 Like