Leaderstat gui not working after a player resets?
I made a Profile Gui which allows players to veiw their stats (Levels, Exp, Coins, etc,) and I made this script:
1 | local cash = script.Parent.Parent.Parent.Parent.Parent.leaderstats:WaitForChild( "Coins" ) |
4 | script.Parent.Text = "Coins: " ..cash.Value |
7 | cash.Changed:connect(changed) |
Everything worked fine in studio and in game. I tested it out with a couple of my friends and it was all working for them. But once we all reset the script no longer showed the stats. Is there something I did wrong? (The script above is for the Coins Stat.)