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'
that could be because you clone the character when it didn't even load. try waiting for the character to load like this
local character = game.Players.LocalPlayer.CharacterAdded:Wait()
Edit:
local character = game.Players.LocalPlayer character.Archivable = true local viewModel = character:Clone() viewModel.Parent = character