i'm trying to clone the game.Players.LocalPlayer.Character to use as a viewmodel, but
local character = game.Players.LocalPlayer.Character
local viewModel = character:Clone()
viewModel.Parent = character
keeps giving me the error
attempt to index nil with 'Parent'

2 comments
Try waiting for the character as aviel mentioned in the answer and if that doesn't seem to work then change the archivable properties of the character
okay it was the archivable property that was messing everything up