You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
-
What is the issue? Include screenshots / videos if possible!
-
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.