i want to change the rank to beginner when a player get 10 points but the ranking does not change any help?
local player = game.Players.LocalPlayer
if player.leaderstats.Points.Value == 10 then
player.leaderstats.Rank.Value = "Beginner"
end
and this is my leaderboard script
game.Players.PlayerAdded:Connect(function(player)
local stats = Instance.new("Folder", player)
stats.Name = "leaderstats"
local Points = Instance.new("IntValue", stats)
Points.Name = "Points"
Points.Value = 0
local Rank = Instance.new("StringValue", stats)
Rank.Name = "Rank"
Rank.Value = "Noob"
end)

2 comments
Are you sure you have exactly 10? If you more than change line 3 to: if player.leaderstats.Points.Value >= 10 then
is that the enitire leaderboard script? b/c if so, no doubt any changes will get saved