#VIP name and title

1 messages · Page 1 of 1 (latest)

stone bough
#

yall anyone know vip script that got VIP name above the head and also VIP title in chat

oblique thistle
stone bough
oblique thistle
#
--!strict
local TextChatService = game:GetService("TextChatService")
local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")

local gamepassId = 1234 -- Replace with your gamepass!

TextChatService.OnIncomingMessage = function(message: TextChatMessage)
    local props = Instance.new("TextChatMessageProperties")
    
    if message.TextSource then
        local player = Players:GetPlayerByUserId(message.TextSource.UserId)
        local hasGamepass = MarketplaceService:UserOwnsGamePassAsync(player.UserId, gamepassId) -- Check if user owns the gamepass
        
        if hasGamepass then
            props.PrefixText = "<font color='#F5CD30'>[VIP]</font> " .. message.PrefixText
        end
    end
    
    return props    
end