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

Unable to cast token?

Asked by 5 years ago

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?

0
GetAsync only has one parameter which is the unique key you used to save the player's data (their UserId). hellmatic 1523 — 5y
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 xPolarium 1388 — 5y
0
Also, that table appears to have numeric indices, so "DataStoreTable.Slot1" would not function as you intend anyway. User#25115 0 — 5y

Answer this question