I'm trying like crazy to store my character customization data and I don't know what to do now
Error
1 | 104 : Cannot store Array in DataStore |
2 | Stack Begin |
3 | Script 'ServerScriptService.DataStore' , Line 83 |
4 | Stack End |
5 | 104 : Cannot store Array in DataStore |
6 | Stack Begin |
7 | Script 'ServerScriptService.DataStore' , Line 111 |
8 | Stack End |
Datastore Script
001 | local DataStore = game:GetService( "DataStoreService" ):GetDataStore( "Test11" ) |
002 |
003 |
004 | --CREATES THE PLAYER DATA FOLDER |
005 | game.Players.PlayerAdded:connect( function (plr) |
006 | --USER DATA KEY |
007 | local Key = "O-" ..plr.userId |
008 |
009 | --DATA FOLDER |
010 | local PlrFolder = Instance.new( "Folder" , plr) |
011 | PlrFolder.Name = "Data" |
012 |
013 | --CUSTOMIZATION DATA |
014 | local Character = Instance.new( "Folder" , PlrFolder) |
015 | Character.Name = "Character" |
Simply, (Sorry this is going to SUCK to fix) You cannot save physical objects (Anything created with Instance.new()) You can only save data. So Instead of creating a Color3 with Instance.new("Color3Value") Then changing that data, you would have to save it in a table or something. (You might be able to save a Color3.new())