I want to check if the player has joined a Roblox group, and if so, give him a special chat tag (and if he leaves, remove the tag). Surprisingly, there are absolutely zero tutorials on YouTube, and the DevHub was unhelpful. Any ideas on how to do this? Thanks in advance.
4 Likes
check this article
https://developer.roblox.com/en-us/api-reference/function/Player/IsInGroup
3 Likes
You can use this.
local Players = game:GetService("Players")
local GroupId = 0 --your group id
Players.PlayerAdded:Connect(function(Player)
if(Player:IsInGroup(GroupId)) then
--code if player is in group
end
end)
9 Likes
Thanks, but how do I add custom tags?
An incredibly quick google search answers this question. Maybe do your own research before coming here…
2 Likes
There are likely hundreds, possibly thousands of threads regarding determining if a player is in a group or not & chat tags.
There are actually zero. i’ve searched everywhere.
https://developer.roblox.com/en-us/api-reference/function/Player/IsInGroup
What browser/search engine are you using?
3 Likes