For some reason when this script is enabled, players cant see other players chat, any help?
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")
local function setprefixtext(value, message)
return "<font color='#"..(value:WaitForChild("Color").Value):ToHex().."'>["..value.Name.."]</font> " .. message.PrefixText
end
TextChatService.OnIncomingMessage = function(message: TextChatMessage)
local props = Instance.new("TextChatMessageProperties")
if message.TextSource then
local player = Players:GetPlayerByUserId(message.TextSource.UserId)
if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId, 839718134) then
props.PrefixText = setprefixtext(script:WaitForChild("V.I.D"), message)
end
if player.UserId == 869133154 then
props.PrefixText = setprefixtext(script:WaitForChild("OWNER"), message)
end
if player.UserId == 647598508 then
props.PrefixText = setprefixtext(script:WaitForChild("DEVELOPER"), message)
end
return props
end
end