Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

VIP chat tag script doesn't work?

Help me please, Im trying to make an VIP Chat Tag but it doesn't work at all! Other chat tag working good but expect this VIP Chat Tag, can anyone solve this for me please?

local MarketplaceService = game:GetService("MarketplaceService")

game.Players.PlayerAdded:connect(function(plr)
	local tags = Instance.new("Folder",plr)
	tags.Name = "Tags"
	if plr.Name == "OriginalDevelop" then
		local newTag = Instance.new("IntValue",tags)
		newTag.Name = "Creator"
		local chatColor = Instance.new("Color3Value",newTag)
		chatColor.Name = "ChatColor"
		chatColor.Value = BrickColor.new("Really red").Color
		local tagColor = Instance.new("Color3Value",newTag)
		tagColor.Name = "TagColor"
		tagColor.Value = Color3.fromRGB(255, 0, 0)
	elseif MarketplaceService:UserOwnsGamePassAsync(plr.UserId, 8882107) then
		local newTag = Instance.new("IntValue",tags)
		newTag.Name = "????VIP????"
		local chatColor = Instance.new("Color3Value",newTag)
		chatColor.Name = "ChatColor"
		chatColor.Value = BrickColor.new("New Yeller").Color
		local tagColor = Instance.new("Color3Value",newTag)
		tagColor.Name = "TagColor"
		tagColor.Value = Color3.fromRGB(255, 255, 0)
	elseif plr.Name == "Humanisdied" then
		local newTag = Instance.new("IntValue",tags)
		newTag.Name = "Special Member"
		local chatColor = Instance.new("Color3Value",newTag)
		chatColor.Name = "ChatColor"
		chatColor.Value = BrickColor.new("New Yeller").Color
		local tagColor = Instance.new("Color3Value",newTag)
		tagColor.Name = "TagColor"
		tagColor.Value = Color3.fromRGB(255, 255, 0)
	elseif plr:WaitForChild("BetaTester").Value == true then
		local newTag = Instance.new("IntValue",tags)
		newTag.Name = "Beta Tester"
		local chatColor = Instance.new("Color3Value",newTag)
		chatColor.Name = "ChatColor"
		chatColor.Value = BrickColor.new("Really red").Color
		local tagColor = Instance.new("Color3Value",newTag)
		tagColor.Name = "TagColor"
		tagColor.Value = Color3.fromRGB(255, 0, 0)
	end
end)

The VIP CHat Tag Script were from line 15 -> line 23! The id was correctly!

1 answer

You did not define the "plr" variable. You can do that with this code. local plr = game.Players.LocalPlayer

This discussion is preserved as it was. New answers, comments, and votes are closed.