so basically, I have this script put in. and when I press play, it just says "Players.codergav.PlayerGui.MainGui5.Cutscenes.FinalCutscene:82: attempt to index nil with 'Parent' " here's the code so that you guys can help me out a bit. local player = game.Players.LocalPlayer (a few more lines of code, not relating whatsoever to my problem) local shiter = player.Character:Clone() player.Character.Archivable = false shiter.Parent = game.Workspace shiter.Name = "Model265"
and again, it says in output "Players.codergav.PlayerGui.MainGui5.Cutscenes.FinalCutscene:82: attempt to index nil with 'Parent' ". if you guys could help me out a bit, that'd help alot.
It is actually nil and for a good reason, You've disabled the property "Archivable" which basically removes the ability for that asset to save in any instance, Whether it be saving it to studio or cloning it. Whatever the case is that Model will not be able to clone.
Try removing the line that disables the Archivable property or instead of making it false make it true, Keep in mind if the object your cloning has that property set to false It will not clone resulting in making it nil.
Problematic code is shiter.Parent = game.Workspace shiter.Name = "Model265"
, this is not an instance but rather linking to a property. Im not sure what you're trying to do here but you should not have it linked to shiter.Parent
as that property only works on instances such as workspace
ServerStorage
or any object for example. Best advice is to split them into separate lines and fill in shiter.Parent
with whatever you were trying to do with it