In todays video I show you how to make a gamepass only chat tag in Roblox Studio. I Hope you enjoyed the video, Have a lovely rest of your day! If you are a bit confused what to do, Feel free to message me on Discord and Ill help you out!
NEW! IRL FloppyFish Merch Store: [ Ссылка ]
Script :
local GamepassID = 1234567890 -- Change this to your Gamepass ID
local MarketlaceService = game:GetService("MarketplaceService")
game.Players.PlayerAdded:Connect(function(player)
if (MarketlaceService:UserOwnsGamePassAsync(player.UserId, GamepassID)) then
local Tags = {
{
TagText = "GamepassName", -- Change GamepassName to whatever you want the players Chat Tag name to be.
TagColor = Color3.fromRGB(0, 170, 255) -- You can change the color of the Chat Tag Text here.
}
}
local TextChatService = require(game:GetService("ServerScriptService"):WaitForChild("ChatServiceRunner").ChatService)
local Speaker = nil
while Speaker == nil do
Speaker = TextChatService:GetSpeaker(player.Name)
if Speaker ~= nil then break end
wait(0.01)
end
Speaker:SetExtraData("Tags",Tags)
Speaker:SetExtraData("ChatColor",Color3.fromRGB(255, 255, 255)) -- You can change the color of the Main chat text here.
end
end)
If you would like to support me even more, Super Thanks is also another way to show your appreciation!
🌟 Floppys Discord Server: [ Ссылка ]
🌟 Floppys Roblox Game : [ Ссылка ]...
Roblox Studio Tutorial
Roblox Studio
Studio Tutorials
Ещё видео!