#In-game Chat Not Functioning Properly

650 messages · Page 1 of 1 (latest)

void moss
#

My dear friend @ember willow and I (mostly him) finished a script that gives users certain chat tag colours depending on some factors.
However, after the finishing of this script, the chat feature got completely annihilated and thus leaving the Roblox chat system useless,
Every message sent in the chat can only be seen locally, meaning if I want to write something in the chat nobody would see it, and also the other way around.

local textChatService = game:GetService("TextChatService")
local marketplaceService = game:GetService("MarketplaceService")

textChatService.OnIncomingMessage = function(message: TextChatMessage)

    local properties = Instance.new("TextChatMessageProperties")

    if message.TextSource then

        local player = game:GetService("Players"):GetPlayerByUserId(message.TextSource.UserId)

        if marketplaceService:UserOwnsGamePassAsync(player.UserId, 183539774) then --Gamepass tag


            if player:IsInGroup(32474054) then --Group tag
                -- has gamepass, and is in the group, golden
                properties.PrefixText = "<font color='#fcb103'>[VIP+]</font> "..message.PrefixText

            else 
                -- has gamepass, not in group, white silverish
                properties.PrefixText = "<font color='#e8e7e1'>[VIP]</font> "..message.PrefixText
            end

        else
            if player:IsInGroup(32474054) then --Group tag
                -- no gamepass, but in group, greenish
                properties.PrefixText = "<font color='#48e500'>[Member]</font> "..message.PrefixText
            end
        end

        return properties
    end
end
brave oasis
#

Repost 🫤

void moss
primal mapleBOT
#

studio** You are now Level 8! **studio

void moss
#

@drifting cloud

drifting cloud
#

I was reading this thread before you ping me lmao

void moss
#

ahh

#

oops

#

i am also getting this error from an alt

#

can only query local player?

drifting cloud
#

if your only want to add chat tag why not just follow this https://devforum.roblox.com/t/how-to-create-a-custom-chat-tag/735593

void moss
#

because this code is more complex as far as i know

#

it gives you different colours for different instances

#

if you are in my group you get a blue Member tag

#

if you are also vip

#

you get VIP+

#

tag

#

a golden one

#

if youn are just a vip

#

you get a silverish VIP tag

#

without the plus

drifting cloud
#

why not just edit

if tags[player.UserId] then
    speaker:SetExtraData("Tags",{tags[player.UserId]})
end

to that requirement?

void moss
#

does this fix the whole local quering issue?

drifting cloud
#

yes since that script is serverside

void moss
#

okay where do i add the code you just send me in

drifting cloud
void moss
#

devforum psot?

#

wdym

void moss
#

whhere here do i insert that part to

#

ahh

#

now i know

#

let me try

#

wait wdym by ediitng it?

#

copy the script and put the line of code you gave me inside?

#

and how do i editit

#

what do i remove

#

what do i add

#

yk?

drifting cloud
void moss
#

remove it

#

and paste the one you gave me in?

drifting cloud
#

no

#

rewrite that part using speaker:setExtraData and paste it in

#

example

void moss
#

im gonna duck up my whole code trying to do this

#

thanks though

#

time to go try it

#

like this @drifting cloud ?

drifting cloud
#

ahhhh no

void moss
# drifting cloud ahhhh no

if tags[player.UserId] then
speaker:SetExtraData("Tags",{tags[player.UserId]})
end
end) okay so i got this code

#

and this needs to put in my code somewhere

#

correct?

drifting cloud
#

ah fuck

#

sorry for that it seems the script doesn't work for new chat system

void moss
#

what happened

#

no i am sorry for breaking your balls

#

i dont even script

#

i use free shit

drifting cloud
#

I gonna find new one brb

drifting cloud
void moss
#

so what does that mean

drifting cloud
# void moss so what does that mean

since you do checks on client side, only that particular player knows it pass the gamepass and group check, other players and the server don't know. For safety reason the server marks the edited chat message as invalid thus not give it to other players
by letting the server do the check, it could tell every client that that player passed the check, and client could add chat tag themselves

drifting cloud
# void moss so how can we fix this

check whether player own the gamepass in server side then add something to the player to mark it own gamepass, finally client can check if that thing exists then add the chattag

void moss
#

i do not know how to do that

#

