Hi! So I followed a video about saving multiple values for datastores and when I test it in Roblox, the datastores not working. So, I use prints to find the source of the problem and the problem is that a function for getting a table is only getting the value 0 for the int values.
The bottom line is the function for getting a table of int values is only getting the values as 0. How can I fix this?
local function create_table(plr1)
local Player_Per = {}
for _, Personal in pairs(plr1.PlayerInGameInfo:GetChildren()) do
Player_Per[Personal.Name] = Personal.Value
end
return Player_Per
end
-- Returns the list of the Int Value Names-
-- and the Int Value's Value, but all the Values are 0