Knives = {
ClassicSword = 0,
Clown = 0,
Default = 0,
ROBLOX = 0,
RainbowSeer = 0,
Seer = 0,
DevSword = 0,
AzureSword = 0,
Death = 0
},
Basicly, I have a folder in rep storage and every tool i want to create something like
ToolName = 0,
But, when I try it it ends up like [“Toolname”] = 0 or [#ToolNumberOnFolderList ] = 0
flkfv
(flkfv)
June 27, 2021, 8:31pm
2
You’d loop through that folder and add something into that table.
local knives = {}
for _, knife in pairs(folder:GetChildren()) do
knives[knife.Name] = 0
end
print(knives)
But it comes out like [“AzureSword”] instead of AzureSword.
Or is it the same thing?
flkfv
(flkfv)
June 27, 2021, 8:33pm
4
They are the same thing.
(max char limit)
How come it creates something like this
flkfv
(flkfv)
June 27, 2021, 8:35pm
6
What’s your current script?
ProfileService by the way.
local knives = {}
for _, knife in pairs(game.ReplicatedStorage.Knives:GetChildren()) do
knives[knife.Name] = 0
end
-- DataProfile34345
local GameProfileStore = ProfileService.GetProfileStore("TestRun3344", {
stats = {
coins = 1,
kills = 1,
},
Knives = {knives},
CurrentKnifeValue = "Default",
Badges = {}
})
I just don’t want them to be in a folder called “1”