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)
==
checks if two values are the same, then it wouldn't change your rank if the amount of points never hit 10. Ie, start at 3 and increment by two. Consider using operators >=
, <=
, >
, or <
.