ok so here is my code
game.Players.PlayerAdded:Connect(function(p)
slots = Instance.new('Folder', p)
slots.Name = 'slots'
slot1 = Instance.new('Folder', slots)
slot1.Name = 'slot1'
slot2 = Instance.new('Folder', slots)
slot2.Name = 'slot2'
slot3 = Instance.new('Folder', slots)
slot3.Name = 'slot3'
slot4 = Instance.new('Folder', slots)
slot4.Name = 'slot4'
weapons = Instance.new('Folder', p)
weapons.Name = 'weapons'
a = game.ReplicatedStorage.tool:Clone()
a.Parent = weapons
b = game.ReplicatedStorage.tool:Clone()
b.Parent = weapons
for i,o in ipairs(p.weapons:GetChildren()) do
for v,b in ipairs(p.slots:GetChildren()) do
if b:FindFirstChild('tool') == nil then
print('it broke!')
break
else
o.Parent = b
end
end
end
so what this is (Suppose) to do is make a weapons folder, a slots folder and inside the slots folder 4 other folders and then the game will grab weapons from the replicated storage andn put it in the weapons folder then this is were im lost im trying to get all of the weapons inside the weapons folder and put it in a slot individually if that makes since so if a slot has a weapons inside of it ('tool') then it would move on to the next slot and put it there can somone please guide me on how to do this?

1 comment
it worked thanks man!