so i have this script
01 | DataTable [ Player ] = { |
02 | Level = 1 , |
03 | currentEXP = 0 , |
04 | Cash = 0 , |
05 | AlphaPlayer = 1 , --Disable on full version |
06 | } |
07 | for i = 1 , #Tools do |
08 | table.insert(DataTable [ Player ] , tostring (Tools [ i ] )) |
09 | end |
10 | table.insert(DataTable [ Player ] , "CandyCorn" ) |
11 | DataTable [ Player ] .CandyCorn = true |
12 | DataStore:SetAsync(PlayerKey, DataTable [ Player ] ) |
but i cant seem to change the value of Candy Corn Before it gets saved any ideas on how to do this?
Line 1: DataTable.Player, line 8, 10, 11, 12: DataTable.Player
001 | local Module = require(game.ServerStorage.Tools) |
002 | Tools = Module.SimpleNames |
003 |
004 | local DataStoreService = game:GetService( "DataStoreService" ) |
005 | local ReplicatedStorage = game:GetService( "ReplicatedStorage" ) |
006 |
007 | local DataStore = DataStoreService:GetDataStore( "CandySimulatorGameStoreDevAlpha30" ) |
008 | local DataTable = { } |
009 |
010 | local AutosaveInterval = 60 |
011 | local AutosaveTick = 0 |
012 |
013 | local PlayerList = Instance.new( "Folder" ) |
014 | PlayerList.Name = "PlayerList" |
015 | PlayerList.Parent = ReplicatedStorage |