Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

In my script it says Argument 2 missing or nil and i dont know how to fix it? [closed]

Asked by 4 years ago
Edited 4 years ago
01local PlayerDataManager = {}
02 
03local DataStoreService = game:GetService("DataStoreService")
04local taps = DataStoreService:GetDataStore("Taps")
05 
06--Table to hold player data
07local sessionData = {}
08 
09--Function to add player to sessionData
10local function setupPlayerData(Player)
11    print("Test to setup")
12end
13 
14--This function will save player data when they leave the game
15local function saveOnExit(Player)
View all 32 lines...

16:56:54.622 - Clicking(Beta) auto-recovery file was created

There was an error when saving data

16:57:06.559 - Argument 2 missing or nil

16:57:07.085 - Disconnect from ::ffff:127.0.0.1|59144

Closed as Non-Descriptive by JesseSong

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?