i have been trying to get it fixed since yesterday

#

stayed up all night also

drifting cloud
#
void moss
#

nothing since then

drifting cloud
primal mapleBOT
#

studio** You are now Level 9! **studio

drifting cloud
void moss
#

i dont want to be a lazy duck but

#

nvm ill just read the entire thing

drifting cloud
#

the server check script are at workspace->model->premiumpad->vip_giver while the chat tag script is at starterplayer->starterplayerscripts->vipnames

#

(this I meant)

void moss
drifting cloud
void moss
#

ahh

#

now i ahve it

#

and now people will see it?

drifting cloud
#

yes, wanna me join your game and try lol

void moss
#

wait wait

#

i just copy the scirpts from this demo

#

into my world?

drifting cloud
#

yes

void moss
#

without changing my local tag script?

drifting cloud
#

there are two script, you need copy both

#

disable your old script

void moss
#

what about the colours

drifting cloud
#

we gonna move things from your old script to new one

void moss
#

ahh

#

okay okay

#

hold on

#

ig ot vipnams

#

wheres the other one i cannot find it?

drifting cloud
#

the server check script are at workspace->model->premiumpad->vip_giver while the chat tag script is at starterplayer->starterplayerscripts->vipnames

void moss
#

we will make it so that the pad is no longer need ed right?

drifting cloud
#

yes

#

move the vip giver to workspace, vipnames to starterplayerscripts

void moss
#

will do

drifting cloud
#

honestly just use mine for vip giver:

local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(plr)
    if MarketplaceService:UserOwnsGamePassAsync(plr.UserId,184244314) then
        plr:SetAttribute("isVIP", true)
    end
end)
void moss
#

so paste this is in the vip giver script?

drifting cloud
#

yes

void moss
#

done

#

thanks

#

now what

drifting cloud
#

rewrite

if MarketplaceService:UserOwnsGamePassAsync(plr.UserId,184244314) then
        plr:SetAttribute("isVIP", true) 
end

to your old script, but use player:SetAttribute("yourtagname", true) instead of properties.PrefixText = "<font color='#fcb103'>[VIP+]</font> "..message.PrefixText

#

just enter anything your want for yourtagname lol

void moss
#

so these

drifting cloud
#

yes

void moss
#

change the properties.prefixtext with the text

drifting cloud
#

starting from if marketplaceService:UserOwnsGamePassAsync(player.UserId, 183539774) then --Gamepass tag

void moss
#

without removing the fonts

#

ahh

drifting cloud
#

don't do that now
just player:SetAttribute("yourtagname", true) only, no prefixtext shit

void moss
#

?

#

like this?

drifting cloud
void moss
#

ahh the whole code?

drifting cloud
drifting cloud
restive tusk
#

if its a local script then obviously you will see the changes locally

void moss
drifting cloud
#

he does check clientside which don't replicate to server

void moss
#

Like this?

drifting cloud
#

move them to server side fixes it

restive tusk
void moss
#

currently yeah

#

but we are going to move it

restive tusk
#

then the changes are gonna be local..

void moss
#

after we write the script to make it not localo

restive tusk
#

also u should know exploiters can manipulate any and all of your local scripts to their desire

restive tusk
#

basically whatever youre checking locally should be checked server side and its a bit different so

void moss
#

I don't really know my way around scripting so that is why I am here.

drifting cloud
#

I told him to add the script to vip_giver which should be server side
he doesn't know what he's talking lol

void moss
#

ah i did do that

#

here i workspace

#

where you told me to

drifting cloud
void moss
#

so what do we do now

#

one says do this

#

the othere says this

#

should we start from the beginnig or what :/

drifting cloud
void moss
#

ahh

drifting cloud
#

has you changed that yet

void moss
#

?

#

is this correct

drifting cloud
#

can you show the whole script

#

just in case

void moss
#
local textChatService = game:GetService("TextChatService")
local marketplaceService = game:GetService("MarketplaceService")

