Error cloning character

im trying to clone player character with gui press but my script is not working Here is the script:

server.spawnNewChar.MouseButton1Click:Connect(function()
    game.ReplicatedStorage.server.sameChar:FireServer(plrInfo.plrName.Text)
    
end)

Here is the error:

attempt to index nil with 'Parent'
  1. Is this error on the server or client?

  2. Can you send the full LocalScript?

Here is the error (this is ss):

game.ReplicatedStorage.server.sameChar.OnServerEvent:Connect(function(idk,plr)

local CloneChar = game.Players:FindFirstChild(plr).Character:Clone()

CloneChar.Parent = workspace

end)

You have to enable the archivable property before you can clone a character.