local player=game.Players.Localplayer
local char=player.Character
Every time I try to test my game, this error pops up... I don't know how to fix this...
18:59:37.338 - Players.Player1.Backpack.LootCorpse:5: attempt to index field 'Character' (a nil value)

2 comments
Your 2nd bullet is incorrect. I've tested that out before, and that's the reason my scripts never got past that point. The model 'Character' isn't a child of the Player Instance, which will prohibit the script from advancing beyond that point. In case I flipped my words: 'Character' won't show up as a descendant of Player in the Explorer, so therefor it will not work.
My second bullet isn't incorrect, but instead you just can't read. My second bullet is in the event that it's not referring to the Character property of Player and instead a Character child of some other object. There's a whole 3 lines missing, so I have to cover all possibilities.