I just wanna help people who are using the new TextChatService. It seems much more easier with TextChatService! I love it! Sorry for the bump after 4 years
I figured it out how to do this with the new TextChatService:
local AllPlayers = game.Players
local TextChatService = game:GetService("TextChatService")
local RBXGeneral = TextChatService:WaitForChild("TextChannels"):WaitForChild("RBXGeneral")
local Spectators = game.Teams.Spectators
-- Is Spectator From UserId
local function IsSpectatorFromUserId(UserId)
local TargetPlayer = AllPlayers:GetPlayerByUserId(UserId)
if TargetPlayer and TargetPlayer.Team == Spectators then
return true
end
re…