So i made a script where it will say if a admin joined but it does not work!
--admin joined game script
game.Players.PlayerAdded:connect(function(plr)
if plr.leaderstats.Admin.Value == "YES" then
game.StarterGui:SetCore("ChatMakeSystemMessage", {
Text = "An admin has joined the game";
Font = Enum.Font.SciFi;
Color = Color3.new(255,0,0);
FontSize = Enum.FontSize.Size96;
})
end
end)

5 comments
Try using :WaitForChild(leaderstats)
What's the error? We need more information.
your leaderstats value must be wrong then. It has to be a StringValue if its holding a string, not an IntValue. It also possible that the value is "yes" rather than "Yes", Upper case and lower case matter
you could've used a boolvalue
I Checked but it doesn't work