Simple coding Support, gamepass script


Still looks really red…even with that line removed.

i edited the script try again.

I edited this and it seems to continue…

So I pasted your new script. Do I need to put " in some places?

Try this:

local MarketplaceService = game:GetService("MarketplaceService")
local GamepassID = 66893336

game.Players.PlayerAdded:Connect(function(Player) 

	if Player.UserId ~= game.CreatorId then

		if MarketplaceService:UserOwnsGamePassAsync(Player.UserId, GamepassID) then
			local tags = {
				{
					TagText = "VIP",
					TagColor = Color3.fromRGB(255, 255, 0) 
				}
			}
			local ChatService = require(game:GetService("ServerScriptService"):WaitForChild("ChatRunnerService").ChatService) 
			local speaker = nil
			while speaker == nil do 
				speaker = ChatService:GetSpeaker(Player.Name)  
				if speaker ~= nil then
					break  
				end
				wait(0.01) 
			end
			speaker:SetExtraData("Tags",tags) 
			speaker:SetExtraData("ChatColor",Color3.fromRGB(255, 255, 0))
		end

	end
end)

its cuz there is “–” causing to do that
i’ve edited the script and replaced all of them
here

local MarketplaceService = game:GetService(“MarketplaceService”)
local GamepassID = 66893336 -- Change ‘000000’ to your Gamepass ID

game.Players.PlayerAdded:Connect(function(Player) --When player join in game
if Player.UserId == YourUserId then return end
if MarketplaceService:UserOwnsGamePassAsync(Player.UserId, GamepassID) then -- If player have gamepass…
local tags = {
{
TagText = “VIP”, -- Tag Name, You can change to whatever you like
TagColor = Color3.fromRGB(255, 255, 0) -- Tag Color, You can change to color you like
}
}
local ChatService = require(game:GetService(“ServerScriptService”):WaitForChild(“ChatServiceRunner”).ChatService) -- Requires ChatService
local speaker = nil -- speaker is nil
while speaker == nil do -- While speaker is nil do…
speaker = ChatService:GetSpeaker(Player.Name) -- Get speaker from player
if speaker ~= nil then
break-- If speaker is nil then break
end
wait(0.01) -- wait
end
speaker:SetExtraData(“Tags”,tags) -- Set tags
speaker:SetExtraData(“ChatColor”,Color3.fromRGB(255, 255, 0)) -- Chat Color, You can change to color you like
end
end)

If I use this script where do I put my name and or user id?

I will do this again. Wait a second please.

This one worked now. Thank you very much for the help!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.