I am using this code to clone a model that is in workspace:
local m = workspace:FindFirstChild(modelName)
if not m then return end
local model = m:Clone()
model.Parent = workspace
it does not return at line 2, meaning it can find the object, but then at line 4 this error is outputted:
attempt to index nil with 'Parent' - this tells me that :Clone() is not returning the cloned instance.
At first I thought it may be a bug but I wanted to check here if I am using it wrong somehow. Thanks