Where is the script placed? The only place where this script would work would be the players Character, as script.Parent would have to equal the character. Can you not just do a playerAdded event and fetch it that way?
I don’t think it’s about the backpack error now.
I think this should be a display error.
I just runned the game once and I found out that the function related to the backpack in the script
player.Backpack:Connect(function (tool)
end)
still can properly run despite of the error displayed in developer console.
That’s Great! I was also was having a problem with GetPlayerFromCharacter() Because i was making a region that would detect other humanoids and when i use this function to get the player from the character. it would return nil or an error. The way i was able to fix this problem was wrap it in a pcall(function() Only Wrapped Wherever the player is being located and used. So just another idea if you get an error with this function