Hi,
I'm trying to save the value of an IntValue that's a descendant of a Player, but it doesn't seems to work.
game.Players.PlayerAdded:connect(function(p)
print('1')
p:WaitForDataReady()
print('2')
p.PrisonTime.Changed:connect(function()
print('3')
while wait(1) do
print('4')
p:SaveNumber("PrisonTime", p.PrisonTime.Value)
print("saved")
end
end)
end)
It doesn't print 'saved'. Any tips?

4 comments
Attempted your fix, updated script as shown above. Never reaches the second print.
Are you testing on an actual ROBLOX game server, and also receiving no errors?
Oh, no. Let me test it out now.
I just tested, worked flawlessly. Thank you so much.