My leaderstats value isn't being recognised by a local script. I have had many attempts with this script but none have worked, here is my local script: game.Players.PlayerAdded:connect(function()
if game.Players.LocalPlayer.leaderstats.Purchases.Value == 1 then
print("Hi")
game.StarterGui.ScreenGui.Frame1.Desert.Visible = true
else
game.StarterGui.ScreenGui.Frame1.Desert.Visible = false
end
end)
This is what it looks like: https://ibb.co/0MmHShY and this is what it's supposed to look like: https://ibb.co/NYRpngM Thanks if anyone can help!

2 comments
Thanks!
Thank you so much! I have been searching everywhere for this!