This script gives the player blocks(tools) to us for building, I put the blocks in a folder and here is the script...
local function GiveBlocks()
local getBlocks = game.ReplicatedStorage.Blocks:GetChildren()
local getPlayers = game.Players:GetChildren()
for i = 1, #getPlayers do
for i = 1, #getBlocks do
local BlockCopy = getBlocks[i]:Clone()
BlockCopy.Parent = getPlayers[i].Backpack
end
end
end
The blocks are:
Cobblstone Grass Wooden Planks
But only the Cobblestone is given and it prints this error message:
11:38:15.966 - ServerScriptService.RoundHandler:33: attempt to index nil with 'Backpack'
