local MPS = game:GetService("MarketplaceService")
local IS = game:GetService("InsertService")
local ServerScriptService = game:GetService("ServerScriptService")
local ChatService = require(ServerScriptService:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
local Players = game:GetService("Players")
local Item1 = 112591865
local Item2 = 162857357
ChatService.SpeakerAdded(function(playerObj)
local Speaker = ChatService:GetSpeaker(playerObj)
if MPS:UserOwnsGamePassAsync(playerObj.UserId, 9898859) then
Speaker:SetExtraData("Tags", {{TagText = "POPPIN EXCLUSIVE", TagColor = BrickColor.new("Really red").Color}})
end
end)
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
if MPS:UserOwnsGamePassAsync(player.UserId, 9898859) then
local Gear1 = IS:LoadAsset(Item1)
local Gear2 = IS:LoadAsset(Item2)
Gear1:FindFirstChildOfClass("Tool").Parent = player.Backpack
Gear2:FindFirstChildOfClass("Tool").Parent = player.Backpack
end
end)
end)
-- --ROBLOX STUDIO TUTORIAL--
--https://youtu.be/Pctc8ryB0tk--
--If you buy the gamepass playing the game , close and open the chat or reset!
--Thanks for use this for your game :3--
local gamepassId = 8556793 -- ID of your gamepass
local service = game:GetService("MarketplaceService") -- Buy the gamepass ( Dont delete )
game.Players.PlayerAdded:Connect(function(player)
if (service:UserOwnsGamePassAsync(player.UserId, gamepassId)) then -- If you buy the gamepass playing the game
local tags = {
{
TagText = "VIP", -- Change this to your gamepass name or tag name!
TagColor = Color3.fromRGB(0, 255, 255) -- Change this to your color tag!
}
}
local ChatService = require(game:GetService("ServerScriptService"):WaitForChild("ChatServiceRunner").ChatService)
local speaker = nil
while speaker == nil do
speaker = ChatService:GetSpeaker(player.Name)
if speaker ~= nil then break end
wait(0.01) -- Dont change this or ur game can crash!
end
speaker:SetExtraData("Tags",tags) -- Extra data ( Extra data is roblox filtering chat "#" this is t h e color of chat tags)
speaker:SetExtraData("ChatColor",Color3.fromRGB(255, 255, 0)) -- Change this to your color texts and tags!
end
end)
A note: SpeakerAdded fires with a string, not a player instance. You need to correct this by first getting the speaker associated with the speaker, then the player if applicable.
ChatService.SpeakerAdded:Connect(function (speakerName)
local speaker = ChatService:GetSpeaker(speakerName)
local player = speaker:GetPlayer()
if player and MPS:UserOwnsGamePassAsync(player.UserId, 9898859) then
speaker:SetExtraData("Tags", {{TagText = "POPPIN EXCLUSIVE", TagColor = BrickColor.new("Really red").Color}})
end
end)