I need you to tell me, this script what need?

If you’re ripping the code from a video at least link it

1 Like

Sure, it works, but how would it be with UserId to detect more people?

Use the same code, like this:

local tags = {
[USERIDHERE] = {TagText = "CHATNAMETAGHERE", TAGNAMEHERE = Color3.fromRGB(COLOR3VALUEHERE)};
[USERIDHERE] = {TagText = "CHATNAMETAGHERE", TAGNAMEHERE = Color3.fromRGB(COLOR3VALUEHERE)};
[USERIDHERE] = {TagText = "CHATNAMETAGHERE", TAGNAMEHERE = Color3.fromRGB(COLOR3VALUEHERE)};
}

And replace them all with different UserId’s.

I don’t mean that, but that people I don’t know are automatically tagged in the chat

also try using remote events to make it replicate but I still wouldn’t do it from the client at all, exploiters can do the FireServer

Then in the script, check if the player’s userid is in the table, if their userid is in the table, make them tagged.

1 Like

There is no script that automatically detects and puts in with a “UserId” script

No like, make a if statement in the same script that detects if the player’s userid is in the table.

What do you mean? I think you just copied and pasted a script that you can’t solve by yourself. I recommend you to learn the basics of scripting first.

UserId is a property of a player.

2 Likes

That’s why I ask for help, bro

Screenshot_37

1 Like

If you don’t understand what the script does, we can’t really help you, since you don’t understand the script.

When you ask for help on devforum, we expect you to know at least the basics of scripting, but instead you just ask a question that all basic scripter should’ve already known.

Tell me whats the error in the code now.

His goal here is to give players who own a Premium membership a special tag, so in this case I doubt a key-value table with UserIDs is actually needed. Nonetheless, it’s a good concept.

2 Likes

I wouldnt do “game.Players” if you already defined players with get service. Get service is better practice and it is already defined so you can do Players.PlayerAdded

Ohh, alright, but they should still check the premium players’ UserId, because what if they change their username.

If he wants to display their name I would do plr.DisplayName, actually

What do you mean? I don’t remember a .DisplayName property of players. Although Humanoids do have those.

Clarification: Humanoid.DisplayName (roblox.com)

1 Like

display name will be a new update where you can change it to whatever, it is a new member or players: Player | Documentation - Roblox Creator Hub

I never knew there’s a DisplayName in players?

1 Like

I’m only familiar with the humanoid property of that, not the players, but thanks for telling me.

1 Like