savebutton.MouseButton1Down:connect(function()
print("1")
player:WaitForDataReady()
print("2")
if player.DataReady == true then
print("3")
saveStage(player, player.leaderstats:WaitForChild("Stage").Value)
print("4")
frame.Visible = false
end
end)
This script only prints 1, and I have tried it in a Server and a Local Script, with no difference. Why doesn't it work?

2 comments
Is this in Server mode or studio mode?
I've tried everything, studio, server and online