Assuming you incorrectly used DataStores, To insert/modify data in a DataStore array you must use SetAsync, UpdateAsync and RemoveAsync.
SetAsync creates a new value and modifies it to the parameters specified.
Ex.
local DataStoreService = game:GetService("DataStoreService")
local ExampleStore = DataStoreService:GetDataStore("ExampleData")
ExampleStore:SetAsync("ExamplePlayer", 50)
This creates a new value ExamplePlayer and sets it's corresponding value to 50.
UpdateAsync modifies an existing value to the parameters specified.
Ex.
local DataStoreService = game:GetService("DataStoreService")
local ExampleStore = DataStoreService:GetDataStore("ExampleData")
ExampleStore:UpdateAsync("ExamplePlayer", 50)
This changes ExamplePlayer's corresponding value to 50
RemoveAsync removes a value in the array.
Ex.
local DataStoreService = game:GetService("DataStoreService")
local ExampleStore = DataStoreService:GetDataStore("ExampleData")
ExampleStore:RemoveAsync("ExamplePlayer")
This removes ExamplePlayer and its corresponding value
For more see Data Stores.
3 comments
OMG IT WORKED THANK YOU SO MUCH Bssiemeow
OMG IT WORKED THANK YOU SO MUCH Bssiemeow
Thats all good :)