textChatService.OnIncomingMessage = function(message: TextChatMessage)

    local properties = Instance.new("TextChatMessageProperties")

    if message.TextSource then

        local player = game:GetService("Players"):GetPlayerByUserId(message.TextSource.UserId)

        if marketplaceService:UserOwnsGamePassAsync(player.UserId, 183539774) then --Gamepass tag


            if player:IsInGroup(32474054) then --Group tag
                -- has gamepass, and is in the group, golden
                player:SetAttribute("yourtagname", true)

            else 
                -- has gamepass, not in group, white silverish
                properties.PrefixText = "<font color='#e8e7e1'>[VIP]</font> "..message.PrefixText
            end

        else
            if player:IsInGroup(32474054) then --Group tag
                -- no gamepass, but in group, greenish
                properties.PrefixText = "<font color='#48e500'>[Member]</font> "..message.PrefixText
            end
        end

        return properties
    end
end
drifting cloud
#

you need edit these two to player:SetAttribute("yourtagname", true)

drifting cloud
#

why you edit in old script

void moss
#

didnt you say

#

wait

#

okay wit

#

i should jsut delete my old script

drifting cloud
#

you disable it

void moss
#

okay now i am in VIPNames

#

if MarketplaceService:UserOwnsGamePassAsync(plr.UserId,184244314) then
plr:SetAttribute("isVIP", true)
end

#

now this

drifting cloud
#

lemme type it again

#
local marketplaceService = game:GetService("MarketplaceService")
local player = game:GetService("Players")
Players.PlayerAdded:Connect(function(plr)
   --move everything from if marketplaceService:UserOwnsGamePassAsync(player.UserId, 183539774) then to  the end before return properties here
    end
end)
void moss
#

am i even in the correct coe

#

code

drifting cloud
#

no, you edit vip giver

#

I told you like 69420 times

void moss
#

like this?

drifting cloud
#

opps can you edit Players.PlayerAdded to player.PlayerAdded instead

void moss
#

like this?

drifting cloud
#

yes

#

waittt no

#

player, Not Player

void moss
#

like this

drifting cloud
#
local marketplaceService = game:GetService("MarketplaceService")
local player = game:GetService("Players")
player.PlayerAdded:Connect(function(plr)
   --move everything from if marketplaceService:UserOwnsGamePassAsync(player.UserId, 183539774) then to  the "end" before return properties here
    end)
void moss
#

like this?

drifting cloud
#

yes

#

now move your code as I written in the script

void moss
#

so i open up my old code?

#

i need more clarity

drifting cloud
#

yes

void moss
#

so tis is the old code

#

doesnt seem right

drifting cloud
#

move it

void moss
#

wait

#

so i select these

#

correct?

#

from if market place to end

#

or before return props

drifting cloud
#

just to the end before the return properties

void moss
#

ahh

#

i pasted it where the instructions were

drifting cloud
#

show it

void moss
#

tih is it

void moss
#

this

drifting cloud
#

replace prefixtext shit to setAttribute shit

void moss
#

all prefixes have been replced by setattribute

drifting cloud
#

replace whole line

void moss
#

is this correct?

drifting cloud
#

to player:SetAttribute("yourtagname",true)

void moss
#

which whole line

#

the one selected in the pic?

drifting cloud
#

the prefixtext line

#

yes'

void moss
#

like this=

drifting cloud
#

yes

void moss
#

okay good

primal mapleBOT
#

studio** You are now Level 9! **studio

drifting cloud
#

I accidently typed one more end can you delete the last end

#

then that script should be done

void moss
#

local marketplaceService = game:GetService("MarketplaceService")
local player = game:GetService("Players")
player.PlayerAdded:Connect(function(plr)
if marketplaceService:UserOwnsGamePassAsync(player.UserId, 183539774) then --Gamepass tag

    if player:IsInGroup(32474054) then --Group tag
        -- has gamepass, and is in the group, golden
        player:SetAttribute("yourtagname", true)

    else 
        -- has gamepass, not in group, white silverish
        player:setattribute("tagname",true)
    end

else
    if player:IsInGroup(32474054) then --Group tag
        -- no gamepass, but in group, greenish
        player:setattribute("tagname",true)
    end
end

end)

#

no erros

drifting cloud
#

delete the last end

void moss
#

i did

#

there were 4

drifting cloud
#

oh

void moss
#

now there a re 3

drifting cloud
#

then it is done

void moss
#

what about the colours?

drifting cloud
#

now go back to vipnames 😎

void moss
#

yess

drifting cloud
void moss
#

doesnt look good

drifting cloud
#

here's the original script

--!strict
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")

