In the player, there are Intvalues as well as Boolvalues. I tried getting all Boolvalues (All Roles that were purchased by the player), but the output is just blank. There is no error and the printmessage doesn't appear.
RolesTable = {}
game.Players.PlayerAdded:Connect(function(plr)
plr:WaitForChild("Stats")
local Roles = plr.Stats:GetChildren()
for i,v in pairs(Roles)
do
if v == true
then
table.insert(RolesTable,1,v)
end
end
print(table.concat(RolesTable))
end)
Thanks in advance.
