Unable to cast token?

game.Players.PlayerAdded:Connect(function(player)
	local DataStoreTable = DataStore_Settings:GetAsync(player.UserId, Settings, {"Slot1", "Slot2", "Slot3", "Slot4", "Wall", "Floor", "Ramp", "Edit", "Rotate", "Reload", "FOV"})
	wait(0.1)
	Remote:FireClient(DataStoreTable.Slot1)
end)

Idk what this means?

3 comments

0

GetAsync only has one parameter which is the unique key you used to save the player's data (their UserId).

0

How familiar are you with DataStores? GetAsync only requires the key to get the values stored for that key: https://developer.roblox.com/articles/Data-store

0

Also, that table appears to have numeric indices, so "DataStoreTable.Slot1" would not function as you intend anyway.