I’m having an issue with pcall function in my datastore script. When player joins the game my script tries to load player’s data, but the pcall returns an error and the game kicks the player (Player gets kicked if pcall returns an error 3 times).
I’m aware that this could have a simple solution, but I can’t seem to find anything even though I’m searching for the past hour. Thanks!
:GetAsync() doesn’t error if the key you tried doesn’t exist, it just returns nil. The error is caused by something else. Are you sure that plr and PlrData are both defined?