Age Group Displayer - Let people know who they can and can't chat with

Hi all,

Grab it here: https://create.roblox.com/store/asset/128466254895026/Age-Group-Displayer

Age groups can cause a lot of confusion among players, especially when they don’t know who can read their messages in-game.

I made a quick fix for this, an icon is displayed on top of players you can’t chat with!

How To Use

Just grab it on the Roblox marketplace and insert it in your game. It will be properly set up automatically.

https://create.roblox.com/store/asset/128466254895026/Age-Group-Displayer

Feel free to edit it as you wish to make it fit your systems.

25 Likes

I absolutely LOVE this idea! Developers should totally take note of this when adding it to games, It would make chatting, trading and general tasks much more easier than assuming they can see my messages. One thing I would also like to see is Roblox implementing a feature to sort servers BY age groups rather than joining a dead server. Keep it up though! :clap:

2 Likes

Agreed! It would be an instant QoL improvement.

1 Like

Are you sure Roblox allows this?

Allowing users an alternative for custom chat would be against the Roblox ToS.

My model does not provide such alternative, rather it only removes the confusion among the players who can’t tell whether or not the player they’re interacting with are within their age group.

The model runs a simple CanUsersChatAsync method check.

3 Likes

So.. Is this normal? (LuauHeap)

Thank you for letting me know about this. The problem was found and was promptly fixed. This should no longer happen in the updated version of the model.

Tried this out but according to my users this isn’t working out-of-the-box like intended. I’ve checked the output and see no errors, so I’m not sure what’s up. Anything you want me to look for or any prints I can put in code to help debug this?

I tried this out myself as well, after debugging found that the target character nil. Something I did was sending the player rather the character to the client and then the client waits for the character.

1 Like

Thank you for letting me know about this. I reviewed the code and tried it for myself in a different place. Here’s my solution:

Players.PlayerAdded:Connect(function(Player: Player)
	Player.CharacterAppearanceLoaded:Connect(function(Character: Model)
		task.wait(3) -- I've increased the wait from task.wait() to task.wait(3)
		for i, v in pairs(game.Players:GetPlayers()) do
			if v~=Player then
				if checkAgeGroup(v, Player) ~= true then
					DisplayEvent:FireClient(v, Character)
					DisplayEvent:FireClient(Player, v.Character)
				end
			end
		end
	end)
end)

Increasing the wait time has worked for me, so the TargetCharacter in the client script is not nil. I’ve updated the model.