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)
