My script isn't detecting a leaderstat value? Here is the script:
Sever Script
local purchases = game.Players.LocalPlayer.leaderstats.Purchases.Value
game.Players.PlayerAdded:connect(function(Player)
if Player.leaderstats.Purchases == 1 then
game.StarterGui.ScreenGui.Frame1.Desert.Visible = true
else
game.StarterGui.ScreenGui.Frame1.Desert.Visible = false
end
end)
Does anyone know how to fix this?

2 comments
oh right, I guess I must not have seen that lol
It still didn't work: