RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a chat tag"
-- server script for creating a chat tag local Players = game:GetService("Players") function onPlayerAdded(player) local tag = Instance.new("StringValue") tag.Name = "ChatTag" tag.Value = "[Guest]" tag.Parent = player end Players.PlayerAdded:Connect(onPlayerAdded) function onPlayerChatted(message, player) local tag = player:FindFirstChild("ChatTag") if tag then local playerName = player.Name local formattedMessage = string.format("%s %s: %s", tag.Value, playerName, message) return formattedMessage end end game:GetService("Chat").Chatted:Connect(onPlayerChatted)