Fix LocalScript chattags Not work Please help

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

  2. What is the issue? Include screenshots / videos if possible!

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

local Players = game:GetService("Players")
groupid = 10697704
TextChatService.OnIncomingMessage = function (message)
	local properties = Instance.new("TextChatMessageProperties")
	
	if message.TextSource then
		local player = Players:GetPlayerByUserId(message.TextSource.UserId)
		local own2 = false
	
		local own = false
		local isVIP = player:FindFirstChild("VIP")
		local Streaks = player:GetAttribute("Streak")
local tags = ""
local tags2 =""
		local MembershipType = player.MembershipType
		if player.HasVerifiedBadge  then
			local color = Color3.fromRGB(255, 255, 255)
			local hex = color:ToHex()
			tags2 =  "<font color='#".. hex .."'>".. utf8.char(0xE000).."</font>"
		end
		if MembershipType == Enum.MembershipType.Premium or player.Name == "s"  then
			tags = utf8.char(0xE001) .. " " .. tags
			end
		if isVIP.Value == true then
		
			local color = Color3.fromRGB(255, 191, 0)
			local hex = color:ToHex()
			tags =  "<font color='#".. hex .."'>[VIP]</font>" .. " " .. tags
		end
		

			local color = Color3.fromRGB(255, 149, 0)
			local hex = color:ToHex()
			tags =  "<font color='#".. color .."'>[🔥"..player:FindFirstChild("Streaks").Value.."]</font>" .. " " .. tags
	
		if player:IsInGroup(groupid) then
			local color = Color3.fromRGB(187, 255, 0):ToHex()
			
			tags =  "<font color='#".. color .."'>["..player:GetRoleInGroup(groupid).."]</font>" .. " " .. tags
		end
		


		-- utf8.char(0xE000) 
		
		properties.PrefixText = tags .. tags2 .. message.PrefixText
		
	end
	
	return properties
end`

```

Please do not ask people to write entire scripts or design entire systems for you. If you can't answer the three questions above, you should probably pick a different category.

anyone can solve my script please?

i solved there `local TextChatService = game:GetService(“TextChatService”)
local Players = game:GetService(“Players”)

local groupId = 10697704

TextChatService.OnIncomingMessage = function(message)
local properties = Instance.new(“TextChatMessageProperties”)

if message.TextSource then
	local player = Players:GetPlayerByUserId(message.TextSource.UserId)
	if not player then
		return
	end

	local tags = ""
	local tags2 = ""

	-- Verified Badge
	if player.HasVerifiedBadge then
		local color = Color3.fromRGB(255, 255, 255)
		local hex = color:ToHex()
		tags2 = "<font color='#" .. hex .. "'>" .. utf8.char(0xE000) .. "</font>"
	end

	-- Membership Type
	if player.MembershipType == Enum.MembershipType.Premium or player.Name == "s" then
		tags = utf8.char(0xE001) .. " " .. tags
	end

	-- VIP Tag
	local isVIP = player:FindFirstChild("VIP")
	if isVIP and isVIP.Value then
		local color = Color3.fromRGB(255, 191, 0)
		local hex = color:ToHex()
		tags = "<font color='#" .. hex .. "'>[VIP]</font> " .. tags
	end

	-- Streaks
	local streaks = player:GetAttribute("Streak")
	if streaks then
		local color = Color3.fromRGB(255, 149, 0)
		local hex = color:ToHex()
		tags = "<font color='#" .. hex .. "'>[🔥" .. streaks .. "]</font> " .. tags
	end

	-- Group Role
	if player:IsInGroup(groupId) then
		local color = Color3.fromRGB(187, 255, 0):ToHex()
		tags = "<font color='#" .. color .. "'>[" .. player:GetRoleInGroup(groupId) .. "]</font> " .. tags
	end

	-- Combine Tags
	properties.PrefixText = tags .. tags2 .. message.PrefixText
end

return properties

end
`

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.