TextChatService.OnIncomingMessage = function(message: TextChatMessage)
    local props = Instance.new("TextChatMessageProperties")

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

        if player:GetAttribute("isVIP") == true then
            props.PrefixText = "<font color='#F5CD30'>[VIP]</font> " .. message.PrefixText
        end
    end

    return props    
end
void moss
#

thanks

drifting cloud
#

wait can you change the tagname to be different

#

in the vipgiver script

void moss
#

to what

#

a vip tag

#

group tag

#

local marketplaceService = game:GetService("MarketplaceService")
local player = game:GetService("Players")
player.PlayerAdded:Connect(function(plr)
if marketplaceService:UserOwnsGamePassAsync(player.UserId, 183539774) then --Gamepass tag

    if player:IsInGroup(32474054) then --Group tag
        -- has gamepass, and is in the group, golden
        player:SetAttribute("VIP+", true)

    else 
        -- has gamepass, not in group, white silverish
        player:setattribute("VIP",true)
    end

else
    if player:IsInGroup(32474054) then --Group tag
        -- no gamepass, but in group, greenish
        player:setattribute("Member",true)
    end
end

end)

#

like this?

drifting cloud
#

yes

#

now go back to vipname

#

change if player:GetAttribute("isVIP") == true then to if player:GetAttribute("VIP") == true then

void moss
#

--!strict
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")

TextChatService.OnIncomingMessage = function(message: TextChatMessage)
local props = Instance.new("TextChatMessageProperties")

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

    if player:GetAttribute("VIP") == true then
        props.PrefixText = "<font color='#F5CD30'>[VIP]</font> " .. message.PrefixText
    end
end

return props    

end

#

like this?

drifting cloud
#

yes

#

it should works, but you might want to change prefixtext line to your original one

void moss
#

wdym

#

should i check if it works first?

drifting cloud
#

yes

void moss
#

doesnt

#

15:42:23.333 UserId is not a valid member of Players "Players" - Server - VIP_GIVER:4

drifting cloud
#

