I am trying to make chat tags, 3 different ones, VIP, MVP and MIVP. VIP and MVP have specific gamepasses and MIVP if both VIP and MVP gamepasses are purchased.
local MS = game:GetService("MarketplaceService")
local VIPID = 7187215
local VIPID1 = 7208245
game.Players.PlayerAdded:connect(function(plr)
local tags = Instance.new("Folder", plr)
tags.Name = "Tags"
if MS:UserOwnsGamePassAsync(plr.UserId,VIPID1) and MS:UserOwnsGamePassAsync(plr.UserId,VIPID) then
local newTag = Instance.new("IntValue", tags)
newTag.Name = "MIVP" --- in the "Worthy" put what you want your tag to be
local chatcolor = Instance.new("Color3Value", newTag)
chatcolor.Name = "ChatColor"
chatcolor.Value = BrickColor.new("Forest green"). Color
local tagColor = Instance.new("Color3Value", newTag)
tagColor.Name = "TagColor"
tagColor.Value = Color3.fromRGB(31, 128, 29)
else if
MS:UserOwnsGamePassAsync(plr.UserId,VIPID) then --- Replace GoogleResearch with your name
local newTag = Instance.new("IntValue", tags)
newTag.Name = "VIP" --- in the "Worthy" put what you want your tag to be
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)
else if
MS:UserOwnsGamePassAsync(plr.UserId,VIPID1) then --- Replace GoogleResearch with your friends name
local newTag = Instance.new("IntValue", tags)
newTag.Name = "MVP" --- in the "Worthy" put what you want your tag to be
local chatcolor = Instance.new("Color3Value", newTag)
chatcolor.Name = "ChatColor"
chatcolor.Value = BrickColor.new("Toothpaste"). Color
local tagColor = Instance.new("Color3Value", newTag)
tagColor.Name = "TagColor"
tagColor.Value = Color3.fromRGB(0, 255, 255)
end
end
end
end)
(I used a model for some of the script)

4 comments
Your writing else if as two words, for an else if statement to work you need to type it as one word.
What do you mean by that? do I need to remove the second else?
Instead of writing 'else if' as two separate words, trying writing them as one word 'elseif'
ok