This script is in a text label and is supposed to show the player his Money from the leaderboard. But this script does not work and the output isn't putting up errors. Please help
game.Players.PlayerAdded:connect(function(player)
wait(1)
player:WaitForDataReady()
repeat wait() until player:FindFirstChild("leaderstats")
if player.DataReady then
if player:findFirstChild("leaderstats") then
local Money = player.leaderstats.Money
script.Parent.Text = Money
end
end
end)
