i made a script that gives a player a tool, but when i test it it doesn't work and in the output it says:
Attempt to index nil with 'Backpack'
Here's the script:
local trowel = assets.Trowel:Clone()
trowel.Parent = game.Players:GetPlayerFromCharacter(player).Backpack
help

2 comments
Are these the only 2 lines in your script? What is 'player'?
Your question has insufficient information. Does the player variable come from a PlayerAdded event? Does the player variable come from a For -- In -- Do? The question is too varying for me to give a proper answer.