Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

VIP chat tag script doesn't work?

Asked by 4 years ago
Edited 4 years ago

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

Log in to vote
0
Answered by 4 years ago

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

Ad

Answer this question