Hello, in my game, depending on which value the player has, 0-4, it unlocks a different level. When the first cutscene ends, it'll go to the level selection, and then use the script that detects the players leaderstats. As so here:
game.Players.PlayerAdded:Connect(function(coolguy)
if coolguy.leaderstats.Cash.Value == 0 then
--my code would go here.
end
end)
Upon the script being ran (undisabled) when the player gets to the menu, it does nothing at all. (It's nothing wrong with the datastore.)
Any working answer is appreciated, thanks!

1 comment
This still didn't help, I mainly need help with checking the value properly, and identifying the player and their leaderstats without PlayerAdded.