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

Question about Player joined script can someone help me?

Asked by
Vxpper 101
4 years ago

Hello, I made this script, and I am wondering if someone can help me add a [VIP] tag before their name if they own a gamepass, I tried adding functions, didn't work, adding multiple pcall(function()'s and I just really have no idea how to make this work

pcall(function()
game.StarterGui:SetCore("ChatMakeSystemMessage", {
Text = "[Server]: " .. game.Players.LocalPlayer.Name.. " has joined the server!";
Color = Color3.new(255,255,0);
Font = Enum.Font.SourceSansBold;
FontSize = Enum.FontSize.Size24;
})
end)


game.Players.ChildAdded:connect(function(player)
    game.StarterGui:SetCore("ChatMakeSystemMessage", {
        Text = "[Server]: " ..player.Name.. " has joined the server!";
        Color = Color3.new(255,255,0); --0,128,0
        Font = Enum.Font.SourceSansBold;
        FontSize = Enum.FontSize.Size24;
    })
end)

game.Players.ChildRemoved:connect(function(player)
    game.StarterGui:SetCore("ChatMakeSystemMessage", {
        Text = "[Server]: " ..player.Name.. " has left the server!";
        Color = Color3.new(255,255,0);
        Font = Enum.Font.SourceSansBold;
        FontSize = Enum.FontSize.Size24;
    })
end)

Answer this question