I am trying to clone a tool into the player's backpack when they spawn, but I get an error saying "Attempt to index nil with Backpack" The error appears at line 5. The script is in StarterCharacterScripts.
local player = game.Players.LocalPlayer
local Cloned = game.ReplicatedStorage.Fist_tool:Clone()
print("Cloned")
Cloned.Parent = player.Backpack
print("Backpack")
I would be very grateful if you can help.

2 comments
it has to be in a local script
Lol how didn't I notice that