Scripts in my game have been freezing lately, both in Studio and online, and I’ve figured out that lines past datastore GetAsync functions just seem to not execute occasionally. Even ones wrapped in pcalls and simple print functions (the functions themselves don’t execute either, so it’s not an error caused by them). I haven’t updated my game in a week, so I know it’s not something I’ve done. Why is this happening? I can’t work around this because I need to load player data when the game starts.
print("Preparing to load data") -- Prints normally local saved = nil; local loadsuccess = pcall(function() saved = datastore:GetAsync(player.UserId) end) print("Attempted to load data") -- Does not print, further code is not executed