chrisfs123
(chrisfs123)
December 5, 2021, 9:12pm
#1
I am trying to get chat tags were you can toggle them on and off. Lets say a admin just wanted to play the game and not have his tag on.
I’m not sure how to make this. Can one of you help?
I have tryed to lookthis up on dev forum and youtube but have found nothing.
To toggle you could say !tagon or !tagoff.
I am not asking anyone to make a script for me but I just want to know is there a way to do this and do you have any tips on how to make this happen?
1 Like
Jumpathy
(tyler)
December 5, 2021, 10:15pm
#2
This post has the documentation for my resource and you can learn more about how it works.
Introduction
[Blue Simple Modern Chat Messenger Logo]
Made by @Jumpathy
I needed this lately for one of my games and it’s very helpful already. This module allows you to set up existing chat features and bring new functionality to the default chat.
NOTE: This is in Alpha right now, if you have any ideas, constructive criticism, questions or bugs please don’t hesitate to reach out to me in the replies or in PMs.
Features:
Premium-based chat tags, name colors, and text colors
Gamepass-base…
Something like this?
local chatPlus = ... --> Require path to module here
local admins = {648155081} --> I put your UserId on here already
local adminTag = chatPlus:newTag({
["tagText"] = "Admin",
["tagColor"] = Color3.fromRGB(255,0,0)
})
local enable = function(plr)
adminTag:assign(plr)
end
local disable = function(plr)
adminTag:unassign(plr)
end
chatPlus:onPlayer(function(plr)
if(table.find(admins,plr.UserId)) then
plr.Chatted:Connect(function(message)
if(message == "!tagon") then --> Tag enable
enable(plr)
elseif(message == "!tagoff") then --> Tag disable
disable(plr)
end
end)
end
end)
I only made a script because it’s very easy with my module. If you find any bugs, don’t hesitate reporting it to me.
5 Likes
chrisfs123
(chrisfs123)
December 6, 2021, 4:50pm
#3
Yes this is what I needed! Thank you so much. Have a great day and sorry for the late reply!
chrisfs123
(chrisfs123)
December 6, 2021, 4:57pm
#4
Also does this only work with your Chat+ or does it also work in roblox’s reg chat?
chrisfs123
(chrisfs123)
December 6, 2021, 8:53pm
#5
Sorry for asking so much I am new to all of this. What does Require path to module here mean?
Joephiss
(Joe)
December 6, 2021, 10:29pm
#6
Insert the Chat+ Module he made into ReplicatedStorage and make the “chatPlus” variable equal to
require(game.ReplicatedStorage. --name of module)
This just makes a variable equal to the module so you can use the functions in the module
chrisfs123
(chrisfs123)
December 6, 2021, 11:27pm
#9
I am a bit lost. Here is what I have.
Joephiss
(Joe)
December 6, 2021, 11:30pm
#10
replace local chatPlus = ... --> Require path to module here
with local chatPlus = require(game.ReplicatedStorage.chatPlus)
chrisfs123
(chrisfs123)
December 6, 2021, 11:35pm
#11
So that is what I would put in Require path to module here. And did I put all the scripts in the right place?
Joephiss
(Joe)
December 6, 2021, 11:39pm
#12
Yes, I think so. Tell me if it doesn’t work.
chrisfs123
(chrisfs123)
December 6, 2021, 11:41pm
#13
Yes it worked! Thank you so much for your help!
1 Like