Exe admin panel: Custom Command (Moderator Chat Tag)

Trying to make a custom command where you click the button to enable/disable a [Moderator] chat tag in the Roblox chat. And possibly an overhead UI saying “Moderator”.


what i’ve got so far, it didn’t work though. ^^

nevermind, i found out myself.

This is bad practice when using support systems, can you please told us how you fixed it so that people in the future can see how you fixed it.

1 Like

Apologies,

I ended up not using the exe admin panel and just creating a /tagon and /tagoff command to enable/disable the [Moderator] tag.
Using the chatPlus plugin.

local players = game:GetService("Players")
local chatPlus = require(script.Parent:WaitForChild("chatPlus"))

local tag = chatPlus:newTag({
	["passId"] = 0,
	["tagText"] = "Owner",
	["rainbow"] = false,
	["tagColor"] = Color3.fromRGB(112, 244, 102)
})

local onPlayer = function(plr)
	if plr:GetRankInGroup(GROUPID) >= RANK then
		tag:unassign(plr)
		plr.Chatted:Connect(function(m)
			if(m == "/otagon" and plr:GetRankInGroup(GROUPID>= RANK)) then
				tag:assign(plr)
			elseif(m == "/otagoff" and plr:GetRankInGroup(GROUPID>= RANK)) then
				tag:unassign(plr)
			end
		end)
	end
end

players.PlayerAdded:Connect(onPlayer)
for _,plr in pairs(players:GetPlayers()) do
	task.spawn(onPlayer,plr)
end
3 Likes

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