can you change player.PlayerAdded:Connect(function(plr) to player.PlayerAdded:Connect(function(player)

void moss
#

in vip nams

#

or giver

drifting cloud
#

giver

void moss
#

still doesnt work

drifting cloud
#

error?

void moss
#

15:45:40.817 Attribute name contains illegal character '+' ("VIP+") - Server - VIP_GIVER:9

void moss
#

nahh comeon man

restive tusk
#

just saying

void moss
#

i dont have that button

restive tusk
#

alright

void moss
#

im using a qwertz keyboard

drifting cloud
#

like vipplus

void moss
#

but it needs to be displayed as VIP+

#

is that not possible?

restive tusk
drifting cloud
#

doesn't matter

restive tusk
#

u can display it as whatever u want

#

thats just an internal name

void moss
#

ahh

#

okay okay

#

nice

drifting cloud
#

as you change the display in vipname

void moss
#

doesnt work

drifting cloud
#

what's the error

void moss
#

no errors

#

local marketplaceService = game:GetService("MarketplaceService")
local player = game:GetService("Players")
player.PlayerAdded:Connect(function(player)
if marketplaceService:UserOwnsGamePassAsync(player.UserId, 183539774) then --Gamepass tag

    if player:IsInGroup(32474054) then --Group tag
        -- has gamepass, and is in the group, golden
        player:SetAttribute("VIPPlus", true)

    else 
        -- has gamepass, not in group, white silverish
        player:setattribute("VIP",true)
    end

else
    if player:IsInGroup(32474054) then --Group tag
        -- no gamepass, but in group, greenish
        player:setattribute("Member",true)
    end
end

end)

vip giver

#

located in workspace

#

under Premium pad

#

--!strict
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")

TextChatService.OnIncomingMessage = function(message: TextChatMessage)
local props = Instance.new("TextChatMessageProperties")

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

    if player:GetAttribute("VIP") == true then
        props.PrefixText = "<font color='#F5CD30'>[VIP]</font> " .. message.PrefixText
    end
end

return props    

end

#

vip names

#

starter playerscripts

#

do ihave to disable my old sc ript

#

like move it somewhere else?

drifting cloud
#

yes

#

just untick enabled

void moss
#

i did dsiable scripts

#

still doesnt work

#

is there something incorrect here?

drifting cloud
void moss
#

HHAAA

#

DAMN

#

aight aight

#

doesnt work

#

local marketplaceService = game:GetService("MarketplaceService")
local player = game:GetService("Players")
player.PlayerAdded:Connect(function(player)
if marketplaceService:UserOwnsGamePassAsync(player.UserId, 183826759) then --Gamepass tag

    if player:IsInGroup(32474054) then --Group tag
        -- has gamepass, and is in the group, golden
        player:SetAttribute("VIPPlus", true)

    else 
        -- has gamepass, not in group, white silverish
        player:setattribute("VIP",true)
    end

else
    if player:IsInGroup(32474054) then --Group tag
        -- no gamepass, but in group, greenish
        player:setattribute("Member",true)
    end
end

end)

#

its the correct id

drifting cloud
#

big letter matters

void moss
#

still doesnt work

#
local marketplaceService = game:GetService("MarketplaceService")
local player = game:GetService("Players")
player.PlayerAdded:Connect(function(player)
    if marketplaceService:UserOwnsGamePassAsync(player.UserId, 183826759) then --Gamepass tag


        if player:IsInGroup(32474054) then --Group tag
            -- has gamepass, and is in the group, golden
            player:SetAttribute("VIPPlus", true)

        else 
            -- has gamepass, not in group, white silverish
            player:SetAttribute("VIP",true)
        end

    else
        if player:IsInGroup(32474054) then --Group tag
            -- no gamepass, but in group, greenish
            player:SetAttribute("Member",true)
        end
    end
end)
#

giver script

drifting cloud
#

have you actually changed the gamepass id

void moss
#

183826759

#

this is the id of my gamepass

drifting cloud
#

do you have it?

void moss
#

oh wait

#

32474054

#

?????

#

this too?=?=

drifting cloud
#

like do you own it

#

Item Owned shit

void moss
#

its mine so yeah

#

this number too though right?

drifting cloud
#

it doesn't matter

#

since we only check gamepass shit now

void moss
#

ah

#

i mean i own the group

#

yk?

drifting cloud
#

yep

void moss
#

but i am not interactive

drifting cloud
#

can you print inside the if statement

#

to check if it get pass the first if statement

#

in vipgiver

void moss
#

how

#

whats printing

drifting cloud
#

if it can print it will output here

void moss
#

ah

#

sure

#

16:02:14.243 nil - Server - VIP_GIVER:5

#

did i do it worng

drifting cloud
#

print("yes") you need " symbol

void moss
#

ahh

#

thanks

#

console say

#

yes

#

omg whats that lag

drifting cloud
#

how about print in there

void moss
#

sure

#

yes - Server - VIP_GIVER:15

#

yup

drifting cloud
#

so vipgiver works correctly

void moss
#

seems to?

drifting cloud
#

can you give vipnames again

void moss
#
--!strict
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")

TextChatService.OnIncomingMessage = function(message: TextChatMessage)
    local props = Instance.new("TextChatMessageProperties")

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

        if player:GetAttribute("VIP") == true then
            props.PrefixText = "<font color='#F5CD30'>[VIP]</font> " .. message.PrefixText
        end
    end

    return props    
end
drifting cloud
#

bruh

primal mapleBOT
#

studio** You are now Level 10! **studio

drifting cloud
#

is there any other script that touch chat message

#

since your script works for me

void moss
#

let me see

#

tell me doc

#

whats the verdict?

drifting cloud
#

roblox has a way to search all script

void moss
#

we need to filter

drifting cloud
#

Ctrl+Shift+F then search TextChatService maybe

void moss
#

okay

#

found it

drifting cloud
#

stop the game first

void moss
#

its stopped

drifting cloud
#

it should be like this

void moss
#

game is not on

#

Ultimate_Thing Argument 2 missing or nil

#

wait

#

whats this

drifting cloud
#

don't know

#

it is your game

#

press this instead to open that find all thing

void moss
#

found these

drifting cloud
#

then dunno

#

delete your old script? 🤔

void moss
#

yup

drifting cloud
#

try delete your old script (chattag)

#

don't know else why it happens

void moss
#

cant test

#

wh

#

y

drifting cloud
void moss
#

i also have this profile card script

#

from roblox though

drifting cloud
#

wat

void moss
#

it sitll doesnt work

#

what is this nonsense

drifting cloud
#

don't know

void moss
drifting cloud
#

put both script in new game and test maybe?

void moss
#

wait

#

dont i need to tocuh that premium pad thing?

drifting cloud
void moss
#

because that is still there

#

also the giver

drifting cloud
#

is your script outside the funny pad thing now

void moss
#

is in workspace

#

no its not

#

its here

drifting cloud
#

put the vipgiver script to workspace

void moss
#

still doesnt work

#

omg

drifting cloud
#

test it in new game

void moss
drifting cloud
#

if new game works it means that game has soem problem

void moss
#

is this even correct

drifting cloud
void moss
#

vip names is also there

#

should i name it vipname

drifting cloud
#

open a new game and test troll

void moss
#

yes

drifting cloud
void moss
#

currently doing

#

doesnt work on the new game

#

huhhh

#

waaat

drifting cloud
#

wth

void moss
#

could it be because ajteimanaijiajdaj interactive (my group) own the pass?

#

and not me directly?

drifting cloud
#

dunno

#

add a gamepass in your new game maybe

void moss
#

wait

#

i could try a gamepass id from a game i got a gamepass from

#

right?

drifting cloud
#

yes

void moss
#

doesnt work?

#

what is this nonsense

#

the things are in the correct locations right?

drifting cloud
#

yes

void moss
#

perhaps an error in the code

#

send me the code for giver and names

#

and let me paste them

#

i bet is an error on my side

drifting cloud
# void moss i bet is an error on my side
local marketplaceService = game:GetService("MarketplaceService")
local player = game:GetService("Players")
player.PlayerAdded:Connect(function(player)
    if marketplaceService:UserOwnsGamePassAsync(player.UserId, 1256013) then --Gamepass tag
        print("yes")

        if player:IsInGroup(32474054) then --Group tag
            -- has gamepass, and is in the group, golden
            player:SetAttribute("VIPPlus", true)

        else 
            -- has gamepass, not in group, white silverish
            
            player:SetAttribute("VIP",true)
        end

    else
        if player:IsInGroup(32474054) then --Group tag
            -- no gamepass, but in group, greenish
            player:SetAttribute("Member",true)
        end
    end
end)
#
--!strict
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")

TextChatService.OnIncomingMessage = function(message: TextChatMessage)
    local props = Instance.new("TextChatMessageProperties")

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

        if player:GetAttribute("VIP") == true then
            props.PrefixText = "<font color='#F5CD30'>[VIP]</font> " .. message.PrefixText
        end
    end

    return props    
end
void moss
#

now the only thing i need to change is

drifting cloud
#

gamepass

void moss
#

the first user id

#

right

drifting cloud
#

no, just gamepass id

#

1256013

void moss
#

i did

#

and it doesnt work

#

omg

#

why doesnt it work

#

i changed only this

#

to an id i won

#

own

drifting cloud
#

do you log in different account in studio

void moss
#

no

#

Ultimate_Thing

drifting cloud
#

what does the dev console say

void moss
#

just yes

drifting cloud
#

bruh

void moss
#

do i need to enable something?

drifting cloud
#

the script themselves

#

wait

#

you disabled vip_giver

#

nvm

void moss
#

omg

drifting cloud
#

it looks disabled

drifting cloud
#

your fault, I gonna leave troll

void moss
#

:/

#

why is it working for you and not for me

drifting cloud
#

is it disabled

#

it looks disabled

#

enabled = ticked?

void moss
#

yes

#

also the other one

#

i mean eeerything is right?

drifting cloud
#

wth

#

yes

#

let's do print check inside vipnames

void moss
#

yes

drifting cloud
#

put one inside if message.TextSource then

void moss
#

nothing happened

#

O:

#

--!strict
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")

TextChatService.OnIncomingMessage = function(message: TextChatMessage)
local props = Instance.new("TextChatMessageProperties")

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

print("ItShouldWork")

    if player:GetAttribute("VIP") == true then
        props.PrefixText = "<font color='#F5CD30'>[VIP]</font> " .. message.PrefixText
    end
end

return props    

end

#

this is correct right'

drifting cloud
#

yes

void moss
#

so its an error in vipnames

drifting cloud
#

yes

#

is vipname enabled

void moss
#

but i copied it from you

drifting cloud
void moss
#

how

drifting cloud
#

since this time print only print after you send a chat message

void moss
#

ahh

#

let me send a message and look at the f9 console then

#

huhhhhhhh

#

so is it the tags?

#

are the tags a problem?

drifting cloud
#

how about another inside if player:GetAttribute("VIP") == true then

void moss
#

a print, right?

drifting cloud
#

yes

void moss
#

--!strict
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")

TextChatService.OnIncomingMessage = function(message: TextChatMessage)
local props = Instance.new("TextChatMessageProperties")

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

print("ItShouldWork")

    if player:GetAttribute("VIP") == true then
        props.PrefixText = "<font color='#F5CD30'>[VIP]</font> " .. message.PrefixText

print("HelpMe")
end
end

return props    

end

#

like this, right?

drifting cloud
#

yes

void moss
#

doesnt

#

but i am in the group

#

so

#

or am i wrong

drifting cloud
void moss
#

ahh

#

but yeah

#

it shuld sa help me

#

but it doesnt

#

wait

#

what if i try

#

bruh wait

#

what if we ned

#

need

#

the group

#

also?

#

like the code for the group

drifting cloud
#

no since givevip works

void moss
#

okay

#

but yeah

#

it didnt print out HelpMe

#

so the last line is the issue right?

drifting cloud
void moss
#

su8re

#

sure

#

currently in testing mode though

#

should trry it in edit mdoe?

drifting cloud
#

you need press play to check it

void moss
#

good

primal mapleBOT
#

studio** You are now Level 10! **studio

void moss
#

i am in play

#

so does my character have it?

drifting cloud
#

check

#

in player list

#

I don't think it is in character

#

click ulimate_thing

void moss
#

i did

#

io do have

#

attributes

#

vipplus

drifting cloud
#

wth

#

did you rename it

void moss
#

yeah cause you told

#

not +

drifting cloud
#

wait

void moss
#

use letters

drifting cloud
#

I know why

drifting cloud
#

since you got vipplus you couldnt get vip

void moss
#

hhahaahaahaahhaaaaaaaaaaaaaaaaaaaaaa

drifting cloud
#

vipnames check whether vip exists

#

but you only have vipplus

#

sooo

void moss
#

so we doo need to add the other shit

#

or am i wrong?

drifting cloud
#

change if player:GetAttribute("VIP") == true then
to if player:GetAttribute("VIPPlus") == true then

void moss
#

works

#

great

#

wonderrfull

#

omg

#

HAHAHA

#

allthough

drifting cloud
#

now change <font color='#F5CD30'>[VIP]</font> to whatever how you want it looks like

void moss
#

ah

#

wait i need to add it too though right

#

--!strict
local TextChatService = game:GetService("TextChatService")
local Players = game:GetService("Players")

TextChatService.OnIncomingMessage = function(message: TextChatMessage)
local props = Instance.new("TextChatMessageProperties")

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

print("ItShouldWork")

    if player:GetAttribute("VIPPlus") == true then
        props.PrefixText = "<font color='#F5CD30'>[VIP]</font> " .. message.PrefixText

print("HelpMe")
end
end

return props    

end

drifting cloud
#

yes you need to add two more if statement for vip and member

#

dont forget to change the prefix text
like <font color='#F5CD30'>[VIP+]</font>

void moss
#

ii also tried putting it beside here

#

didnt work

drifting cloud
#

put it after first end

#

copy the first end too

void moss
#

ahhhhhhhhhhhh

#

now lets try member

#

wait no

#

we didnt do a member yet

#

for the group

drifting cloud
#

edit the prefixtext first for vipplus

void moss
#

edit ?

drifting cloud
void moss
#

no i put a random group id

#

thats why its white

drifting cloud
#

didn't you want to call it [vip+]

void moss
#

AH

#

omg

#

:D

#

wait

#

do oyu think these

#

VIP VIP+ VIP++ VIP+++

#

things are good

#

or should they just change color

#

from silver to gold to diamond

drifting cloud
#

change color here

void moss
#

its already good

#

but what do you think about

#

it

#

is i t agood system?

#

nvm

#

okay

#

so the group tags

#

how are we gonna achieve those

void moss
#

@drifting cloud

#

sir

#

so tired fiddeling around

#

but

void moss
#

@tulip lodge